Skip to main content

Subscribe/Redeem

Type: POST

Description: /v4/finance/order

Subscribe or redeem earn products.

Parameters

NameTypeMandatoryDescription
productIdlongtrueProduct ID
amountstringtrueSubscribe/redeem amount
orderTypestringtrueOrder type: SUBSCRIBE, REDEEM
redeemTypestringfalseRedeem type (for XRWU): STANDARD, FAST

Request Example

Request
curl -X POST "https://sapi.xt.com/v4/finance/order" \
-H "validate-appkey: $APPKEY" \
-H "validate-timestamp: $TIMESTAMP" \
-H "validate-signature: $SIGNATURE" \
-H "Content-Type: application/json" \
-d '{
"productId": 1001,
"amount": "1000.00",
"orderType": "SUBSCRIBE"
}'

Response Example

Response
{
"rc": 0,
"mc": "SUCCESS",
"ma": [],
"result": 123456789
}

Response Fields

FieldTypeDescription
resultlongOrder ID