Submit Order

Endpoint

POST {{base_url}}/submit-order/{orderId}

Description

This endpoint allows you to submit an order using the orderId and the required parameters.


Request

URL Parameters

Parameter
Type
Required
Description

orderId

String

Yes

The unique identifier of the order.


Headers

Header
Value
Description

apikey

98a78c1b-0878-4b28-844a-06f14961ac26

API key for authentication.

Content-Type

application/json

Indicates JSON payload.


Body Parameters

The request body must include a submitOrderParams object with the following fields:

Parameter
Type
Required
Description

signedOrder

String

Yes

The signed order details (e.g., signature data).

signedApprovalData

String

Yes

The signed approval data required for the transaction.


Example Request

curl --location '<base_url>/submit-order/0xb1744ca5157026f0f048da8992d0fe93083d624b7dee318d0297b7d5e6948e7e' \
--header 'apikey: 98a78c1b-0878-4b28-844a-06f14961ac26' \
--header 'Content-Type: application/json' \
--data '{
    "submitOrderParams": {
        "signedOrder": "",
        "signedApprovalData": ""
    }
}'

Success (200)

{
  "status": "success",
  "message": "Order submitted successfully",
  "data": {
    "orderId": "0xb1744ca5157026f0f048da8992d0fe93083d624b7dee318d0297b7d5e6948e7e",
    "status": "submitted",
    "timestamp": "2025-01-07T12:34:56Z"
  }
}

Last updated

Was this helpful?