curl --request POST \
--url https://api.unibee.top/merchant/subscription/payment/new \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"cancelUrl": "<string>",
"countryCode": "<string>",
"currency": "<string>",
"description": "<string>",
"email": "<string>",
"externalPaymentId": "<string>",
"externalUserId": "<string>",
"gasPayer": "<string>",
"gatewayId": 123,
"items": [
{
"amount": 123,
"amountExcludingTax": 123,
"currency": "<string>",
"description": "<string>",
"name": "<string>",
"quantity": 123,
"tax": 123,
"taxPercentage": 123,
"unitAmountExcludingTax": 123
}
],
"metadata": {},
"name": "<string>",
"planId": 123,
"redirectUrl": "<string>",
"totalAmount": 123,
"userId": 123
}'
{
"code": 123,
"data": {
"action": {},
"externalPaymentId": "<string>",
"link": "<string>",
"paymentId": "<string>",
"status": 123
},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}
curl --request POST \
--url https://api.unibee.top/merchant/subscription/payment/new \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"cancelUrl": "<string>",
"countryCode": "<string>",
"currency": "<string>",
"description": "<string>",
"email": "<string>",
"externalPaymentId": "<string>",
"externalUserId": "<string>",
"gasPayer": "<string>",
"gatewayId": 123,
"items": [
{
"amount": 123,
"amountExcludingTax": 123,
"currency": "<string>",
"description": "<string>",
"name": "<string>",
"quantity": 123,
"tax": 123,
"taxPercentage": 123,
"unitAmountExcludingTax": 123
}
],
"metadata": {},
"name": "<string>",
"planId": 123,
"redirectUrl": "<string>",
"totalAmount": 123,
"userId": 123
}'
{
"code": 123,
"data": {
"action": {},
"externalPaymentId": "<string>",
"link": "<string>",
"paymentId": "<string>",
"status": 123
},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The response is of type object
.