get https://api.banxa.com/api/orders
Retrieves details for a bulk of orders that have been submitted within a given time range and optionally by order status or customer.
Response
When orders are successfully returned, you will receive the following:
Field | Description | Format |
---|---|---|
data.orders.id | Unique ID of the order | number |
data.orders.account_id | Account ID for the order | string |
data.orders.account_reference | Account reference for the customer | string |
data.orders.order_type | Order type | string |
data.orders.payment_type | Payment Type | string |
data.orders.ref | Customer friendly order reference | string |
data.orders.country | The KYC country of the user | string |
data.orders.fiat_code | Fiat currency code | string |
data.orders.fiat_amount | Fiat currency value for the order | decimal |
data.orders.coin_code | Cryptocurrency code | string |
data.orders.coin_amount | Cryptocurrency value for the order | decimal |
data.orders.wallet_address | Cryptocurrency wallet address | string |
data.orders.wallet_address_tag | Cryptocurrency wallet address tag (if required) | string |
data.order.blockchain | Data object that contains the blockchain details. | object |
data.order.blockchain.code | Blockchain code | string |
data.order.blockchain.description | Blockchain code full name | string |
data.order.blockchain.contract_id | Blockchain-cryptocurrency smart contract ID | string |
data.orders.fee | Order fee in fiat currency | decimal |
data.orders.fee_tax | Tax charged on the payment fee in the fiat currency | decimal |
data.orders.payment_fee | Payment fee in fiat currency | decimal |
data.orders.payment_fee_tax | Tax charged on the payment fee in the fiat currency | decimal |
data.orders.commission | Commission amount in the fiat currency | decimal |
data.orders.tx_hash | Blockchain transaction hash | string |
data.orders.tx_confirms | Number of blockchain confirmations | number |
data.orders.created_at | Timestamp when order was created in UTC time | string |
data.orders.created_date | Date of order creation in UTC time | string |
data.orders.status | Current order status. Available order statuses can be found here: Order Status | string |
data.orders.merchant_fee | Your defined fee. Shown as null if not configured. | decimal |
data.order.discount | Data object that contains discount applied to the order. This object is only returned if a discount was applied to the order. | object |
discount.before_crypto_amount | The crypto amount the customer would have received prior to the discount. | string |
discount.after_crypto_amount | The crypto amount the customer received after the discount was applied. | string |
discount.before_network_fee | The network fee the customer would have paid prior to the discount being applied. . | string |
discount.after_network_fee | The network fee the customer paid after the discount was applied. | string |
discount.before_gateway_fee | The payment gateway fee the customer would have paid prior to the discount being applied. | string |
discount.after_gateway_fee | The payment gateway fee the customer paid after the discount was applied. | string |
discount.before_fiat_amount | The fiat amount the customer would have received prior to the discount. | string |
discount.after_fiat_amount | The fiat amount the customer received after the discount was applied. | string |
data.orders.meta_data | Returning meta data if this was passed as part of the original Create Order request. | object |
meta.current_page | Page requested | number |
meta.last_page | Last page that can be requested | number |
meta.from | Index of the first item in this response | number |
meta.to | Index of the last item in this response | number |
meta.per_page | Max number of items per page | string |
meta.total | Total number of items found | number |