Add new credit card to the account.




Parameter

Description

Required

nameThe name on credit cardYES
numberThe credit card numberYES
expiry_monthThe month of the expiry date. Must be 2 digits, e.g: 01, 02, 12YES
expiry_yearThe year of the expiry date. Must be 4 digits, e.g: 2024YES
cvvThe card verification value. Must be 3 digits, e.g: 201YES



Example


curl https://api.transmitsms.com/add-card.json \
  -u 2e24c1cbdd987221e165d543f34b84bf:secret \
  -d name='Mr Test' \
  -d number='4242424242424242' \
  -d expiry_month='02' \
  -d expiry_year='2024' \
  -d cvv='201'




JSON Response

{
    "result": {
        "creditcard_id": "5ea6550431a1ae10c3f8ff11",
        "name": "Mr Test",
        "number": "************4242"
    },
    "error": {
        "code": "SUCCESS",
        "description": "OK"
    }
}