Payment History2

Use this endpoint to retrieve a list of payments associated with your account, determined by your Merchant API Key. You can filter the results using various criteria, including time range, payment status, amount, payment type, and more. Additionally, the endpoint supports pagination with page and size parameters, allowing you to customize the number of results per request.

GET https://api.oxapay.com/v1/payment

Authentication

You must include the Merchant API Key in the request header to authenticate your access to the API.

Name
Type
Description

merchant_api_key*

string

Your merchant API Key for authentication and authorization.

Request Params

Name
Type
Description

track_id

integer

Filter payments by a specific invoice ID.

type

string

Filter payments by type (e.g. "invoice", "white_label", "static_address").

status

string

Filter payments by status (e.g., "Paid", "Confirming").

pay_currency

string

Filter payments by a specific crypto currency symbol in which the pay amount is specified.

currency

string

Filter payments by a specific currency symbol.

network

string

Filter payments by the expected blockchain network for the specified crypto currency.

address

string

Filter payments by the expected address. It’s better to filter static addresses.

from_date

integer

The start of the date window to query for payments in unix format.

to_date

integer

The start of the date window to query for payments in unix format.

from_amount

decimal

Filter payments with amounts greater than or equal to the specified value.

to_amount

decimal

Filter payments with amounts less than or equal to the specified value.

sort_by

string

Sort the received list by a parameter. Set to 'create_date' by default. Possible values: 'create_date', 'pay_date', 'amount' [default 'create_date'].

sort_type

string

Display the list in ascending or descending order. Possible values: 'asc', 'desc' [default 'desc'].

page

integer

The page number of the results you want to retrieve. Possible values: from 1 to the total number of pages - default 1.

size

integer

Number of records to display per page. Possible values: from 1 to 200. Default: 10.

Please note that a successful request will return status 200. In case of any issues or validation problems, refer to the corresponding error for further details.

API Request Sample Codes

circle-info

Please make sure to replace YOUR_MERCHANT_API_KEY in the code snippets with your actual merchant API Key.

These example code snippets demonstrate how to request the "Payment History" endpoint using different programming languages. You can customize the data parameters according to your specific requirements.

API Response Example

The response example above is provided to help you understand the format and structure of the response. If you have any further questions or need assistance, please feel free to contact to your account manager.

Last updated