ENDPOINT
- POST /v1/card
REQUEST
- {
- "cardType": "physical",
- "label": "Meal Card",
- "accountId": "{{accountId}}",
- "currency": "USD",
- "limitAmount": "120.00",
- "limitInterval": "allTime",
- "billingAddress": {
- "addressType": "billing",
- "line1": "164 Sugarloaf Drive",
- "line2": "",
- "city": "San Mateo",
- "state": "CA",
- "country": "US",
- "postalCode": "94403"
- },
- "shipping": {
- "shippingAddress": {
- "addressType": "shipping",
- "line1": "164 Sugarloaf Drive",
- "line2": "",
- "city": "San Mateo",
- "state": "CA",
- "country": "US",
- "postalCode": "94403"
- }
- },
- "allowedCategories": [
- "1234",
- "9878"
- ],
- "bin": "credit",
- "embossingPerson": "John Doe",
- "embossingBusiness": "Acme LLC"
- }
Notes:
- Leave the allowedCategories field blank if you want to allow all categories. The above codes are provided just as an example.
- To create a card for a business or family member who is not the account owner, pass their personId in the sd-person-id header.
RESPONSE
- {
- "id": "crd-8df1a028-447d-479f-8b85-8187d3eb9582",
- "accountId": "acc-63d656eb-fedc-4250-8111-48a5ff0faed9",
- "businessId": "bus-0fc3d3cb-f2bf-407b-8377-77acc57f5ea6",
- "programId": "prg-b9f17601-4717-460e-bda5-9598f6f6db28",
- "cardholder": {
- "id": "chd-7ce49193-018b-4a82-8f6d-867275526a4f",
- "personId": "per-3ebfa3d2-5d36-411d-984a-9e3a328011c5",
- "billingAddress": {
- "addressType": "billing",
- "line1": "164 Sugarloaf Drive",
- "line2": "",
- "city": "San Mateo",
- "state": "CA",
- "country": "US",
- "postalCode": "94403"
- },
- "createdAt": "2021-12-17T05:21:56Z",
- "modifiedAt": "2021-12-17T05:21:56Z",
- "name": "John Doe"
- },
- "cardType": "physical",
- "label": "Meal Card",
- "limitAmount": "120.00",
- "limitInterval": "allTime",
- "shipping": {
- "id": "shp-5bc9fb5f-c70d-424f-aaca-8c5daeb377fe",
- "shippingAddress": {
- "addressType": "shipping",
- "line1": "164 Sugarloaf Drive",
- "line2": "",
- "city": "San Mateo",
- "state": "CA",
- "country": "US",
- "postalCode": "94403"
- },
- "eta": "2021-12-17T05:21:56Z",
- "deliveryStatus": "pending",
- "createdAt": "2021-12-17T05:21:56Z",
- "modifiedAt": "2021-12-17T05:21:56Z"
- },
- "currency": "USD",
- "expiryMonth": "12",
- "expiryYear": "2022",
- "last4": "5275",
- "cardStatus": "pendingActivation",
- "activatedAt": "",
- "createdAt": "2021-12-17T05:21:57Z",
- "modifiedAt": "2021-12-17T05:21:57Z",
- "createdPersonId": "per-3ebfa3d2-5d36-411d-984a-9e3a328011c5",
- "metadata": null,
- "bin": "credit",
- "allowedCategories": [
- "1234",
- "9878"
- ],
- "availableLimit": "120.00",
- "blockedCategories": null,
- "embossingPerson": "John Doe",
- "embossingBusiness": "Acme LLC",
- "theme": ""
- }