cards
Create Card
Changed onpost/v2/cards/
Request
- Base URLhttps://docs.stancer.com (the document declares no server; this is the origin it was published from)
- URLhttps://docs.stancer.com/v2/cards/
- Auth
- HTTP basic
- or HTTP bearer
Request body
Example request
{
"exp_year": 2022,
"exp_month": 12,
"customer": "cust_yWYfCSzsUUhr9KwMv7vuLZHX",
"cvc": "123",
"number": "4242424242424242",
"preferred_network": "national",
"zip_code": "75001",
"external_id": "UniqueId123",
"name": "My card",
"tokenize": true
}Response
Successful Response
Example response
{
"customer": "cust_yWYfCSzsUUhr9KwMv7vuLZHX",
"brand": "visa",
"country": "FR",
"created": "1512518400",
"exp_month": 12,
"exp_year": 2022,
"external_id": "UniqueId123",
"id": "card_yWYfCSzsUUhr9KwMv7vuLZHX",
"last4": "4242",
"name": "My card",
"zip_code": "75001"
}Changes
- breaking
the
request property's minLength was increased from0to3 - breaking
the response property
became optional for the status
- breaking