Return items
Returns items of an order and starts a refund.
The response only confirms that Qliro received the request. Qliro sends the result in a notification with the PaymentTransactionId.
Body
application/jsonRequestIdstring, guidA GUID formatted string used to avoid the same request being executed multiple times. The GUID will be stored for 7 days, and during that time, any requests sent with the same GUID will be denied. https://guidgenerator.com/online-guid-generator.aspx
MerchantApiKeystringrequiredWill be provided by Qliro Checkout when setting up merchant account
Length:0 <= x <= 50
OrderIdinteger, int64The Qliro Checkout order ID
CurrencystringrequiredThree uppercase characters, in accordance with ISO 4217.
Length:x >= 1
Returnsobject[]requiredAn array of objects containing the order items, fees, discounts and PaymentTransactionId.
PaymentTransactionIdinteger, int64requiredA reference to the payment transaction. This reference was communicated in the notification message after a MarkItemsAsShipped call was processed.
OrderItemsobject[]requiredOrder items to return.
MerchantReferencestringrequiredA string generated by the merchant to identify the order item. The combination of MerchantReference and PricePerItemIncVat is used to uniquely identify the order item. Maximum length is 200 characters.
Length:x >= 1
TypestringrequiredCan be 'Product', 'Discount', 'Fee' or 'Shipping'
Length:x >= 1
Quantityinteger, int32requiredThe number of these items that should be added to 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.
VatRatenumber, decimalThe VAT rate for the item. Always specified with 2 decimals, e.g. 25.00 = 2500.
Feesobject[] | nullFees that should be applied to the order.
MerchantReferencestringrequiredA string generated by the merchant to identify the fee item. The combination of MerchantReference and PricePerItemIncVat is used to uniquely identify the fee item. Maximum length is 200 characters.
Length:1 <= x <= 400
Descriptionstring | nullA name or description of the fee item.
Length:x <= 4000
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, 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.
Discountsobject[] | nullDiscounts that should be applied to the order.
MerchantReferencestringrequiredA string generated by the merchant to identify the discount item. The combination of MerchantReference and PricePerItemIncVat is used to uniquely identify the discount item. Maximum length is 200 characters.
Length:1 <= x <= 400
Descriptionstring | nullA name or description of the discount item.
Length:x <= 4000
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. Note: This value must be below zero.
PricePerItemExVatnumber, 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. Note: This value must be below zero.
Responses
PaymentTransactionsobject[] | nullPaymentTransactionIdinteger, int64StatusInfrastructureConstantsPaymentTransactionStatusValues:0123456
ErrorCodestring | nullUnique error code
ErrorMessagestring | nullDetailed error message
ErrorReferencestring, guidA tracking ID from Qliro Checkout
ErrorCodestring | nullUnique error code
ErrorMessagestring | nullDetailed error message
ErrorReferencestring, guidA tracking ID from Qliro Checkout