GET .../bees/accounts/credits, GET .../bees/accounts/charges); per-account apply_credit_charge.bees-cached-promotions, mapped to BEES Promotions and Deals payloads (see BEES Promotions API).RegisterBeesOrderAction maps credit recargo to SAP preview; controlled by add_surcharge on the Couch order / GOAL order (see Credit purchase surcharges § Orders).Data is pushed by GOAL on schedule (bees:sync). TODO: frequency, payload samples,
error handling, webhook signatures.
ListBeesAccountsAction exports minimumOrderAmount and minimumOrder.value via BeesAccountResource:
BeesAccount.minimum_order_amount when the column is not null.config.sales.minimum_ticket_amount (see Distribution Centers API; default 200 when unset).Route: GET /v1/backend/integrations/bees/ucc/assortment
Query: companyId, storeId, distributionCenterId (required, same as other BEES store endpoints). Optional portfolio_code or bdrId to return a single portfolio; omit to return one row per distinct portfolio on BEES accounts for that store and DC.
Response 200 (ActionResult.data):
[
{
"bdrId": "13424",
"Items": [
{ "productCode": "ROMA1234", "unitMeasure": "PZA" },
{ "productCode": "ROMA5678", "unitMeasure": "PQT" }
]
}
]
Items are built from the store DC assortment (ListBeesAssortmentAction → ListBeesItemsAction: one row per active online_store_product_measure presentation). bdrId is the GOAL portfolio / BDR code (BeesAccount.portfolio_code).
Route: GET /v1/backend/integrations/bees/items
Query: companyId, storeId, distributionCenterId (required). Optional code, raw_mode, includeInactives.
Full contract: BEES Items API.
Errors: 404 when portfolio_code / bdrId is not found for the scope; 422 when store/DC scope validation fails.
Promotions are synchronized to BEES using a dual-entity ingestion model:
PROMOTIONS — Visual metadata, promotion title, description, banner image, and valid date range.DEALS — Commercial logic: audience segmentation (PRICE_LIST, ACCOUNT), conditions (minimum quantity, shared accumulation), and rewards (lineItemDiscount, freeGoods, scaledFreeGoods, multipleLineItemDiscount).ENFORCEMENTS — Customer usage limits with strict MONTHLY reset cycle.Promotions are pre-aggregated and materialized in CouchDB database bees-cached-promotions via BuildBeesPromotionsAction.
php artisan bees:manage build-promotions-cache --company=1 --store=1 --distributionCenter=8php artisan bees:sync promotions --company=1 --store=1 --distributionCenter=8BEES posts order batches to GOAL; payloads are validated against orders.jsonc, upserted in Couch external-orders, then processed into GOAL orders.