> This page is for version v2.
> For other versions, use one of these documentation indexes:
> - v1 (default): https://developers.outpave.com/v1/llms.txt
> - v2: https://developers.outpave.com/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.outpave.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.outpave.com/_mcp/server.

# Create a card

POST https://api.outpave.com/api/v2/cards
Content-Type: application/json

Creates a virtual or physical card with its spending limits on a card
program: the one `cardProgramId` names, or your default program, the
financial account whose `default` is `true`. The program's financial
account must be `ACTIVE`; a default program that cannot issue cards is
refused by its ID.

A card for an account holder that is `PENDING` or `PENDING_REVIEW`, or
sent without `cardProgramId` while the default program is still
`PENDING`, is held: the response is `202` with the card `PENDING`. It is
issued, with `card.updated`, once the account holder and the program are
`ACTIVE`, and canceled, with `card.canceled`, if it can no longer be
issued, for example once the program is closed. An account holder that
is `DECLINED` or `INACTIVE` is refused with `NOT_ELIGIBLE`. A program
named in `cardProgramId` must be active itself; one that is not is
refused with `NOT_ELIGIBLE`, unless its issuer has not yet decided its
application.

Send `userId` to issue the card to an existing user, or `user` to name
the cardholder inline, and exactly one of them:

* A user of the account holder with the same `email` holds the card as
  they are. A `firstName` or `lastName` that differs from theirs is
  refused with `VALIDATION_FAILED`, naming the field.
* Otherwise the user is created as a `CARDHOLDER`, as `POST /users`
  creates one, with a `user.created` event. To give them another role,
  create the user with `POST /users` first.

Sending `user` also needs `users:write`; its `dateOfBirth`, `address`,
`verificationRoles` and `ownershipBps` also need `users:verify`.

The user must be active, and a person on the account for identity
verification only cannot hold a card. A card for a person needs their
phone number, date of birth, email and address. The card terms are
accepted on the user's behalf when they have not accepted them yet.

The card cannot be used until it is saved with its limits. The response
is `202` with the card as saved: a virtual card is `PENDING` until it is
activated, which follows within seconds; a physical card is `INACTIVE`
until its holder activates it. Retry with the same `Idempotency-Key`
after a timeout or a `502`: the card is created once, on the same
program and for the same user.

A request waits while another card is being issued to the same user;
past that wait it answers `503` with `Retry-After` and creates nothing.
It answers the same while the issuer is still activating card issuing
on the program's financial account, or has not yet decided the
application of a program named in `cardProgramId`, whose `readiness` is
then `VERIFICATION_IN_REVIEW`, `APPLICATION_PENDING` or
`ACTION_REQUIRED`. Retry any of these with the same `Idempotency-Key`.
A request that left the program or the user to be resolved answers
`502` instead once it has added the user or their cardholder, and the
card is created on what it resolved.

`extend` adds `cardToken` or `cardDetails` as `GET /cards/{cardId}`
does, with the same permissions; a program whose issuer cannot reveal
them is refused before the card is issued. The response then waits up
to 5 seconds for the card to be `ACTIVE` and shows it as it is then. A
card that is not active by then, such as a physical card, is answered
without them. A retry with the same `Idempotency-Key` answers the card
as saved, without `cardToken` or `cardDetails`; read them with `GET
/cards/{cardId}`.

Reference: https://developers.outpave.com/v2/api-reference/issuing-api/cards/create-card

## Authentication

- `Authorization` header (bearer token, required) — Access token from `POST /access-token`. Valid for at most 30 minutes.

## Request

### Query parameters

- `extend` (list of enum, optional) — Members to add to the card once it is active. `cardDetails` needs the `cardDetails:reveal` permission. Repeat the parameter for both.
  - Allowed values: `cardToken`, `cardDetails`

### Headers

- `Account-Holder` (string, optional) — The account holder a platform API key acts on. Platform keys must send it on account holder operations. A company API key acts on its own account holder; it may omit the header or send its own account holder ID.
- `Idempotency-Key` (string, required) — Your unique key for this operation: 1 to 255 visible ASCII characters, ideally a new UUID v4 for each operation. A value in double quotes is accepted and the quotes are removed. Retrying with the same key and the same request returns the first response with `Idempotent-Replayed: true`; the same key with a different request is refused with `IDEMPOTENCY_KEY_REUSED`. A key can be used again 30 days after its operation completes.
- `X-Request-Id` (string, optional) — Your own correlation ID for this request. It is recorded with the request. The `X-Request-Id` response header is always generated by the server.

### Body (application/json)

This endpoint expects a CreateCard.

- `type` (enum, required) — A physical card is shipped to the user's address. It is refused with `VALIDATION_FAILED` while the account holder's `business.cardName` is longer than 23 characters.
  - Allowed values: `VIRTUAL`, `PHYSICAL`
- `policy` (CreateCardPolicy, required) — A card has at least one limit.
- `userId` (string, optional) — An existing user who holds the card. Alternative to `user`.
- `user` (CreateUser, optional) — The card's user, named inline. Alternative to `userId`. A user of the account holder with this `email` holds the card as they are; a `firstName` or `lastName` that differs from theirs is refused. Otherwise the user is added as a `CARDHOLDER`, as `POST /users` adds one, with a `user.created` event. Needs `users:write`.
- `cardProgramId` (string, optional) — The card program the card is issued on, from the account holder's own programs. Without it, the card is issued on the account holder's default program.
- `nickname` (string, optional) — Your label for the card.
- `shippingSpeed` (enum, optional) — How a physical card ships. Without it, the issuer picks the speed. `EXPRESS` depends on the account holder's plan.
  - Allowed values: `STANDARD`, `EXPRESS`
