1. Order
Aurpay API
  • Aurpay Crypto Payment Integration
  • API-Key Authentication Method
    • Order
      • Get Payment URL
        POST
      • Get Payment Info
        POST
      • Get Orders
        GET
      • Get Orders Details
        GET
      • Get Orders Refund Info
        GET
      • Orders Refund
        POST
      • Get Transaction
        GET
      • Get Support Crypto Currency List
        GET
      • Get Support Real Currency List
        GET
    • Wallets
      • Get Wallets List
      • Withdraw Balance
      • Get Self Custody Wallets
    • Bitcoin Lightning Network
      • Get BLN Balance
      • Create BLN Order
      • Create BLN Withdraw
    • Get API-Key
      POST
  • Signature Authentication Method
    • Order
      • Get Payment URL
      • Get Payment Info
      • Get Support Real Currency List
      • Get Support Crypto Currency List
      • Get Orders
      • Get Orders Details
      • Get Transaction
      • Get Orders Refund Info
      • Orders Refund
    • Wallets
      • Get Wallets List
      • Withdraw Balance
      • Get Self Custody Wallets
    • Bitcoin Lightning Network
      • Get BLN Balance
      • Create BLN Order
      • Create BLN Withdraw
  • Callbakc Description
    • Callback Authentication Method
  1. Order

Get Payment URL

POST
/api/order/pay-url
Generate payment URL for encrypted payment.
Add API-Key in Headers for authentication, which needs to be obtained from /api/plugin/key interface.
Request Body Description
currency - The legal currency used in the order, the valid value can be viewed using /api/order/pay/real-currency API.
price The fiat currency amount paid for the order.
succend_url - Link to page redirection after the order is completed, if this parameter is not passed, no redirection will be performed.
timeout_url - The page redirection link after the order timeout, if this parameter is not passed, no redirection will be performed.
callback_url - The callback URL after the order is completed, Api-Key will be attached to the request headers.
timeout_callback - The callback URL after the order timeout, Api-Key will be appended to the request headers.
fixed_encrypt_price (bool): Make the rate ratio of USDT to USD 1:1, Only stable currencies are supported. Default: False
enable_post_callback(bool): Use the post method to callback and add order information to the request body. Default: False
Note: The request body is in JSON format. Please set the API-Key in the request header before executing the request.

Callback Request Details#

Applicable to callback_url and timeout_callback fields
The callback uses the default GET et request, and the expected response status code is 200. If it is an error status code, it will be retried in a short time.
When the order status is successful, the callback_url URL will be requested;
When the order status times out, the timeout_callback URL will be requested.
If enable_post_callback is set to true, the callback will use a POST request and the order information will be attached to the request body.
An example of a request body is as follows:
{
  "user_id": "mct-bea5c44da875",
  "order_id": "20250207040935220628",
  "order_type": "ORDER",
  "platform": "AURPAY",
  "status": "PENDING",
  "chain": "BTC",
  "chain_name": "Bitcoin",
  "currency": "BTC",
  "amount": "0.00102549",
  "vs_price": "100.0",
  "vs_currency": "USD",
  "remark": "",
  "refund": false,
  "bind_id": null,
  "create_time": "2025-02-06T00:00:00",
  "update_time": "2025-02-06T00:00:00",
  "tx_id": "ca1f0db3-0a3d-47c5-94ed-c94193aa1934",
  "tx_type": "ORDER",
  "obtained": null,
  "fee": "0.00000820392",
  "from_addr": null,
  "to_addr": "tb1q2vgyv8xh0d2sv9j8gpeuedd8sm7pyx5l064s2e",
  "tx_hash": null,
  "tx_hash_list": [],
  "contract_id": null,
  "website": null
}

Request

Authorization
API Key
Add parameter in header
API-Key
Example:
API-Key: ********************
or
Body Params application/json

Examples

Responses

🟢200
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://dashboard.aurpay.net/api/order/pay-url' \
--header 'API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "price": 10, // Order amount in real currency - required
    "currency": "USD", // Real currency type - required
    "succeed_url": "https://example.com/succeed_url", // Redirect URL to checkout page after successful payment
    "timeout_url": "https://example.com/timeout_url", // Redirect URL to checkout page after payment timeout
    "callback_url": "https://example.com/callback_url", // Callback URL(GET) after successful payment
    "timeout_callback": "https://example.com/timeout_callback", // Callback URL(GET) after payment timeout
    "fixed_encrypt_price": false, // Make the rate ratio of USDT to USD 1:1. Default: False
    "enable_post_callback": false // Use the post method to callback and add order information to the request body. Default: False
}'
Response Response Example
{
    "code": 0,
    "message": "ok",
    "data": {
        "pay_url": "https://dashboard.aurpay.net/#/cashier/choose?token=1ad16906cce282a5abe0e666ad99bddf20229630f948e5537f5b46f1f5beee1a"
    },
    "result": true
}
Previous
API-Key Authentication Method
Next
Get Payment Info
Built with