For the complete documentation index, see llms.txt. This page is also available as Markdown.

Review Replace Card

Review Card Replacement

The Review Replace Card endpoint previews a card replacement before it is carried out. It validates that the card is eligible for replacement and returns the replacement fee together with the account the fee will be charged from. No card is replaced and no funds are moved by this endpoint. Once reviewed, call Replace Card to perform the replacement. The optional shippingAddress may be supplied on the review request for consistency with the replace request. It is not required to preview the replacement.

  • Endpoint: /api/v1/customer/cards/reviewreplace

  • Method: POST

  • Request Format: application/json

  • Header Parameter

    • otp : required

Request Body

{
  "cardsId": 1359,               // required, number, ID of the card to be replaced
  "replaceReason": "Damaged",    // required, string, one of: "Damaged", "Lost", "FraudCompromised", "Returned", "Expired", "Stolen"
  "shippingMethod": "Standard",  // optional, string, one of: "Standard" (default), "Express"
  "shippingAddress": {           // optional. Supply to ship the replacement card to a new address
    "shippingAddressLine1": "1 Roshar Ave",  // required when shippingAddress is supplied, string, max 60 characters
    "shippingAddressLine2": null,            // optional, string, max 60 characters
    "shippingAddressCity": "New York",       // required when shippingAddress is supplied, string, max 60 characters
    "shippingAddressState": "NY",            // required when shippingAddress is supplied, string, letters only, max 30 characters
    "shippingAddressPostcode": "10001",      // required when shippingAddress is supplied, string, digits only, max 10 characters
    "shippingAddressCountry": "US"           // required when shippingAddress is supplied, string, letters only
  }
}

Response Body

Error Responses

Errors are returned using the standard envelope, with status set to "0" and one or more entries in the errors array, each containing a fieldName and a messageCode.

messageCode
Meaning

Required

A required field (cardsId or replaceReason) was not provided.

Invalid

replaceReason or shippingMethod is not one of the accepted values.

Card_Provider_Not_Supported

Card replacement is not supported for this card.

Card_Already_Replaced

The card has already been replaced.

Card_Account_Not_Found

The funding account for the card could not be found.

Card_Replacement_Fee_Not_Configured

No card replacement fee is configured for the customer.

Insufficient_Funds

The funding account does not have enough available balance to cover the replacement fee.