Skip to content
Contact support
Schemas/Objects

FeePolicy

Who pays the gateway and Whish cash-in fees for a fixed-price order.

Typeobject

Properties

gatewayFeePayerstringOptional
one of merchant
routeFeePayerstringOptional
one of customer, merchant
maxRouteFeeUsdstringOptional

Required per-payment sponsorship cap in USD when the merchant covers Whish fees. Other routes and wallet gas stay customer-paid.

pattern ^\d{1,7}(\.\d{1,2})?$

JSON schema

FeePolicy
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "gatewayFeePayer": {
      "type": "string",
      "enum": [
        "merchant"
      ]
    },
    "routeFeePayer": {
      "type": "string",
      "enum": [
        "customer",
        "merchant"
      ]
    },
    "maxRouteFeeUsd": {
      "type": "string",
      "pattern": "^\\d{1,7}(\\.\\d{1,2})?$",
      "description": "Required per-payment sponsorship cap in USD when the merchant covers Whish fees. Other routes and wallet gas stay customer-paid."
    }
  },
  "description": "Who pays the gateway and Whish cash-in fees for a fixed-price order.",
  "allOf": [
    {
      "if": {
        "required": [
          "routeFeePayer"
        ],
        "properties": {
          "routeFeePayer": {
            "const": "merchant"
          }
        }
      },
      "then": {
        "required": [
          "maxRouteFeeUsd"
        ]
      },
      "else": {
        "not": {
          "required": [
            "maxRouteFeeUsd"
          ]
        }
      }
    }
  ]
}
Next in schemasMethod

We use necessary cookies to run this site. With your permission, we also use analytics and advertising technologies to measure visits and downloads.