Error Messages: /evaluate
Every request to POST /v1/evaluate that returns HTTP 400, with the error key and the message for each case.
This page lists the requests to POST /v1/evaluate that return HTTP 400, with the error key and the message for each case. The endpoint is documented on /evaluate. The conventions for these tables and the errors that several endpoints share are on Error Messages by Endpoint.
All 400 responses use Format C: a flat object that maps each field name to its messages, with the trace ID as the TraceId entry. The API returns every error it finds together.
Request body
| Trigger | Error key | Message |
|---|---|---|
| Body is empty or cannot be parsed | request | Request body is missing or could not be parsed. |
| Body is empty | "" | A non-empty request body is required. |
| Text value sent for a number field | JSON path, for example amount | Could not convert string to integer: <value>. Path 'amount', line <n>, position <n>. |
| Value that is not a GUID sent for a GUID field | JSON path, for example idempotencyKey | Error converting value "<value>" to type 'System.Nullable`1[System.Guid]'. Path 'idempotencyKey', line <n>, position <n>. |
The request error is returned together with whichever parser error applies. A parser error stops validation; the required-field and range errors below are returned only after the body parses.
Required fields
| Key | Required when | Message |
|---|---|---|
IsDeclined | Always | 'Is Declined' must not be empty. |
OrderId | Always | 'Order Id' must not be empty. |
Transaction | Always | 'Transaction' must not be empty. |
Payer | Always | 'Payer' must not be empty. |
IdempotencyKey | Always | 'Idempotency Key' must not be empty. |
Transaction.Id | Transaction is sent | 'Id' must not be empty. |
Transaction.Currency | Transaction is sent | 'Currency' must not be empty. |
IsRecurring | IsMIT is true | 'Is Recurring' must not be empty. |
Subscription | IsRecurring is true | 'Subscription' must not be empty. |
PaymentMethod | IsDeclined is true | 'Payment Method' must not be empty. |
PaymentMethod.CardNumber | PaymentMethod is sent | 'Card Number' must not be empty. |
PaymentMethod.ExpirationMonth | PaymentMethod.Token is false | 'Expiration Month' must not be empty. |
PaymentMethod.ExpirationYear | PaymentMethod.Token is false | 'Expiration Year' must not be empty. |
Subscription.SubscriptionId | Subscription is sent | 'Subscription Id' must not be empty. |
Subscription.Interval | Subscription is sent | 'Interval' must not be empty. |
Subscription.Currency | Subscription is sent | 'Currency' must not be empty. |
ShippingInformation.Country | ShippingInformation is sent | 'Country' must not be empty. |
ShippingInformation.CountryCode | ShippingInformation is sent | 'Country Code' must not be empty. |
ShippingInformation.AddressLine1 | ShippingInformation is sent | 'Address Line1' must not be empty. |
ShippingInformation.City | ShippingInformation is sent | 'City' must not be empty. |
ShippingInformation.Zipcode | ShippingInformation is sent | 'Zipcode' must not be empty. |
ShippingInformation.State | ShippingInformation.Country is US | 'State' must not be empty. |
ThreeDsecure.EcommerceIndicator | ThreeDsecure is sent | 'Ecommerce Indicator' must not be empty. |
ThreeDsecure.AuthenticationValue | ThreeDsecure is sent | 'Authentication Value' must not be empty. |
ThreeDsecure.DirectoryServerTransactionId | ThreeDsecure is sent | 'Directory Server Transaction Id' must not be empty. |
Affiliate.Id | Affiliate is sent | 'Id' must not be empty. |
Affiliate.Name | Affiliate is sent | 'Name' must not be empty. |
Payer.PaymentMethods[i].Type | The entry is sent | 'Type' must not be empty. |
Payer.PaymentMethods[i].Value | The entry is sent | 'Value' must not be empty. |
Value ranges and limits
| Key | Rule | Message |
|---|---|---|
AttemptNumber | Below 1, when sent | 'Attempt Number' must be greater than or equal to '1'. |
AttemptNumber | Above 100 | 'Attempt Number' must be less than or equal to '100'. |
PaymentMethod.ExpirationMonth | Outside 1 to 12 | 'Expiration Month' must be between 1 and 12. You entered <value>. |
PaymentMethod.ExpirationYear | Outside 1 to 2100 | 'Expiration Year' must be between 1 and 2100. You entered <value>. |
Subscription.IntervalCount | Outside 1 to 1096 | 'Interval Count' must be between 1 and 1096. You entered <value>. |
PaymentMethod.CredentialType | Not PAN, NETWORK_TOKEN, or DEVICE_TOKEN | Invalid value. Allowed values: PAN, NETWORK_TOKEN, DEVICE_TOKEN |
PaymentMethod.WalletType | Not APPLE_PAY, GOOGLE_PAY, SAMSUNG_PAY, CLICK_TO_PAY, or OTHER | Invalid value. Allowed values: APPLE_PAY, GOOGLE_PAY, SAMSUNG_PAY, CLICK_TO_PAY, OTHER |
PaymentMethod.WalletType | Sent when credentialType is not DEVICE_TOKEN | WalletType is only allowed with DEVICE_TOKEN credentials. |
PaymentMethod.TokenRequestorId | Not exactly 11 digits | TokenRequestorId must contain exactly 11 digits. |
Transaction.Eci | Not 05, 06, or 07 when the card brand is Visa, American Express, or Discover; not 0, 1, or 2 when the card brand is Mastercard | Eci must be 05, 06 or 07 for Visa, Amex or Discover, or 0, 1 or 2 for Mastercard. |
Transaction.SchemeTransactionId | Fewer than 6 characters, or the value is N/A, ZYX, or all zeros | SchemeTransactionId must contain at least 6 characters and must not be N/A, ZYX or all zeros. |
Transaction.TransactionLinkId | Sent when the card brand is not Mastercard | TransactionLinkId is only allowed for Mastercard. |
Transaction.Cryptogram.Type | Missing when cryptogram is sent | Cryptogram.Type is required when Cryptogram is present. |
Transaction.Cryptogram.Type | Not NETWORK_TOKEN, DEVICE_TOKEN, or CARD_PRESENT | Invalid value. Allowed values: NETWORK_TOKEN, DEVICE_TOKEN, CARD_PRESENT |
Transaction.Cryptogram.Type | NETWORK_TOKEN or DEVICE_TOKEN, and not equal to credentialType | Cryptogram.Type must match CredentialType unless it is CARD_PRESENT. |
Transaction.Cryptogram.Value | More than 64 characters | Cryptogram.Value must be at most 64 characters. |
Transaction.Cryptogram.Value | Not valid Base64 | Cryptogram.Value must be valid Base64. |
AdditionalFields | More than 50 entries | AdditionalFields cannot exceed 50 entries |
UserDefinedFields | More than 50 entries | UserDefinedFields cannot exceed 50 entries |
AdditionalFields[i].Key | More than 40 characters | The length of 'Key' must be 40 characters or fewer. You entered <length> characters. |
UserDefinedFields[i].Key | More than 40 characters | The length of 'Key' must be 40 characters or fewer. You entered <length> characters. |
AdditionalFields[i].Value | More than 500 characters | The length of 'Value' must be 500 characters or fewer. You entered <length> characters. |
UserDefinedFields[i].Value | More than 500 characters | The length of 'Value' must be 500 characters or fewer. You entered <length> characters. |
Name of the string field, for example OrderId or Transaction.Id | Value contains the literal text \u0000 | Input string should not contain \u0000 characters. |
Payment methods
Checks on each Payer.PaymentMethods[i] entry.
| Key | Trigger | Message |
|---|---|---|
Payer.PaymentMethods[i].Type | Not card, ach, or sepa | Invalid value. Allowed values: card, ach, sepa |
Payer.PaymentMethods[i].Value | Type is missing | Payment method type is required |
Payer.PaymentMethods[i].Value | Type is not recognised | Unknown payment method type: <type> |
Payer.PaymentMethods[i].Value | Value is not a JSON object | Payment method value is not a valid object for type: <type> |
Payer.PaymentMethods[i].Value | Value does not match the structure for its type | Failed to deserialize payment method object to <type>: <parser error> |
Payer.PaymentMethods[i].Value | Value could not be read for its type | Failed to deserialize payment method object to <type> |
Payer.PaymentMethods[i].Value.CardNumber | Card: missing | 'Card Number' must not be empty. |
Payer.PaymentMethods[i].Value.AccountType | ACH: missing | 'Account Type' must not be empty. |
Payer.PaymentMethods[i].Value.AccountNumber | ACH: missing | 'Account Number' must not be empty. |
Payer.PaymentMethods[i].Value.RoutingNumber | ACH: missing | 'Routing Number' must not be empty. |
Payer.PaymentMethods[i].Value.AccountType | ACH: not checking or savings | Invalid value. Allowed values: checking, savings |
Payer.PaymentMethods[i].Value.AccountHolderType | ACH: not company or individual | Invalid value. Allowed values: company, individual |
The first message names sepa. The documented payment-method types are CARD and ACH — see PaymentMethods.
Merchant and account checks
| Key | Trigger | Message |
|---|---|---|
mid | Mid does not match the merchant associated with the credentials | Wrong Merchant Id |
mid | Merchant ID cannot be determined, for example partner credentials sent without Mid | Merchant Id is required |
Mid | Merchant not found | Unknown merchant |
Mid | Merchant is not active | Merchant is not active |
SiteId | Site not found for the merchant | Site with ID <SiteId> not found |
Order type checks
| Key | Trigger | Message |
|---|---|---|
IsMIT | IsMIT is true and MIT is not enabled for the merchant | MIT is not enabled for this merchant, contact support |
OrderSource | Not a supported order source | Invalid OrderSource: OrderSource |
OrderSource | terminal not enabled for the merchant | terminal mode is not enabled for this merchant, contact support |
IsMIT | IsMIT is true on a terminal order | MIT is not allowed for terminal orders |
IsMIT | IsMIT is true on a terminal order; returned together with the message above | IsMIT cannot be true for order in terminal mode |
ExpiryDateUtc | Sent on a real-time MIT order. Real-time MIT is a separate account configuration; it is not the Sync MIT flow, which accepts the field | ExpiryDateUtc is not allowed for this order |
ExpiryDateUtc | Missing on an asynchronous MIT order | ExpiryDateUtc is required for asynchronous MIT orders |
Transaction.DynamicDescriptor | Missing on an MIT order when the merchant requires it | DynamicDescriptor is required for this merchant |
TransactionType | Not one of the supported values AUTHORIZATION, PURCHASE, and PREEVALUATE | Invalid transaction type: <value> |
TransactionType | authorization sent and the merchant does not use capture | Authorization is not allowed for this merchant |
General | MIT order duplicates an order that is already approved | Duplicate order |
Card data checks
| Key | Trigger | Message |
|---|---|---|
PaymentMethod.Token | Merchant is not enabled for raw card data and the card is not tokenized, including when PaymentMethod is omitted | Cannot process PCI data for non-PCI merchant |
PaymentMethod.CardNumber | Raw card number sent for a non-PCI merchant or a tokenized request | Cannot process PCI data for non-PCI merchant or request |
PaymentMethod.VerificationValue | CVV sent for a non-PCI merchant or a tokenized request | Cannot process PCI data for non-PCI merchant or request |
PaymentMethod.CardNumber | PCI merchant, untokenized card number is invalid | Card number is not valid |
PaymentMethod.CardNumber | Sandbox only: not a supported test card | Only test Credit Cards are allowed in test environments. please visit: https://docs.flexfactor.io/docs/testing-cards for a list of test card numbers. |
Billing and shipping names and address
| Key | Trigger | Message |
|---|---|---|
BillingInformation.FullName | FullName sent together with FirstName | FullName and FirstName cannot be set at the same time |
BillingInformation.FullName | FullName sent together with LastName | FullName and LastName cannot be set at the same time |
ShippingInformation.FullName | FullName sent together with FirstName | FullName and FirstName cannot be set at the same time |
ShippingInformation.FullName | FullName sent together with LastName | FullName and LastName cannot be set at the same time |
The following checks run only when billing information is required for the merchant.
| Key | Trigger | Message |
|---|---|---|
BillingInformation.FullName | FullName is blank | FullName field is required |
BillingInformation.FirstName | No first or last name sent | FirstName field is required |
BillingInformation.LastName | No first or last name sent | LastName field is required |
BillingInformation.Country | Missing | Country field is required |
BillingInformation.CountryCode | Missing | CountryCode field is required |
BillingInformation.State | Missing and the country is US | State field is required |
BillingInformation.AddressLine1 | Missing | AddressLine1 field is required |
BillingInformation.City | Missing | City field is required |
BillingInformation.Zipcode | Missing | Zipcode field is required |
Idempotency and stored 400 responses
When the request carries an idempotency key, the API stores a 400 response for 24 hours.
- If you resend the identical body with the same key, the API returns the stored
400again. - If you send a corrected body with the same key, the API returns
409with error keyIdempotencyKeyand the messageThis IdempotencyKey was already used with a different request body. Reuse the original request, or use a new IdempotencyKey.
Use a new idempotency key after you correct a request. The same rule applies on /capture and /refund.
The key is sent in the JSON request body as idempotencyKey — see Idempotency.
Updated about 17 hours ago

