Update a tokenized card

Changed on

Update an existing card

put/credit_cards/{token_or_alias}

Request

  • Base URL
    https://gateway.pmnts-sandbox.io/v1.0
  • URL
    https://gateway.pmnts-sandbox.io/v1.0/credit_cards/{token_or_alias}
  • Auth
    HTTP basic

Path parameters

token_or_aliasstring required

Token or alias of the card to update

Request body

card_expirystring

Expiry on the card

aliasstring

Alias to associate with the card. Note: if the alias specified already exists on another card, it will be removed from the other card and added to this card.

Response

200

successfulboolean
testboolean

Example response

{
  "successful": true,
  "response": {
    "token": "fke8jmra",
    "card_holder": "Bob Smith",
    "card_number": "512345XXXXXX2346",
    "card_expiry": "2023-11-30",
    "card_type": "MasterCard",
    "card_category": "Credit",
    "card_subcategory": "Standard",
    "card_issuer": "Banco Del Pichincha, C.A.",
    "card_country": "Ecuador",
    "authorized": true,
    "alias": "NewAlias123"
  },
  "test": true
}

Changes