YOM can delegate minimum order validation to the customer's system. When a commerce or a seller confirms an order, YOM sends an HTTP POST request to the customer's endpoint with the details of the Commerce and the Order. The customer responds whether or not the order meets the minimum, and optionally what the required minimum amount is.
<aside> π
The customer only needs to expose the endpoint at the standard path and tell YOM its domain. No other configuration is required.
</aside>
POST <tu_dominio>/webhooks/yom/order/calculate-minimum-total
Headers YOM sends
Content-Type: application/jsonx-auth-token: {identificador del cliente en YOM}origin: legacy.youorder.meRequest body
{
"commerce": { ... },
"order": { ... }
}
The order entity.
| Field | Type | Requirement | Description | Examples |
|---|---|---|---|---|
_id |
π ObjectId | π’ Required | Order identifier in YOM. | |
| *\It is not stable in the call that precedes confirmation. | "6712fa9b8c1d2e3f40567890" |
|||
domain |
π Text | π’ Required | Domain of the customer the order belongs to. | "cliente.youorder.me" |
status |
π Text | π’ Required | Order status at the time of validation. | "pending" |
type |
π Text | π’ Required | Order type. | |
"order" β order |
||||
"quote" β quote |
"order" |
|||
shippingAddress |
π Object | π’ Required | Delivery address for the order. | |
products |
π‘ List of Objects β OrderProduct | π’ Required | Order line items. See details below. | |
pricing |
π Object β OrderPricing | π’ Required | Order totals. See details below. | |
commerceId |
π Text | βͺ Optional | Commerce identifier in YOM. | "65f0a1b2c3d4e5f601234567" |
commerceName |
π Text | βͺ Optional | Commerce name. | "AlmacΓ©n DoΓ±a Rosa" |
externalId |
π Text | βͺ Optional | Commerce code in the customer's system. | "CLI-004512" |
sellerId |
π‘ List of Texts | βͺ Optional | Identifiers of the Seller(s) associated with the order. | ["186"] |
externalSellerIds |
π‘ List of Texts | βͺ Optional | Seller codes in the customer's system. | ["V-0186"] |
receiptType |
π Text | βͺ Optional | Type of document requested. | |
"boleta" Β· "factura" Β· "none" (default) |
"factura" |
|||
orderDate |
π Date | βͺ Optional | Order creation date in ISO 8601 format. | "2026-08-10T14:22:05.113Z" |
distributionCenterId |
π ObjectId | βͺ Optional | Distribution center associated with the order. | "650a1b2c3d4e5f6a7b8c9d99" |
distributionCenterName |
π Text | βͺ Optional | Distribution center name. | "CD Santiago" |
coupon |
π Object | βͺ Optional | Coupon applied to the order. | |
sellerDiscounts |
π‘ List of Objects | βͺ Optional | Discounts applied by the Seller. | |
observation |
π Text | βͺ Optional | Order observation. | "Entregar por la maΓ±ana" |
Each order.products line item.
| --- | --- | --- | --- | --- |
The order.pricing object.
| --- | --- | --- | --- | --- |
The commerce entity.