Skip to content

Create a pricing split

Request

Declare your share of a dynamic pricing rule's fee. The customer bears the remainder. List the rules you may declare against with List dynamic pricing rules.

Provide price_id and exactly one of bps or fixed_amount. Declare bps against a percentage rule and fixed_amount against a fixed rule. Your share cannot exceed the rule's own total: bps cannot exceed the rule's bps, and fixed_amount cannot exceed the rule's fees_amount. Each rule is held to its own ceiling.

Amounts are in minor units (cents) and bps is basis points, so 100 is 1%. A bps of 0 is valid and means the customer bears the whole fee.

Pass the returned id in split_ids when you create a payment link, an order, a payin quote, a subscription or an auto debit. Until you pass it, the dynamic rule is never applied and pricing falls back to your normal (non-dynamic) rules.

Security
JWT
Bodyapplication/jsonrequired
price_idstringrequired

The dynamic pricing rule to declare against, from List dynamic pricing rules. The rule must belong to your business, have a dynamic fee bearer, price payin transaction_fees, be currently effective, and be the latest effective version of the rule.

Example:"price_5JU9yv0lGSUP"
bpsinteger, >= 0

Your share of the fee in basis points, where 100 bps is 1%. Required on a percentage rule. Cannot exceed the rule's own bps. 0 is valid and means the customer bears the whole fee. Must be a whole number sent as a JSON integer: no decimal point (1.5 and 1.0 are both rejected) and not a string ("150" is rejected). A negative value returns 400.

Provide exactly one of bps or fixed_amount, not both.

Example:150
fixed_amountinteger, >= 0

Your share of the fee, in the smallest unit of the rule's fees_currency (cents for USD). 200 is $2.00 when that currency is USD. Must be a whole number sent as a JSON integer: no decimal point (1.5 and 1.0 are both rejected) and not a string ("150" is rejected). A negative value returns 400. Required on a fixed rule, and cannot exceed the rule's own fees_amount. If you also send fee_currency, it must match the rule's fees_currency. Provide exactly one of bps or fixed_amount, not both.

Example:200
min_feeinteger, >= 0

The floor to apply to your share, in the smallest unit of fee_currency (cents for USD). 100 is $1.00 when fee_currency is USD. Must be a whole number sent as a JSON integer: no decimal point (1.5 and 1.0 are both rejected) and not a string ("150" is rejected). A negative value returns 400. Supported only on a percentage rule, and only together with fee_currency. Must be less than or equal to max_fee.

Example:100
max_feeinteger, >= 0

The cap to apply to your share, in the smallest unit of fee_currency (cents for USD). 1000 is $10.00 when fee_currency is USD. Must be a whole number sent as a JSON integer: no decimal point (1.5 and 1.0 are both rejected) and not a string ("150" is rejected). A negative value returns 400. Supported only on a percentage rule, and only together with fee_currency.

Example:1000
fee_currencystring, (iso-4217)

The currency of fixed_amount, min_fee and max_fee, in ISO 4217 format. Required when you declare min_fee or max_fee. On a fixed rule it must equal the rule's fees_currency; omit it and Glomo derives it from the rule.

Example:"USD"
curl -i -X POST \
  https://api.glomopay.com/api/v1/prices/dynamic-splits \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "price_id": "price_5JU9yv0lGSUP",
    "bps": 150
  }'

Responses

Pricing split created successfully

Bodyapplication/json
idstringread-only

The unique identifier for the pricing split.

Example:"psplit_7Kq2mXbTdLp9"
price_idstringread-only

The unique identifier of the dynamic pricing rule this split was declared against. See List dynamic pricing rules.

Example:"price_5JU9yv0lGSUP"
bpsinteger or nullread-only

Your share of the fee in basis points, where 100 bps is 1%. Present when the split was declared with bps and null otherwise.

Example:150
fixed_amountinteger or nullread-only

Your share of the fee, in the smallest unit of fee_currency (cents for USD). 200 is $2.00 when fee_currency is USD. Present when the split was declared with fixed_amount and null otherwise.

Example:200
min_feeinteger or nullread-only

The floor you declared for your share, in the smallest unit of fee_currency (cents for USD). 100 is $1.00 when fee_currency is USD. null when you declared no floor.

Example:100
max_feeinteger or nullread-only

The cap you declared for your share, in the smallest unit of fee_currency (cents for USD). 1000 is $10.00 when fee_currency is USD. null when you declared no cap.

Example:1000
fee_currencystring or null, (iso-4217)read-only

The currency of fixed_amount, min_fee and max_fee, in ISO 4217 format.

Example:"USD"
created_atstring, (date-time)read-only

When the pricing split was created, as an ISO 8601 date-time in UTC.

Example:"2026-08-01T09:12:44Z"
updated_atstring, (date-time)read-only

When the pricing split was last updated, as an ISO 8601 date-time in UTC.

Example:"2026-08-01T09:12:44Z"
Response
{ "id": "psplit_7Kq2mXbTdLp9", "price_id": "price_5JU9yv0lGSUP", "bps": 150, "fixed_amount": null, "min_fee": 100, "max_fee": 1000, "fee_currency": "USD", "created_at": "2026-08-01T09:12:44Z", "updated_at": "2026-08-01T09:12:44Z" }