Schemas/Objects
FeePolicy
Who pays the gateway and Whish cash-in fees for a fixed-price order.
Type
objectProperties
gatewayFeePayerstringOptionalone of merchantrouteFeePayerstringOptionalone of customer, merchantmaxRouteFeeUsdstringOptionalRequired 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
{
"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