Create sandbox card token

POST
/providers/{providerID}/sandbox/participants/{participantID}/card-token

Issue a short-lived, account-bound card token for a participant in your sandbox. Create a card at the Moov platform with the token, then send the returned payment method ID to the sandbox claim and pay routes.

The token grants only /accounts/{accountID}/cards.write and /accounts/{accountID}/payment-methods.read. It cannot call the Moov Money API. The token is bound to the participant’s Moov account.

Returns 200 with the token. Returns 400 when providerID or participantID is malformed. Returns 401 when your credentials are missing or invalid. Returns 403 when the target is a production provider; the sandbox routes run against sandbox providers only. Returns 404 when the participant is not found or belongs to another provider.

Auth: API key or bearer token. Application callers must use an application credential authorized for the provider in the path. An affiliated integrator needs the /accounts/{providerID}/moov-money-participants.write and /accounts/{providerID}/cards.write grants from the FI.

Request
cURL
curl -X POST https://api.moov.money/providers/{providerID}/sandbox/participants/{participantID}/card-token \
  -u "$MOOV_API_KEY_ID:$MOOV_API_KEY_SECRET" \
  -H "X-Moov-Version: v2026.10.00"
Responses
200 400 401 403 404 429 503
The request completed successfully.
{
  "accountID": "acc_01HF5J9ZKQT4RXP8M2VYBN3D",
  "embedded": {
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
    "expiresIn": 600,
    "scope": "/accounts/acc_01HF5J9ZKQT4RXP8M2VYBN3D/cards.write /accounts/acc_01HF5J9ZKQT4RXP8M2VYBN3D/payment-methods.read",
    "tokenType": "bearer"
  },
  "participantID": "3v2whagmwvbujhwbt7v3nl6ffq_user"
}
Malformed request: the body or headers failed validation.
Response body application/problem+json
RFC 9457 Problem Details error body, served as application/problem+json. From v2026.10.00, every error response that has a body uses this schema.

type

string required
URI that tells you which problem occurred. Branch on this value; it never changes. Moov problem types look like https://api.moov.money/errors#<code> (for example invalid-request, idempotency-key-reused, or idempotency-request-in-progress). Treat the value as an opaque constant and do not fetch it. about:blank means the HTTP status code says everything there is to know.

title

string required
Short human-readable name of the problem type. Fixed per type; defaults to the HTTP status text.

status

integer<int32> required
The HTTP status code of this response.

detail

string
Human-readable explanation of this specific occurrence.

instance

string
URI reference that identifies this specific occurrence.

errors

array<object>
The request-body fields that failed validation. Present on validation errors only.
Show child attributes

errors[]

pointer

string required
RFC 6901 JSON Pointer to the field, using the public JSON field names. If the field is missing, the pointer shows where it belongs.

detail

string required
What is wrong with the field.
Authentication missing, invalid, or insufficient.
Authentication present but the action is forbidden for this principal/claim.
The requested resource was not found.
The request exceeded a rate limit. Retry after the whole number of seconds in Retry-After.
Response body application/problem+json
RFC 9457 Problem Details error body, served as application/problem+json. From v2026.10.00, every error response that has a body uses this schema.

type

string required
URI that tells you which problem occurred. Branch on this value; it never changes. Moov problem types look like https://api.moov.money/errors#<code> (for example invalid-request, idempotency-key-reused, or idempotency-request-in-progress). Treat the value as an opaque constant and do not fetch it. about:blank means the HTTP status code says everything there is to know.

title

string required
Short human-readable name of the problem type. Fixed per type; defaults to the HTTP status text.

status

integer<int32> required
The HTTP status code of this response.

detail

string
Human-readable explanation of this specific occurrence.

instance

string
URI reference that identifies this specific occurrence.

errors

array<object>
The request-body fields that failed validation. Present on validation errors only.
Show child attributes

errors[]

pointer

string required
RFC 6901 JSON Pointer to the field, using the public JSON field names. If the field is missing, the pointer shows where it belongs.

detail

string required
What is wrong with the field.
The service is unavailable. The response has no body; retry your request later.

Headers

X-Moov-Version

string
Set this header to the API version being targeted (e.g. v2026.10.00). When omitted, the server applies its default version.

Path parameters

providerID

string required
Your provider account ID.

participantID

string required
The participant’s participantID, or your externalID for them. Both resolve to the same participant.

Response

The issued sandbox card token, bound to one participant’s Moov account. Create a card at the Moov platform with the token, then send the resulting payment method ID to the sandbox claim and pay routes.

accountID

string required
Moov account ID the token is bound to.

participantID

string required
Participant ID the token is bound to.

embedded

object required
The account-bound token.
Show child attributes

embedded

accessToken

string required
OAuth access token.

expiresIn

integer<int32> required
Seconds until the access token expires. Always greater than zero.

scope

string required
Space-delimited OAuth scope string granted on the token.

tokenType

string required
Token type, typically bearer.