Prerequisites
- A route identified from Route Discovery
- Wallet with sufficient offer asset balance (minimum $35 USD equivalent)
- Native token (ETH) for gas and messaging fees
Step 0: Check Authorization
Before submitting an order, check whether the offer token requires approval for the TransitStation contract.GET /v3/core/authorization
Response Variants
permit — Token supports EIP-2612. Sign off-chain, then pass to quote endpoint.
approval — Standard ERC-20 approval required first.
already_approved — Sufficient allowance exists. Proceed to quote.
Handling Each Path
Step 1: Get Order Quote
GET /v1/transit/orders/quote
This endpoint returns everything needed to submit the transaction: the contract address, ABI-encoded calldata, and the native token value for messaging fees.
Parameters
Example Request
Response
Step 2: Understand the Response
Step 3: Submit the Transaction
Broadcast the transaction using the returnedto, data, and value fields.
Code Example (viem)
Step 4: Record the Order ID
The transaction receipt contains anOrderSubmitted event with the order ID (a hex hash). Use this ID to track fulfillment via the Order Tracking endpoints.
Response Formats
Control the transaction response structure withresponseFormat:
Distributor Codes
The optionaldistributorCode parameter accepts a 32-byte hex string (0x + 64 chars) for tracking order sources on-chain. If omitted, the quote uses your organization’s configured default distributor code.
Common Errors
Next Steps
Order Tracking
Monitor order status and view execution history.