Error Messages by Endpoint

Every request that returns HTTP 400 on the FlexFactor API v1, endpoint by endpoint, with the body format, error key, and message for each case.

These pages list, for each FlexFactor API v1 endpoint, the requests that return HTTP 400 and the body the API returns for each case. Use them to map a 400 back to the field or condition that caused it. Each endpoint has its own page, listed under Endpoints. This page holds the conventions, the errors that several endpoints share, and the related responses that are not 400. The body formats, the HTTP status table, and the retry rules are on Error Handling.

A 400 is a validation failure. Correct the request before sending it again; resending the same payload returns the same 400.

Conventions on these pages

  • Environments. Behavior is the same in sandbox and production except where a row says "Sandbox only".
  • Field names. The API matches request fields without regard to case unless a section says otherwise. Error keys appear exactly as the API returns them: PascalCase for validation rules, and the name as you sent it for parser errors and query parameters.
  • Multiple errors. Unless a section says otherwise, the API returns every validation error it finds in one response.
  • Placeholders. <value>, <n>, <type>, and similar tokens stand for request-specific text. <n> is the line or character position in the request body.
  • Formats. Each row names a body format, A to E, defined on Error Handling.
  • Request models. POST /v1/refund and POST /v1/void name the order in the request body. The path-based POST /v1/orders/{id}/refund has its own section on the /refund page, which lists the refund cases that were confirmed on that endpoint.

Endpoints

EndpointError messagesEndpoint page
POST /v1/oauth2/tokenError Messages: /oauth2/tokenAuthentication
POST /v1/evaluateError Messages: /evaluate/evaluate
POST /v1/captureError Messages: /capture/capture
POST /v1/transmitError Messages: /transmitTransmit
POST /v1/refund, POST /v1/orders/{id}/refundError Messages: /refund/refund
POST /v1/voidError Messages: /void/void
POST /v1/orders/{id}/cancel, /external-cancelError Messages: /cancel/cancel
GET /v1/ordersError Messages: /orders/orders
GET /v1/orders/{id}Error Messages: /orders/{id}/orders/{id}
POST /v1/tokenizeError Messages: /tokenize/tokenize

GET /v1/merchants takes no input and does not return 400, so it has no page.


Common request errors

The request pipeline produces these errors before endpoint-specific validation runs. They use Format A, or Format C on /evaluate.

TriggerError keyMessageEndpoints
Required JSON body is empty""A non-empty request body is required.token, evaluate, transmit, refund (path-based), tokenize
Malformed JSON or wrong value typeJSON path, for example $.appKeyThe JSON value could not be converted to System.String. Path: $.appKey | LineNumber: <n> | BytePositionInLine: <n>.token
Text value sent for a number fieldJSON path, for example amountCould not convert string to integer: <value>. Path 'amount', line <n>, position <n>.evaluate, transmit, refund (path-based)
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>.evaluate, transmit (mid, siteId), refund (path-based), cancel, external-cancel
Query parameter of the wrong typeParameter name, for example pageSizeThe value '<value>' is not valid for pageSize.GET /v1/orders, tokenize (mid)

A missing or unsupported Content-Type header returns 415, not 400.

The endpoint lists in this table name the endpoints on which each message was confirmed. POST /v1/refund and POST /v1/void are not listed here, because their handlers return a different response for these errors — see Error Messages: /refund and Error Messages: /void.


Related responses that are not 400

StatusTriggerError keyMessage
409Idempotency key reused with a different request bodyIdempotencyKeyThis IdempotencyKey was already used with a different request body. Reuse the original request, or use a new IdempotencyKey.
409A request with the same idempotency key is still in progressIdempotencyKeyRequest is already in flight. Please try again.
503Service temporarily unavailable; the response includes a Retry-After: 1 header—Service temporarily unavailable (Error #5674). Please try again.
503Service temporarily unavailable; the response includes a Retry-After: 1 header—Service temporarily unavailable (Error #5675). Please try again.
401 or 403Missing, invalid, or unauthorized bearer token——
404{id} path value is not a GUID, or the order is not found (cancel, external-cancel, capture, refund, void, GET /v1/orders/{id})——
415Missing or unsupported Content-Type header——

Retry rules for every status are on Error Handling.


Did this page help you?