Orders | Update
Add a new order to the OMS.
Sample request for adding a basic order with one order line, 50% discount, paid with Klarna and delivered by PostNord.
POST /api/orders
{
"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
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
- Auth: API key in header Authorization
Request body
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.