Skip to navigation

Request a third-party bank payment

Create an immutable payment and its payment approval request together. The requester must be an active holder user. Required roles follow that user’s payment approval policy; even where none are configured, an independent Admin must approve. Approval happens in the app, not through this API; API credentials cannot approve their own requests. Recipient and bank must already be verified in contacts. The rails depend on the card program’s issuer: some support ACH and domestic wire, others ACH only. The program must be configured to allow payments, the rail and the maximum amount in minor units.

Authentication

AuthorizationBearer

Access token from POST /access-token. Valid for at most 30 minutes.

Headers

Idempotency-KeystringRequiredformat: "^(?:[!#-~][!-~]{0,254}|"[!#-\[\]-~]{1,255}")$"1-257 characters

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.

Account-HolderstringOptionalformat: "^[A-Za-z0-9_-]+$"1-128 characters

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.

X-Request-IdstringOptionalformat: "^[A-Za-z0-9._:-]+$"1-128 characters

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.

Request

This endpoint expects an object.
financialAccountIdstringRequiredformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

recipientIdstringRequiredformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

requestedByUserIdstringRequiredformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

amountobjectRequired
The amount to pull, in the financial account's currency.
railenumRequired

ACH or WIRE, as the card program allows.

Allowed values:
descriptionstringOptional<=300 characters
Your note on the payment.

Response headers

X-Request-Idstringformat: "uuid"
Unique ID of this request. Quote it when you contact support.
Idempotent-ReplayedenumOptional

Sent as true when this response repeats the first response to the same Idempotency-Key. A replay keeps the first response’s status and body, including the requestId of a problem; X-Request-Id is new.

Allowed values:
Locationstring

Path of the resource, relative to the API host, for example /api/v2/embeddedSessions/0b6f3c1e-5d2a-4c8e-9a71-3f4d2e1b6c90.

RateLimitstringOptional

Remaining budget for each rate limit policy, for example "burst"; r=57; t=6 (requests remaining and seconds until the window resets).

RateLimit-PolicystringOptional

The rate limit policies applied to this request, for example "burst"; q=60; w=10 (requests allowed per window of seconds).

Response

Request a third-party bank payment

idstringformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

object"payment"

Always payment.

livemodeboolean

true on a live platform in production, false on a Sandbox platform and outside production.

accountHolderIdstringformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

financialAccountIdstringformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

recipientIdstringformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

requestedByUserIdstringformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

amountobject
The amount to pull, in the financial account's currency.
railenum

ACH or WIRE.

Allowed values:
statusenum

PENDING_APPROVAL: waiting for approval. APPROVED: approved, not yet sent. PROCESSING: sent. POSTED: completed. FAILED, RETURNED and CANCELED are final.

approvalStatusenum

PENDING, APPROVED, REJECTED or CANCELED.

Allowed values:
createdAtdatetime
When the payment was requested.
updatedAtdatetime
When the payment last changed.
descriptionstringOptional
Your note on the payment.
transferIdstringOptionalformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

failureReasonstringOptional

Why the payment failed or was returned. Present only then. not_sent means the payment never reached the issuer, so no money moved.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
413
Content Too Large Error
415
Unsupported Media Type Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
502
Bad Gateway Error
503
Service Unavailable Error