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

TriggerError keyMessage
Body is empty or cannot be parsedrequestRequest body is missing or could not be parsed.
Body is empty""A non-empty request body is required.
Text value sent for a number fieldJSON path, for example amountCould not convert string to integer: <value>. Path 'amount', line <n>, position <n>.
Value that is not a GUID sent for a GUID fieldJSON path, for example idempotencyKeyError 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

KeyRequired whenMessage
IsDeclinedAlways'Is Declined' must not be empty.
OrderIdAlways'Order Id' must not be empty.
TransactionAlways'Transaction' must not be empty.
PayerAlways'Payer' must not be empty.
IdempotencyKeyAlways'Idempotency Key' must not be empty.
Transaction.IdTransaction is sent'Id' must not be empty.
Transaction.CurrencyTransaction is sent'Currency' must not be empty.
IsRecurringIsMIT is true'Is Recurring' must not be empty.
SubscriptionIsRecurring is true'Subscription' must not be empty.
PaymentMethodIsDeclined is true'Payment Method' must not be empty.
PaymentMethod.CardNumberPaymentMethod is sent'Card Number' must not be empty.
PaymentMethod.ExpirationMonthPaymentMethod.Token is false'Expiration Month' must not be empty.
PaymentMethod.ExpirationYearPaymentMethod.Token is false'Expiration Year' must not be empty.
Subscription.SubscriptionIdSubscription is sent'Subscription Id' must not be empty.
Subscription.IntervalSubscription is sent'Interval' must not be empty.
Subscription.CurrencySubscription is sent'Currency' must not be empty.
ShippingInformation.CountryShippingInformation is sent'Country' must not be empty.
ShippingInformation.CountryCodeShippingInformation is sent'Country Code' must not be empty.
ShippingInformation.AddressLine1ShippingInformation is sent'Address Line1' must not be empty.
ShippingInformation.CityShippingInformation is sent'City' must not be empty.
ShippingInformation.ZipcodeShippingInformation is sent'Zipcode' must not be empty.
ShippingInformation.StateShippingInformation.Country is US'State' must not be empty.
ThreeDsecure.EcommerceIndicatorThreeDsecure is sent'Ecommerce Indicator' must not be empty.
ThreeDsecure.AuthenticationValueThreeDsecure is sent'Authentication Value' must not be empty.
ThreeDsecure.DirectoryServerTransactionIdThreeDsecure is sent'Directory Server Transaction Id' must not be empty.
Affiliate.IdAffiliate is sent'Id' must not be empty.
Affiliate.NameAffiliate is sent'Name' must not be empty.
Payer.PaymentMethods[i].TypeThe entry is sent'Type' must not be empty.
Payer.PaymentMethods[i].ValueThe entry is sent'Value' must not be empty.

Value ranges and limits

KeyRuleMessage
AttemptNumberBelow 1, when sent'Attempt Number' must be greater than or equal to '1'.
AttemptNumberAbove 100'Attempt Number' must be less than or equal to '100'.
PaymentMethod.ExpirationMonthOutside 1 to 12'Expiration Month' must be between 1 and 12. You entered <value>.
PaymentMethod.ExpirationYearOutside 1 to 2100'Expiration Year' must be between 1 and 2100. You entered <value>.
Subscription.IntervalCountOutside 1 to 1096'Interval Count' must be between 1 and 1096. You entered <value>.
PaymentMethod.CredentialTypeNot PAN, NETWORK_TOKEN, or DEVICE_TOKENInvalid value. Allowed values: PAN, NETWORK_TOKEN, DEVICE_TOKEN
PaymentMethod.WalletTypeNot APPLE_PAY, GOOGLE_PAY, SAMSUNG_PAY, CLICK_TO_PAY, or OTHERInvalid value. Allowed values: APPLE_PAY, GOOGLE_PAY, SAMSUNG_PAY, CLICK_TO_PAY, OTHER
PaymentMethod.WalletTypeSent when credentialType is not DEVICE_TOKENWalletType is only allowed with DEVICE_TOKEN credentials.
PaymentMethod.TokenRequestorIdNot exactly 11 digitsTokenRequestorId must contain exactly 11 digits.
Transaction.EciNot 05, 06, or 07 when the card brand is Visa, American Express, or Discover; not 0, 1, or 2 when the card brand is MastercardEci must be 05, 06 or 07 for Visa, Amex or Discover, or 0, 1 or 2 for Mastercard.
Transaction.SchemeTransactionIdFewer than 6 characters, or the value is N/A, ZYX, or all zerosSchemeTransactionId must contain at least 6 characters and must not be N/A, ZYX or all zeros.
Transaction.TransactionLinkIdSent when the card brand is not MastercardTransactionLinkId is only allowed for Mastercard.
Transaction.Cryptogram.TypeMissing when cryptogram is sentCryptogram.Type is required when Cryptogram is present.
Transaction.Cryptogram.TypeNot NETWORK_TOKEN, DEVICE_TOKEN, or CARD_PRESENTInvalid value. Allowed values: NETWORK_TOKEN, DEVICE_TOKEN, CARD_PRESENT
Transaction.Cryptogram.TypeNETWORK_TOKEN or DEVICE_TOKEN, and not equal to credentialTypeCryptogram.Type must match CredentialType unless it is CARD_PRESENT.
Transaction.Cryptogram.ValueMore than 64 charactersCryptogram.Value must be at most 64 characters.
Transaction.Cryptogram.ValueNot valid Base64Cryptogram.Value must be valid Base64.
AdditionalFieldsMore than 50 entriesAdditionalFields cannot exceed 50 entries
UserDefinedFieldsMore than 50 entriesUserDefinedFields cannot exceed 50 entries
AdditionalFields[i].KeyMore than 40 charactersThe length of 'Key' must be 40 characters or fewer. You entered <length> characters.
UserDefinedFields[i].KeyMore than 40 charactersThe length of 'Key' must be 40 characters or fewer. You entered <length> characters.
AdditionalFields[i].ValueMore than 500 charactersThe length of 'Value' must be 500 characters or fewer. You entered <length> characters.
UserDefinedFields[i].ValueMore than 500 charactersThe length of 'Value' must be 500 characters or fewer. You entered <length> characters.
Name of the string field, for example OrderId or Transaction.IdValue contains the literal text \u0000Input string should not contain \u0000 characters.

