v1

latestOpenAPI 3.0.02026-07-26103425558.9 KB
Orchestration Address

Retrieve a batch

Fetch a single batch by ID. Returns 404 RESOURCE_NOT_FOUND if the batch doesn't exist, doesn't belong to the named orchestration address, or the orchestration address doesn't belong to the named user.

get/v2/users/{userId}/orchestration-addresses/{orchestrationAddressId}/batches/{batchId}

Path parameters

userIdstring required

ID of the user

orchestrationAddressIdstring uuid required

ID of the orchestration address.

batchIdstring uuid required

ID of the orchestration batch.

Response

A single batch record (with its included deposit IDs and the linked offramp).

idstring uuid
orchestrationAddressIdstring uuid
totalAmountstring

Sum of the included deposits' amounts, in the source currency.

currency'usdc' | 'usdt'
status'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED'

Batch lifecycle.

  • PENDING — created; the worker has not yet picked it up.
  • PROCESSING — the linked offramp has been created and is in flight.
  • COMPLETED — the linked offramp reached COMPLETED.
  • FAILED — terminal failure. See failureReason.
failureReason'ADDRESS_NOT_ACTIVE' | 'NOT_INITIATED' | 'QUOTE_FAILED' | 'CRYPTO_FAILED' | 'FIAT_FAILED' | 'EXPIRED' | 'REJECTED' | 'CANCELLED'

Populated when status=FAILED.

  • ADDRESS_NOT_ACTIVE — the address was deactivated before the worker created the offramp. The only input condition that terminally fails a batch.
  • All other values are terminal statuses surfaced from the linked offramp transaction (e.g. lost product access → NOT_INITIATED, a rejected AML review → a terminal status).

Internal inconsistencies (missing address, payout account lost its rail, a processor-validation bug) do not appear here — the worker pauses the batch (leaves it PENDING) and alerts ops instead of marking it FAILED.

createdAtstring date-time
updatedAtstring date-time
depositIdsstring[]

IDs of all deposits included in this batch.

offrampTransactionIdstring uuid nullable

ID of the offramp transaction produced from this batch. null while status=PENDING (the worker has not yet created the offramp). Call GET /v2/offramps/{transferId} for full offramp details.

Example response

{
  "totalAmount": "150.000000"
}