Orders | Update
Create a new order in the OMS, with an auto generated order number (orderNumber). If ID is not specified when creating the order, it will be set to the newly generated order number.
Sample request:
PUT /api/orders
{
"id": "NotNeededButMayBeSpecified",
"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"
}
put/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.