- `comment` (string, optional) — A comment saved on the card. The cardholder is notified.
- `termsAcceptance` (CardTermsAcceptance, optional) — How the card's user accepted the card terms in your application, recorded when they have not accepted them yet. Without it, the IP address and `User-Agent` of this request are recorded.

## Response

### 202

The card as saved; a virtual card is activated right after. With `extend`, the card once active, with the members asked for.

- `id` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `object` ("card", required) — Always `card`.
- `livemode` (boolean, required) — `true` on a live platform in production, `false` on a Sandbox platform and outside production.
- `accountHolderId` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `userId` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `type` (enum, required) — `VIRTUAL` and `PHYSICAL` cards are issued on a card program. An `EXTERNAL` card was added from an account at another bank, which issues it, sets its limits and services it; it changes here only and publishes no events.
  - Allowed values: `VIRTUAL`, `PHYSICAL`, `EXTERNAL`
- `status` (enum, required) — `PENDING` until the card is issued and activated, `INACTIVE` while a physical card waits for its holder to activate it or after it was turned off as lost or stolen. `statusReason` tells these apart.
  - Allowed values: `PENDING`, `ACTIVE`, `INACTIVE`, `FROZEN`, `CANCELED`
- `policy` (CardPolicy, required) — Spending limits in the account holder's currency, and the card's other spending controls. Each limit is at least the narrower ones: transaction, daily, weekly, monthly, then total. A control that is not set is absent. Where the card was issued with a limit tolerance, an authorization slightly above a limit may still be approved; the limits read back here are always the ones that were set.
- `createdAt` (datetime, required) — When the card was created.
- `updatedAt` (datetime, required) — When the card last changed.
- `cardProgramId` (string, optional) — The card program the card is issued on. Absent on an `EXTERNAL` card.
- `statusReason` (enum, optional) — Why the card is `PENDING` or `INACTIVE`; absent in any other status. `ISSUING`: being issued and activated. `DRAFT`: added but not issued. `AWAITING_ACTIVATION`: a physical card waiting for its holder to activate it. `DEACTIVATED`: turned off, for example as lost or stolen.
  - Allowed values: `ISSUING`, `DRAFT`, `AWAITING_ACTIVATION`, `DEACTIVATED`
- `nickname` (string, optional) — Your label for the card. Absent when not set.
- `last4` (string, optional) — Last four digits of the card number. Absent until the card is issued.
- `network` (enum, optional) — Card network.
  - Allowed values: `VISA`, `MASTERCARD`, `AMEX`
- `expirationMonth` (integer, optional) — The month the card expires, 1 to 12. Absent until the card is issued.
- `expirationYear` (integer, optional) — The year the card expires. Absent until the card is issued.
- `activatedAt` (datetime, optional) — When the card first became `ACTIVE`. Absent until it has.
- `replacement` (CardReplacement, optional)
- `replacementForCardId` (string, optional) — A resource ID. Treat it as an opaque, case-sensitive string.
- `fulfillment` (CardFulfillment, optional)
- `walletTokens` (list of WalletToken, optional) — Apple Pay and Google Pay tokens for this card.
- `pendingChange` (CardPendingChange, optional) — A change to the card that is still in progress, or whose outcome is still being confirmed with the card issuer. Present only while it is; until it resolves, every other change to the card is refused with `SERVICE_UNAVAILABLE`.
- `cardToken` (CardToken, optional) — Only on `GET /cards/{cardId}` with `extend=cardToken`: what the issuer's card display SDK needs to show the card details in the cardholder's browser or app. The embedded card viewer takes it unchanged.
- `cardDetails` (CardDetails, optional) — Only on `GET /cards/{cardId}` with `extend=cardDetails`. Never store or log these values.
- `user` (CardUserSummary, optional) — The card's user, with `extend=user`.
- `accountHolder` (CardAccountHolderSummary, optional) — The card's account holder, with `extend=accountHolder`.
- `cardProgram` (CardProgramSummary, optional) — The card's program, with `extend=cardProgram`. Its financial account has the same ID.

## Errors

### 400 Bad Request Error

The request does not match the contract.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 401 Unauthorized Error

The credential is missing or invalid.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 403 Forbidden Error

The credential is valid but cannot perform this operation.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 409 Conflict Error

The request conflicts with the resource's state, with a unique value, or with another request that used the same `Idempotency-Key`.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 413 Content Too Large Error

The request body is too large.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 415 Unsupported Media Type Error

The request body is not JSON.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 422 Unprocessable Entity Error

The request matches the contract but a business rule refused it.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 429 Too Many Requests Error

The request budget is exhausted.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 500 Internal Server Error

An unexpected error occurred.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 502 Bad Gateway Error

A provider was or may have been asked to act and no definitive answer came back. Retry later with the same Idempotency-Key, never a new one: retries return this response until the outcome is known, then the final response.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 503 Service Unavailable Error

A service this request depends on is unavailable.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

## Types

### CreateCardPolicy

Spending limits for a new card, in the account holder's currency, and its other spending controls. Send at least one limit. Each limit is at least the narrower ones: transaction, daily, weekly, monthly, then total. `merchants` cannot be sent with `allowedCategories` or `blockedMerchants`, nor `allowedCategories` with `blockedCategories`. The four lists hold at most 24 KB of JSON together, about 250 entries of IDs and names of typical length.

