Pay sandbox request

POST
/providers/{providerID}/sandbox/requests/{requestID}/payments

Pay a sandbox request for payment as the participant in the body, using the payment method the sandbox card token created. The call runs the payer pay flow and returns the pay-attempt outcome.

A committed retry returns the stored result at its original status, even after the payment resolves. To observe the payment’s current lifecycle status, list the participant’s payments with GET /providers/{providerID}/participants/{participantID}/payments. Returns 200 with outcome: pending, outcome: completed, or outcome: failed.

Send X-Idempotency-Key to identify the attempt. Replaying the key with a changed request ID or a changed request body returns 409 with problem type idempotency-key-reused; an identical request that is still active returns 409 with problem type idempotency-request-in-progress. The reservation covers the authenticated caller account, the target provider, and this action. Both problems use application/problem+json.

Returns 400 when the body is malformed or the key is missing. Returns 401 when your credentials are missing or invalid. Returns 403 when the target is a production provider. Returns 404 when the request is not found or belongs to another provider, or when the participant does not belong to the provider or the payment method does not belong to the participant.

Sandbox fraud fixtures. The sandbox fraud provider applies the fixture catalog documented on the payout claim route (POST /providers/{providerID}/sandbox/payouts/{payoutID}/claims).

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}/transfers.write grants from the FI.

Request
cURL
curl -X POST https://api.moov.money/providers/{providerID}/sandbox/requests/{requestID}/payments \
  -u "$MOOV_API_KEY_ID:$MOOV_API_KEY_SECRET" \
  -H "X-Moov-Version: v2026.10.00" \
  -H "X-Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "participantID": "3v2whagmwvbujhwbt7v3nl6ffq_user",
  "paymentMethodID": "pm_01HF5J9ZKQT4RXP8M2VYBN3D"
}'
Responses
200 400 401 403 404 409 429 503
The request completed successfully.
{
  "payment": {
    "authorizationCode": "AUTH123",
    "createdOn": "2026-10-19T15:00:00Z",
    "denialReason": "denied_payer",
    "failureReason": "issuer_decline",
    "institutionName": "Example Bank",
    "outcome": "pending",
    "paymentMethod": "Visa 1234",
    "paymentMethodType": "pull-from-card",
    "transferID": "aft-transfer-id"
  }
}
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.
Returned when the sandbox action’s X-Idempotency-Key was replayed with a changed payment ID or a changed request body, or when an identical request with the same key is still active. A committed retry returns the original attempt at its original status instead.
Response body application/problem+json
RFC 9457 Problem Details body of the 409 returned by a sandbox claim, pay, or decline replay. type is https://api.moov.money/errors#idempotency-key-reused when the key was replayed with a changed payment ID or a changed request body, or https://api.moov.money/errors#idempotency-request-in-progress when an identical request with the same key is still active.

detail

string
Human-readable explanation of this specific occurrence.

type

string<enum> required
The problem type URI.
Possible values: https://api.moov.money/errors#idempotency-key-reused, https://api.moov.money/errors#idempotency-request-in-progress

title

string required
Short human-readable name of the problem type.

status

integer<int32> required
The HTTP status code of this response, always 409.
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.

X-Idempotency-Key

string required
Client-supplied key that identifies this create request, 1 to 255 characters. Send the header once. Retries with the same key are processed once for 24 hours after the request completes.

Path parameters

providerID

string required
Your provider account ID.

requestID

string required
Identifier of the request to pay.

Request

application/json
Body for the sandbox request-payment route. The payment runs as the participant in participantID from the payment method in paymentMethodID.

participantID

string required
The payer participant whose payment is simulated. The participant must belong to the provider in the path.

paymentMethodID

string required
Moov payment method ID to pull the funds from. It must belong to the participant’s Moov account. Create it with the sandbox card token, then pass the returned paymentMethodID.

Response

Response envelope for the sandbox request-payment route; the attempt is nested under payment.

payment

object required
The pay attempt.
Show child attributes

payment

transferID

string
Money-movement transfer reference, present when the AFT completed.

outcome

string<enum> required
Attempt outcome.
Possible values: pending, completed, failed

failureReason

string
Human-readable failure reason, present on a definitive failure.

denialReason

string
Machine-readable denial reason, present when a fraud rule denied the attempt.

paymentMethod

string
Payer-safe display string of the pay source, present when the AFT completed.

paymentMethodType

string
Pay source type, present when the AFT completed.

institutionName

string
Card issuer or wallet brand of the pay source, present when the AFT completed.

authorizationCode

string
Network authorization code of the completed charge, present when the rail returned one.

createdOn

string<date-time> required
When the pay attempt was created.