Payment method discount or fee
Read or set the discount or fee customers get at checkout when they pay with a payment method.
A payment method can lower or raise the price when customers choose it at checkout, for example a 3% fee plus $0.30 for card payments, or 5% off for bank transfers. This is the same setting as the discount or fee on the payment method's card in Settings > Payment methods.
Amounts are always positive; kind says which way they go. percentage is a percent of the order total and fixed_amount is in the checkout's own currency, so "0.30" is $0.30 on a USD checkout and €0.30 on a EUR one. Reading needs the payment-method or store API-key ability. Changing needs the store API-key ability and the store permission in your team role, as every store settings change does.
To give the discount or fee only to some checkouts, set condition to above or below with a threshold, for example a fee only on checkouts below "20.00". The threshold is in the checkout's own currency, like fixed_amount, and is compared with the checkout total after promotions, coupons and upsell discounts. A change that leaves out condition and threshold keeps the method's condition; send condition: null to remove it.
Custom payment methods have their own modifier field: see manage custom payment methods.
Get the discount or fee customers get at checkout when they pay with this payment method: a percentage of the order total, a fixed amount, or both. kind is none when there is neither. condition and threshold show when it applies only to checkouts above or below a total, and are null when every checkout gets it. Requires the payment-method or store API-key ability, with the same permission in your team role. An unknown payment method returns 404. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.
AuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
paymentMethod*stringUppercase payment method identifier returned by the collection endpoint.
X-STORE?stringStore slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.
Successful response.
application/json- response
data*curl -X GET 'https://sell.app/api/v2/payment-methods/string/modifier' \ -H 'X-STORE: launch-lab'{ "data": { "payment_method": "STRIPE", "kind": "fee", "percentage": "3.00", "fixed_amount": "0.30", "condition": "below", "threshold": "20.00" }}Set the discount or fee customers get at checkout when they pay with this payment method. Send kind with positive amounts: fee adds them to the price and discount takes them off. A discount or fee needs percentage, fixed_amount or both; send kind: none with both null to remove it. Both amount fields are required and may be null, and the amounts you send replace the current ones. The condition works differently: leave out both condition and threshold to keep the condition the method has now, even one changed in the dashboard while your request was in flight; send condition: null to remove it so every checkout gets the discount or fee; send condition with threshold to set it. A threshold without a condition, or a condition with kind: none, returns 422 on condition. The method must be turned on for checkout, otherwise 422 on payment_method. A percentage over 100 returns 422 on percentage, and a fixed amount over 100000 returns 422 on fixed_amount. Sending the modifier the method already has returns 200 and changes nothing, so a retry is safe; the data of GET /v2/payment-methods/{paymentMethod}/modifier without payment_method is such a request. Requires the store API-key ability and the store permission in your team role. An unknown payment method returns 404. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.
AuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
paymentMethod*stringUppercase payment method identifier returned by the collection endpoint.
X-STORE?stringStore slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.
application/json- body
kind*stringdiscount lowers the price customers pay with this method, fee raises it, and none means neither.
"discount""fee""none"percentage*|Percentage of the order total, as a positive decimal string with at most two decimals: "3.00" is 3%. At most 100. null when not used.
^\d+(\.\d{1,2})?$fixed_amount*|Fixed amount added or taken off once per checkout, as a positive decimal string in the checkout's currency with at most two decimals: "0.30" on a USD checkout is $0.30. At most 100000. null when not used.
^\d+(\.\d{1,2})?$condition?|Optional. above or below gives the discount or fee only to checkouts whose total is more than or less than threshold. null removes the condition, so every checkout gets it. Leave out both condition and threshold to keep the condition the method has now. A condition with kind: none returns 422 on condition.
"above""below"nullthreshold?||Required when condition is above or below: the checkout total to compare against, in the checkout's own currency, as a number or decimal string with at most two decimals from 0.01 to 99999999. 20 and "20.00" mean the same. Leave it out or send null otherwise: a threshold without a condition returns 422 on condition.
^\d+(\.\d{1,2})?$0.01 <= value <= 99999999Successful response.
application/json- response
data*curl -X PUT 'https://sell.app/api/v2/payment-methods/string/modifier' \ -H 'X-STORE: launch-lab' \ -H 'Content-Type: application/json' \ -d '{ "kind": "fee", "percentage": "3.00", "fixed_amount": "0.30", "condition": "below", "threshold": "20.00"}'{ "data": { "payment_method": "STRIPE", "kind": "fee", "percentage": "3.00", "fixed_amount": "0.30", "condition": "below", "threshold": "20.00" }}