Request a withdrawal

Moves unused prefund toward the workspace's registered payout destination (the default an owner chose for the currency, approved by Xegora and past its cooling-off) after a business-day hold; cancellable until the hold ends; never names a destination. Requires the opt-in wallet.withdraw scope. With an Idempotency-Key the request is safe to retry: the first request answers 201 with a Location header, a retry under the same key 200 with the withdrawal the first one made (as it stands now), and the same key with another amount or currency 409 idempotency_conflict. Without the header every request is a new withdrawal. With the quote's fee and net (both or neither), a request under terms that changed since is 409 withdrawal_terms_changed. A withdrawal above the review amount Xegora set for the workspace is still created (201) and comes back with heldForReview: true: it cannot be paid until Xegora releases it. The workspace's owners and admins are told by message as soon as a withdrawal is requested.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
number
required

Positive, in at most the currency's minor-unit digits.

string
required
number | null

With net, the terms a quote showed: a request under terms that changed since is refused (409 withdrawal_terms_changed). Send both or neither.

number | null

With fee, the terms a quote showed.

Headers
string
length between 16 and 128

Optional retry token for a withdrawal request: 16–128 characters without control characters, trimmed. A retry under the same key answers 200 with the withdrawal the first request made; the same key with another amount or currency is 409 idempotency_conflict. Keys belong to the API key that sends them and are spent for good.

string
length ≤ 128
^[A-Za-z0-9._:-]{1,128}$

Your own correlation id, carried through Xegora's logs and audit records and returned in correlationId. Kept when it is 1–128 characters of ASCII letters, digits, ., _, : and -; anything else is replaced by an id of Xegora's.

string
enum

The language an error's message, title and detail are written in; without it, Accept-Language decides, then English. Successful responses are not translated.

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json