POST
/
merchant
/
gateway
/
edit
curl --request POST \
  --url https://api.unibee.top/merchant/gateway/edit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "currencyExchange": [
    {
      "exchange_rate": 123,
      "from_currency": "<string>",
      "to_currency": "<string>"
    }
  ],
  "displayName": "<string>",
  "gatewayId": 123,
  "gatewayKey": "<string>",
  "gatewayLogo": [
    [
      "<string>"
    ]
  ],
  "gatewayPaymentTypes": [
    "<string>"
  ],
  "gatewaySecret": "<string>",
  "sort": 123,
  "subGateway": "<string>"
}'
{
  "code": 123,
  "data": {
    "gateway": {
      "IsSetupFinished": true,
      "archive": true,
      "autoChargeEnabled": true,
      "bank": {
        "accountHolder": "<string>",
        "address": "<string>",
        "bic": "<string>",
        "iban": "<string>"
      },
      "countryConfig": {},
      "createTime": 123,
      "currency": "<string>",
      "currencyExchange": [
        {
          "exchange_rate": 123,
          "from_currency": "<string>",
          "to_currency": "<string>"
        }
      ],
      "currencyExchangeEnabled": true,
      "description": "<string>",
      "displayName": "<string>",
      "gatewayIcons": [
        "<string>"
      ],
      "gatewayId": 123,
      "gatewayKey": "<string>",
      "gatewayLogo": "<string>",
      "gatewayName": "<string>",
      "gatewayPaymentTypes": [
        {
          "autoCharge": true,
          "category": "<string>",
          "countryName": "<string>",
          "name": "<string>",
          "paymentType": "<string>"
        }
      ],
      "gatewaySecret": "<string>",
      "gatewayType": 123,
      "gatewayWebhookIntegrationLink": "<string>",
      "gatewayWebsiteLink": "<string>",
      "minimumAmount": 123,
      "name": "<string>",
      "privateSecretName": "<string>",
      "publicKeyName": "<string>",
      "setupGatewayPaymentTypes": [
        {
          "autoCharge": true,
          "category": "<string>",
          "countryName": "<string>",
          "name": "<string>",
          "paymentType": "<string>"
        }
      ],
      "sort": 123,
      "subGateway": "<string>",
      "subGatewayName": "<string>",
      "webhookEndpointUrl": "<string>",
      "webhookSecret": "<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

Edit the exist payment gateway

gatewayId
integer
required

The id of payment gateway

currencyExchange
object[]

The currency exchange for gateway payment, effect at start of payment creation when currency matched

displayName
string

The displayName of payment gateway

gatewayKey
string

The key of payment gateway

The logo of payment gateway

gatewayPaymentTypes
string[]

Selected gateway payment types

gatewaySecret
string

The secret of payment gateway

sort
integer

The sort value of payment gateway, The higher the value, the lower the ranking

subGateway
string

The sub gateway of payment gateway

Response

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