Skip to main content
PATCH
Edit a draft order

Authorizations

x-api-key
string
header
required

API key for authentication

Authorization
string
header
required

ES256 JWT signed by the private key registered to the API key above. Claims: sub (=API key), uri, nbf, iat, exp, and bodyHash (HMAC-SHA512 of uri + rawBody + nbf using a shared secret, base64).

Path Parameters

batchId
string<uuid>
required

ID of the batch

orderId
string<uuid>
required

ID of the order

Body

application/json

Only valid while the order is DRAFT. All fields optional — only sent fields are re-quoted.

beneficiary_profile_id
string<uuid>
beneficiary_amount
string
beneficiary_currency
string
fee_type
enum<string>
Available options:
OUR,
SHA
purpose_code
enum<string>

SNTR Transfer of the same name · GDSP Payment · LGST Logistics costs · ADVT Advertising costs · TECH Technical service fee · CLUD Cloud as a Service · RENT Rental costs · UTIL Utility expenses · LAWF Law firm fees · ACCT Accounting expenses · CONS Consultancy fees · SPON Sponsorship costs · INVT Investment & financial management

Available options:
SNTR,
GDSP,
LGST,
ADVT,
TECH,
CLUD,
RENT,
UTIL,
LAWF,
ACCT,
CONS,
SPON,
INVT

Response

Order re-quoted (single order object, not wrapped in a batch)

id
string<uuid>
required
batch_id
string<uuid>
required
sender_profile_id
string<uuid>
required
beneficiary_profile_id
string<uuid>
required
fee_type
enum<string>
required
Available options:
OUR,
SHA
purpose_code
enum<string>
required

SNTR Transfer of the same name · GDSP Payment · LGST Logistics costs · ADVT Advertising costs · TECH Technical service fee · CLUD Cloud as a Service · RENT Rental costs · UTIL Utility expenses · LAWF Law firm fees · ACCT Accounting expenses · CONS Consultancy fees · SPON Sponsorship costs · INVT Investment & financial management

Available options:
SNTR,
GDSP,
LGST,
ADVT,
TECH,
CLUD,
RENT,
UTIL,
LAWF,
ACCT,
CONS,
SPON,
INVT
beneficiary_amount
string
required
beneficiary_currency
string
required
source_currency
string
required

Always "USDT" today

Example:

"USDT"

status
enum<string>
required

DRAFT: created and quoted, still editable · AWAITING_DEPOSIT: confirmed, funding in progress (expires_at is the deadline) · DEPOSIT_RECEIVED: funding landed · PAYING_BENEFICIARY: beneficiary payment in flight · COMPLETED, FAILED, CANCELLED_EXPIRED: terminal.

Available options:
DRAFT,
AWAITING_DEPOSIT,
DEPOSIT_RECEIVED,
PAYING_BENEFICIARY,
COMPLETED,
FAILED,
CANCELLED_EXPIRED
created_at
string<date-time>
required
updated_at
string<date-time>
required
fee_amount
string | null

Wire fee only, in beneficiary_currency.

source_amount
string | null

The number that matters for funding — already reflects everything the client is responsible for. Deliberately excludes the effective USDT↔fiat rate or anything that would let Mansa's own margin be back-computed.

failure_message
string | null

Present only when status is FAILED. Safe to display.

expires_at
string<date-time> | null

Set once the order reaches AWAITING_DEPOSIT.

client_reference
string | null