Skip to main content
POST
/
cards
/
replaced
Register for receiving replaced card information.
curl --request POST \
  --url https://apigwuat.corpay.com/cards/replaced \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cardIdentifier": 123,
  "target_url": "<string>",
  "hmac_enabled": true,
  "hmac_secret": "<string>",
  "max_retries": 123
}
'
{
  "status": "created",
  "integration_key": "corpay.public.api.card.replaced.cardIdenitifier.2823795",
  "webhook_id": "744317f9-ca90-4388-bb00-f2a10f1db627"
}

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.

Authorizations

Authorization
string
header
required

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=......'

Body

application/json
cardIdentifier
integer
required
target_url
string
required

url for the system where webhook should respond to in case of event.

hmac_enabled
boolean
hmac_secret
string
max_retries
integer

Response

created

status
string
integration_key
string
webhook_id
string