Skip to content

Price

This resource represents the details of the referral fees to be configured at the order or payment link level. Only platform businesses are allowed to create prices. The first Price created is set as default for a business.

Price

idstringread-only

The unique identifier for the price. Pass this value as price_id when creating a payin or an order to apply this referral fee to it.

Example:"price_DdWp_HUbOnlg"
pricing_typestring

The type of pricing to be applied.

Enum:"fixed""percentage"
Example:"fixed"
fees_amountnumber, >= 1

The amount that will be deducted from your balance for this pricing. A positive integer representing the smallest currency unit. For example, if the amount is $299.00, then pass 29900 in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to represent an amount of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, for amount ¥295, pass the value as 295

Example:1000
fees_currencystring, (iso-4217)

The currency code in ISO 4217 format.

Example:"USD"
bpsnumber, >= 1

The percentage fee, in basis points: 1 basis point is 0.01%, so 1000 is 10%. Required when pricing_type is percentage, and must not be sent when it is fixed.

Example:1000
set_as_defaultboolean

Set this pricing as default for the business. Overrides the previously set default if set to true.

Example:true
created_atstring, (date-time)read-only

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

Example:"2021-06-01T12:00:00Z"
updated_atstring, (date-time)read-only

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

Example:"2021-06-01T12:00:00Z"
{ "id": "price_DdWp_HUbOnlg", "pricing_type": "fixed", "fees_amount": 1000, "fees_currency": "USD", "bps": 1000, "set_as_default": true, "created_at": "2021-06-01T12:00:00Z", "updated_at": "2021-06-01T12:00:00Z" }