Skip to main content

Orders list

Retrieving the orders list.

To obtain a list of all orders created in your account, it is necessary to make a GET request following the parameters provided below:

URL

https://api.bembit.com/api/v1/orders

Method

GET

Params

Important!

The parameters for this request must be passed to the end-point via headers.

ParamsTypeDefault valuesDescription
apistringundefinedYour API Key
secretstringundefinedYour Secret

cURL

curl -X 'GET' \
'https://api.bembit.com/api/v1/orders' \
-H 'accept: application/json' \
-H 'api: [Your API]' \
-H 'secret: [Your Secret]'

Server Responses:

Status 200:

Success

Response Example value:

[
{
"application": "CHECKOUT",
"status": "created",
"subtotal": 1000,
"total": 1000,
"fee": 0,
"rate": 5,
"discount": {
"fixed": 0,
"percentage": "0"
}
}
]
  • application: States what application is using this order, values can be Checkout, Swap, Exchange.
  • status: Shows the status of the current order.
  • subtotal: Displays the cost of this order without fee values.
  • total: Represents the total cost of the order including fees.
  • fee: Fee values when applies.
  • rate: It's the base US Dollar quotation regarding Brazilian Real, at the momment the order was created.
  • discount/fixed: Discount values when applies.
  • discount/percentage: Discount percent, when applies.

Status 403:

Unauthorized

See and test our API on Swagger.