📙
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
  • Response

Was this helpful?

  1. APIs

Order Status

Endpoint

GET {{base_url}}/order-status/{orderId}

Description

This endpoint retrieves the current status of a specific order using its unique orderId.


Request

URL Parameters

Parameter
Type
Required
Description

orderId

String

Yes

The unique identifier of the order.


Headers

Header
Value
Description

apikey

test1

API key for authentication.


Example Request

Curl Command

curl --location --globoff '<base_url>/order-status/0xb1744ca5157026f0f048da8992d0fe93083d624b7dee318d0297b7d5e6948e7e' \
--header 'apikey: test1'

Response

Success (200)

{
  "status": "success",
  "data": {
    "orderId": "0xb1744ca5157026f0f048da8992d0fe93083d624b7dee318d0297b7d5e6948e7e",
    "currentStatus": "submitted",
    "details": {
      "created_at": "2025-01-07T12:00:00Z",
      "updated_at": "2025-01-07T12:34:56Z"
    }
  }
}
PreviousSubmit OrderNextFetch Approval

Last updated 3 months ago

Was this helpful?