Skip to main content
POST
/
merchant
/
payment
/
method_new
Create New Payment Method
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>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
gatewayId
integer<int64>
required

The unique id of gateway

userId
integer<int64>
required

The customer's unique id

currency
string<string>

The currency of payment method

metadata
object

Metadata,Map

redirectUrl
string<string>

The redirect url when method created return back

subscriptionId
string<string>

The id of subscription that want to attach

type
string<string>

Response

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