📙
Cray
  • Introduction
    • The Problem
    • How it works?
    • Want to Learn More?
  • APIs
    • Check Health
    • Create Payment order
    • Submit Order
    • Order Status
    • Fetch Approval
    • Supported Chains
    • Supported Token
  • AbstractPay SDK
  • ReactPay Hook
Powered by GitBook
On this page
  • Endpoint
  • Description
  • Request
  • Example Request
  • Success (200)

Was this helpful?

  1. APIs

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"
  }
}

PreviousCreate Payment orderNextOrder Status

Last updated 3 months ago

Was this helpful?