curl --request POST \
--url https://api.artisn.desarrollo-redbrand.com/api/enrich-order-forward \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payload": {
"orderId": "ord-001",
"store": {
"id": "21"
},
"order": {
"products": [
{
"modifierGroups": [
{
"selectedModifiers": [
{
"productId": "sku-001",
"price": {
"totalPrice": {
"total": 10.5
}
}
}
]
}
]
}
]
}
}
}
'{
"message": "Orden enriquecida, guardada y notificada al destino."
}Enriquecer, guardar y notificar por webhook
Mismo cuerpo que POST /enrich-order. Tras enriquecer y persistir, envía un POST JSON al webhook
(ORDER_WEBHOOK_URL) con únicamente el payload enriquecido (misma forma que el campo payload
de la respuesta 200 de /enrich-order).
La respuesta HTTP de esta API solo indica si el flujo y el webhook respondieron bien; no devuelve la orden.
curl --request POST \
--url https://api.artisn.desarrollo-redbrand.com/api/enrich-order-forward \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payload": {
"orderId": "ord-001",
"store": {
"id": "21"
},
"order": {
"products": [
{
"modifierGroups": [
{
"selectedModifiers": [
{
"productId": "sku-001",
"price": {
"totalPrice": {
"total": 10.5
}
}
}
]
}
]
}
]
}
}
}
'{
"message": "Orden enriquecida, guardada y notificada al destino."
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Raíz flexible: puede incluir payload u omitirse (entonces los campos de orden van en la raíz).
Se permiten propiedades adicionales no listadas.
Datos de la orden (productos, tienda, pagos). orderId obligatorio para 200.
Show child attributes
Show child attributes
Response
Orden persistida y webhook respondió 2xx
"Orden enriquecida, guardada y notificada al destino."

