Add new credit card to the account.
Parameter | Description | Required |
name | The name on credit card | YES |
number | The credit card number | YES |
expiry_month | The month of the expiry date. Must be 2 digits, e.g: 01, 02, 12 | YES |
expiry_year | The year of the expiry date. Must be 4 digits, e.g: 2024 | YES |
cvv | The card verification value. Must be 3 digits, e.g: 201 | YES |
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" } }