Generate White Label
This endpoint allows you to generate white-labeled payment solutions, delivering a fully branded payment experience powered by the OxaPay gateway. Instead of generating an invoice URL, this endpoint provides comprehensive payment details, including the payment address, currency, amount, expiration time, and other relevant information, enabling you to manage the payment process within your own interface.
POST
https://api.oxapay.com/v1/payment/white-label
Authentication
You must include the Merchant API Key in the request header to authenticate your access to the API.
merchant_api_key*
string
Your merchant API Key for authentication and authorization.
Request Body
pay_currency*
string
amount*
decimal
The amount for the payment. If the currency
field is not filled, the amount should be specified in dollars. If the currency
field is filled, the amount should correspond to the specified currency.
currency
string
network
string
lifetime
integer
Set the expiration time for the payment link in minutes (15-2880).
Default: 60.
fee_paid_by_payer
decimal
Specify whether the payer will cover the invoice commission. 1
indicates that the payer will pay the fee, while 0
indicates that the merchant will pay the fee. Default: Merchant setting.
under_paid_coverage
decimal
Specify the acceptable inaccuracy in payment. Determines the maximum acceptable difference between the requested and paid amount (0-60.00).
Default: Merchant setting.
to_currency
string
auto_withdrawal
boolean
1
indicates that the received currency will be sent to the address specified in your Address List on the Settings page and 0
indicates that the amount will be credited to your OxaPay balance.
callback_url
string
The URL where payment information will be sent. Use this to receive notifications about the payment status.
string
Provide the payer's email address for reporting purposes.
order_id
string
Specify a unique order ID for reference in your system.
description
string
Provide order details or any additional information that will be shown in different reports.
API Request Sample Codes
These example code snippets demonstrate how to request the "Generate White Label" 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