Code Block | {
"credit_cards": [
{
"label": "Chase Sapphire Reserve",
"name": "Ned Flanders",
"number": "4111111111111111",
"expiration_month": "12",
"expiration_year": "2021",
"verification_code": "789",
"address_id": 645263,
"phone_number_id": 294655,
"ip_address": "37.235.140.72"
}
]
}POST / v9/clients/1680191234567/credit_cards
Create a single credit card using a phone number and an address that was previously created for this Client. braintree_client_token
| Code Block |
---|
| {
"creditclient_cardstoken": [ {
"id": 22528,
"expiration_month": "12",
"last_digits": "1111",
"phone_number": {
"phone_number": {
"id": 294655,
"callable_id": 168019,
"callable_type": "Client",
"country_code": "1",
"number": "5550123",
"extension": null,
"label": "home",
"created_at": "2017-12-15T00:12:21Z",
"updated_at": "2017-12-15T00:20:56Z",
"legacy_id": null,
"imported_filename": null,
"imported_at": null,
"deleted_at": null,
"area_code": null,
"raw_num": "5550123",
"is_primary": false
}
},
"primary": false,
"card_company": "Visa",
"expiration_year": "21",
"name": "Ned Flanders",
"label": "Chase Sapphire Reserve",
"association": {
"name": "Ned Flanders",
"id": 168019,
"url": "/clients/168019",
"phone_numbers": [
{
"label": "cell",
"extension": null,
"number": "555-0573",
"id": "294657",
"country_code": "1",
"primary": false
},
{
"label": "work",
"extension": "5",
"number": "555-0987",
"id": "294656",
"country_code": "1",
"primary": false
},
{
"label": "home",
"extension": null,
"number": "5550123",
"id": "294655",
"country_code": "1",
"primary": false
}
],
"email_addresses": []
},
"address": {
"po_box": false,
"label": "home",
"country_code": "US",
"extended_address": null,
"longitude": null,
"region": "OR",
"primary": false,
"latitude": null,
"locality": "Springfield",
"name": "Ned Flanders",
"postal_code": "97475",
"id": 645263,
"street_address": "742 Evergreen Terrace"
},
"url": "/clients/168019/credit_cards/22528"
}
]
} |
Create a multiple credit cards using phone numbers and addresses that were previously created for this Client. Code Block |
---|
{
"credit_cards": [
{
"label": "Chase Sapphire Reserve",
"name": "Ned Flanders",
"number": "4111111111111111",
"expiration_month": "12",
"expiration_year": "2021",
"verification_code": "789",
"address_id": 645263,
"phone_number_id": 294655,
"ip_address": "37.235.140.72"
},
{
"label": "AmEx Centurion",
"name": "Ned Flanders",
"number": "378282246310005",
"expiration_month": "12",
"expiration_year": "2021",
"verification_code": "7809",
"address_id": 645263,
"phone_number_id": 294655,
"ip_address": "37.235.140.72"
}
]
} |
Code Block |
---|
| {
"credit_cards": [
{
"id": 22530,
"expiration_month": "12",
"last_digits": "1111",
"phone_number": {
"phone_number": {
"id": 294655,
"callable_id": 168019,
"callable_type": "Client",
"country_code": "1",
"number": "5550123",
"extension": null,
"label": "home",
"created_at": "2017-12-15T00:12:21Z",
"updated_at": "2017-12-15T00:20:56Z",
"legacy_id": null,
"imported_filename": null,
"imported_at": null,
"deleted_at": null,
"area_code": null,
"raw_num": "5550123",
"is_primary": false
}
},
"primary": false,
"card_company": "Visa",
"expiration_year": "21",
"name": "Ned Flanders",
"label": "Chase Sapphire Reserve",
"association": {
"name": "Ned Flanders",
"id": 168019,
"url": "/clients/168019",
"phone_numbers": [
{
"label": "cell",
"extension": null,
"number": "555-0573",
"id": "294657",
"country_code": "1",
"primary": true
},
{
"label": "work",
"extension": "5",
"number": "555-0987",
"id": "294656",
"country_code": "1",
"primary": false
},
{
"label": "home",
"extension": null,
"number": "5550123",
"id": "294655",
"country_code": "1",
"primary": false
}
],
"email_addresses": []
},
"address": {
"po_box": false,
"label": "home",
"country_code": "US",
"extended_address": null,
"longitude": null,
"region": "OR",
"primary": false,
"latitude": null,
"locality": "Springfield",
"name": "Ned Flanders",
"postal_code": "97475",
"id": 645263,
"street_address": "742 Evergreen Terrace"
},
"url": "/clients/168019/credit_cards/22530"
},
{
"id": 22531,
"expiration_month": "12",
"last_digits": "0005",
"phone_number": {
"phone_number": {
"id": 294655,
"callable_id": 168019,
"callable_type": "Client",
"country_code": "1",
"number": "5550123",
"extension": null,
"label": "home",
"created_at": "2017-12-15T00:12:21Z",
"updated_at": "2017-12-15T00:20:56Z",
"legacy_id": null,
"imported_filename": null,
"imported_at": null,
"deleted_at": null,
"area_code": null,
"raw_num": "5550123",
"is_primary": false
}
},
"primary": false,
"card_company": "AMEX",
"expiration_year": "21",
"name": "Ned Flanders",
"label": "AmEx Centurion",
"association": {
"name": "Ned Flanders",
"id": 168019,
"url": "/clients/168019",
"phone_numbers": [
{
"label": "cell",
"extension": null,
"number": "555-0573",
"id": "294657",
"country_code": "1",
"primary": true
},
{
"label": "work",
"extension": "5",
"number": "555-0987",
"id": "294656",
"country_code": "1",
"primary": false
},
{
"label": "home",
"extension": null,
"number": "5550123",
"id": "294655",
"country_code": "1",
"primary": false
}
],
"email_addresses": []
},
"address": {
"po_box": false,
"label": "home",
"country_code": "US",
"extended_address": null,
"longitude": null,
"region": "OR",
"primary": false,
"latitude": null,
"locality": "Springfield",
"name": "Ned Flanders",
"postal_code": "97475",
"id": 645263,
"street_address": "742 Evergreen Terrace"
},
"url": "/clients/168019/credit_cards/22531"
}
]"zhJ2ZXJzaW9uI… …b0NvZGUiOiJVU0QifX0="
} |
|