POST
/
merchant
/
payment
/
new
curl --request POST \
  --url https://api.unibee.top/merchant/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,
  "gatewayPaymentType": "<string>",
  "items": [
    {
      "amount": 123,
      "amountExcludingTax": 123,
      "currency": "<string>",
      "description": "<string>",
      "name": "<string>",
      "quantity": 123,
      "tax": 123,
      "taxPercentage": 123,
      "unitAmountExcludingTax": 123
    }
  ],
  "metadata": {},
  "name": "<string>",
  "paymentType": "<string>",
  "planId": 123,
  "redirectUrl": "<string>",
  "sendInvoice": false,
  "totalAmount": 123,
  "userId": 123
}'
{
  "code": 123,
  "data": {
    "action": {},
    "externalPaymentId": "<string>",
    "link": "<string>",
    "paymentId": "<string>",
    "status": 123
  },
  "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

Response

200 - application/json

The response is of type object.