Create Account Price
Beta/v1/sales/account-pricesIdempotent with Idempotency-Key header. Learn more
Creates a customer-specific price for a product line.
When a sales order line for the recipient matches the price's product line and attributes, this price replaces the unit price the line would otherwise be given, including the effect of any volume discount. If more than one account price matches a line, the most recently created one wins.
include[]optional arrayenumValues:recipient_accountproduct_linecategoriesSub-objects to expand in the response. When omitted, sub-objects are returned as null.
recipient_account_idstringID of the customer this price is offered to.
A price recorded against a parent customer account also applies to orders placed by its child accounts.
product_line_idstringID of the product line whose products this price applies to.
rateobjectThe price the recipient pays.
The numerator unit is typically a currency and the denominator is the quantity unit being priced, so a matching order line takes both its unit price and its price units from this rate exactly as entered.
valuestring (decimal)Decimal value of the rate, expressed as the amount of the numerator unit per one denominator unit.
numerator_unit_idstringID of the unit for the rate's numerator (e.g. the currency of a price).
denominator_unit_idstringID of the unit for the rate's denominator (the per-unit basis).
category_idsoptional array of stringItem category IDs to record on this price.
Order pricing matches an account price on its product line and attributes only, so categories recorded here do not narrow which products the price applies to.
attribute_idsoptional array of stringAttribute IDs to constrain this price to.
When set, the price applies only to items that have every listed attribute.
idstringAccount price ID.
objectstringenumValues:account_priceResource type identifier.
The customer this price is offered to.
A price recorded against a parent customer account also applies to orders placed by its child accounts.
idstringCustomer ID.
objectstringenumValues:customerResource type identifier.
namestringThe customer's business name, as shown throughout the app and on documents.
numberstringHuman-readable customer number used to identify the account, distinct from the id.
Unique within your account.
statusstringenumValues:normalpreferredhold_shipmentThe customer's account standing.
normal: standard account with no restrictions.preferred: account flagged for prioritized handling.hold_shipment: the customer's shipments should be held, typically over a credit problem, while orders can still be placed.hold_all: all activity for the customer should be held.
The hold statuses are advisory: OpenMRP flags the customer's orders as being on credit hold, but requests to create orders or shipments for the customer are not rejected.
edi_statusstringenumValues:enableddisabledWhether EDI (Electronic Data Interchange) is enabled for exchanging orders and documents with this customer.
relationship_typestringenumValues:standaloneparentchildThe customer's position in the account hierarchy.
standalone: no parent or child accounts.parent: has one or more child accounts (seechild_accounts).child: belongs to a parent account (seeparent_account).
commission_policystringenumValues:commission_appliedcommission_exemptHow sales commission applies to this customer's orders.
commission_exempt: this customer's orders are exempt from sales commission.commission_applied: sales commission is calculated on this customer's orders.
The customer counts as exempt if this field, its type group, or any of its price_groups is commission_exempt. Exempt customers never have a sales rep assigned automatically when an order is created without one.
notestringnullableFree-form note about the customer.
credit_limitquantitynullableMaximum credit extended to this customer.
Used to flag orders once the customer's outstanding balance approaches or passes the limit; orders that exceed it are not rejected.
null in this endpoint.contact_infocustomer_contact_infonullableGeneral contact details for the customer's business.
null in this endpoint.freight_preferencescustomer_freight_preferencesnullableFreight and carrier preferences applied to this customer's shipments.
null in this endpoint.defaultscustomer_defaultsnullableDefault settings applied to new orders for this customer.
null in this endpoint.notification_preferencescustomer_notification_preferencesnullableWhich document emails this customer is set up to receive.
null in this endpoint.Default billing address.
null in this endpoint.Default shipping address.
null in this endpoint.The account group of type type_group that categorizes this customer (for example "Distributors").
null in this endpoint.Account groups of type pricing_group that this customer belongs to, used to apply pricing rules.
null in this endpoint.The customer this account belongs to, when it is a child account.
null in this endpoint.The customers belonging to this account, when it is a parent account.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
The product line whose products this price applies to.
A product that is not assigned to a product line never matches an account price.
idstringProduct line ID.
objectstringenumValues:product_lineResource type identifier.
namestringDisplay name of the product line.
Unique among the product lines visible to your account, which includes the shared system lines.
descriptionstringnullableFree-form description of the product line.
notesstringnullableFree-form notes about the product line.
commission_policystringenumValues:commission_appliedcommission_exemptDefault commission policy for products in this product line.
commission_exempt: no commission applies to these products.commission_applied: commission applies to these products, unless overridden elsewhere.
freight_policystringenumValues:free_freightbilled_freightDefault freight policy for products in this product line.
free_freight: these products do not incur a freight charge.billed_freight: freight is billed for these products, unless overridden elsewhere.
ownerownernullableOwner of the product line.
System-owned product lines are platform-provided and shared across all accounts; account-owned product lines are custom to your account. Only account-owned product lines can be updated, deleted, or granted to customers and account groups.
null in this endpoint.Unit group associated with this product line.
The unit group determines the set of units available to products in this product line.
null in this endpoint.default_lotquantitynullableThe lot products in this line are made in — a doff, a pallet.
Sizes the campaigns a production schedule plans, and defaults the quantity when a batch is added to a production run. The unit is part of the value — 60 counted in pairs and 60 counted in eaches are different lots — and is drawn from this product line's unit group.
An item's own lot override still takes precedence over the line's. When the line has no lot convention, planning falls back to the lot of the line the item feeds into, and then to the account-wide default lot size.
null in this endpoint.fulfillment_policystringnullableenumValues:make_to_stockmake_to_orderHow products in this line are produced when they do not say for themselves.
make_to_stock: built to the forecast, holding a safety stock against its variability.make_to_order: built only against orders already on the book, holding no buffer.
Null falls through to the account default.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last-updated timestamp.
rateratenullableThe price, expressed as a rate.
The rate's numerator unit is typically a currency and its denominator unit is the quantity unit being priced (e.g. $25.50 / kg). A matching order line takes both its unit price and its price units from this rate, exactly as entered.
idstringRate ID.
objectstringenumValues:rateResource type identifier.
valuestring (decimal)Decimal value of the rate, as a string to preserve precision.
Expressed as the amount of the numerator unit per one denominator unit.
Unit of the rate's numerator (e.g. the currency of a price).
Unit of the rate's denominator (the per-unit basis, e.g. kilograms for a price per kilogram).
display_valuestringHuman-readable formatted value (e.g. "$25.50 / kg" or "100 kg / hr").
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Item categories recorded on this price.
Order pricing matches an account price on its product line and attributes only, so categories recorded here do not narrow which products the price applies to.
objectstringenumValues:listResource type identifier.
page_infoobjectPagination metadata.
next_page_urlstringnullableRelative URL that fetches the next page of results.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
has_next_pagebooleanWhether more results exist after this page.
has_prev_pagebooleanWhether results exist before this page.
dataarray of item_categoryResources in this page.
idstringItem category ID.
objectstringenumValues:item_categoryResource type identifier.
namestringDisplay name of the item category.
notesstringnullableFree-form notes about the item category.
typestringenumValues:material_categoryproduct_categoryWhat kind of items this category groups.
material_category: groups raw materials and components (items of typematerial).product_category: groups finished products and parts (items of typeproductorpart).
An item can only be assigned to a category whose type matches the item's type, and the category's type is fixed at creation.
ownerownernullableProvenance of the item category.
System-owned categories are platform-provided defaults shared across all accounts and cannot be updated or deleted; account-owned categories are custom to your account.
null in this endpoint.Properties associated with this item category, such as Color or Size.
These describe the dimensions along which items in the category vary, and are also what the customer-facing catalog shows for the category. Attach and detach them with the Add Item Category Property and Remove Item Category Property endpoints.
null in this endpoint.Unit group associated with this item category.
Items in this category are measured in units belonging to this group, and can only be ordered in those units unless the item's product line defines its own unit group, which takes precedence.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Attributes this price is constrained to.
When set, the price applies only to items that have every listed attribute; when empty, attributes are not considered.
objectstringenumValues:listResource type identifier.
page_infoobjectPagination metadata.
next_page_urlstringnullableRelative URL that fetches the next page of results.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
has_next_pagebooleanWhether more results exist after this page.
has_prev_pagebooleanWhether results exist before this page.
dataarray of attributeResources in this page.
idstringAttribute ID.
objectstringenumValues:attributeResource type identifier.
valuestringThe selectable value this attribute represents, such as Red for a Color property or Large for a Size property.
colorstringenumValues:bluebrowndefaultSwatch color used to display this attribute in the UI.
The named colors are arbitrary display choices; default is a neutral fallback used when no specific swatch applies.
sort_orderintegerPosition of this attribute relative to its siblings within the property, starting at 1.
Positions are kept contiguous: creating, reordering, or deleting an attribute automatically shifts its siblings.
The property this attribute belongs to.
Populated only when the attribute is returned under an item's or a volume discount's attributes list.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last update timestamp.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Responses
Successful response for Create Account Price