Id int32 |
ExternalId stringThe external id of the order. |
PersonalId stringThe personal id or organisation number of the customer. |
CustomerId int32The id of the customer that placed the order. |
CustomerTypeId int32Customer type. Usually 1 for private customers and 2 for companies. |
CustomerGroupId int32The id of the customer group that the customer belongs to, if any. |
CustomerGroupName stringThe name of the customer group that the customer belongs to, if any. |
CreatedAt date-timeDate and time when the order was created. |
UpdatedAt date-timeDate and time when the order was last updated. |
CompletedAt date-timeThe date nd time when the order was completed (eg delivered and paid). |
Status stringThe order status.
Possbile values:
cancelled
on-hold
inactive
refunded
partial
pending-payment
backorder
completed
pending |
Currency string |
CurrencyRate doubleThe currency rate to SEK. |
MarketId int32The id of the market that this order originates from. |
MarketName stringThe market name. This is usually equal to the site or channel name. |
Language stringTwo-letter language code. |
OrderTotal double |
ExpectedSum doubleExpected total sum to be paid after discount and balance.
The value is usually taken directly from the payment provider and represents the actual reserved amount.
If this differs from OrderTotal, actions should be taken to ensure they match. This usually happens due to rounding. |
VATTotal double |
OrderValueIncVat doubleOrder value inc vat after discount but before balance. |
OrderValueExVat doubleOrder value ex vat after discount but before balance. |
ItemValueIncVat doubleItem value inc vat excluding fees and discount. |
ItemValueExVat doubleItem value ex vat excluding fees and discount. |
Discount double |
DiscountExVat double |
FromBalance doubleThe amount which was withdrawn from the customers balance inc vat. |
ShippingFee double |
ShippingFeeExVat double |
PaymentFee double |
PaymentFeeExVat double |
Message stringOrder message. Can contain instructions from customer or added details about the order. |
OrderMessages string[]Internal order messages. Can contain internal details about the order. |
PaymentDetails object[]Id int32Unique identifier for this payment detail.
Exception: For some payment options this field can be 0. These orders only have one payment detail. | PaymentId int32 | Name stringThe name of the payment method. | DisplayName stringThe display name of the payment method. | TransactionId stringThe transaction id (external reference). | SecondaryTransactionId stringThe secondary transaction id, if any (external reference). | ReservationNumber stringThe reservation number. This field is not available for all payment methods. | ReservationDate date-time | PaymentDate date-timeThe date all captures have been processed. | Total double | Payed booleanTrue if all captures have been processed. | PaymentFee double | ShippingFee double | PaymentOption stringThe name of the payment option, if any.
This doesn't have to be the same as the payment name. Eg "Direct bank payment", "Card", "Invoice" etc. |
|
ShippingDetails object[]List of shipping details. Id int32The id of the shipping detail. | ShippingId int32Id of the shipping method. | Name stringName of the shipping method. | ParcelNumber stringParcel number (tracking number). | ShippingDate date-time | TrackingUrl string | ExternalDeliveryOptionId stringDelivery option id of the external shipping provider. | ExternalServiceId stringService id of the external shipping provider. | ExternalCarrierId stringCarrier id of the external shipping provider. | PickupPoint string |
|
ShippingAddress objectCompany string | CareOf string | State stringISO code or name of the state, province or district. | Country string | FirstName stringThe first part(s) of the customer name. | LastName stringThe last part(s), or family name of the customer. | Email stringThe email of the customer. | AddressLine1 stringThe first line of the address, usually street and house number. | AddressLine2 stringThe second line of the address. | AddressLine3 stringThe third line of the address. | Zip string | City string | Phone stringThe (land-line) phone number of the customer. | Mobile stringThe SMS-capable number of the customer. | EntryCode stringThe delivery address entry code, if needed for successful delivery. |
|
BillingAddress objectCompany string | CareOf string | State stringISO code or name of the state, province or district. | Country string | FirstName stringThe first part(s) of the customer name. | LastName stringThe last part(s), or family name of the customer. | Email stringThe email of the customer. | AddressLine1 stringThe first line of the address, usually street and house number. | AddressLine2 stringThe second line of the address. | AddressLine3 stringThe third line of the address. | Zip string | City string | Phone stringThe (land-line) phone number of the customer. | Mobile stringThe SMS-capable number of the customer. | EntryCode stringThe delivery address entry code, if needed for successful delivery. |
|
Rows object[]Id int32The id of this order row. | ProductId int32 | Name string | ProductName string | ItemId int32 | ItemName string | ArticleNumber string | Total doubleOrder row total (affected by quantity). | ExpectedTotalPriceIncVat doubleExpected total price inc vat, inc row discount.
The value is usually taken directly from the payment provider and represents the actual paid amount. | DiscountRate doubleOrder row discount rate.
E.g. 10% = 10.0 | Discount doubleOrder row discount sum inc VAT. | ExpectedTotalDiscountIncVat doubleExpected total discount inc vat.
The value is usually taken directly from the payment provider and represents the actual applied discount amount. | VATTotal doubleOrder row total VAT (affected by quantity). | VATRate doubleVAT rate.
E.g. 25% = 0.25. | Quantity int32 | PurchasePrice doublePurchase price of the product. | PaymentDetailId int32A reference to the payment detail that this row belongs to. | ShippingDetailId int32A reference to the shipping detail that this row belongs to. | Market stringThe market that the order row belongs to. | UnitPrice doubleOrder row unit price inc vat, inc row discount. | ProductContainerBuildId int32A reference to the product container build the row belongs to. | Message stringA system message for this row. | CartRowId int32The unique identifier for the cart row from which this order row originates. | ExternalId stringThe identifier for the external row from which this order row originates. | ProductContainerSelectionId int32The identifier for a Product container selection id that is part of the product configurator module | ProductContainerName stringThe name of the product container. | ExternalProductId stringExternal Id of the product. | ExternalProductItemId stringExternal Id of the product item. | ParcelGroupId int32Parcel group id for a shipped order row. | BrandName stringBrand name of the product. | Gtin string | Weight int32The weight of the product item in grams (g). | Length int32The length of the product item in millimeters (mm). | Width int32The width of the product item in millimeters (mm). | Height int32The height of the product item in millimeters (mm). | Color stringProduct color.
E.g. Black. | Variant stringProduct variant.
E.g. Black XL. | CampaignIds string[]The ids for the campaigns applied to this row. | CampaignGroupData stringContains json data describing the different campaign groups belonging to this row.
Fields:
i -> Campaign Number (int), n -> Number of items belonging to this group. | CampaignGroupId int32Contains the the ID of the campaign group this row belongs to. | CampaignNames string[]The names for the campaigns applied to this row. | CategoryId int32The product category for the product on this order row. | RelatedProductsBuildId stringGUID that connects orderrows that are part of a build. | PackingLocationId int32The packing location of this order row. | ProductPriceCampaignId int32The id of the applied product price campaign. | ProductPriceListId int32The id of the applied product price list. | ProductPackageId int32Id of the product package used for this row. | ProductPackageName stringName of the product package used for this row. | ProductPackageGroupId uuidThe unique group id for the product package used for this row.
This separates purchases of multiple packages with the same id. |
|
Refunds object[]Id int32 | OrderRowId int32Reference to the order row that has been refunded. | PaymentDetailId int32Reference to the payment detail that has been refunded. | ReturnId int32Id number of the return. Can be used to group refunds. | ArticleNumber stringArticle number. If the refund is not bound to an order row this field contains an optional refund article number. | CreatedAt date-timeDatetime when the refund was created. | Total double | ReasonCode int32Reason code for the refund. | Reason string | ToBalance booleanShows if the refund was deposited to the customers balance. | Vat doubleVat percent in decimals for the refunded amount. | ItemId int32 | RefundType string |
|
Ip string |
UserAgent string |
ServiceLocation string |
CampaignCode stringCampaign code applied to the order. |
CampaignCodeId int32The internal id of the applied campaign code. |
Percent int32General percent discount applied to the order. |
DesiredDeliveryDate date-timeThe desired delivery date of the order. |
Gender booleanThe gender of the customer.
True = male, False = female, null = unknown. |
CartId int32The id of the cart from which this order originates. |
SessionId stringThe session id for the from which this order originates. |
ExternalOrderStatus int32Possible values: [0 , 10 , 20 , 30 , 40 ] 0 = None
10 = New
20 = Processing
30 = Failed
40 = Done |
CampaignIds string[]The ids for the campaigns applied to this order (not rows). |
CampaignNames string[]The names of the campaigns applied to this order (not rows). |
MetaData objectThe order meta data to store additional information about the order. |
PublicId uuidThe public id of this order. |