For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set the store specific account number for a product

Set the account number used for this product when it is sold in this store.

The account is applied to the order line when the sale becomes a receipt. It takes precedence over the account number configured centrally on the product, and over the store's product group configuration.

Three product kinds are the exception. A product sold under the VAT margin scheme keeps booking to the margin sales and margin VAT accounts on the accounting report, Navision, 24Seven and VismaNet, so the override has no effect there — but Unimicro, VismaBusiness and XLedger do not implement the margin scheme and will use this account for those lines. A package wrapper product is not booked at all — only its components are, and an override set on a component does apply. On a Flow gift card product the account is used as the gift card settlement account, not a revenue account.

The product's VAT type determines the VAT group, so no vatCodeUid is needed.

Creates the override if it does not exist, replaces it if it does. An empty account is rejected — use DELETE to remove an override.

Required permissions: ACCOUNTING_CONFIG

put
/tenants/{tenantUid}/stores/{storeUid}/accountingConfigs/products/{productUid}
Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
storeUidstringRequired

Reference to a Store.

Pattern: ^[A-Za-z0-9-_]+
productUidstringRequired

Reference to a Product.

Pattern: ^[A-Za-z0-9-_]+
Body

Set the store specific account number for a product. The product's VAT type determines the VAT group, so no vatCodeUid is needed.

accountstring · min: 1Required

Account number. Must not be empty — use DELETE to remove the override.

Responses
200Success
application/json
productUidstringRequiredPattern: ^[A-Za-z0-9-_]+
skustringRequired

The product's SKU

productNamestringRequired

The product's name

accountstringRequired

Account number

put/tenants/{tenantUid}/stores/{storeUid}/accountingConfigs/products/{productUid}
PUT /v2/tenants/{tenantUid}/stores/{storeUid}/accountingConfigs/products/{productUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 18

{
  "account": "text"
}
200Success
{
  "productUid": "text",
  "sku": "text",
  "productName": "text",
  "account": "text"
}

Last updated

Was this helpful?