Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

GET /order-status/{orderId}

This endpoint returns the status and details for a single order ID. It is only applicable to orders routed through the limit-order provider.

TypeScript Types: Generate types for this API with a single command. See Type Generation.

API Reference: For detailed schema definitions and interactive testing, see the API Reference.

Request

Endpoint

GET /order-status/{orderId}

Headers

x-api-key: YOUR_API_KEY

Path Parameters

FieldTypeRequiredDescription
orderIdstringYesThe order ID to retrieve

Example Request

import type { components } from './m0-swap';
 
type Order = components['schemas']['Order'];
 
const orderId = '0xabc123';
 
const response = await fetch(`https://gateway.m0.xyz/v1/orchestration/order-status/${orderId}`, {
  method: 'GET',
  headers: {
    'x-api-key': YOUR_API_KEY,
  },
});
 
if (response.status === 404) {
  throw new Error('Order not found');
}
 
if (!response.ok) {
  const error = await response.text();
  throw new Error(`Get order status failed: ${error}`);
}
 
const order: Order = await response.json();

Response

Success Response (200)

Returns an Order object.

import type { components } from './m0-swap';
 
type Order = components['schemas']['Order'];
type OrderStatus = components['schemas']['OrderStatus'];

Response Fields

FieldTypeDescription
orderIdstringUnique order identifier
createdAtstringCreation timestamp
originChainIdnumberOrigin chain ID
destChainIdnumberDestination chain ID
senderstringSender wallet address
tokenInstringInput token address
amountInstringInput amount (smallest unit)
tokenOutstringOutput token address
amountOutstringTarget output amount (smallest unit)
designatedSolverstringAssigned solver address
openTxstringTransaction hash that opened the order
amountOutFilledstringTotal output filled so far
fillCountnumberNumber of fills
amountInReleasedstringInput amount released so far
fillReportCountnumberNumber of fill reports
amountRefundedstringAmount refunded
statusOrderStatusCurrent status (CREATED, COMPLETED, CANCELLED)
resolvedAtstring | nullResolution timestamp when applicable

💡 Further inspect the response fields on the API reference.

Error Responses

StatusDescription
404Order not found

Example Response

{
  "orderId": "0xabc123",
  "createdAt": "2026-02-19T14:31:03.120Z",
  "originChainId": 1,
  "sender": "0xYourWalletAddress",
  "tokenIn": "0x866A2BF4E572CbcF37D5071A7a58503Bfb36be1b",
  "amountIn": "1000000",
  "destChainId": 8453,
  "tokenOut": "0x866A2BF4E572CbcF37D5071A7a58503Bfb36be1b",
  "amountOut": "999500",
  "designatedSolver": "0xSolverAddress",
  "openTx": "0xOpenTxHash",
  "amountOutFilled": "999500",
  "fillCount": 1,
  "amountInReleased": "1000000",
  "fillReportCount": 1,
  "amountRefunded": "0",
  "status": "COMPLETED",
  "resolvedAt": "2026-02-19T14:36:20.002Z"
}