Customer
Customer Card AddPost
https://sandbox-api.srpago.com/v1/customer/cus_576c1d85baf38/cards
Asocia una tarjeta (token) a un cliente, de esta manera tendrás un token recurrente.
Para utilizar este servicio deberás tokenizar una tarjeta con nuestras librerías de tokenización.
headers
AuthorizationBearer Token
Content-Typeapplication/json
body
{"token":"tok_9999"}
Example Request
curl --location --request POST 'https://sandbox-api.srpago.com/v1/customer/cus_576c1d85baf38/cards' \ --header 'Content-Type: application/json' \ --data-raw '{"token":"tok_9999"}'
Example Response
[ { "success": true, "result": { "token": "crd_dev_602c6040f20", "holder_name": "Nombre Apllido", "type": "VISA", "number": "448553XXXXXX8329", "cvv": "XXXX", "expiration": "2303", "country_code": "MX", "bank_name": "VISA TEST", "funding": "CREDIT", "status": "chargeable" } } ]