New order
documentedWebhook invoked when a new order is created.
POST /newOrderOrderno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://YourConfiguredWebhookEndpoint.com/newOrder" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-d '{
"orderNumber": "{{$orderNumber}}",
"status": "{{$status}}",
"supplierId": {{$supplierId}},
"supplierName": "{{$supplierName}}",
"resellerId": {{$resellerId}},
"resellerName": "{{$resellerName}}",
"customer": {
"id": {{$customerId}},
"firstName": "{{$firstName}}",
"lastName": "{{$lastName}}",
"name": "{{$customerName}}",
"email": "{{$customerEmail}}",
"mobile": "{{$customerMobile}}"
},
"items": [
{
"productName": "{{$productName}}",
"productCode": "{{$productCode}}",
"startTime": "{{$startTime}}",
"startTimeLocal": "{{$startTimeLocal}}",
"totalQuantity": {{$totalQuantity}},
"amount": {{$amount}}
}
],
"totalAmount": {{$totalAmount}},
"totalCurrency": "{{$totalCurrency}}",
"dateCreated": "{{$dateCreated}}",
"dateUpdated": "{{$dateUpdated}}"
}'"