POST
/
merchant
/
payment
/
method_new
curl --request POST \
  --url https://api.unibee.top/merchant/payment/method_new \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "currency": "<string>",
  "gatewayId": 123,
  "metadata": {},
  "redirectUrl": "<string>",
  "subscriptionId": "<string>",
  "type": "<string>",
  "userId": 123
}'
{
  "code": 123,
  "data": {
    "method": {
      "data": {},
      "id": "<string>",
      "isDefault": true,
      "type": "<string>"
    },
    "url": "<string>"
  },
  "message": "<string>",
  "redirect": "<string>",
  "requestId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
gatewayId
integer
required

The unique id of gateway

userId
integer
required

The customer's unique id

currency
string

The currency of payment method

metadata
object

Metadata,Map

redirectUrl
string

The redirect url when method created return back

subscriptionId
string

The id of subscription that want to attach

type
string

Response

200 - application/json
code
integer
data
object
message
string
redirect
string
requestId
string