API for cart and orders
- new: Add support for order item discount_lines with
 discount_subtypeThe new property can be included when creating and updatring draft items and when updating an order
- new add support for order item status property
 order.items.status. The new property can be included when creating and updating drafts items and when updating an order.
- new support updating
 order.external_ids
- Extend order item with optional
 external_idproperty
- new support updating
 order.itinerary
- Extend the draft with
 options.generate_order_id=ALPHANUMERIC_9_RESERVEThe draftorder.order_idwill be set when the new option is used.
- Extend the draft options with
 multiple_authorizationsUseoptions.multiple_authorizationsto enable support for multiple authorizations on order items.- Require
 authorization_idto be included in captures, refunds and cancellations if order was created withoptions.multiple_authorizationsenabled.
- new support filter orders by:
 itinerary_travel_mode,itinerary_arrival_address,itinerary_departure_addressanditems_discount_lines_discount_type.
- Extend the Order itinerary with new properties
 
- Add support for
 route_idandvehicle_id.- Add support for
 external_idsinarrival_addressanddeparture_address
- new suport
 include_eventswhen updating an order
- PUT /v1/accounts/{aid}/shopping/orders/{id}
 - POST /v1/accounts/{aid}/shopping/orders/{id}/comments
 - POST /v1/accounts/{aid}/shopping/orders/{id}/cancel
 - POST /v1/accounts/{aid}/shopping/orders/{id}/close
 - POST /v1/accounts/{aid}/shopping/orders/{id}/open
 - DELETE /v1/accounts/{aid}/shopping/orders/{id}/comments/{comment_id}
 
- new endpoint for deleting comment
 
- Request for creating authorization, capture, refund or cancellation can fail with
 409 Conflicterror.
- Extend the draft options to specify TTL for the order Use
 options.order_time_to_liveto set expiry for when the order and its draft data will be removed.
- Extend payment operations items to include
 payoutfor order items that have a payout rule The new property shows how the payment operation item amounts should be splitt by its payout rule destinations
- Extend endpoint for listing draft and orders to support currency filter
 
- Extend the draft options to support replace of existing order. Use
 options.replace="order"option to replace an order when the draft is completed. This option is only valid for existing orders that have no payment operations registered (when draft is completed)
Extend
include_eventsquery parameter to support multiple values. The parameter accept now:
falsetrueapi-eventservice-event.
api-eventwill be excluded from the store/customer endpoints:
- Support adding comments to an order
 
- Extend the draft options to allow alphanumeric short order_id. Use
 options.generate_order_idto control the ID format for generatedorder.order_id.
- Create order with custom order_id. The new property is only supported when creating draft with
 split_draft=false. Theorder.order_idwill be set toorder.idif no order_id is provied.
- Extend endpoint for listing draft and orders to support filtering
 
- Extend order with
 external_ids
- Extend order with
 external_links.
- Extend order itinerary and attachments
 
