curl --request POST \
--url https://api.unibee.dev/merchant/payment/method_new \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"gatewayId": 123,
"userId": 123,
"currency": "<string>",
"metadata": {},
"redirectUrl": "<string>",
"subscriptionId": "<string>",
"type": "<string>"
}
'{
"code": 123,
"data": {
"method": {
"data": {},
"id": "<string>",
"isDefault": true,
"type": "<string>"
},
"url": "<string>"
},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}curl --request POST \
--url https://api.unibee.dev/merchant/payment/method_new \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"gatewayId": 123,
"userId": 123,
"currency": "<string>",
"metadata": {},
"redirectUrl": "<string>",
"subscriptionId": "<string>",
"type": "<string>"
}
'{
"code": 123,
"data": {
"method": {
"data": {},
"id": "<string>",
"isDefault": true,
"type": "<string>"
},
"url": "<string>"
},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique id of gateway
The customer's unique id
The currency of payment method
The redirect url when method created return back
The id of subscription that want to attach