- `transactionLimit` (CardLimit, optional) — The most a single authorization may spend.
- `dailyLimit` (CardLimit, optional) — The most the card may spend in a day.
- `weeklyLimit` (CardLimit, optional) — The most the card may spend in a week.
- `monthlyLimit` (CardLimit, optional) — The most the card may spend in a month.
- `totalLimit` (CardLimit, optional) — The most the card may spend over its life.
- `merchants` (list of CardMerchantListItems, optional) — The only merchants the card may pay. Matched by `id`, or else by a close `name`.
- `allowedCategories` (list of CardMerchantCategoryListItems, optional) — The only merchant categories the card may pay.
- `blockedMerchants` (list of CardMerchantListItems, optional) — Merchants the card never pays, matched by `id`. Checked before the allow lists.
- `blockedCategories` (list of CardMerchantCategoryListItems, optional) — Merchant categories the card never pays. Checked before the allow lists.
- `expenseCategory` (string, optional) — An expense category of the account holder, which the card's transactions take.
- `allocationId` (string, optional) — An active allocation of the account holder, which the card's transactions take.
- `receiptPolicy` (enum, optional) — Whether the card's transactions need a receipt. Omit to follow the account holder's policy.
  - Allowed values: `REQUIRED`, `NOT_REQUIRED`, `POLICY`
- `allocationPolicy` (enum, optional) — Whether the card's transactions need an allocation. Omit to follow the account holder's policy.
  - Allowed values: `REQUIRED`, `NOT_REQUIRED`, `POLICY`
- `cancelAt` (integer, optional) — When the card is canceled, in epoch milliseconds: later than today and, for an issued card, no later than its expiry. The daily cancellation run cancels it on that date.

### CreateUser

- `firstName` (string, required) — First name.
- `lastName` (string, required) — Last name.
- `email` (string, required) — Email address.
- `middleName` (string, optional) — Middle name.
- `phone` (string, optional) — E.164 phone number.
- `title` (enum, optional)
  - Allowed values: `CEO`, `COO`, `CFO`, `PRESIDENT`, `VICE_PRESIDENT`, `TREASURER`, `OWNER`, `AUTHORIZED_SIGNATORY`, `OTHER`
- `role` (enum, optional) — An app role, or `CARDHOLDER` for a person who holds cards without signing in. Only a platform API key gives `OWNER`.
  - Allowed values: `OWNER`, `ADMIN`, `ACCOUNTANT`, `AUDITOR`, `APPROVER`, `MANAGER`, `EMPLOYEE`, `CONTRACTOR`, `CARDHOLDER`
- `verificationRoles` (list of enum, optional) — Needed when `role` is absent.
  - Allowed values: `OWNER`, `REPRESENTATIVE`, `CONTROL_PERSON`
- `ownershipBps` (integer, optional) — An owner's share in basis points. Only an `OWNER` has one. Some card issuers take ownership only as a whole percentage. Where an issuer the account holder has applied with does, or, before its first application, the issuer it applies with by default, the share must be a multiple of 100 (2500 is 25%), and any other share is refused with `VALIDATION_FAILED` pointing at `ownershipBps`.
- `dateOfBirth` (date, optional) — Date of birth, `YYYY-MM-DD`.
- `address` (Address, optional)

### CardTermsAcceptance

How the card's user accepted the card terms in your application, recorded when they have not accepted them yet. Without it, the IP address and `User-Agent` of this request are recorded.

- `ipAddress` (string, required) — The IP address the terms were accepted from.
- `userAgent` (string, required) — The user agent of the browser or app the terms were accepted in.

### CardPolicy

Spending limits in the account holder's currency, and the card's other spending controls. Each limit is at least the narrower ones: transaction, daily, weekly, monthly, then total. A control that is not set is absent. Where the card was issued with a limit tolerance, an authorization slightly above a limit may still be approved; the limits read back here are always the ones that were set.

- `transactionLimit` (CardLimit, optional) — The most a single authorization may spend.
- `dailyLimit` (CardLimit, optional) — The most the card may spend in a day.
- `weeklyLimit` (CardLimit, optional) — The most the card may spend in a week.
- `monthlyLimit` (CardLimit, optional) — The most the card may spend in a month.
- `totalLimit` (CardLimit, optional) — The most the card may spend over its life.
- `merchants` (list of CardMerchant, optional) — The only merchants the card may pay.
- `allowedCategories` (list of CardMerchantCategory, optional) — The only merchant categories the card may pay.
- `blockedMerchants` (list of CardMerchant, optional) — Merchants the card never pays. Checked before the allow lists.
- `blockedCategories` (list of CardMerchantCategory, optional) — Merchant categories the card never pays. Checked before the allow lists.
- `expenseCategory` (string, optional) — The expense category the card's transactions take.
- `allocationId` (string, optional) — The allocation the card's transactions take.
- `receiptPolicy` (enum, optional) — Whether the card's transactions need a receipt. Absent follows the account holder's policy.
  - Allowed values: `REQUIRED`, `NOT_REQUIRED`, `POLICY`
- `allocationPolicy` (enum, optional) — Whether the card's transactions need an allocation. Absent follows the account holder's policy.
  - Allowed values: `REQUIRED`, `NOT_REQUIRED`, `POLICY`
- `cancelAt` (integer, optional) — When the card is canceled automatically, in epoch milliseconds. Without one set, the card's expiry, once it has one.

### CardReplacement

- `status` (enum, required) — `REQUESTED`: in progress. `COMPLETED`: the new card is `cardId`. `FAILED`: no new card was issued; check this card's `status`.
  - Allowed values: `REQUESTED`, `COMPLETED`, `FAILED`
- `reason` (enum, required) — Why the card was replaced.
  - Allowed values: `LOST`, `STOLEN`, `DAMAGED`
- `cardId` (string, optional) — A resource ID. Treat it as an opaque, case-sensitive string.

