Update order
Updates the OrderItems list of an order you have created.
Path parameters
idinteger, int64requiredId of order to update
Body
application/jsonMerchantApiKeystringrequiredWill be provided by Qliro Checkout when setting up merchant account
Length:0 <= x <= 50
OrderItemsobject[]requiredMerchantReferencestringrequiredA string generated by the merchant to identify the order item. The combination of MerchantReference and Price Per Item Including Vat is used to uniquely identify the order item. Maximum length is 200 characters.
Length:x >= 1Pattern:^[\p{L}\s(.)'\-_&,\/–+0-9:|]{1,200}$
Descriptionstring | nullA name or description of the order item.
Length:x <= 4000
Typestring | nullCan be 'Product', 'Discount', 'Fee' or 'Shipping'
Quantityinteger, int32requiredThe number of these items in the cart.
Range:1 <= x <= 2147483647
PricePerItemIncVatnumber, decimalrequiredThe price per item including Value Added Tax. This can be specified with 0, 1 or 2 decimals, e.g. 99, 99.9 or 99.99.
PricePerItemExVatnumber, decimalThe price per item excluding Value Added Tax. This can be specified with 0, 1 or 2 decimals, e.g. 99, 99.9 or 99.99.
VatRatenumber, decimalThe VAT rate for the item. Always specified with 2 decimals, e.g. 25.00 = 2500.
Metadataobject | nullOnly available in create order and update order requests. Can be used to indicate if an item includes some kind of risk. If an item has been flagged with the property HasRisk, then depending on the merchant setup in Qliro Checkout, some payment methods will be disabled. This behavior is customizable in the merchant preferences. It can also be used to indicate that an order item is a subscription. If it is indicated as a subscription Qliro Checkout will show some additional terms for Qliro invoice if Qliro invoice is enabled for the merchant.
HasRiskboolean | nullIf true, order item considered as risk item. Default is false.
Subscriptionobject | nullIt indicates that order item is a subscription if Enabled is true.
Enabledboolean
TravelInformationobject | nullDepartureCountrystring | nullDepartureCitystring | nullDepartureIATACodestring | nullArrivalCountrystring | nullArrivalCitystring | nullArrivalIATACodestring | nullStopOverCountrystring | nullStopOverCitystring | nullStopOverIATACodestring | nullTravelTypestring | nullBookingDatestring, date-timeDepartureDatestring, date-timeReturnDatestring, date-timeDaysToDepartureinteger, int32NoOfPassengersinteger, int32Travelersobject[] | nullFirstNamestring | nullLastNamestring | nullIsMainTravellerbooleanGenderGenderValues:012
DateOfBirthstring, date-time
Classstring | nullAirlinestring | nullNoOfLuggageinteger, int32
Ingridobject | nullWeightinteger, int32 | nullSkustring | nullShippingDateobject | nullStartstring, date-time | nullEndstring, date-time | null
Attributesstring[] | nullDimensionsobject | nullHeightinteger, int32 | nullLengthinteger, int32 | nullWidthinteger, int32 | null
OutOfStockboolean | nullDiscountnumber, decimal | null
MerchantDatastring | nullLength:x <= 250
AvailableShippingMethodsobject[] | nullMerchantReferencestringrequiredA string generated by the merchant to identify the shipping method uniquely. Maximum length is 450 characters.
Length:0 <= x <= 450
ShippingFeeMerchantReferencestring | nullWhen the customer chooses a shipping method in Qliro Checkout, an order item will be added to the cart, including the shipping fee for that particular shipping method. By default, the merchantReference of this fee item will be copied from the selected shipping option. If the ShippingFeeMerchantReference parameter is provided, the merchantReference will be overridden. Maximum length is 450 characters.
Length:0 <= x <= 450
DisplayNamestringrequiredThe name of the shipping method, presented to the customer.
Length:0 <= x <= 100
Descriptionsstring[] | nullAn array of (String) descriptions, presented as extra lines of information to the customer. Maximum length is 200 characters per line and up to 3 lines.
Brandstring | nullA brand connected to the shipping method. If supported by Qliro Checkout, a logotype will be shown in the shipping methods list.
Length:0 <= x <= 50
PriceIncVatnumber, decimalThe price including Value Added Tax. This can be specified with 0, 1 or 2 decimals, e.g. 99, 99.9 or 99.99.
PriceExVatnumber, decimalThe price excluding Value Added Tax. This can be specified with 0, 1 or 2 decimals, e.g. 99, 99.9 or 99.99.
OriginalPricenumber, decimal | nullUse when updating the price of a shippingOption if the old price should be displayed, e.g. to point out shipping was made free because of total price over a certain value.
SupportsAccessCodebooleanIf provided and true, a field will be presented so that the customer can enter an access code. The access code will be optional and have maximum 50 characters. Suitable for home delivery methods.
SupportsDynamicSecondaryOptionsbooleanIf provided and true, a request to MerchantOrderAvailableShippingMethodsUrl will be sent every time the customer clicks on this shipping option. If MerchantOrderAvailableShippingMethodsUrl is not provided, selected shipping option will not be updated with secondary options list.
SecondaryOptionsobject[] | nullAn array of additional options of the shipping method. See details below.
MerchantReferencestringrequiredA string generated by the merchant to identify the Shipping option.
Length:0 <= x <= 450
DisplayNamestringrequiredUser friendly title of the Shipping option
Length:0 <= x <= 100
Citystring | nullUse to provide city of delivery
Length:0 <= x <= 450
Addressstring | nullUse to provide address of delivery
Length:0 <= x <= 450
PostalCodestring | nullUse to provide postal code of delivery
Length:0 <= x <= 100
Descriptionsstring[] | nullUser friendly description of the Shipping option
Coordinatesobject | nullUse to provide Geographical location of delivery.
Latnumber, double | nullLatitude expressed as decimal
Lngnumber, double | nullLongitude expressed as decimal
DeliveryDateInfoobject | nullUse to provide information about delivery date.
DateStartstring, date-time | nullThis field represent the estimated delivery start date of the order. If the date provided is older than today the value will be ignored. If no time offset is sent on the date, date will assume UTC If time offset different than UTC is sent on the date, date be converted to UTC
DateEndstring, date-time | nullThis field represent the estimated delivery end date of the order. If the date provided is older than today the value will be ignored. If no time offset is sent on the date, date will assume UTC If time offset different than UTC is sent on the date, date be converted to UTC
UnitDeliveryDateUnit | nullThis field represent the display type for the delivery date. If no unit is provided a default of date will be used.
Values:012
AdditionalShippingServicesobject[] | nullUse when additional shipping services are available for the shipping option.
MerchantReferencestringrequiredA string generated by the merchant to identify the additional shipping service uniquely. Maximum length is 200 characters.
Length:0 <= x <= 450
DisplayNamestringrequiredThe name of the additional shipping service, presented to the customer.
Length:0 <= x <= 100
Descriptionsstring[] | nullAn array of (String) descriptions, presented as extra lines of information to the customer. Maximum length is 100 characters per line and up to 3 lines.
PriceExVatnumber, decimalThe price excluding Value Added Tax. This can be specified with 0, 1 or 2 decimals, e.g. 99, 99.9 or 99.99.
PriceIncVatnumber, decimalThe price including Value Added Tax. This can be specified with 0, 1 or 2 decimals, e.g. 99, 99.9 or 99.99.
DeliveryDatestring, date-time | nullThis field represent the estimated delivery date of the order, with this selected. Will override the delivery date on Shipping Option
DeliveryDateInfoobject | nullUse to provide information about delivery date.
DateStartstring, date-time | nullThis field represent the estimated delivery start date of the order. If the date provided is older than today the value will be ignored. If no time offset is sent on the date, date will assume UTC If time offset different than UTC is sent on the date, date be converted to UTC
DateEndstring, date-time | nullThis field represent the estimated delivery end date of the order. If the date provided is older than today the value will be ignored. If no time offset is sent on the date, date will assume UTC If time offset different than UTC is sent on the date, date be converted to UTC
UnitDeliveryDateUnit | nullThis field represent the display type for the delivery date. If no unit is provided a default of date will be used.
Values:012
DeliveryDatestring, date-time | nullThis field represent the estimated delivery date of the order. If the date provided is older than today the value will be ignored.
CategoryDisplayNamestring | nullCan be used to group shipping methods. If used it must be set on all included shipping methods. Only 2 category values can be used for a list of shipping methods. Recommended values to use are "HOME_DELIVERY" and "PICKUP" so Qliro Checkout can handle the localizations. Other values will be used as is. Maximum length is 50 characters.
LabelDisplayNamestring | nullTo be used with categories. Only use 3 or less different labels for all shipping options. Recommended values: "Express", "Free" and "Economy". Maximum length is 50 characters.
DeliveryDateInfoobject | nullUse to provide information about delivery date.
DateStartstring, date-time | nullThis field represent the estimated delivery start date of the order. If the date provided is older than today the value will be ignored. If no time offset is sent on the date, date will assume UTC If time offset different than UTC is sent on the date, date be converted to UTC
DateEndstring, date-time | nullThis field represent the estimated delivery end date of the order. If the date provided is older than today the value will be ignored. If no time offset is sent on the date, date will assume UTC If time offset different than UTC is sent on the date, date be converted to UTC
UnitDeliveryDateUnit | nullThis field represent the display type for the delivery date. If no unit is provided a default of date will be used.
Values:012
IsEcoFriendlybooleanUse to mark a shipping method as eco friendly.
OptionLabelsobject[] | nullUse to mark a shipping method with labels.
NamestringrequiredThe name of the shipping option label, presented to the customer.
Length:0 <= x <= 50
DisplayTypestring | nullThe Display Type of the shipping option label, presented to the customer.
Length:0 <= x <= 50
RequireIdentityVerificationboolean | nullShippingAdditionalHeaderstring | nullLength:x <= 300
ApplicableFeesobject | nullFeesRecord<string, object[]> | nullA Dictionary of string and Array of Fees, the key should be the name of a PaymentMethod for which the Array of Fees is applicable
TypestringrequiredThe type of Fee
Length:x >= 1
MerchantReferencestringrequiredA string generated by the merchant to identify the Fee.
Length:x >= 1Pattern:^[\p{L}\s(.)'\-_&,\/–+0-9:|]{1,200}$
AmountIncludingVatnumber, decimalrequiredThe price per item excluding Value Added Tax. This can be specified with 0, 1 or 2 decimals, e.g. 99, 99.9 or 99.99.
AmountExcludingVatnumber, decimalrequiredThe price per item including Value Added Tax. This can be specified with 0, 1 or 2 decimals, e.g. 99, 99.9 or 99.99.
Descriptionstring | nullUser friendly description of the fee
Length:x <= 4000
ShippingConfigurationobject | nullIf you send shipping configs in update call checkoutId and tags that was sent in create order call will be overwritten So make sure to send the checkoutId and all the tags you need or just skip this if Shipping configurations has not changed
Unifaunobject | nullIf you already have integration with unifaun fill in the Unifaun section and contact merchant onboarding to enable the feature
CheckoutIdstring | nullCheckout id of the unifaun checkout that was created with qliro's template
TagsRecord<string, string> | nullUpto 20 tags are allowed. Max length for tag key is 20 letters and for tag value it is 30 letters Note we already send tocountry, tozipcode, language, currency parameters to unifaun. So merchant doesn't need to send them in tags
Ingridobject | nullOptionally configure Delivery Grouping, Vouchers and Attributes for Ingrid
Vouchersstring[] | nullVouchers that can be used in price/filter rules
CartAttributesstring[] | nullAttributes of the Cart. Cart level attributes are specific to the cart or for the full cart contents. Ingrid Delivery Checkout can set varied delivery scenarios based on such attributes. Ex. [“PRIO”, “AB-testID”]
Groupsobject[] | nullOptional specification of group to which the cart items should be assigned.
GroupIdstringrequiredUnique identifier of group passed when doing split of shipments
Length:x >= 1
Headerstring | nullHeader text containing arbitrary information related to the group
Attributesstring[] | nullAttributes list of a single delivery group. Used to control the behaviour of the
cart_attributes()filter rule for each group individuallyContentsobject[]requiredList of cart item splits by each group. For example: Different sku quantities can be split between groups(orders)
Skustring | nullUnique cart item's product identifier
Quantityinteger, int32Quantity of cart item
ExternalIdstring | nullOptional external identifier used when completing the Ingrid session. If not provided, the order's MerchantReference will be used.
MerchantProvidedMetadataobject[] | nullMerchant can send promotion and other information which can be retrieved later using GetOrder call if required. Maximum 30 elements allowed in list.
Keystring | nullMerchant provided metadata element key. Max string length is 50.
Length:0 <= x <= 50
Valuestring | nullMerchant provided metadata element value. Max string length is 250.
Length:0 <= x <= 250
PickupPersonDetailsobject | nullIf you send a non empty object, PickupPersonDetails that was sent in create order call will be overwritten. You can skip this if 3rd party pickup person has not changed.
FirstNamestring | nullPickup person's first name
Length:0 <= x <= 100
LastNamestring | nullPickup person's last name
Length:0 <= x <= 100
Mobilestring | nullPickup person's phone number in international format
Length:0 <= x <= 50
Emailstring | nullPickup person's email
Length:0 <= x <= 255
MerchantConstraintNamestring | nullEnables dynamic filtering of payment channels available in specific orders.
MerchantUpdateVersionstring | nullMerchants cart version. Will be returned by front end api callback onOrderUpdated when data saved is shown in the checkout
Length:1 <= x <= 36
PaymentIdstring | nullCustomerInformationobject | nullCustomer information used to try to identify the customer without user interaction.
Emailstring | nullThe customer's email address
Length:0 <= x <= 255
Addressobject | nullThe customer's address. If provided and complete, the address will be presented as an alternative to the address fetched by Qliro Checkout. For B2B customer treat this address as billing address
PostalCodestring | nullThe postal code of the address.
Length:0 <= x <= 15
Responses
No response body.
ErrorCodestring | nullUnique error code
DetailedErrorMessagestring | nullDetailed error message
ErrorReferencestring, guidA tracking ID from Qliro Checkout
ErrorCodestring | nullUnique error code
DetailedErrorMessagestring | nullDetailed error message
ErrorReferencestring, guidA tracking ID from Qliro Checkout