Create a card
Issue a virtual or physical card. Virtual cards are active at once; physical cards are pending until they ship.
Authorizations
User API key authentication. Create a key under Settings → API keys in the Slash dashboard (https://app.slash.com/global-settings/api-keys) and send the x-legal-entity header naming the legal entity to act on with every request. Keys scoped to a legal entity are rejected with 403 user_api_key_required.
Headers
Unique caller-generated key for one create request. Once an authenticated, schema-valid request reaches the operation, the key is permanently consumed for that operation and legal entity whether the operation succeeds or fails. Reusing it in that scope returns 409 and never replays a response, unlike API v1, which replays the original response for a matching key.
1 - 255The legal entity to act on. Required on every request; a user API key can act on any legal entity its user has access to.
^le_[a-zA-Z0-9]+$Body
- CardCreateVirtual
- CardCreatePhysical
virtual 1 - 255"Ads – Meta"
The user who holds the card, from GET /v2/users.
"u_2rj4l7hmrrrcv"
The account to issue from. Required when the legal entity has more than one card account.
"sa_group_2rj4l7hmrrrcv"
Defaults to the account's primary virtual account.
"subaccount_2rj4l7hmrrrcv"
"card_group_2rj4l7hmrrrcv"
From GET /v2/card-products. Defaults to the account's.
"card_product_2rj4l7hmrrrcv"
What the card may spend. The controls of its card group apply too. Replaced whole on update; null clears it.
The address address verification (AVS) checks.
Close the card after its first transaction.
Response
The card.
A virtual or physical card. Its number and security code are only available from GET /v2/cards/{cardId}/details.
Card id with the c_ prefix.
"c_2rj4l7hmrrrcv"
virtual, physical pending: being issued, or waiting for a physical card's fee. awaiting_activation: a physical card its holder has not activated. active: approves authorizations. paused: declines them. inactive: deactivated by Slash or the issuer; can only be closed. closed: permanent.
pending, awaiting_activation, active, paused, inactive, closed "Ads – Meta"
Account id with the sa_group_ prefix.
"sa_group_2rj4l7hmrrrcv"
Whether the card closes after its first transaction. Virtual cards only.
Absent on physical cards until they are activated.
"4242"
9
2030
Virtual account the card spends from, with the subaccount_ prefix.
"subaccount_2rj4l7hmrrrcv"
Card group id with the card_group_ prefix.
"card_group_2rj4l7hmrrrcv"
Card product id with the card_product_ prefix.
"card_product_2rj4l7hmrrrcv"
The user who holds the card, with the u_ prefix.
"u_2rj4l7hmrrrcv"
What the card may spend. The controls of its card group apply too. Replaced whole on update; null clears it.
The address checked by address verification (AVS). Absent when the legal entity's address is used.
Present on physical cards.
no_longer_needed, lost_or_stolen, never_arrived, damaged, closed_by_slash