- Add
 nameandidto itineraryarrival_addressand `departure_address. Make all address properties options- Add
 line_idsandidto itinerary and attachments- Add
 operatorto itinerary- Extend
 itinerary.travel_modewithCUSTOM
- Extend order events with
 event_typeto support event typesapi-eventandservice-event.
- Extend order event with
 draft_id, a readOnly property that are included in events where the order was created or updated by a draft.
- Extend order with
 itineraryandattachmentfor including travel details
- Extern order items with readOnly
 versionproperty that will be set when the draft order item is added or updated.
- Extend order payment operation definition with
 processed_byandpayment_details.
- Extend the draft options to allow more control for how payout is configured
 - Extend the draft order items to support including
 manual_payoutto support use of any payout rule when calculating the split for the order items.
- Extend order item with
 attachment. Add support for including details about car, bus and train reservation as attachment in order items.
- Add
 eventsto draft. A event will be added to the draft events list when the draft is updated.- Add
 payoutoption to enable calculating the payout for the order items store id. See Billing API- Add support for dynamic payout rules via
 options.payout.rules.- Add
 order_idoption to allow creating a draft that will be added to an existing order.- Add
 split_draftoption to allow one-to-many mapping between draft and order- Add support for including store when creating a draft.
 - Add support for adding draft items with
 reversed_reasonproperty. Use the property in case when an item should be reversed and the payment refunded.- Add support for item
 related_item.type=reversed, that should be used when reversing an existing item.- Add support for negative item
 gross_amountto support reversing items.
- Include authorizations and cancellations in order details
 - Include
 payment_detailsto the order.
sessions Add support for creating sessions for and order
refunds Require items to be specified when creating a refund
captures Require items to be specified when creating a capture
cancellations Add support for creating cancellations for an order
authorizations Add support for creating authorizations for an order
orders Extend order definitions with Discounts
orders > store orders add support for
include_eventson order requests. The order eventstateandeventslist will be included in the response.
- extend draft definition with optional
 options.serial_order_number_suffixproperty.
- extend order definition with
 courier_idandpickup_atthat can be set and updated after the order is created- extend order definition with
 delivery_idthat can be set after the the order is created- extend order definition with optional
 pre_orderproperty- extend order definition with optional
 typeproperty.- extend order shipping_address and billing_address property with optional
 commentproperty that can be used for additional information needed for the address.
- allow scopes
 
read:shopping:/orders/ANY/eventswrite:shopping:/orders/ANY/events
- filter by
 status: open, completed, deleted- filter by
 created_at.gteandcreated_at.lte
- filter by
 status: open, closed, cancelled- filter by
 payment_status: pending, partially_paid, paid, partially_refunded, refunded- filter by
 created_at.gteandcreated_at.lte
- filter by
 status: open, closed, cancelled- filter by
 payment_status: pending, partially_paid, paid, partially_refunded, refunded- filter by
 created_at.gteandcreated_at.lte
- filter by
 status: open, closed, cancelled- filter by
 payment_status: pending, partially_paid, paid, partially_refunded, refunded- filter by
 created_at.gteandcreated_at.lte- accept any
 customer.idformat
- require
 amountandprocessed_atwhen creating a refund- require
 amountandprocessed_atwhen creating a capture
- Add endpoint for list orders for a store
 - Add endpoint for get order for a store
 
- Remove uuid format requirement on customer_id path parameter
 
- remove support for
 apply_discountsquery parameter, the parameter will only be supported from endpoints updating the draft order.
- change the response to include one or more orders created from the draft.
 
Rename the API, Shopping API, all endpoints will now be prefixed with
/v1/accounts/{aid}/shopping/
- Add
 salesperson_idandsalesperson_nameproperties- Add
 delivery_atproperty for specifying when the order should be delivered (in the future)
- Require
 percentageintax_linesfor an order item- Add
 quantityproperty toitem.additions, and allow negativegross_amount- Add
 related_itemproperty that can be used to create a relationship between two items- Add
 description_alias, shorter item description for receipt- Add
 salesperson_idandsalesperson_nameproperty
- Add
 metadataproperty that can be used to included additional key/values on order items.- Add
 additionsarray property. The property can be used to describe customization the customer want to be included with the order item.- Add
 commentproperty for recording customer comments on the item
- Add
 commentproperty for recording customer comments on the order
Use webhooks to get notification on shopping events. See Create new subscription for details on how to create a webhooks subscription
Following event types are supported
| Event | Description | 
|---|---|
shopping_draft_add | 
new draft order created | 
shopping_draft_update | 
existing draft order updated | 
shopping_draft_complete | 
draft completed, includes orders created | 
shopping_order_update | 
existing order updated | 
shopping_order_event_add | 
new event added to order | 
Use this resource to transition the draft order into an Order. A draft with multiple sales locations will transition into one order per sales location.
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| id required  | string <uuid>   The resource identifier string  | 
draft order resource
{ }{- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "orders": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "cancelled_reason": "customer",
 - "cancelled_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "cancelled_at": "2019-08-24T14:15:22Z",
 - "closed_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "closed_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "payment_status": "pending",
 - "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "payment_details": {
- "remaining_capture_amount": 27840,
 - "remaining_refund_amount": 27840,
 - "remaining_cancellation_amount": 27840,
 - "amount_due": 27840,
 - "remaining_authorization_amount": 27840
 
}, - "sessions": [
- {
- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "items": [
- null
 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "metadata": { },
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
] 
} 
], - "authorizations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": null,
 - "amount": null
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "captures": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": null,
 - "amount": null
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "refunds": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": null,
 - "amount": null
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "cancellations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": null,
 - "amount": null
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "comments": [
- {
- "id": "string",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "string",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "body": "string",
 - "visibility": "private"
 
} 
], - "delivery_id": "string",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
] 
} 
] 
}Get draft order.
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| id required  | string <uuid>   The resource identifier string  | 
{- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "version": 0,
 - "events": [
- {
- "event_type": "api-event",
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "version": 0,
 - "request": {
- "path": "string",
 - "method": "string",
 - "body": "string"
 
}, - "draft_id": "string"
 
} 
], - "options": {
- "order_time_to_live": 94672800,
 - "generate_order_id": "UUID",
 - "order_id": "string",
 - "replace": "order",
 - "payout": {
- "rules": [
- {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": 10,
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b"
 
} 
] 
} 
] 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b"
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c"
 
} 
] 
} 
], - "metadata": { }
 
} 
], - "resolve_rule_id": "order.items.store.id",
 - "resolve_rule_type": "string"
 
}, - "split_draft": false,
 - "serial_order_number_suffix": false,
 - "multiple_authorizations": false
 
}, - "order": {
- "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "stores": [
- {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
} 
] 
} 
}Updates a draft order.
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| id required  | string <uuid>   The resource identifier string  | 
| apply_discounts | boolean  Default:  false  Calculate available discounts and apply them to the order. Requires additional scope for accessing the DealEngine, one of 
 The  
 
  | 
draft order resource
required  | object (OrderObject)    | 
object   | 
{- "options": {
- "order_time_to_live": 94672800,
 - "generate_order_id": "UUID",
 - "order_id": "string",
 - "replace": "order",
 - "payout": {
- "rules": [
- {
- "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "destinations": [
- {
- "type": "percentage",
 - "value": 10,
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b"
 
} 
] 
} 
] 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b"
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c"
 
} 
] 
} 
], - "metadata": { }
 
} 
], - "resolve_rule_id": "order.items.store.id",
 - "resolve_rule_type": "string"
 
}, - "split_draft": false,
 - "serial_order_number_suffix": false,
 - "multiple_authorizations": false
 
}, - "order": {
- "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true
 
}, - "email": {
- "consent": true
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
} 
} 
], - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
] 
} 
}{- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "version": 0,
 - "events": [
- {
- "event_type": "api-event",
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "version": 0,
 - "request": {
- "path": "string",
 - "method": "string",
 - "body": "string"
 
}, - "draft_id": "string"
 
} 
], - "options": {
- "order_time_to_live": 94672800,
 - "generate_order_id": "UUID",
 - "order_id": "string",
 - "replace": "order",
 - "payout": {
- "rules": [
- {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": 10,
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b"
 
} 
] 
} 
] 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b"
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c"
 
} 
] 
} 
], - "metadata": { }
 
} 
], - "resolve_rule_id": "order.items.store.id",
 - "resolve_rule_type": "string"
 
}, - "split_draft": false,
 - "serial_order_number_suffix": false,
 - "multiple_authorizations": false
 
}, - "order": {
- "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "stores": [
- {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
} 
] 
} 
}Use this resource to create orders in draft state.
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| apply_discounts | boolean  Default:  false  Calculate available discounts and apply them to the order. Requires additional scope for accessing the DealEngine, one of 
 The  
 
  | 
draft order resource
required  | object (OrderObject)    | 
object   | 
{- "options": {
- "order_time_to_live": 94672800,
 - "generate_order_id": "UUID",
 - "order_id": "string",
 - "replace": "order",
 - "payout": {
- "rules": [
- {
- "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "destinations": [
- {
- "type": "percentage",
 - "value": 10,
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b"
 
} 
] 
} 
] 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b"
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c"
 
} 
] 
} 
], - "metadata": { }
 
} 
], - "resolve_rule_id": "order.items.store.id",
 - "resolve_rule_type": "string"
 
}, - "split_draft": false,
 - "serial_order_number_suffix": false,
 - "multiple_authorizations": false
 
}, - "order": {
- "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true
 
}, - "email": {
- "consent": true
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
} 
} 
], - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
] 
} 
}{- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "version": 0,
 - "events": [
- {
- "event_type": "api-event",
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "version": 0,
 - "request": {
- "path": "string",
 - "method": "string",
 - "body": "string"
 
}, - "draft_id": "string"
 
} 
], - "options": {
- "order_time_to_live": 94672800,
 - "generate_order_id": "UUID",
 - "order_id": "string",
 - "replace": "order",
 - "payout": {
- "rules": [
- {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": 10,
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b"
 
} 
] 
} 
] 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b"
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c"
 
} 
] 
} 
], - "metadata": { }
 
} 
], - "resolve_rule_id": "order.items.store.id",
 - "resolve_rule_type": "string"
 
}, - "split_draft": false,
 - "serial_order_number_suffix": false,
 - "multiple_authorizations": false
 
}, - "order": {
- "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "stores": [
- {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
} 
] 
} 
}Remove a item line from the draft
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| id required  | string <uuid>   The resource identifier string  | 
| line_id required  | integer  The resource identifier string  | 
| apply_discounts | boolean  Default:  false  Calculate available discounts and apply them to the order. Requires additional scope for accessing the DealEngine, one of 
 The  
 
  | 
{- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "version": 0,
 - "events": [
- {
- "event_type": "api-event",
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "version": 0,
 - "request": {
- "path": "string",
 - "method": "string",
 - "body": "string"
 
}, - "draft_id": "string"
 
} 
], - "options": {
- "order_time_to_live": 94672800,
 - "generate_order_id": "UUID",
 - "order_id": "string",
 - "replace": "order",
 - "payout": {
- "rules": [
- {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": 10,
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b"
 
} 
] 
} 
] 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b"
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c"
 
} 
] 
} 
], - "metadata": { }
 
} 
], - "resolve_rule_id": "order.items.store.id",
 - "resolve_rule_type": "string"
 
}, - "split_draft": false,
 - "serial_order_number_suffix": false,
 - "multiple_authorizations": false
 
}, - "order": {
- "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "stores": [
- {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
} 
] 
} 
}Update item in draft
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| id required  | string <uuid>   The resource identifier string  | 
| line_id required  | integer  The resource identifier string  | 
| apply_discounts | boolean  Default:  false  Calculate available discounts and apply them to the order. Requires additional scope for accessing the DealEngine, one of 
 The  
 
  | 
draft line item resource
| gross_amount required  | integer  Monetary amount in smallest unit for the currency before discounts  | 
required  | Array of objects (TaxItem)   non-empty    | 
| id | string  The ID or SKU of the product on the line  | 
| status | string  The item status  | 
| metadata | object  Additional details about the item, key values will be included
as   | 
Array of objects  The groups the product on the line belongs to  | |
| line_id | integer  The number of the line (or id), must be unique between all items.  | 
| quantity | number  Default:  1  The quantity of the product in the item line.  | 
| description | string   | 
| description_alias | string  Short description / title of the product  | 
| eligible_for_discount | boolean   | 
object (Dimension)   Identify item attributes, such as size and color  | |
Array of objects (DiscountItem)    | |
Array of objects  Additions, customization of the item. The gross_amount
for an   | |
object   | |
| external_id | string  External ID related to the item.  | 
object  Relationship with another line item. An item with a  An item with  An item with   | |
| salesperson_id | string  Id of the sales person if other then the operator  | 
| salesperson_name | string  Name of the sales person  | 
| comment | string  <= 255 characters   comment on the item  | 
| reversed_reason | string  Reverse the item from an order Applicable only if the draft is created to update an existing order  | 
object  Specify the payout rule that should be used when calculating the payout split for this item.  | 
{- "id": "175938",
 - "status": "string",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
} 
}{- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "version": 0,
 - "events": [
- {
- "event_type": "api-event",
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "version": 0,
 - "request": {
- "path": "string",
 - "method": "string",
 - "body": "string"
 
}, - "draft_id": "string"
 
} 
], - "options": {
- "order_time_to_live": 94672800,
 - "generate_order_id": "UUID",
 - "order_id": "string",
 - "replace": "order",
 - "payout": {
- "rules": [
- {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": 10,
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b"
 
} 
] 
} 
] 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b"
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c"
 
} 
] 
} 
], - "metadata": { }
 
} 
], - "resolve_rule_id": "order.items.store.id",
 - "resolve_rule_type": "string"
 
}, - "split_draft": false,
 - "serial_order_number_suffix": false,
 - "multiple_authorizations": false
 
}, - "order": {
- "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "stores": [
- {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
} 
] 
} 
}Updates a draft with new item
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| id required  | string <uuid>   The resource identifier string  | 
| apply_discounts | boolean  Default:  false  Calculate available discounts and apply them to the order. Requires additional scope for accessing the DealEngine, one of 
 The  
 
  | 
draft line item resource
| gross_amount required  | integer  Monetary amount in smallest unit for the currency before discounts  | 
required  | Array of objects (TaxItem)   non-empty    | 
| id | string  The ID or SKU of the product on the line  | 
| status | string  The item status  | 
| metadata | object  Additional details about the item, key values will be included
as   | 
Array of objects  The groups the product on the line belongs to  | |
| line_id | integer  The number of the line (or id), must be unique between all items.  | 
| quantity | number  Default:  1  The quantity of the product in the item line.  | 
| description | string   | 
| description_alias | string  Short description / title of the product  | 
| eligible_for_discount | boolean   | 
object (Dimension)   Identify item attributes, such as size and color  | |
Array of objects (DiscountItem)    | |
Array of objects  Additions, customization of the item. The gross_amount
for an   | |
object   | |
| external_id | string  External ID related to the item.  | 
object  Relationship with another line item. An item with a  An item with  An item with   | |
| salesperson_id | string  Id of the sales person if other then the operator  | 
| salesperson_name | string  Name of the sales person  | 
| comment | string  <= 255 characters   comment on the item  | 
| reversed_reason | string  Reverse the item from an order Applicable only if the draft is created to update an existing order  | 
object  Specify the payout rule that should be used when calculating the payout split for this item.  | 
{- "id": "175938",
 - "status": "string",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
} 
}{- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "version": 0,
 - "events": [
- {
- "event_type": "api-event",
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "version": 0,
 - "request": {
- "path": "string",
 - "method": "string",
 - "body": "string"
 
}, - "draft_id": "string"
 
} 
], - "options": {
- "order_time_to_live": 94672800,
 - "generate_order_id": "UUID",
 - "order_id": "string",
 - "replace": "order",
 - "payout": {
- "rules": [
- {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": 10,
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b"
 
} 
] 
} 
] 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b"
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c"
 
} 
] 
} 
], - "metadata": { }
 
} 
], - "resolve_rule_id": "order.items.store.id",
 - "resolve_rule_type": "string"
 
}, - "split_draft": false,
 - "serial_order_number_suffix": false,
 - "multiple_authorizations": false
 
}, - "order": {
- "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "stores": [
- {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
} 
] 
} 
}Retrieve Order details
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
| include_events | Array of strings  Default:  "false" Items Enum: "false" "true" "api-event" "service-event"   include order events in response  | 
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "cancelled_reason": "customer",
 - "cancelled_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "cancelled_at": "2019-08-24T14:15:22Z",
 - "closed_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "closed_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "payment_status": "pending",
 - "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "payment_details": {
- "remaining_capture_amount": 27840,
 - "remaining_refund_amount": 27840,
 - "remaining_cancellation_amount": 27840,
 - "amount_due": 27840,
 - "remaining_authorization_amount": 27840
 
}, - "sessions": [
- {
- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "items": [
- null
 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "metadata": { },
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
] 
} 
], - "authorizations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "captures": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "refunds": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "cancellations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "comments": [
- {
- "id": "string",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "string",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "body": "string",
 - "visibility": "private"
 
} 
], - "delivery_id": "string",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "state": "string",
 - "events": [
- {
- "event_type": "api-event"
 
} 
] 
}Update an order
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
| include_events | Array of strings  Default:  "false" Items Enum: "false" "true" "api-event" "service-event"   include order events in response  | 
object (Customer)    | |
object (ContactObject)    | |
object (ContactObject)    | |
| metadata | object  Additional data related to the order  | 
| comment | string  <= 255 characters   Comment on the order  | 
| salesperson_id | string  Id of the sales person if other then the operator  | 
| salesperson_name | string  Name of the sales person  | 
| delivery_at | string <date-time>   Requested delivery time by the customer, default value is ASAP relative to when the order was created.  | 
| pickup_at | string <date-time>   Requested pickup time for the courier  | 
| courier_id | string  Id of the courier responsible for the delivery  | 
| pre_order | boolean  Customer requested the delivery to be later, i.e not ASAP, see delivery_at for when the delivery should be completed.  | 
| time_to_live | integer  >= 86400   Time-To-Live (TTL) for the order created in seconds. The value is interpreted as a delta from the time that an order was last modified (update_at). All drafts related to an order will be deleted when the TTL expires and the order will be emptied for all data except 
  | 
Array of objects (OrderTravelItinerary)    | |
Array of objects (OrderExternalId)    | |
Array of objects  Update status on order items  | |
Array of objects (OrderExternalLink)   order update resource  | 
{- "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true
 
}, - "email": {
- "consent": true
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "line_id": 1
 
} 
], - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
] 
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "cancelled_reason": "customer",
 - "cancelled_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "cancelled_at": "2019-08-24T14:15:22Z",
 - "closed_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "closed_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "payment_status": "pending",
 - "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "payment_details": {
- "remaining_capture_amount": 27840,
 - "remaining_refund_amount": 27840,
 - "remaining_cancellation_amount": 27840,
 - "amount_due": 27840,
 - "remaining_authorization_amount": 27840
 
}, - "sessions": [
- {
- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "items": [
- null
 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "metadata": { },
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
] 
} 
], - "authorizations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "captures": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "refunds": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "cancellations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "comments": [
- {
- "id": "string",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "string",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "body": "string",
 - "visibility": "private"
 
} 
], - "delivery_id": "string",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "state": "string",
 - "events": [
- {
- "event_type": "api-event"
 
} 
] 
}Create a new order event
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
order event
| state required  | string  Default:  "success"  Enum: "error" "failure" "success" "pending"   The state of the event  | 
| service required  | string  The type of service used, used to differentiate this status from other services  | 
| service_status required  | string  The status reported by the service  | 
| description | string  A short description of the reason for the status  | 
| metadata | object  Additional service data related to the event  | 
{- "state": "error",
 - "description": "food prepared",
 - "service": "string",
 - "service_status": "ready_for_pickup",
 - "metadata": {
- "pickup_location": {
- "latitude": 37.42242,
 - "longitude": -122.08585,
 - "postal_code": "0342",
 - "address": "Smallwei"
 
} 
} 
}{- "event_type": "api-event",
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "version": 0,
 - "request": {
- "path": "string",
 - "method": "string",
 - "body": "string"
 
}, - "draft_id": "string"
 
}Delete an order comment
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
| comment_id required  | string  The resource identifier string  | 
| include_events | Array of strings  Default:  "false" Items Enum: "false" "true" "api-event" "service-event"   include order events in response  | 
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "cancelled_reason": "customer",
 - "cancelled_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "cancelled_at": "2019-08-24T14:15:22Z",
 - "closed_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "closed_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "payment_status": "pending",
 - "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "payment_details": {
- "remaining_capture_amount": 27840,
 - "remaining_refund_amount": 27840,
 - "remaining_cancellation_amount": 27840,
 - "amount_due": 27840,
 - "remaining_authorization_amount": 27840
 
}, - "sessions": [
- {
- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "items": [
- null
 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "metadata": { },
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
] 
} 
], - "authorizations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "captures": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "refunds": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "cancellations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "comments": [
- {
- "id": "string",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "string",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "body": "string",
 - "visibility": "private"
 
} 
], - "delivery_id": "string",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "state": "string",
 - "events": [
- {
- "event_type": "api-event"
 
} 
] 
}Create a new order comment
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
| include_events | Array of strings  Default:  "false" Items Enum: "false" "true" "api-event" "service-event"   include order events in response  | 
| body required  | string   | 
| visibility | 
{- "body": "string",
 - "visibility": "private"
 
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "cancelled_reason": "customer",
 - "cancelled_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "cancelled_at": "2019-08-24T14:15:22Z",
 - "closed_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "closed_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "payment_status": "pending",
 - "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "payment_details": {
- "remaining_capture_amount": 27840,
 - "remaining_refund_amount": 27840,
 - "remaining_cancellation_amount": 27840,
 - "amount_due": 27840,
 - "remaining_authorization_amount": 27840
 
}, - "sessions": [
- {
- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "items": [
- null
 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "metadata": { },
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
] 
} 
], - "authorizations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "captures": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "refunds": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "cancellations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "comments": [
- {
- "id": "string",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "string",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "body": "string",
 - "visibility": "private"
 
} 
], - "delivery_id": "string",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "state": "string",
 - "events": [
- {
- "event_type": "api-event"
 
} 
] 
}Cancel the Order
scopes:
A cancel event will be added to the order
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
order resource
| cancelled_reason | any  The reason why the order was canceled. 
  | 
{- "cancelled_reason": "customer"
 
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "cancelled_reason": "customer",
 - "cancelled_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "cancelled_at": "2019-08-24T14:15:22Z",
 - "closed_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "closed_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "payment_status": "pending",
 - "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "payment_details": {
- "remaining_capture_amount": 27840,
 - "remaining_refund_amount": 27840,
 - "remaining_cancellation_amount": 27840,
 - "amount_due": 27840,
 - "remaining_authorization_amount": 27840
 
}, - "sessions": [
- {
- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "items": [
- null
 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "metadata": { },
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
] 
} 
], - "authorizations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "captures": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "refunds": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "cancellations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "comments": [
- {
- "id": "string",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "string",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "body": "string",
 - "visibility": "private"
 
} 
], - "delivery_id": "string",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "state": "string",
 - "events": [
- {
- "event_type": "api-event"
 
} 
] 
}Close the order
scopes:
A close event will be added to the order
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
| include_events | Array of strings  Default:  "false" Items Enum: "false" "true" "api-event" "service-event"   include order events in response  | 
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "cancelled_reason": "customer",
 - "cancelled_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "cancelled_at": "2019-08-24T14:15:22Z",
 - "closed_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "closed_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "payment_status": "pending",
 - "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "payment_details": {
- "remaining_capture_amount": 27840,
 - "remaining_refund_amount": 27840,
 - "remaining_cancellation_amount": 27840,
 - "amount_due": 27840,
 - "remaining_authorization_amount": 27840
 
}, - "sessions": [
- {
- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "items": [
- null
 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "metadata": { },
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
] 
} 
], - "authorizations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "captures": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "refunds": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "cancellations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "comments": [
- {
- "id": "string",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "string",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "body": "string",
 - "visibility": "private"
 
} 
], - "delivery_id": "string",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "state": "string",
 - "events": [
- {
- "event_type": "api-event"
 
} 
] 
}Re-open a closed order
scopes:
A open event will be added to the order
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
| include_events | Array of strings  Default:  "false" Items Enum: "false" "true" "api-event" "service-event"   include order events in response  | 
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "cancelled_reason": "customer",
 - "cancelled_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "cancelled_at": "2019-08-24T14:15:22Z",
 - "closed_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "closed_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "payment_status": "pending",
 - "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "payment_details": {
- "remaining_capture_amount": 27840,
 - "remaining_refund_amount": 27840,
 - "remaining_cancellation_amount": 27840,
 - "amount_due": 27840,
 - "remaining_authorization_amount": 27840
 
}, - "sessions": [
- {
- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "items": [
- null
 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "metadata": { },
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
] 
} 
], - "authorizations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "captures": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "refunds": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "cancellations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "comments": [
- {
- "id": "string",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "string",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "body": "string",
 - "visibility": "private"
 
} 
], - "delivery_id": "string",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "state": "string",
 - "events": [
- {
- "event_type": "api-event"
 
} 
] 
}Retrieve details about a session
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
| session_id required  | string  The resource identifier string  | 
{- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "items": [
- null
 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "metadata": { },
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
] 
}Initiate a payment session for the order.
scopes:
A session event will be added to the order
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
order session
required  | Array of objects  Selected items from the order  | 
required  | object (SessionUrls)    | 
| profile_id required  | string  Configuration profile for the session to create  | 
| processed_at | string <date-time>   The date and time when the capture was processed by payment gateway  | 
| metadata | object  Additional details about the operation  | 
object  Present only for Express Checkout sessions.An Express Checkout session is a session where the end user will submit a shipping address and then select a shipping option before the before a payment method is selected and the payment is initiated. Endpoints used in the Express Checkout flow.  | |
| merchant_reference | string   | 
object (ShippingOption)   A shipping option  | 
{- "items": [
- null
 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "metadata": { },
 - "express": {
- "shipping_options": [
- {
- "id": "bring-pick-up-00001",
 - "line_id": "bring-pick-up-00001-location-0a1f6b",
 - "countries": [
- "NO"
 
], - "amount": 3900,
 - "vat_amount": 975,
 - "vat": 25,
 - "title": "Standard",
 - "description": "Pick up at your nearest postal office",
 - "delivery_method": "pick_up",
 - "operator": "Bring",
 - "operator_product_id": "pick-up-00001-location-0a1f6b",
 - "eta": {
- "working_days": [
- 1,
 - 2
 
], - "shipping_day_of_week": 3,
 - "arrival_day_of_week": 3,
 - "starts_at": "2020-10-14T19:00:00Z",
 - "ends_at": "2020-10-14T20:00:00Z"
 
}, - "time_slot": {
- "starts_at": "2020-10-14T19:00:00Z",
 - "ends_at": "2020-10-14T20:00:00Z"
 
}, - "pick_up_address": {
- "first_name": "John",
 - "last_name": "Doe",
 - "address_line": "string",
 - "address_line_2": "string",
 - "co_address": "Land Lord",
 - "business_name": "string",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "country": "NO",
 - "phone_number": "string",
 - "email": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "comment": "string",
 - "organization_number": "string",
 - "organization_type": "string",
 - "customer_reference": "string",
 - "cost_center": "string",
 - "website_url": "string",
 - "opening_hours": {
- "open_now": true,
 - "periods": [
- {
- "opens_at": "08:00",
 - "closes_at": "16:00",
 - "day_of_week": 1
 
} 
], - "timezone": "Europe/Oslo"
 
}, - "distance": 0
 
}, - "metadata": {
- "operator_dest": "XAB1239",
 - "number_x": 1921
 
}, - "environmental_data": {
- "description": "Fossil free",
 - "details": [
- {
- "label": "Carbon offset",
 - "value": "1KG CO2"
 
} 
] 
}, 
} 
], - "shipping_mode": "shipping_required",
 - "discount_codes": {
- "max_count": 0,
 
}, - "customer_types": [
- "b2c",
 - "b2b"
 
] 
}, - "profile_id": "string",
 - "url": {
}, - "merchant_reference": "string",
 - "shipping_option": {
- "id": "bring-pick-up-00001",
 - "line_id": "bring-pick-up-00001-location-0a1f6b",
 - "countries": [
- "NO"
 
], - "amount": 3900,
 - "vat_amount": 975,
 - "vat": 25,
 - "title": "Standard",
 - "description": "Pick up at your nearest postal office",
 - "delivery_method": "pick_up",
 - "operator": "Bring",
 - "operator_product_id": "pick-up-00001-location-0a1f6b",
 - "eta": {
- "working_days": [
- 1,
 - 2
 
], - "shipping_day_of_week": 3,
 - "arrival_day_of_week": 3,
 - "starts_at": "2020-10-14T19:00:00Z",
 - "ends_at": "2020-10-14T20:00:00Z"
 
}, - "time_slot": {
- "starts_at": "2020-10-14T19:00:00Z",
 - "ends_at": "2020-10-14T20:00:00Z"
 
}, - "pick_up_address": {
- "first_name": "John",
 - "last_name": "Doe",
 - "address_line": "string",
 - "address_line_2": "string",
 - "co_address": "Land Lord",
 - "business_name": "string",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "country": "NO",
 - "phone_number": "string",
 - "email": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "comment": "string",
 - "organization_number": "string",
 - "organization_type": "string",
 - "customer_reference": "string",
 - "cost_center": "string",
 - "website_url": "string",
 - "opening_hours": {
- "open_now": true,
 - "periods": [
- {
- "opens_at": "08:00",
 - "closes_at": "16:00",
 - "day_of_week": 1
 
} 
], - "timezone": "Europe/Oslo"
 
}, - "distance": 0
 
}, - "metadata": {
- "operator_dest": "XAB1239",
 - "number_x": 1921
 
}, - "environmental_data": {
- "description": "Fossil free",
 - "details": [
- {
- "label": "Carbon offset",
 - "value": "1KG CO2"
 
} 
] 
}, 
} 
}{- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "items": [
- null
 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "metadata": { },
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
] 
}Retrieve details about a capture
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
| capture_id required  | string <uuid>   The resource identifier string  | 
{- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
}Create a capture for an order
scopes:
A capture event will be added to the order
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
order capture
required  | Array of objects  Selected items from the order  | 
| processed_at | string <date-time>   The date and time when the payment operation was processed by payment gateway  | 
| processed_by | string  The gateway the processed the payment operation  | 
object   | |
| metadata | object  Additional details about the operation  | 
| success | boolean  The result from the operation.  | 
| authorization_id | string  <= 40 characters   The authorization for this operation. Only included if the order
was created with   | 
{- "items": [
- {
- "amount": 27840,
 - "line_id": 0
 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "success": true,
 - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
}{- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
}Retrieve specific refund
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
| refund_id required  | string <uuid>   The resource identifier string  | 
{- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
}Create a refund for an order
scopes:
A refund event will be added to the order
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
order refund
required  | Array of objects  Selected items from the order  | 
| processed_at | string <date-time>   The date and time when the payment operation was processed by payment gateway  | 
| processed_by | string  The gateway the processed the payment operation  | 
object   | |
| metadata | object  Additional details about the operation  | 
| success | boolean  The result from the operation.  | 
| authorization_id | string  <= 40 characters   The authorization for this operation. Only included if the order
was created with   | 
{- "items": [
- {
- "amount": 27840,
 - "line_id": 0
 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "success": true,
 - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
}{- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
}Retrieve details about a cancellation
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
| cancellation_id required  | string <uuid>   The resource identifier string  | 
{- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
}Create a cancellation for an order
scopes:
An cancellation event will be added to the order
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
order cancellation
required  | Array of objects  Selected items from the order  | 
| processed_at | string <date-time>   The date and time when the payment operation was processed by payment gateway  | 
| processed_by | string  The gateway the processed the payment operation  | 
object   | |
| metadata | object  Additional details about the operation  | 
| success | boolean  The result from the operation.  | 
| authorization_id | string  <= 40 characters   The authorization for this operation. Only included if the order
was created with   | 
{- "items": [
- {
- "amount": 27840,
 - "line_id": 0
 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "success": true,
 - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
}{- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
}Retrieve a list of draft orders
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| starting_after | string <uuid>   cursor for use in pagination. starting_after is an object ID
that defines your place in the list. For instance, if you make
a list request and receive 100 objects, ending with   | 
| limit | integer  [ 1 .. 100 ]   Default:  10  A limit on the number of objects to be returned. Limit can range between 1 and 100 items, and the default is 10 items.  | 
| customer_id | string  The resource identifier string  | 
| status | Array of strings Items Enum: "open" "completed" "deleted"   filter by draft order status  | 
| created_at.gte | string <date>   filter by created_at, greater than or equal (after)  | 
| created_at.lte | string <date>   filter by created_at, less than or equal (before)  | 
| net_amount.gte | integer  >= 0   Lower limit for filtering on order net_amount.  | 
| net_amount.lte | integer  >= 0   Upper limit for filtering on order net_amount.  | 
| currency | Array of strings <iso-4217> [ items <iso-4217 > ]  Filter on order currency (3-letter currency code)  | 
| search | string  Will try to match the search to either order_id, external_ids or customer phone_number, email, name or customer_id.  | 
{- "draft_orders": [
- {
- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "version": 0,
 - "events": [
- {
- "event_type": "api-event",
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "version": 0,
 - "request": {
- "path": "string",
 - "method": "string",
 - "body": "string"
 
}, - "draft_id": "string"
 
} 
], - "options": {
- "order_time_to_live": 94672800,
 - "generate_order_id": "UUID",
 - "order_id": "string",
 - "replace": "order",
 - "payout": {
- "rules": [
- {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": 10,
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b"
 
} 
] 
} 
] 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a"
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b"
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c"
 
} 
] 
} 
], - "metadata": { }
 
} 
], - "resolve_rule_id": "order.items.store.id",
 - "resolve_rule_type": "string"
 
}, - "split_draft": false,
 - "serial_order_number_suffix": false,
 - "multiple_authorizations": false
 
}, - "order": {
- "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": null,
 - "amount": null
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": null,
 - "address_line_2": null,
 - "postal_code": null,
 - "postal_place": null,
 - "latitude": null,
 - "longitude": null,
 - "country": null
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": null,
 - "address_line_2": null,
 - "postal_code": null,
 - "postal_place": null,
 - "latitude": null,
 - "longitude": null,
 - "country": null
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- null
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- null
 
], - "pick_up_address": {
- "address_line": null,
 - "address_line_2": null,
 - "postal_code": null,
 - "postal_place": null,
 - "latitude": null,
 - "longitude": null,
 - "country": null
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": null,
 - "address_line_2": null,
 - "postal_code": null,
 - "postal_place": null,
 - "latitude": null,
 - "longitude": null,
 - "country": null
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": null,
 - "address_line_2": null,
 - "postal_code": null,
 - "postal_place": null,
 - "latitude": null,
 - "longitude": null,
 - "country": null
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": null,
 - "address_line_2": null,
 - "postal_code": null,
 - "postal_place": null,
 - "latitude": null,
 - "longitude": null,
 - "country": null
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- null
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": null,
 - "address_line_2": null,
 - "postal_code": null,
 - "postal_place": null,
 - "latitude": null,
 - "longitude": null,
 - "country": null
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": null,
 - "address_line_2": null,
 - "postal_code": null,
 - "postal_place": null,
 - "latitude": null,
 - "longitude": null,
 - "country": null
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- null
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": null,
 - "address_line_2": null,
 - "postal_code": null,
 - "postal_place": null,
 - "latitude": null,
 - "longitude": null,
 - "country": null
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": null,
 - "address_line_2": null,
 - "postal_code": null,
 - "postal_place": null,
 - "latitude": null,
 - "longitude": null,
 - "country": null
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- null
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": null,
 - "address_line_2": null,
 - "postal_code": null,
 - "postal_place": null,
 - "latitude": null,
 - "longitude": null,
 - "country": null
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": null,
 - "address_line_2": null,
 - "postal_code": null,
 - "postal_place": null,
 - "latitude": null,
 - "longitude": null,
 - "country": null
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- null
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": null,
 - "address_line_2": null,
 - "postal_code": null,
 - "postal_place": null,
 - "latitude": null,
 - "longitude": null,
 - "country": null
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": null,
 - "address_line_2": null,
 - "postal_code": null,
 - "postal_place": null,
 - "latitude": null,
 - "longitude": null,
 - "country": null
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- null
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "stores": [
- {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
} 
] 
} 
} 
] 
}Retrieve list of cancellations for an order
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
{- "cancellations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
] 
}Retrieve list of captures for an order
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
{- "captures": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
] 
}Retrieve a list of latest order events
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
{- "state": "string",
 - "events": [
- {
- "event_type": "api-event"
 
} 
] 
}Retrieve list of refunds for an order
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
{- "refunds": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
] 
}Retrieve list of sessions for an order
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| order_id required  | string  The resource identifier string  | 
{- "sessions": [
- {
- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "items": [
- null
 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "metadata": { },
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
] 
} 
] 
}Retrieve a list of orders
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| starting_after | string <uuid>   cursor for use in pagination. starting_after is an object ID
that defines your place in the list. For instance, if you make
a list request and receive 100 objects, ending with   | 
| limit | integer  [ 1 .. 100 ]   Default:  10  A limit on the number of objects to be returned. Limit can range between 1 and 100 items, and the default is 10 items.  | 
| status | Array of strings Items Enum: "open" "closed" "cancelled"   filter by order status  | 
| payment_status | Array of strings Items Enum: "pending" "partially_paid" "paid" "partially_refunded" "refunded"   filter by payment status  | 
| created_at.gte | string <date>   filter by created_at, greater than or equal (after)  | 
| created_at.lte | string <date>   filter by created_at, less than or equal (before)  | 
| include_events | Array of strings  Default:  "false" Items Enum: "false" "true" "api-event" "service-event"   include order events in response  | 
| card_brand | Array of strings  Filter on payment details, the card brand for payment  | 
| card_number | Array of strings <\s{4}> [ items <\s{4} > ]  Filter on payment details, the last 4 numbers for the card  | 
| psp | Array of strings  Filter on payment details, psp  | 
| payment_product | Array of strings  Filter on payment details, payment product  | 
| payment_product_type | Array of strings  Filter on payment details, payment product type  | 
| net_amount.gte | integer  >= 0   Lower limit for filtering on order net_amount.  | 
| net_amount.lte | integer  >= 0   Upper limit for filtering on order net_amount.  | 
| currency | Array of strings <iso-4217> [ items <iso-4217 > ]  Filter on order currency (3-letter currency code)  | 
| search | string  Will try to match the search to either order_id, external_ids or customer phone_number, email, name or customer_id.  | 
| itinerary_travel_mode | Array of strings Items Enum: "BUS" "CAR" "FERRY" "METRO" "TAXI" "TRAIN" "TRAM" "WALK" "WAIT" "CUSTOM"    | 
| itinerary_arrival_address | string   | 
| itinerary_departure_address | string   | 
| items_discount_lines_discount_type | Array of strings Items Enum: "customer" "periodic" "manual" "loyalty" "total" "employee" "external"    | 
{- "orders": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "cancelled_reason": "customer",
 - "cancelled_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "cancelled_at": "2019-08-24T14:15:22Z",
 - "closed_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "closed_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "payment_status": "pending",
 - "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "payment_details": {
- "remaining_capture_amount": 27840,
 - "remaining_refund_amount": 27840,
 - "remaining_cancellation_amount": 27840,
 - "amount_due": 27840,
 - "remaining_authorization_amount": 27840
 
}, - "sessions": [
- {
- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "items": [
- null
 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "metadata": { },
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
] 
} 
], - "authorizations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": null,
 - "amount": null
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "captures": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": null,
 - "amount": null
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "refunds": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": null,
 - "amount": null
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "cancellations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": null,
 - "amount": null
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "comments": [
- {
- "id": "string",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "string",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "body": "string",
 - "visibility": "private"
 
} 
], - "delivery_id": "string",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "state": "string",
 - "events": [
- {
- "event_type": "api-event"
 
} 
] 
} 
] 
}Retrieve Order details for an customer
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| customer_id required  | string  The resource identifier string  | 
| order_id required  | string  The resource identifier string  | 
| include_events | Array of strings  Default:  "false" Items Enum: "false" "true" "service-event"   include order events in response  | 
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "cancelled_reason": "customer",
 - "cancelled_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "cancelled_at": "2019-08-24T14:15:22Z",
 - "closed_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "closed_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "payment_status": "pending",
 - "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "payment_details": {
- "remaining_capture_amount": 27840,
 - "remaining_refund_amount": 27840,
 - "remaining_cancellation_amount": 27840,
 - "amount_due": 27840,
 - "remaining_authorization_amount": 27840
 
}, - "sessions": [
- {
- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "items": [
- null
 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "metadata": { },
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
] 
} 
], - "authorizations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "captures": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "refunds": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "cancellations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "comments": [
- {
- "id": "string",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "string",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "body": "string",
 - "visibility": "private"
 
} 
], - "delivery_id": "string",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "state": "string",
 - "events": [
- {
- "event_type": "api-event"
 
} 
] 
}Retrieve a list of orders belonging to a customer user
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| customer_id required  | string  The resource identifier string  | 
| starting_after | string <uuid>   cursor for use in pagination. starting_after is an object ID
that defines your place in the list. For instance, if you make
a list request and receive 100 objects, ending with   | 
| limit | integer  [ 1 .. 100 ]   Default:  10  A limit on the number of objects to be returned. Limit can range between 1 and 100 items, and the default is 10 items.  | 
| status | Array of strings Items Enum: "open" "closed" "cancelled"   filter by order status  | 
| payment_status | Array of strings Items Enum: "pending" "partially_paid" "paid" "partially_refunded" "refunded"   filter by payment status  | 
| created_at.gte | string <date>   filter by created_at, greater than or equal (after)  | 
| created_at.lte | string <date>   filter by created_at, less than or equal (before)  | 
| include_events | Array of strings  Default:  "false" Items Enum: "false" "true" "service-event"   include order events in response  | 
{- "orders": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "cancelled_reason": "customer",
 - "cancelled_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "cancelled_at": "2019-08-24T14:15:22Z",
 - "closed_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "closed_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "payment_status": "pending",
 - "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "payment_details": {
- "remaining_capture_amount": 27840,
 - "remaining_refund_amount": 27840,
 - "remaining_cancellation_amount": 27840,
 - "amount_due": 27840,
 - "remaining_authorization_amount": 27840
 
}, - "sessions": [
- {
- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "items": [
- null
 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "metadata": { },
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
] 
} 
], - "authorizations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": null,
 - "amount": null
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "captures": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": null,
 - "amount": null
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "refunds": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": null,
 - "amount": null
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "cancellations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": null,
 - "amount": null
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "comments": [
- {
- "id": "string",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "string",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "body": "string",
 - "visibility": "private"
 
} 
], - "delivery_id": "string",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "state": "string",
 - "events": [
- {
- "event_type": "api-event"
 
} 
] 
} 
] 
}Retrieve Order details belonging to a store
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| store_id required  | string  The resource identifier string  | 
| order_id required  | string  The resource identifier string  | 
| include_events | Array of strings  Default:  "false" Items Enum: "false" "true" "service-event"   include order events in response  | 
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "cancelled_reason": "customer",
 - "cancelled_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "cancelled_at": "2019-08-24T14:15:22Z",
 - "closed_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "closed_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "payment_status": "pending",
 - "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "payment_details": {
- "remaining_capture_amount": 27840,
 - "remaining_refund_amount": 27840,
 - "remaining_cancellation_amount": 27840,
 - "amount_due": 27840,
 - "remaining_authorization_amount": 27840
 
}, - "sessions": [
- {
- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "items": [
- null
 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "metadata": { },
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
] 
} 
], - "authorizations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "captures": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "refunds": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "cancellations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": "string",
 - "amount": 0
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "comments": [
- {
- "id": "string",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "string",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "body": "string",
 - "visibility": "private"
 
} 
], - "delivery_id": "string",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "state": "string",
 - "events": [
- {
- "event_type": "api-event"
 
} 
] 
}Retrieve a list of orders belonging to a store
scopes:
| aid required  | string <^[PT]{1}\d{8}$>   = 9 characters   An id that uniquely identifies the account.  | 
| store_id required  | string  The resource identifier string  | 
| starting_after | string <uuid>   cursor for use in pagination. starting_after is an object ID
that defines your place in the list. For instance, if you make
a list request and receive 100 objects, ending with   | 
| limit | integer  [ 1 .. 100 ]   Default:  10  A limit on the number of objects to be returned. Limit can range between 1 and 100 items, and the default is 10 items.  | 
| status | Array of strings Items Enum: "open" "closed" "cancelled"   filter by order status  | 
| payment_status | Array of strings Items Enum: "pending" "partially_paid" "paid" "partially_refunded" "refunded"   filter by payment status  | 
| created_at.gte | string <date>   filter by created_at, greater than or equal (after)  | 
| created_at.lte | string <date>   filter by created_at, less than or equal (before)  | 
| include_events | Array of strings  Default:  "false" Items Enum: "false" "true" "service-event"   include order events in response  | 
{- "orders": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "updated_at": "2019-08-24T14:15:22Z",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "cancelled_reason": "customer",
 - "cancelled_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "cancelled_at": "2019-08-24T14:15:22Z",
 - "closed_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "closed_at": "2019-08-24T14:15:22Z",
 - "status": "open",
 - "payment_status": "pending",
 - "customer": {
- "first_name": "John",
 - "last_name": "Doe",
 - "id": "string",
 - "gender": "male",
 - "email": "customer@example.com",
 - "metadata": {
- "dob_year": 1985
 
}, - "phone_number": "+4799999999",
 - "addresses": [
- {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "type": "string",
 - "custom_type": "string"
 
} 
], - "pays_tax": false,
 - "date_of_birth": "1990-09-20",
 - "favorite_store": "string",
 - "company": {
- "organization_number": "123456789MVA",
 - "bussiness_name": "TKP tech AS",
 - "department": "sales department",
 - "industry": "computer industry",
 - "website": "string",
 - "number_of_employees": "string"
 
}, - "marketing_consent": {
- "sms": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
}, - "email": {
- "consent": true,
 - "updated_at": "2018-01-12T13:42:00Z"
 
} 
}, - "status": "string",
 - "term": {
- "id": "string"
 
}, - "type": "customer"
 
}, - "gross_amount": 59800,
 - "net_amount": 47840,
 - "total_discount": 23130,
 - "total_manual_discount_amount": 0,
 - "shipping_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "billing_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "first_name": "John",
 - "last_name": "Doe",
 - "comment": "5th floor, use doorbell."
 
}, - "metadata": { },
 - "comment": "string",
 - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "delivery_at": "2019-08-24T14:15:22Z",
 - "pickup_at": "2019-08-24T14:15:22Z",
 - "courier_id": "string",
 - "pre_order": true,
 - "time_to_live": 94672800,
 - "itinerary": [
- {
- "id": "string",
 - "operator": "string",
 - "arrival_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "arrival_at": "string",
 - "departure_address": {
- "id": "string",
 - "name": "string",
 - "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO",
 - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
] 
}, - "departure_at": "string",
 - "travel_mode": "BUS",
 - "route_id": "string",
 - "vehicle_id": "string",
 - "summary": "string",
 - "distance": {
- "value": 0
 
}, - "duration": {
- "value": 0
 
}, - "tickets": [
- {
- "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "passenger_id": [
- "string"
 
] 
} 
], - "line_ids": [
- 0
 
], - "waypoints": [
- {
- "display_name": "string",
 - "latitude": 0,
 - "longitude": 0,
 - "arrival_schedule_at": "string",
 - "departure_schedule_at": "string"
 
} 
] 
} 
], - "external_ids": [
- {
- "id": "string",
 - "source": "string",
 - "description": "string"
 
} 
], - "items": [
- {
- "status": "string",
 - "id": "175938",
 - "metadata": { },
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
], - "line_id": 1,
 - "quantity": 2,
 - "gross_amount": 39800,
 - "net_amount": 27840,
 - "tax_lines": [
- {
- "amount": 5584,
 - "amount_dwh": "5584.0440",
 - "exempt": false,
 - "included_in_price": true,
 - "percentage": 25,
 - "tax_basis": 27920,
 - "tax_basis_dwh": "27920.22",
 - "tax_code": "3",
 - "tax_group": "Vmva-høy"
 
} 
], - "description": "Stablestol for utendørsbruk",
 - "description_alias": "Staplestol",
 - "is_changed": false,
 - "eligible_for_discount": true,
 - "dimension": {
- "color": "string",
 - "size": "string",
 - "style": "string",
 - "config": "string",
 - "variant": "string"
 
}, - "discount_lines": [
- {
- "amount": 23130,
 - "percentage": 10,
 - "discount_type": "customer",
 - "discount_subtype": "campaign-periode-q3",
 - "discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
 - "description": "string",
 - "line_id": 1
 
} 
], - "additions": [
- {
- "id": "C1203",
 - "description": "Extra Cheese",
 - "quantity": 1,
 - "gross_amount": 1000,
 - "groups": [
- {
- "id": "B234",
 - "name": "Stol"
 
}, - {
- "id": "B1",
 - "name": "Møbel"
 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comment": "string"
 
}, - "external_id": "SL02-94821948",
 - "related_item": {
- "line_id": 0,
 - "type": "required"
 
}, - "salesperson_id": "string",
 - "salesperson_name": "string",
 - "comment": "string",
 - "version": 0,
 - "reversed_reason": "string",
 - "dynamic_payout": {
- "rule_type": "string",
 - "rule_id": "string"
 
}, - "payout": {
- "account_id": "string",
 - "rule_type": "order.items.store.id",
 - "rule_id": "sc029",
 - "rule_version": 1,
 - "destinations": [
- {
- "type": "percentage",
 - "value": "10",
 - "destinations": [
- {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5.0",
 - "destination": "account-b",
 - "amount": 3500
 
} 
] 
} 
], - "amount": 4000
 
}, - {
- "type": "flat_amount",
 - "value": "500",
 - "destination": "account-a",
 - "amount": 500
 
}, - {
- "type": "remaining_amount",
 - "destinations": [
- {
- "type": "percentage",
 - "value": "5",
 - "destination": "account-b",
 - "amount": 192
 
}, - {
- "type": "percentage",
 - "value": "95.0",
 - "destination": "account-c",
 - "amount": 38308
 
} 
] 
} 
], - "metadata": { }
 
} 
} 
], - "version": 0,
 - "type": "delivery",
 - "order_number": "order123456",
 - "currency": "NOK",
 - "order_id": "string",
 - "time_to_live_expires_at": "string",
 - "multiple_authorizations": true,
 - "payment_details": {
- "remaining_capture_amount": 27840,
 - "remaining_refund_amount": 27840,
 - "remaining_cancellation_amount": 27840,
 - "amount_due": 27840,
 - "remaining_authorization_amount": 27840
 
}, - "sessions": [
- {
- "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "items": [
- null
 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "metadata": { },
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
] 
} 
], - "authorizations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": null,
 - "amount": null
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "captures": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": null,
 - "amount": null
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "refunds": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": null,
 - "amount": null
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "cancellations": [
- {
- "items": [
- {
- "amount": 27840,
 - "line_id": 0,
 - "payout": {
- "rule_id": "string",
 - "rule_type": "string",
 - "destinations": [
- {
- "destination": null,
 - "amount": null
 
} 
] 
} 
} 
], - "processed_at": "2019-08-24T14:15:22Z",
 - "processed_by": "dintero-checkout",
 - "payment_details": {
- "psp": "Bambora",
 - "payment_id": "string",
 - "payment_product": "bambora",
 - "payment_product_type": "bambora.creditcard",
 - "card": {
- "masked_pan": "4444 **** **** 4448",
 - "type": "Credit",
 - "brand": "Visa",
 - "metadata": { }
 
} 
}, - "metadata": { },
 - "id": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "bd04c959-d159-49b4-a096-2d84e014a8da",
 - "amount": 27840,
 - "success": true,
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "authorization_id": "bd04c959-d159-49b4-a096-2d84e014a8da"
 
} 
], - "discounts": [
- {
- "id": "string",
 - "refs": [
- {
- "id": "string",
 - "amount": 0,
 - "statistics": {
- "amount": 0,
 - "stamp": 0,
 - "usage": 0
 
}, - "stamp": 0,
 - "usages": 0,
 - "items": [
- {
- "line_id": 0,
 - "amount": 0
 
} 
] 
} 
] 
} 
], - "store": {
- "id": "SL02",
 - "organization_number": "123456789MVA",
 - "name": "SC Oslo",
 - "business_name": "SC Oslo AS",
 - "comments": [
- "string"
 
] 
}, - "external_links": [
- {
- "text": "Order Receipt",
 - "public": true
 
} 
], - "attachments": [
- {
- "id": "string",
 - "bus_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "car_reservation": {
- "booking_id": "TV 347794",
 - "line_ids": [
- 0
 
], - "itinerary": [
- {
- "rental_company": "Avis",
 - "drivers_id": [
- "string"
 
], - "pick_up_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "pick_up_at": "2019-08-24T14:15:22Z",
 - "drop_off_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "drop_off_at": "2019-08-24T14:15:22Z",
 - "class": "string"
 
} 
], - "drivers": [
- "string"
 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "ferry_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "metro_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "taxi_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "train_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
}, - "tram_reservation": {
- "booking_id": "NE 138 47794",
 - "line_ids": [
- 0
 
], - "passengers": [
- {
- "id": "string",
 - "title": "string",
 - "first_name": "string",
 - "last_name": "string"
 
} 
], - "itinerary": [
- {
- "departure_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "departure_at": "2019-08-24T14:15:22Z",
 - "arrival_address": {
- "address_line": "Sommerkroveien 34",
 - "address_line_2": "PB 123",
 - "postal_code": "0349",
 - "postal_place": "Oslo",
 - "latitude": 59.942112,
 - "longitude": 10.716991,
 - "country": "NO"
 
}, - "arrival_at": "2019-08-24T14:15:22Z",
 - "operator": "SAS",
 - "class": "string",
 - "line": "string",
 - "seat": "string",
 - "zone": "string",
 - "expires_at": "2019-08-24T14:15:22Z",
 - "activates_at": "2019-08-24T14:15:22Z",
 - "passenger_id": [
- "string"
 
] 
} 
], - "insurance": [
- {
- "insurance_company": "string",
 - "insurance_type": "string"
 
} 
] 
} 
} 
], - "comments": [
- {
- "id": "string",
 - "created_at": "2019-08-24T14:15:22Z",
 - "created_by": "string",
 - "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
 - "deleted_at": "2019-08-24T14:15:22Z",
 - "body": "string",
 - "visibility": "private"
 
} 
], - "delivery_id": "string",
 - "_links": [
- {
- "href": "string",
 - "rel": "draft"
 
} 
], - "state": "string",
 - "events": [
- {
- "event_type": "api-event"
 
} 
] 
} 
] 
}