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."
}Orders
Enrich, persist, and notify via 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.
POST
/
enrich-order-forward
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
Body
application/json