### CardFulfillment

- `status` (string, required) — `NOT_ORDERED`, `PENDING`, `SUBMITTED`, `SHIPPED`, `DELIVERED`, `RETURNED`, `FAILURE`, `CANCELED` or `UNKNOWN`.
- `service` (string, optional) — Shipping speed, for example `STANDARD` or `EXPRESS`.
- `carrier` (string, optional) — Shipping carrier.
- `trackingNumber` (string, optional) — Carrier tracking number.
- `trackingUrl` (string, optional) — Carrier tracking page. Always HTTPS.
- `estimatedArrival` (datetime, optional) — Estimated delivery time.

### WalletToken

- `id` (string, required) — Token ID.
- `status` (enum, required) — `REQUESTED`, `ACTIVE`, `SUSPENDED` or `DELETED`. A deleted token cannot be restored.
  - Allowed values: `REQUESTED`, `ACTIVE`, `SUSPENDED`, `DELETED`
- `wallet` (enum, required) — `apple_pay` or `google_pay`.
  - Allowed values: `apple_pay`, `google_pay`
- `updatedAt` (double, required) — When the card network last changed the token, in epoch milliseconds.

### CardPendingChange

A change to the card that is still in progress, or whose outcome is still being confirmed with the card issuer. Present only while it is; until it resolves, every other change to the card is refused with `SERVICE_UNAVAILABLE`.

- `operation` (enum, required) — The operation making the change.
  - Allowed values: `createCard`, `updateCard`, `activateCard`, `freezeCard`, `unfreezeCard`, `cancelCard`, `replaceCard`, `updateCardShipping`, `cancelCardShipping`, `updateCardWalletToken`
- `requestedAt` (datetime, required) — When the change was requested.

### CardToken

Only on `GET /cards/{cardId}` with `extend=cardToken`: what the issuer's card display SDK needs to show the card details in the cardholder's browser or app. The embedded card viewer takes it unchanged.

- `type` (enum, required) — The kind of credential `secret` is, which names the issuer's display SDK that reads it. The embedded card viewer reads every type.
  - Allowed values: `STRIPE_EPHEMERAL_KEY`, `HIGHNOTE_CLIENT_TOKEN`
- `issuerId` (string, required) — The card's ID at its issuer, which the issuer's SDK asks for.
- `secret` (string, required) — A short-lived secret for the issuer's SDK. Do not store it, log it or put it in a URL.
- `expiresAt` (datetime, optional) — When `secret` expires.
- `issuerAccountId` (string, optional) — The account at the issuer that the card belongs to. A `STRIPE_EPHEMERAL_KEY` display connects to this account.
- `publishableKey` (string, optional) — The issuer's publishable key for a `STRIPE_EPHEMERAL_KEY` display, when the issuer has one.

### CardDetails

Only on `GET /cards/{cardId}` with `extend=cardDetails`. Never store or log these values.

- `number` (string, required) — Full card number.
- `cvv` (string, required) — Card verification value.
- `expirationMonth` (integer, required) — Expiration month, 1 to 12.
- `expirationYear` (integer, required) — Four-digit expiration year.

### CardUserSummary

The card's user, with `extend=user`.

- `id` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `email` (string, optional)
- `firstName` (string, optional)
- `lastName` (string, optional)

### CardAccountHolderSummary

The card's account holder, with `extend=accountHolder`.

- `id` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `name` (string, optional) — The account holder's legal name.

### CardProgramSummary

The card's program, with `extend=cardProgram`. Its financial account has the same ID.

- `id` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `name` (string, optional) — The card program's name.
- `provider` (string, optional) — The card program's provider, for example `STRIPE` or `HIGHNOTE`.

### ProblemError

One problem with the request. At most one of `pointer`, `parameter` and `header` is present.

- `detail` (string, required) — What is wrong.
- `pointer` (string, optional) — JSON Pointer (RFC 6901) into the request body, written as a URI fragment, for example `#/policy/dailyLimit`.
- `parameter` (string, optional) — Name of the query or path parameter.
- `header` (string, optional) — Name of the request header, in lower case.
- `code` (string, optional) — Machine-readable reason for this item, when one exists.

### CardLimit

A spending limit in the currency's minor unit, for example cents for USD.

- `value` (integer, required) — Whole minor units. At least 1.
- `currency` (string, required) — ISO 4217 alphabetic currency code, for example `USD`.

### CardMerchantListItems

A merchant, by its ID, its name or both.

- `id` (string, optional) — The merchant's ID.
- `name` (string, optional) — The merchant's name.

### CardMerchantCategoryListItems

A merchant category, matched by its ID.

- `id` (string, required) — The merchant category's ID.
- `name` (string, optional) — The merchant category's name.

### Address

- `line1` (string, required) — Street address.
- `city` (string, required) — City.
- `state` (string, required) — State, province or region, for example `TX`.
- `postalCode` (string, required) — Postal or ZIP code.
- `country` (string, required) — ISO 3166-1 alpha-2 country code.
- `line2` (string, optional) — Apartment, suite or unit.

### CardMerchant

A merchant, by its ID, its name or both.

- `id` (string, optional) — The merchant's ID.
- `name` (string, optional) — The merchant's name.

### CardMerchantCategory

A merchant category, matched by its ID.

- `id` (string, optional) — The merchant category's ID.
- `name` (string, optional) — The merchant category's name.

## Examples

### Virtual card waiting for activation

**Response**

