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/refundandPOST /v1/voidname the order in the request body. The path-basedPOST /v1/orders/{id}/refundhas its own section on the /refund page, which lists the refund cases that were confirmed on that endpoint.
Endpoints
| Endpoint | Error messages | Endpoint page |
|---|---|---|
POST /v1/oauth2/token | Error Messages: /oauth2/token | Authentication |
POST /v1/evaluate | Error Messages: /evaluate | /evaluate |
POST /v1/capture | Error Messages: /capture | /capture |
POST /v1/transmit | Error Messages: /transmit | Transmit |
POST /v1/refund, POST /v1/orders/{id}/refund | Error Messages: /refund | /refund |
POST /v1/void | Error Messages: /void | /void |
POST /v1/orders/{id}/cancel, /external-cancel | Error Messages: /cancel | /cancel |
GET /v1/orders | Error Messages: /orders | /orders |
GET /v1/orders/{id} | Error Messages: /orders/{id} | /orders/{id} |
POST /v1/tokenize | Error 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.
| Trigger | Error key | Message | Endpoints |
|---|---|---|---|
| Required JSON body is empty | "" | A non-empty request body is required. | token, evaluate, transmit, refund (path-based), tokenize |
| Malformed JSON or wrong value type | JSON path, for example $.appKey | The JSON value could not be converted to System.String. Path: $.appKey | LineNumber: <n> | BytePositionInLine: <n>. | token |
| 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>. | evaluate, transmit, refund (path-based) |
| 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>. | evaluate, transmit (mid, siteId), refund (path-based), cancel, external-cancel |
| Query parameter of the wrong type | Parameter name, for example pageSize | The 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
| Status | Trigger | Error key | Message |
|---|---|---|---|
409 | Idempotency key reused with a different request body | IdempotencyKey | This IdempotencyKey was already used with a different request body. Reuse the original request, or use a new IdempotencyKey. |
409 | A request with the same idempotency key is still in progress | IdempotencyKey | Request is already in flight. Please try again. |
503 | Service temporarily unavailable; the response includes a Retry-After: 1 header | — | Service temporarily unavailable (Error #5674). Please try again. |
503 | Service temporarily unavailable; the response includes a Retry-After: 1 header | — | Service temporarily unavailable (Error #5675). Please try again. |
401 or 403 | Missing, 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}) | — | — |
415 | Missing or unsupported Content-Type header | — | — |
Retry rules for every status are on Error Handling.
Updated about 17 hours ago