Payment methods

Checks on each Payer.PaymentMethods[i] entry.

KeyTriggerMessage
Payer.PaymentMethods[i].TypeNot card, ach, or sepaInvalid value. Allowed values: card, ach, sepa
Payer.PaymentMethods[i].ValueType is missingPayment method type is required
Payer.PaymentMethods[i].ValueType is not recognisedUnknown payment method type: <type>
Payer.PaymentMethods[i].ValueValue is not a JSON objectPayment method value is not a valid object for type: <type>
Payer.PaymentMethods[i].ValueValue does not match the structure for its typeFailed to deserialize payment method object to <type>: <parser error>
Payer.PaymentMethods[i].ValueValue could not be read for its typeFailed to deserialize payment method object to <type>
Payer.PaymentMethods[i].Value.CardNumberCard: missing'Card Number' must not be empty.
Payer.PaymentMethods[i].Value.AccountTypeACH: missing'Account Type' must not be empty.
Payer.PaymentMethods[i].Value.AccountNumberACH: missing'Account Number' must not be empty.
Payer.PaymentMethods[i].Value.RoutingNumberACH: missing'Routing Number' must not be empty.
Payer.PaymentMethods[i].Value.AccountTypeACH: not checking or savingsInvalid value. Allowed values: checking, savings
Payer.PaymentMethods[i].Value.AccountHolderTypeACH: not company or individualInvalid 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

KeyTriggerMessage
midMid does not match the merchant associated with the credentialsWrong Merchant Id
midMerchant ID cannot be determined, for example partner credentials sent without MidMerchant Id is required
MidMerchant not foundUnknown merchant
MidMerchant is not activeMerchant is not active
SiteIdSite not found for the merchantSite with ID <SiteId> not found

Order type checks

KeyTriggerMessage
IsMITIsMIT is true and MIT is not enabled for the merchantMIT is not enabled for this merchant, contact support
OrderSourceNot a supported order sourceInvalid OrderSource: OrderSource
OrderSourceterminal not enabled for the merchantterminal mode is not enabled for this merchant, contact support
IsMITIsMIT is true on a terminal orderMIT is not allowed for terminal orders
IsMITIsMIT is true on a terminal order; returned together with the message aboveIsMIT cannot be true for order in terminal mode
ExpiryDateUtcSent on a real-time MIT order. Real-time MIT is a separate account configuration; it is not the Sync MIT flow, which accepts the fieldExpiryDateUtc is not allowed for this order
ExpiryDateUtcMissing on an asynchronous MIT orderExpiryDateUtc is required for asynchronous MIT orders
Transaction.DynamicDescriptorMissing on an MIT order when the merchant requires itDynamicDescriptor is required for this merchant
TransactionTypeNot one of the supported values AUTHORIZATION, PURCHASE, and PREEVALUATEInvalid transaction type: <value>
TransactionTypeauthorization sent and the merchant does not use captureAuthorization is not allowed for this merchant
GeneralMIT order duplicates an order that is already approvedDuplicate order

Card data checks

KeyTriggerMessage
PaymentMethod.TokenMerchant is not enabled for raw card data and the card is not tokenized, including when PaymentMethod is omittedCannot process PCI data for non-PCI merchant
PaymentMethod.CardNumberRaw card number sent for a non-PCI merchant or a tokenized requestCannot process PCI data for non-PCI merchant or request
PaymentMethod.VerificationValueCVV sent for a non-PCI merchant or a tokenized requestCannot process PCI data for non-PCI merchant or request
PaymentMethod.CardNumberPCI merchant, untokenized card number is invalidCard number is not valid
PaymentMethod.CardNumberSandbox only: not a supported test cardOnly 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

KeyTriggerMessage
BillingInformation.FullNameFullName sent together with FirstNameFullName and FirstName cannot be set at the same time
BillingInformation.FullNameFullName sent together with LastNameFullName and LastName cannot be set at the same time
ShippingInformation.FullNameFullName sent together with FirstNameFullName and FirstName cannot be set at the same time
ShippingInformation.FullNameFullName sent together with LastNameFullName and LastName cannot be set at the same time

The following checks run only when billing information is required for the merchant.

KeyTriggerMessage
BillingInformation.FullNameFullName is blankFullName field is required
BillingInformation.FirstNameNo first or last name sentFirstName field is required
BillingInformation.LastNameNo first or last name sentLastName field is required
BillingInformation.CountryMissingCountry field is required
BillingInformation.CountryCodeMissingCountryCode field is required
BillingInformation.StateMissing and the country is USState field is required
BillingInformation.AddressLine1MissingAddressLine1 field is required
BillingInformation.CityMissingCity field is required
BillingInformation.ZipcodeMissingZipcode 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 400 again.
  • If you send a corrected body with the same key, the API returns 409 with error key IdempotencyKey and the message This 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.


Did this page help you?