```json
{
  "id": "6b1d4f0e-2a9c-4e7b-8d3f-0c5a1e9b7d26",
  "object": "card",
  "livemode": false,
  "accountHolderId": "2b1f8f53-5d0e-4c0f-9a51-1d3b8c2e4f10",
  "userId": "3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54",
  "type": "VIRTUAL",
  "status": "PENDING",
  "policy": {
    "dailyLimit": {
      "value": 50000,
      "currency": "USD"
    },
    "monthlyLimit": {
      "value": 500000,
      "currency": "USD"
    }
  },
  "createdAt": "2026-10-12T14:30:00.000Z",
  "updatedAt": "2026-10-12T14:30:00.000Z",
  "cardProgramId": "9c4e2a71-0f3b-4d8e-b6a2-5e7d1c3f8a90",
  "nickname": "Travel",
  "last4": "4242",
  "network": "VISA"
}
```

**SDK Code**

```python Virtual card waiting for activation
import requests

url = "https://api.outpave.com/api/v2/cards"

headers = {
    "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript Virtual card waiting for activation
const url = 'https://api.outpave.com/api/v2/cards';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
    Authorization: 'Bearer <token>'
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Virtual card waiting for activation
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.outpave.com/api/v2/cards"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Virtual card waiting for activation
require 'uri'
require 'net/http'

url = URI("https://api.outpave.com/api/v2/cards")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Virtual card waiting for activation
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.outpave.com/api/v2/cards")
  .header("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Virtual card waiting for activation
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.outpave.com/api/v2/cards', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Idempotency-Key' => '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
  ],
]);

echo $response->getBody();
```

```csharp Virtual card waiting for activation
using RestSharp;

var client = new RestClient("https://api.outpave.com/api/v2/cards");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Virtual card waiting for activation
import Foundation

let headers = [
  "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.outpave.com/api/v2/cards")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Virtual card with daily and monthly limits

**Request**

```json
{
  "type": "VIRTUAL",
  "policy": {
    "dailyLimit": {
      "value": 50000,
      "currency": "USD"
    },
    "monthlyLimit": {
      "value": 500000,
      "currency": "USD"
    }
  },
  "userId": "3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54",
  "cardProgramId": "9c4e2a71-0f3b-4d8e-b6a2-5e7d1c3f8a90",
  "nickname": "Travel"
}
```

**Response**

```json
{
  "id": "6b1d4f0e-2a9c-4e7b-8d3f-0c5a1e9b7d26",
  "object": "card",
  "livemode": false,
  "accountHolderId": "2b1f8f53-5d0e-4c0f-9a51-1d3b8c2e4f10",
  "userId": "3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54",
  "type": "VIRTUAL",
  "status": "PENDING",
  "policy": {
    "dailyLimit": {
      "value": 50000,
      "currency": "USD"
    },
    "monthlyLimit": {
      "value": 500000,
      "currency": "USD"
    }
  },
  "createdAt": "2026-10-12T14:30:00.000Z",
  "updatedAt": "2026-10-12T14:30:00.000Z",
  "cardProgramId": "9c4e2a71-0f3b-4d8e-b6a2-5e7d1c3f8a90",
  "nickname": "Travel",
  "last4": "4242",
  "network": "VISA"
}
```

**SDK Code**

```python Virtual card with daily and monthly limits
import requests

url = "https://api.outpave.com/api/v2/cards"

payload = {
    "type": "VIRTUAL",
    "policy": {
        "dailyLimit": {
            "value": 50000,
            "currency": "USD"
        },
        "monthlyLimit": {
            "value": 500000,
            "currency": "USD"
        }
    },
    "userId": "3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54",
    "cardProgramId": "9c4e2a71-0f3b-4d8e-b6a2-5e7d1c3f8a90",
    "nickname": "Travel"
}
headers = {
    "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Virtual card with daily and monthly limits
const url = 'https://api.outpave.com/api/v2/cards';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"type":"VIRTUAL","policy":{"dailyLimit":{"value":50000,"currency":"USD"},"monthlyLimit":{"value":500000,"currency":"USD"}},"userId":"3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54","cardProgramId":"9c4e2a71-0f3b-4d8e-b6a2-5e7d1c3f8a90","nickname":"Travel"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Virtual card with daily and monthly limits
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.outpave.com/api/v2/cards"

	payload := strings.NewReader("{\n  \"type\": \"VIRTUAL\",\n  \"policy\": {\n    \"dailyLimit\": {\n      \"value\": 50000,\n      \"currency\": \"USD\"\n    },\n    \"monthlyLimit\": {\n      \"value\": 500000,\n      \"currency\": \"USD\"\n    }\n  },\n  \"userId\": \"3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54\",\n  \"cardProgramId\": \"9c4e2a71-0f3b-4d8e-b6a2-5e7d1c3f8a90\",\n  \"nickname\": \"Travel\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Virtual card with daily and monthly limits
require 'uri'
require 'net/http'

url = URI("https://api.outpave.com/api/v2/cards")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"type\": \"VIRTUAL\",\n  \"policy\": {\n    \"dailyLimit\": {\n      \"value\": 50000,\n      \"currency\": \"USD\"\n    },\n    \"monthlyLimit\": {\n      \"value\": 500000,\n      \"currency\": \"USD\"\n    }\n  },\n  \"userId\": \"3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54\",\n  \"cardProgramId\": \"9c4e2a71-0f3b-4d8e-b6a2-5e7d1c3f8a90\",\n  \"nickname\": \"Travel\"\n}"

response = http.request(request)
puts response.read_body
```

```java Virtual card with daily and monthly limits
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.outpave.com/api/v2/cards")
  .header("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"type\": \"VIRTUAL\",\n  \"policy\": {\n    \"dailyLimit\": {\n      \"value\": 50000,\n      \"currency\": \"USD\"\n    },\n    \"monthlyLimit\": {\n      \"value\": 500000,\n      \"currency\": \"USD\"\n    }\n  },\n  \"userId\": \"3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54\",\n  \"cardProgramId\": \"9c4e2a71-0f3b-4d8e-b6a2-5e7d1c3f8a90\",\n  \"nickname\": \"Travel\"\n}")
  .asString();
```

```php Virtual card with daily and monthly limits
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.outpave.com/api/v2/cards', [
  'body' => '{
  "type": "VIRTUAL",
  "policy": {
    "dailyLimit": {
      "value": 50000,
      "currency": "USD"
    },
    "monthlyLimit": {
      "value": 500000,
      "currency": "USD"
    }
  },
  "userId": "3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54",
  "cardProgramId": "9c4e2a71-0f3b-4d8e-b6a2-5e7d1c3f8a90",
  "nickname": "Travel"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
  ],
]);

