Create a sub-customer either under customer by supplying the ‘Customer Account Number’ in the request, or under the top-level customer if not provided in request. The system returns the ‘Customer Account Number’ of the newly created customer. Sub-customers can be created only up to two levels below the top-level customer. Supplied Address and Contact data are created as MAIN address and contact for customer. Top-level customer creation is corpay’s responsibility. The top-level customer cannot be created via APIs. All customers under top-level customer are identified as sub customer.
Performance expectations: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.
Use OAuth2 client credentials to obtain a bearer token.
UAT token endpoint:
POST https://apigwuat.corpay.com/keycloak/realms/longship/protocol/openid-connect/token
Example:
curl --location 'https://apigwuat.corpay.com/keycloak/realms/longship/protocol/openid-connect/token' \
--header 'accept: application/json' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=.......' \
--data-urlencode 'client_secret=......'Subcustomer's customer account number