Replace a card
Changed onReplace a lost, stolen, damaged or undelivered physical card. The original closes, and the response is the new card.
post/v2/cards/{cardId}/replace
Request
- Base URLhttps://api.slash.com
- URLhttps://api.slash.com/v2/cards/{cardId}/replace
- AuthAPI key in header X-API-Key
Path parameters
cardIdstring required
Card id with the c_ prefix.
Headers
X-Idempotency-Keystring required
Unique caller-generated key for one create request. Once an authenticated, schema-valid request reaches the operation, the key is permanently consumed for that operation and legal entity whether the operation succeeds or fails. Reusing it in that scope returns 409 and never replays a response, unlike API v1, which replays the original response for a matching key.
Request body
Example request
{
"physical": {
"secondLine": "Computer Services"
}
}Response
The new card.
Example response
{
"id": "c_2rj4l7hmrrrcv",
"name": "Ads – Meta",
"last4": "4242",
"expiryMonth": 9,
"expiryYear": 2030,
"accountId": "sa_group_2rj4l7hmrrrcv",
"virtualAccountId": "subaccount_2rj4l7hmrrrcv",
"cardGroupId": "card_group_2rj4l7hmrrrcv",
"cardProductId": "card_product_2rj4l7hmrrrcv",
"cardholderUserId": "u_2rj4l7hmrrrcv",
"controls": {
"limit": {
"amount": {
"amount": 500000,
"currency": "USD"
},
"period": "monthly"
},
"transactionLimit": {
"amount": 250000,
"currency": "USD"
},
"merchantCategoryCodes": {
"mode": "block",
"values": [
"7995"
]
}
},
"physical": {
"secondLine": "Computer Services"
}
}Changes
- info
endpoint added
- info