echo $response->getBody();
```

```csharp Virtual card with daily and monthly limits
using RestSharp;

var client = new RestClient("https://api.outpave.com/api/v2/cards");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"type\": \"VIRTUAL\",\n  \"policy\": {\n    \"dailyLimit\": {\n      \"value\": 50000,\n      \"currency\": \"USD\"\n    },\n    \"monthlyLimit\": {\n      \"value\": 500000,\n      \"currency\": \"USD\"\n    }\n  },\n  \"userId\": \"3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54\",\n  \"cardProgramId\": \"9c4e2a71-0f3b-4d8e-b6a2-5e7d1c3f8a90\",\n  \"nickname\": \"Travel\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Virtual card with daily and monthly limits
import Foundation

let headers = [
  "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "type": "VIRTUAL",
  "policy": [
    "dailyLimit": [
      "value": 50000,
      "currency": "USD"
    ],
    "monthlyLimit": [
      "value": 500000,
      "currency": "USD"
    ]
  ],
  "userId": "3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54",
  "cardProgramId": "9c4e2a71-0f3b-4d8e-b6a2-5e7d1c3f8a90",
  "nickname": "Travel"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.outpave.com/api/v2/cards")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Virtual card for one airline that needs receipts and closes on a set date

**Request**

```json
{
  "type": "VIRTUAL",
  "policy": {
    "monthlyLimit": {
      "value": 500000,
      "currency": "USD"
    },
    "merchants": [
      {
        "id": "5c1b3f0e-7d2a-4e8b-9c4f-2a6d8e1b3c70",
        "name": "Acme Air"
      }
    ],
    "receiptPolicy": "REQUIRED",
    "cancelAt": 1798761600000
  },
  "userId": "3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54",
  "nickname": "Conference travel"
}
```

**Response**

```json
{
  "id": "6b1d4f0e-2a9c-4e7b-8d3f-0c5a1e9b7d26",
  "object": "card",
  "livemode": false,
  "accountHolderId": "2b1f8f53-5d0e-4c0f-9a51-1d3b8c2e4f10",
  "userId": "3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54",
  "type": "VIRTUAL",
  "status": "PENDING",
  "policy": {
    "dailyLimit": {
      "value": 50000,
      "currency": "USD"
    },
    "monthlyLimit": {
      "value": 500000,
      "currency": "USD"
    }
  },
  "createdAt": "2026-10-12T14:30:00.000Z",
  "updatedAt": "2026-10-12T14:30:00.000Z",
  "cardProgramId": "9c4e2a71-0f3b-4d8e-b6a2-5e7d1c3f8a90",
  "nickname": "Travel",
  "last4": "4242",
  "network": "VISA"
}
```

**SDK Code**

```python Virtual card for one airline that needs receipts and closes on a set date
import requests

url = "https://api.outpave.com/api/v2/cards"

payload = {
    "type": "VIRTUAL",
    "policy": {
        "monthlyLimit": {
            "value": 500000,
            "currency": "USD"
        },
        "merchants": [
            {
                "id": "5c1b3f0e-7d2a-4e8b-9c4f-2a6d8e1b3c70",
                "name": "Acme Air"
            }
        ],
        "receiptPolicy": "REQUIRED",
        "cancelAt": 1798761600000
    },
    "userId": "3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54",
    "nickname": "Conference travel"
}
headers = {
    "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Virtual card for one airline that needs receipts and closes on a set date
const url = 'https://api.outpave.com/api/v2/cards';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"type":"VIRTUAL","policy":{"monthlyLimit":{"value":500000,"currency":"USD"},"merchants":[{"id":"5c1b3f0e-7d2a-4e8b-9c4f-2a6d8e1b3c70","name":"Acme Air"}],"receiptPolicy":"REQUIRED","cancelAt":1798761600000},"userId":"3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54","nickname":"Conference travel"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Virtual card for one airline that needs receipts and closes on a set date
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.outpave.com/api/v2/cards"

	payload := strings.NewReader("{\n  \"type\": \"VIRTUAL\",\n  \"policy\": {\n    \"monthlyLimit\": {\n      \"value\": 500000,\n      \"currency\": \"USD\"\n    },\n    \"merchants\": [\n      {\n        \"id\": \"5c1b3f0e-7d2a-4e8b-9c4f-2a6d8e1b3c70\",\n        \"name\": \"Acme Air\"\n      }\n    ],\n    \"receiptPolicy\": \"REQUIRED\",\n    \"cancelAt\": 1798761600000\n  },\n  \"userId\": \"3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54\",\n  \"nickname\": \"Conference travel\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Virtual card for one airline that needs receipts and closes on a set date
require 'uri'
require 'net/http'

url = URI("https://api.outpave.com/api/v2/cards")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"type\": \"VIRTUAL\",\n  \"policy\": {\n    \"monthlyLimit\": {\n      \"value\": 500000,\n      \"currency\": \"USD\"\n    },\n    \"merchants\": [\n      {\n        \"id\": \"5c1b3f0e-7d2a-4e8b-9c4f-2a6d8e1b3c70\",\n        \"name\": \"Acme Air\"\n      }\n    ],\n    \"receiptPolicy\": \"REQUIRED\",\n    \"cancelAt\": 1798761600000\n  },\n  \"userId\": \"3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54\",\n  \"nickname\": \"Conference travel\"\n}"

response = http.request(request)
puts response.read_body
```

```java Virtual card for one airline that needs receipts and closes on a set date
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.outpave.com/api/v2/cards")
  .header("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"type\": \"VIRTUAL\",\n  \"policy\": {\n    \"monthlyLimit\": {\n      \"value\": 500000,\n      \"currency\": \"USD\"\n    },\n    \"merchants\": [\n      {\n        \"id\": \"5c1b3f0e-7d2a-4e8b-9c4f-2a6d8e1b3c70\",\n        \"name\": \"Acme Air\"\n      }\n    ],\n    \"receiptPolicy\": \"REQUIRED\",\n    \"cancelAt\": 1798761600000\n  },\n  \"userId\": \"3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54\",\n  \"nickname\": \"Conference travel\"\n}")
  .asString();
```

```php Virtual card for one airline that needs receipts and closes on a set date
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.outpave.com/api/v2/cards', [
  'body' => '{
  "type": "VIRTUAL",
  "policy": {
    "monthlyLimit": {
      "value": 500000,
      "currency": "USD"
    },
    "merchants": [
      {
        "id": "5c1b3f0e-7d2a-4e8b-9c4f-2a6d8e1b3c70",
        "name": "Acme Air"
      }
    ],
    "receiptPolicy": "REQUIRED",
    "cancelAt": 1798761600000
  },
  "userId": "3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54",
  "nickname": "Conference travel"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
  ],
]);

echo $response->getBody();
```

```csharp Virtual card for one airline that needs receipts and closes on a set date
using RestSharp;

var client = new RestClient("https://api.outpave.com/api/v2/cards");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"type\": \"VIRTUAL\",\n  \"policy\": {\n    \"monthlyLimit\": {\n      \"value\": 500000,\n      \"currency\": \"USD\"\n    },\n    \"merchants\": [\n      {\n        \"id\": \"5c1b3f0e-7d2a-4e8b-9c4f-2a6d8e1b3c70\",\n        \"name\": \"Acme Air\"\n      }\n    ],\n    \"receiptPolicy\": \"REQUIRED\",\n    \"cancelAt\": 1798761600000\n  },\n  \"userId\": \"3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54\",\n  \"nickname\": \"Conference travel\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Virtual card for one airline that needs receipts and closes on a set date
import Foundation

let headers = [
  "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "type": "VIRTUAL",
  "policy": [
    "monthlyLimit": [
      "value": 500000,
      "currency": "USD"
    ],
    "merchants": [
      [
        "id": "5c1b3f0e-7d2a-4e8b-9c4f-2a6d8e1b3c70",
        "name": "Acme Air"
      ]
    ],
    "receiptPolicy": "REQUIRED",
    "cancelAt": 1798761600000
  ],
  "userId": "3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54",
  "nickname": "Conference travel"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.outpave.com/api/v2/cards")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Card for a new cardholder on the default program

**Request**

```json
{
  "type": "VIRTUAL",
  "policy": {
    "dailyLimit": {
      "value": 50000,
      "currency": "USD"
    }
  },
  "user": {
    "firstName": "Jane",
    "lastName": "Doe",
    "email": "jane.doe@example.com",
    "phone": "+12025550123",
    "dateOfBirth": "1990-01-15",
    "address": {
      "line1": "456 Oak Avenue",
      "city": "San Francisco",
      "state": "CA",
      "postalCode": "94103",
      "country": "US"
    }
  },
  "nickname": "Cardholder card"
}
```

**Response**

```json
{
  "id": "6b1d4f0e-2a9c-4e7b-8d3f-0c5a1e9b7d26",
  "object": "card",
  "livemode": false,
  "accountHolderId": "2b1f8f53-5d0e-4c0f-9a51-1d3b8c2e4f10",
  "userId": "3f2a9c1e-7b4d-4e8a-9c2f-1d0e8b7a6c54",
  "type": "VIRTUAL",
  "status": "PENDING",
  "policy": {
    "dailyLimit": {
      "value": 50000,
      "currency": "USD"
    },
    "monthlyLimit": {
      "value": 500000,
      "currency": "USD"
    }
  },
  "createdAt": "2026-10-12T14:30:00.000Z",
  "updatedAt": "2026-10-12T14:30:00.000Z",
  "cardProgramId": "9c4e2a71-0f3b-4d8e-b6a2-5e7d1c3f8a90",
  "nickname": "Travel",
  "last4": "4242",
  "network": "VISA"
}
```

**SDK Code**

```python Card for a new cardholder on the default program
import requests

url = "https://api.outpave.com/api/v2/cards"

payload = {
    "type": "VIRTUAL",
    "policy": { "dailyLimit": {
            "value": 50000,
            "currency": "USD"
        } },
    "user": {
        "firstName": "Jane",
        "lastName": "Doe",
        "email": "jane.doe@example.com",
        "phone": "+12025550123",
        "dateOfBirth": "1990-01-15",
        "address": {
            "line1": "456 Oak Avenue",
            "city": "San Francisco",
            "state": "CA",
            "postalCode": "94103",
            "country": "US"
        }
    },
    "nickname": "Cardholder card"
}
headers = {
    "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Card for a new cardholder on the default program
const url = 'https://api.outpave.com/api/v2/cards';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"type":"VIRTUAL","policy":{"dailyLimit":{"value":50000,"currency":"USD"}},"user":{"firstName":"Jane","lastName":"Doe","email":"jane.doe@example.com","phone":"+12025550123","dateOfBirth":"1990-01-15","address":{"line1":"456 Oak Avenue","city":"San Francisco","state":"CA","postalCode":"94103","country":"US"}},"nickname":"Cardholder card"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Card for a new cardholder on the default program
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.outpave.com/api/v2/cards"

	payload := strings.NewReader("{\n  \"type\": \"VIRTUAL\",\n  \"policy\": {\n    \"dailyLimit\": {\n      \"value\": 50000,\n      \"currency\": \"USD\"\n    }\n  },\n  \"user\": {\n    \"firstName\": \"Jane\",\n    \"lastName\": \"Doe\",\n    \"email\": \"jane.doe@example.com\",\n    \"phone\": \"+12025550123\",\n    \"dateOfBirth\": \"1990-01-15\",\n    \"address\": {\n      \"line1\": \"456 Oak Avenue\",\n      \"city\": \"San Francisco\",\n      \"state\": \"CA\",\n      \"postalCode\": \"94103\",\n      \"country\": \"US\"\n    }\n  },\n  \"nickname\": \"Cardholder card\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Card for a new cardholder on the default program
require 'uri'
require 'net/http'

url = URI("https://api.outpave.com/api/v2/cards")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"type\": \"VIRTUAL\",\n  \"policy\": {\n    \"dailyLimit\": {\n      \"value\": 50000,\n      \"currency\": \"USD\"\n    }\n  },\n  \"user\": {\n    \"firstName\": \"Jane\",\n    \"lastName\": \"Doe\",\n    \"email\": \"jane.doe@example.com\",\n    \"phone\": \"+12025550123\",\n    \"dateOfBirth\": \"1990-01-15\",\n    \"address\": {\n      \"line1\": \"456 Oak Avenue\",\n      \"city\": \"San Francisco\",\n      \"state\": \"CA\",\n      \"postalCode\": \"94103\",\n      \"country\": \"US\"\n    }\n  },\n  \"nickname\": \"Cardholder card\"\n}"

response = http.request(request)
puts response.read_body
```

```java Card for a new cardholder on the default program
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.outpave.com/api/v2/cards")
  .header("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"type\": \"VIRTUAL\",\n  \"policy\": {\n    \"dailyLimit\": {\n      \"value\": 50000,\n      \"currency\": \"USD\"\n    }\n  },\n  \"user\": {\n    \"firstName\": \"Jane\",\n    \"lastName\": \"Doe\",\n    \"email\": \"jane.doe@example.com\",\n    \"phone\": \"+12025550123\",\n    \"dateOfBirth\": \"1990-01-15\",\n    \"address\": {\n      \"line1\": \"456 Oak Avenue\",\n      \"city\": \"San Francisco\",\n      \"state\": \"CA\",\n      \"postalCode\": \"94103\",\n      \"country\": \"US\"\n    }\n  },\n  \"nickname\": \"Cardholder card\"\n}")
  .asString();
```

```php Card for a new cardholder on the default program
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.outpave.com/api/v2/cards', [
  'body' => '{
  "type": "VIRTUAL",
  "policy": {
    "dailyLimit": {
      "value": 50000,
      "currency": "USD"
    }
  },
  "user": {
    "firstName": "Jane",
    "lastName": "Doe",
    "email": "jane.doe@example.com",
    "phone": "+12025550123",
    "dateOfBirth": "1990-01-15",
    "address": {
      "line1": "456 Oak Avenue",
      "city": "San Francisco",
      "state": "CA",
      "postalCode": "94103",
      "country": "US"
    }
  },
  "nickname": "Cardholder card"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
  ],
]);

