Cards
Create a card
Creates a physical or virtual card and issues it to the specified cardholder.
post/issuing/cards
Request
- Base URLhttps://{prefix}.api.sandbox.checkout.com
- AuthOAuth 2Client credentialsToken URLstringScopesissuing:card-management-write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Cko-Idempotency-Keystring
An optional idempotency key for safely retrying Issuing requests.
Request body
Example request
{
"type": "virtual",
"cardholder_id": "crh_d3ozhf43pcq2xbldn2g45qnb44",
"lifetime": {
"unit": "Months",
"value": 6
},
"reference": "X-123456-N11",
"metadata": {
"udf1": "metadata1",
"udf2": "metadata2",
"udf3": "metadata3",
"udf4": "metadata4",
"udf5": "metadata5"
},
"scheduled_revocation_date": "2027-03-12T00:00:00.0000000",
"revocation_date": "2027-03-12T00:00:00.0000000",
"scheduled_activation_date": "2026-06-01T10:00Z",
"card_product_id": "pro_7syjig3jq3mezlc3vjrdpfitl4"
}Response
Card created successfully
Example response
{
"id": "crd_fa6psq242dcd6fdn5gifcq1491",
"client_id": "cli_vkuhvk4vjn2edkps7dfsq6emqm",
"entity_id": "ent_fa6psq242dcd6fdn5gifcq1491",
"display_name": "JOHN KENNEDY",
"last_four": "1234",
"expiry_month": 5,
"expiry_year": 2025,
"billing_currency": "USD",
"issuing_country": "US",
"status": "active",
"reference": "X-123456-N11",
"scheme": "mastercard",
"created_date": "2019-09-10T10:11:12.0000000+00:00",
"last_activated_on": "2019-09-10T10:11:12.0000000+00:00",
"_links": {
"self": {
"href": "https://{prefix}.api.checkout.com/issuing/cards/crd_fa6psq42dcdd6fdn5gifcq1491",
"actions": [
"GET"
],
"types": [
"application/json"
]
},
"credentials": {
"href": "https://{prefix}.api.checkout.com/issuing/cards/crd_fa6psq42dcdd6fdn5gifcq1491/credentials",
"actions": [
"GET"
],
"types": [
"application/json"
]
},
"revoke": {
"href": "https://{prefix}.api.checkout.com/issuing/cards/crd_fa6psq42dcdd6fdn5gifcq1491/revoke",
"actions": [
"POST"
],
"types": [
"application/json"
]
},
"controls": {
"href": "https://{prefix}.api.checkout.com/issuing/controls?target_id=crd_fa6psq42dcdd6fdn5gifcq1491",
"actions": [
"GET"
],
"types": [
"application/json"
]
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.