Documentation Index
Fetch the complete documentation index at: https://api.corpay.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
In addition to standard HTTP error responses, Fleet API may return functional (business) errors when a request is syntactically valid but cannot be processed due to business rules or system state. These errors are returned as structured responses containing:- An
errorCode - An
errorDescription - An appropriate HTTP
statusCode
Error Response Format
When a functional error occurs, the API returns a response in the following format:- The HTTP status code
- The
errorCodein the response body
Functional Error Codes
ER-001 — Invalid Card Number
HTTP Status:400 Bad Request
DescriptionThe supplied card number is not valid or does not exist in the Corpay system. Common causes:
- Incorrect card number format
- Card number does not belong to the authenticated customer
- Card has been decommissioned
ER-002 — Card Already Lodged
HTTP Status:422 Unprocessable Entity
DescriptionThe card has already been lodged and cannot be lodged again. Common causes:
- Repeated lodging request for the same card
- Duplicate processing after a successful lodge operation
ER-003 — Customer Associated With Card Is Not Active
HTTP Status:400 Bad Request
DescriptionThe customer account linked to the card is not in an active state. Common causes:
- Customer is blocked or closed
- Card action attempted on an inactive account
ER-004 — Card Is Not Active
HTTP Status:400 Bad Request
DescriptionThe requested operation cannot be performed because the card is not active. Common causes:
- Card is blocked or cancelled
- Operation requires an active card state
ER-005 — Invalid Request Parameters
HTTP Status:400 Bad Request
DescriptionOne or more request parameters failed validation. Notes:
The error message may include the invalid property name. Example:
ER-006 — Invalid Request Parameter: customerAccountNumber
HTTP Status:400 Bad Request
DescriptionThe provided
customerAccountNumber is invalid.
Common causes:
- Missing customer account number
- Invalid or unknown account number format
ER-007 — Error Returned From Downstream Service
HTTP Status:400 Bad Request
DescriptionA validation or processing error was returned by an internal or downstream service. Notes:
The returned
errorDescription may vary depending on the underlying service failure.
ER-009 — Invalid Hierarchy Level
HTTP Status:400 Bad Request
DescriptionThe requested operation violates the allowed customer hierarchy rules. Common causes:
- Sub-customer creation beyond supported hierarchy depth
- Invalid parent - child relationship
ER-010 — Invalid cardIdentifier
HTTP Status:400 Bad Request
DescriptionThe supplied
cardIdentifier is invalid or does not exist.
Common causes:
- Incorrect identifier value
- Card does not belong to the authenticated customer
- Card has been removed from the system
ER-011 — Card Not Replaced Successfully
HTTP Status:400 Bad Request
DescriptionThe card replacement process failed. Action required:
Please contact Corpay support or an administrator for further investigation.
ER-012 — The server encountered an unexpected condition and could not complete the request. Please contact Corpay Support.
HTTP Status:500 Internal Server Error
DescriptionThe server encountered an unexpected condition and could not complete the request due to Technical error. Action required:
Please contact Corpay support or an administrator for further investigation.
Handling Recommendations
When handling functional errors, clients should:- Avoid retrying
400and422responses automatically - Display user-friendly error messages based on
errorCode - Correct input data before resubmitting requests
- Use query APIs as a fallback when webhook-driven flows fail
- Log
errorCodeanderrorDescriptionfor support diagnostics
Summary
Functional error codes provide clear guidance when:- Business rules are violated
- Resources are in an invalid state
- Operations cannot be completed safely
errorCode rather than just the HTTP status to determine next actions.