echo $response->getBody();
```

```csharp Card for a new cardholder on the default program
using RestSharp;

var client = new RestClient("https://api.outpave.com/api/v2/cards");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"type\": \"VIRTUAL\",\n  \"policy\": {\n    \"dailyLimit\": {\n      \"value\": 50000,\n      \"currency\": \"USD\"\n    }\n  },\n  \"user\": {\n    \"firstName\": \"Jane\",\n    \"lastName\": \"Doe\",\n    \"email\": \"jane.doe@example.com\",\n    \"phone\": \"+12025550123\",\n    \"dateOfBirth\": \"1990-01-15\",\n    \"address\": {\n      \"line1\": \"456 Oak Avenue\",\n      \"city\": \"San Francisco\",\n      \"state\": \"CA\",\n      \"postalCode\": \"94103\",\n      \"country\": \"US\"\n    }\n  },\n  \"nickname\": \"Cardholder card\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Card for a new cardholder on the default program
import Foundation

let headers = [
  "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "type": "VIRTUAL",
  "policy": ["dailyLimit": [
      "value": 50000,
      "currency": "USD"
    ]],
  "user": [
    "firstName": "Jane",
    "lastName": "Doe",
    "email": "jane.doe@example.com",
    "phone": "+12025550123",
    "dateOfBirth": "1990-01-15",
    "address": [
      "line1": "456 Oak Avenue",
      "city": "San Francisco",
      "state": "CA",
      "postalCode": "94103",
      "country": "US"
    ]
  ],
  "nickname": "Cardholder card"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.outpave.com/api/v2/cards")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```