Get Order History
Fetch order history using duration
Auth Header
Please send you API Secret as Bearer token in Authorization header.
Header Key: Authorization
Header Value: Bearer YourApiSecret
Parameters
The page number for pagination. Defaults to 0.
Number of results desired per page.
Unit can be seconds
, minutes
, hours
, days
, weeks
, months
Filter to for last number of x duration units.
Example: If you want to fetch data for last 7 days,
then durationUnit
would be days
and duration
would be 7
Filter for fetching orders updated since this timestamp. This represents epoch time in milliseconds.
Example: 1675581446000
If both
duration
andlastUpdatedStartTimeMs
are provided in filters, thenlastUpdatedStartTimeMs
will take precedence andduration
will be ignored.
Filter to fetch orders in a particular status. Possible values are listed in the table below.
ORDER STATUS | Definition |
---|---|
INITIATED | Order has been created. |
PENDING | Similar to INITIATED. Based on an internal logic, order can be created in INITIATED state or PENDING |
PAYMENT_PENDING | User is attempting to pay for this order. |
PAYMENT_SUCCESS | Payment has been received for this order. |
PROCESSING_CRYPTO | We are releasing the crypto for the end user. |
COMPLETED | User has successfully received crypto in their wallet. |
FAILED | Order failed. Mostly due to payment failure. |