Orders | Batch Updates
Update an order.
Sample request:
POST /api/orders/Update?runWorkflow=true
{
"id": "EPIC000001",
"customerId": "4793246662",
"billingCurrency": "NOK",
"customerName": "Ola Nordmann",
"marketId": "epic_market_no",
"storeId": "epic_webshop_no",
"customerPhone": "4793246662",
"customerEmail": "ola.nordmann@omnium.no",
"status": "New",
"billingAddress": {
"daytimePhoneNumber": "4793246662",
"name": "Ola Nordmann",
"line1": "Lille Grensen 3",
"city": "Oslo",
"countryCode": "NO",
"countryName": "Norge",
"postalCode": "1415",
"email": "ola.nordmann@omnium.no"
},
"orderForm": {
"payments": [
{
"amount": 49.5,
"paymentMethodName": "Klarna",
"status": "Processed",
"transactionId": "123456789",
"transactionType": "Authorization"
}
],
"shipments": [
{
"shipmentId": "1",
"shippingMethodName": "PostNord",
"warehouseCode": "epic_company_main_warehouse",
"lineItems": [
{
"lineItemId": "1",
"code": "0123ABC",
"placedPrice": 99.0,
"quantity": 1.0,
"taxRate": 25
}
],
"address": {
"name": "Ola Nordmann",
"line1": "Lille Grensen 3",
"city": "Oslo",
"countryName": "Norge",
"countryCode": "NO",
"postalCode": "0159",
"email": "ola.nordmann@omnium.no"
}
}
],
"lineItems": [
{
"lineItemId": "1",
"code": "0123ABC",
"placedPrice": 99.0,
"quantity": 1.0,
"taxRate": 25
}
],
"discounts": [
{
"discountType": "Order",
"discountName": "Fifty percent discount!",
"discountValue": 50,
"rewardType": "Percentage"
}
]
},
"orderType": "Online"
}
post/api/Orders/Update
Request
- Base URL: https://api.omnium.no (the document declares no server; this is the origin it was published from)
- URL: https://api.omnium.no/api/Orders/Update
- Auth: API key in header Authorization
Query parameters
runWorkflowboolean
If true, the workflow will be processed.
Request body
Response
The order was updated successfully and the workflow was executed.
Changes
No recorded changes to this operation across all 1 revision of this API.