Skip to main content

Basket

Payloads for available basket events.

Basket Submitted

The basket-submitted event is triggered when someone submits a basket. The payload contains the full order snapshot at the time of submission — all line items with their configured products, the submitter's contact details, any custom fields collected during checkout, applied pricing rules, and a link to the generated PDF.

This is the richest source of order data available via webhooks. Use it to feed submitted orders into your ERP, trigger fulfilment workflows, or archive order records in an external system.

tip

The browser-side mimeeq-basket-submitted event only carries the cartId and referenceCode. If you need full order details server-side, this webhook is the way to get them.

Payload example

{
"id": "CART-40e54c8a-4ce4-4c32-a299-669c6fc301cb",
"customerId": "CUST-c62ee8d8-ad02-464f-a322-10847d9984b2",
"status": "SUBMITTED",
"referenceCode": "OARTWSTS",
"items": [
{
"cartItemId": "ITEM-00067907-b445-40da-b40b-f69e9df0fba3",
"productId": "PROD-7e042c5b-ead6-4e54-b0bb-827b581df5a0",
"productName": "Product Name",
"quantity": 5,
"variantCode": "PPRFX=Fabric-d10&CastorsandGlides-a4&Colour-a2",
"shortCode": "GW0NQZ",
"image": "https://example.com/image.jpg",
"specification": {
"Fabric": "ONE-35",
"Castors and Glides": "Soft Castors",
"Colour": "Black"
},
"sku": "SKU-123456",
"isModular": false,
"note": "This is a note",
"link": "https://example.com/product",
"price": 100,
"unitPrice": 20,
"currency": "USD",
"templateId": "Basket"
}
],
"submitter": {
"fullName": "John Doe",
"email": "[email protected]",
"language": "en",
"phone": "123-456-7890",
"companyName": "Example Company",
"address": "123 Example Street",
"notes": "This is a note"
},
"customFields": {
"customField1": "value1",
"customField2": "value2"
},
"priceModifiers": [
{
"name": {
"en": "Partner discount"
},
"description": {
"en": "Discount above £100"
},
"mode": "PERCENTAGE",
"type": "DISCOUNT",
"modifierValue": 10,
"calculatedValue": -50
},
{
"name": {
"en": "Delivery charge"
},
"description": {
"en": "Delivery charge is 10£"
},
"mode": "FIXED",
"type": "ADDITION",
"modifierValue": 10,
"calculatedValue": 10
}
],
"pdfUrl": "https://cdn.example.com/webhooks/cart/pdf/OARTWSTS_R.pdf",
"submitterPdfUrl": "https://cdn.example.com/webhooks/cart/pdf/OARTWSTS_S.pdf"
}

Payload fields

Root

FieldTypeDescription
idstringBasket identifier (e.g., "CART-...")
customerIdstringMimeeq customer (tenant) identifier
statusstringBasket status at time of delivery — "SUBMITTED" for completed orders, "OPEN" if still active
referenceCodestringHuman-readable order reference code (e.g., "OARTWSTS"). Can be used to look up the order in the admin panel
itemsCartItem[]Array of configured products in the basket
submitterSubmitter | undefinedContact details collected during checkout. Absent if the basket was submitted without a form (e.g., auto-submit)
customFieldsobject | undefinedKey-value pairs of custom fields collected during checkout
priceModifiersPriceModifier[]Pricing rules applied to this basket — discounts and surcharges
pdfUrlstring | nullURL pointing to the generated PDF summary of the submitted basket (translated to the customer default language). null if PDF generation is not enabled or failed
submitterPdfUrlstring | nullURL pointing to the generated PDF summary of the submitted basket (translated to the submitter's language). null if PDF generation is not enabled or failed

CartItem

FieldTypeDescription
cartItemIdstringUnique identifier for this line item
productIdstringThe Mimeeq product identifier
productNamestringDisplay name of the product
quantitynumberNumber of units ordered
variantCodestringThe full variant code representing the selected configuration
shortCodestringShort code that can be used to recreate this exact configuration in the configurator
imagestring | nullCDN URL of the product image for this configuration. null if no image is available
specificationRecord<string, string>Human-readable map of option block names to selected option labels (e.g., { "Fabric": "ONE-35" })
skustringSKU for the configured variant, as defined in the product setup
isModularbooleanWhether this item is a modular product configuration
notestring | nullOptional note added by the customer for this line item
linkstringURL to the product configurator page
pricenumberTotal price for this line item (unit price × quantity)
unitPricenumberPrice per single unit
currencystring | nullCurrency code (e.g., "USD", "EUR"). null if pricing is not configured
templateIdstring | nullThe embed template identifier used when this item was added to the basket. null if not available

Submitter

FieldTypeDescription
fullNamestringSubmitter's full name
emailstringSubmitter's email address
languagestringLanguage code for the submission (e.g., "en")
phonestring | nullPhone number, if provided
companyNamestring | nullCompany name, if provided
addressstring | nullAddress, if provided
notesstring | nullAdditional notes from the submitter

PriceModifier

FieldTypeDescription
nameRecord<string, string>Localised name of the pricing rule (keyed by language code)
descriptionRecord<string, string>Localised description of the pricing rule
modestringHow the modifier is calculated — "PERCENTAGE" or "FIXED"
typestringWhether this is a "DISCOUNT" (reduces total) or "ADDITION" (increases total)
modifierValuenumberThe configured rule value (e.g., 10 for a 10% discount or a £10 fixed charge)
calculatedValuenumberThe actual amount applied to this basket. Negative for discounts, positive for additions