API referenceCards

Issue

Request a card. It cannot spend until the provider issues it. At least one limit is required. A card with none is a standing instruction to move a business's money without a ceiling, and the absence of a decision is not the same as deciding to allow everything.

POST
/api/b/v1/cards

Request a card. It cannot spend until the provider issues it.

At least one limit is required. A card with none is a standing instruction to move a business's money without a ceiling, and the absence of a decision is not the same as deciding to allow everything.

Authorization

OAuth2PasswordBearer
AuthorizationBearer <token>

In: header

admin_access_token?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

A card to issue. IN-302.

Inherits the three limit fields above, so a card can be issued with its ceilings already set rather than issued open and tightened afterwards.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/b/v1/cards" \  -H "Content-Type: application/json" \  -d '{    "holder_user_id": "3f9a1b2c-8d7e-4f60-9a1b-2c3d4e5f6a7b",    "currency": "USD"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "label": "string",  "holder_user_id": "0945901a-0f71-46d3-9812-de7afb578bb4",  "currency": "string",  "status": "string",  "last_four": "string",  "expiry": "string",  "per_transaction_minor": 0,  "daily_minor": 0,  "monthly_minor": 0,  "allowed_categories": [    "string"  ],  "blocked_categories": [    "string"  ],  "allowed_countries": [    "string"  ],  "blocked_countries": [    "string"  ],  "frozen_reason": "string",  "created_at": "2019-08-24T14:15:22Z"}