Pricebooks Object

The pricebooks object is set under a catalog containing a pricing scheme based on sales tracking codes. You may set a default pricing layout as well as attach specific sales tracking codes to specific pricing layouts so they can be easily attached onto a subscription.

🚧

Elevated Permissions Required

This call will result in a 404 HTTP error unless its use has been enabled for your Fusebill account. Contact support if you would like this enabled for your organization.

PropertyTypeDescription
nameStringThis is the name of the pricebook. [Max Length: 500 characters]
descriptionStringThis is the description of the pricebook.
codeStringThe unique identification code specific to the pricebook**[Max Length: 500 characters]**
deletableBooleanIndicates whether the pricebook is in use to determine whether it is deletable.
defaultPriceObjectThe default pricing settings set to the pricebook with no sales tracking code attachment.
pricebookEntriesList of objectsOnce attached to a sales tracking code it will be integrated into the system as a Pricebook Entry (see fields below)
isUsingDateBasedPricebookBooleanDefines whether this is a date based (true) or Sales tracking code based (null/false) pricebook. Date based can be used to schedule price changes into the future.

Default Price (pricingModel)

PropertyTypeDescription
pricingModelTypeEnum: {Standard, Tiered, Stairstep, Volume, Formula, Pricebook}Dictates how the price is calculated using the quantity. This is for the purchase object created when this product is purchased outside a plan
pricingFormulaTypeEnum: {OpeningBalance, InvoiceAgingBalances}The pricing formula type that is either OpeningBalance or InvoiceAgingBalances, can also be set to null.
quantityRangesObject (defined below)A collection of ranges that control the price of the purchase based on its quantity field.

Quantity Ranges Fields

PropertyTypeDescription
minDecimalThe lower bound for the value of quantity. If the purchase of this product has a quantity in this quantity range, the price in prices matching the customer's currency is used.
maxDecimalThe upper bound for the value of quantity.If the purchase of this product has a quantity in this quantity range, the price in prices matching the customer's currency is used. NULL means infinity
pricesList of Objects. Defined below.A list of prices based on each configured currency.

Prices fields

PropertyTypeDescription
amountDecimalThe price in units of the currency.
currencyStringThe 3 character ISO code of the currency this price is measured in.

Pricebook Entries

PropertyTypeDescription
priorityIntegerThe priority in which the pricing model gets set due to how it is attached onto a subscription. Will iterate through priority list and will set it to first match ignoring everything below.
salesTrackingCode1IdIntegerThe Id associated to this sales tracking code generated by Stax Bill.
salesTrackingCode1NameStringThe name associated to this sales tracking code.
salesTrackingCode1CodeStringThe unique code identifier associated to this sales tracking code.
salesTrackingCode2IdIntegerThe Id associated to this sales tracking code generated by Stax Bill.
salesTrackingCode2NameStringThe name associated to this sales tracking code.
salesTrackingCode2CodeStringThe unique code identifier associated to this sales tracking code.
salesTrackingCode3IdIntegerThe Id associated to this sales tracking code generated by Stax Bill.
salesTrackingCode3NameStringThe name associated to this sales tracking code.
salesTrackingCode3CodeStringThe unique code identifier associated to this sales tracking code.
salesTrackingCode4IdIntegerThe Id associated to this sales tracking code generated by Stax Bill.
salesTrackingCode4NameStringThe name associated to this sales tracking code.
salesTrackingCode4CodeStringThe unique code identifier associated to this sales tracking code.
salesTrackingCode5IdIntegerThe Id associated to this sales tracking code generated by Stax Bill.
salesTrackingCode5NameStringThe name associated to this sales tracking code.
salesTrackingCode5CodeStringThe unique code identifier associated to this sales tracking code.
pricingModelObject (see above)The default pricing settings set to the pricebook with no sales tracking code attachment.
startingDateString (Date)When the pricebook's isUsingDateBasedPricebook is true (indicating that this is a date based pricebook instead of a sales tracking code based one) then this startingDate on an entry is the first day that this different price will be used (until the next entry's starting date). Or back to the default price if not in use.