Glue API: Check out purchases
Edit on GitHubThis endpoint allows finalizing the checkout process by placing an order.
After sending a request, the cart is deleted, and you cannot make any further changes in the checkout data. This means the endpoint is best used for checkouts that can be performed in one pass or for finalizing a checkout after submitting checkout data.
The endpoint also provides information on whether it is necessary to redirect the user to a third-party page to complete the payment.
Installation
For detailed information on the modules that provide the API functionality and related installation instructions, see:
- Install the Checkout Glue API
- Install the Shipment Glue API
- Install the Configurable Bundle Glue API
- Install the Configurable Bundle + Cart Glue API
- Install the Configurable Bundle + Product Glue API
Place an order
To place an order, send the request:
POST
/checkout
Request
By default, if checkout is successful, the order is placed, and the cart is deleted automatically.
HEADER KEY | HEADER VALUE | REQUIRED | DESCRIPTION |
---|---|---|---|
X-Anonymous-Customer-Unique-Id | String | Required when checking out a guest cart. | A guest user’s unique ID. For security purposes, we recommend passing a hyphenated alphanumeric value, but you can pass any. If you are sending automated requests, you can configure your API client to generate this value. |
Authorization | String | Required when checking out a cart of registered user. | An alphanumeric string that authorizes the customer to send requests to protected resources. Get it by authenticating as a customer. |
QUERY PARAMETER | DESCRIPTION | POSSIBLE VALUES |
---|---|---|
include | Adds resource relationships to the request. | orders, order-shipments |
To retrieve order shipments, include orders
and order-shipments
.
Request sample: check out with one shipment
POST https://glue.mysprykershop.com/checkout
{
"data": {
"type": "checkout",
"attributes": {
"customer": {
"salutation": "Mr",
"email": "spencor.hopkin@spryker.com",
"firstName": "Spencor",
"lastName": "Hopkin"
},
"idCart": "033ee1ad-c3e9-5d2e-816f-23ff38a58d6d",
"billingAddress": {
"salutation": "Mr",
"firstName": "Spencor",
"lastName": "Hopkin",
"address1": "Julie-Wolfthorn-Straße",
"address2": "1",
"address3": "new address",
"zipCode": "10115",
"city": "Berlin",
"iso2Code": "DE",
"company": "spryker",
"phone": "+49 (30) 2084 98350"
},
"payments": [
{
"paymentMethodName": "Credit Card",
"paymentProviderName": "DummyPayment"
}
],
"shipments": [
{
"items": [
"066_23294028"
],
"shippingAddress": {
"id": null,
"salutation": "Mr",
"firstName": "Spencor",
"lastName": "Hopkin",
"address1": "Urbanstraße",
"address2": "119",
"address3": "Spencor's address",
"zipCode": "10967",
"city": "Berlin",
"iso2Code": "DE",
"company": "spryker",
"phone": "+49 (30) 2084 98350"
},
"idShipmentMethod": 1,
"requestedDeliveryDate": "2021-09-29"
}
]
}
}
}
Request sample: check out with a split shipment
POST https://glue.mysprykershop.com/checkout?include=orders
{
"data": {
"type": "checkout",
"attributes": {
"customer": {
"salutation": "Mr",
"email": "spencor.hopkin@spryker.com",
"firstName": "Spencor",
"lastName": "Hopkin"
},
"idCart": "033ee1ad-c3e9-5d2e-816f-23ff38a58d6d",
"billingAddress": {
"salutation": "Mr",
"firstName": "Spencor",
"lastName": "Hopkin",
"address1": "Julie-Wolfthorn-Straße",
"address2": "1",
"address3": "new address",
"zipCode": "10115",
"city": "Berlin",
"iso2Code": "DE",
"company": "spryker",
"phone": "+49 (30) 2084 98350"
},
"payments": [
{
"paymentMethodName": "Credit Card",
"paymentProviderName": "DummyPayment"
}
],
"shipments": [
{
"items": [
"066_23294028"
],
"shippingAddress": {
"id": null,
"salutation": "Mr",
"firstName": "Spencor",
"lastName": "Hopkin",
"address1": "Urbanstraße",
"address2": "119",
"address3": "Spencor's address",
"zipCode": "10967",
"city": "Berlin",
"iso2Code": "DE",
"company": "spryker",
"phone": "+49 (30) 2084 98350"
},
"idShipmentMethod": 1,
"requestedDeliveryDate": "2021-09-29"
},
{
"items": [
"078_24602396"
],
"shippingAddress": {
"id": null,
"salutation": "Mrs",
"firstName": "Sonia",
"lastName": "Wagner",
"address1": "Julie-Wolfthorn-Straße",
"address2": "1",
"address3": "Sonia's address",
"zipCode": "10115",
"city": "Berlin",
"iso2Code": "DE",
"company": "spryker",
"phone": "+49 (30) 2084 98350"
},
"idShipmentMethod": 2,
"requestedDeliveryDate": null
}
]
}
}
}
Request sample: check out with one shipment, order information, and shipment information
POST https://glue.mysprykershop.com/checkout?include=orders,order-shipments
{
"data": {
"type": "checkout",
"attributes": {
"customer": {
"salutation": "Mr",
"email": "sonia@spryker.com",
"firstName": "Sonia",
"lastName": "Wagner"
},
"idCart": "fe660d66-b7ec-5d88-8cd2-1a9a004c90b5",
"billingAddress": {
"salutation": "Mr",
"firstName": "Spencor",
"lastName": "Hopkin",
"address1": "Julie-Wolfthorn-Straße",
"address2": "1",
"address3": "new address",
"zipCode": "10115",
"city": "Berlin",
"iso2Code": "DE",
"company": "spryker",
"phone": "+49 (30) 2084 98350"
},
"payments": [
{
"dummyPaymentInvoice": {
"dateOfBirth": "08.04.1986"
},
"paymentMethodName": "Invoice",
"paymentProviderName": "DummyPayment"
}
],
"shipments": [
{
"items": [
"066_23294028"
],
"shippingAddress": {
"salutation": "Mrs",
"firstName": "Sonia",
"lastName": "Wagner",
"address1": "Julie-Wolfthorn-Straße",
"address2": "1",
"address3": "new one",
"zipCode": "10115",
"city": "Berlin",
"iso2Code": "DE",
"company": "spryker",
"phone": "+49 (30) 2084 98350"
},
"idShipmentMethod": 2,
"requestedDeliveryDate": "2021-09-29"
}
]
}
}
}
Request sample: check out with a split shipment and addresses passed as IDs
POST https://glue.mysprykershop.com/checkout
{
"data": {
"type": "checkout",
"attributes": {
"customer": {
"salutation": "Mr",
"email": "sonia@spryker.com",
"firstName": "Sonia",
"lastName": "Wagner"
},
"idCart": "16a0b623-4b4d-5e78-9fe8-3415b7717aa7",
"billingAddress.id": "f4cfa794-3c5d-58b9-8485-20d52c541d1d"
"payments": [
{
"dummyPaymentInvoice": {
"dateOfBirth": "08.04.1986"
},
"paymentMethodName": "Invoice",
"paymentProviderName": "DummyPayment"
}
],
"shipments": [
{
"items": [
"078_24602396"
],
"shippingAddress": {
"id": "f4cfa794-3c5d-58b9-8485-20d52c541d1d"
},
"idShipmentMethod": 1,
"requestedDeliveryDate": "2021-09-29"
},
{
"items": [
"066_23294028"
],
"shippingAddress": {
"idCompanyBusinessUnitAddress": "19a55c0d-7bf0-580c-a9e8-6edacdc1ecde"
},
"idShipmentMethod": 2,
"requestedDeliveryDate": null
}
]
}
}
}
ATTRIBUTE | TYPE | REQUIRED | DESCRIPTION |
---|---|---|---|
customer | Object | ✓ | A list of attributes describing the customer to submit checkout data of. |
customer.salutation | String | ✓ | Salutation to use when addressing the customer. |
customer.email | String | ✓ | Customer’s email address. |
customer.firstName | String | ✓ | Customer’s first name. |
customer.lastName | String | ✓ | Customer’s last name. |
idCart | String | ✓ | Unique identifier of the customer’s cart to check out. |
billingAddress | Object | ✓ | Customer’s billing address. |
billingAddress.id | String | A hyphenated alphanumeric value of an existing customer address. To get it, include the addresses resource in your request or retrieve a customer’s addresses. If you pass this value for a billing or shipping address, do not pass the other address attributes. |
|
billingAddress.salutation | String | ✓ | Salutation to use when addressing the customer. |
billingAddress.email | String | ✓ | Customer’s email address. |
billingAddress.firstName | String | ✓ | Customer’s first name. |
billingAddress.lastName | String | ✓ | Customer’s last name. |
billingAddress.address1 | String | ✓ | The 1st line of the customer’s address. |
billingAddress.address2 | String | ✓ | The 2nd line of the customer’s address. |
billingAddress.address3 | String | ✓ | The 3rd line of the customer’s address. |
billingAddress.zipCode | String | ✓ | ZIP code. |
billingAddress.city | String | ✓ | Specifies the city. |
billingAddress.iso2Code | String | ✓ | Specifies an ISO 2 Country Code to use. |
billingAddress.company | String | Customer’s company. | |
billingAddress.phone | String | Customer’s phone number. | |
payments | Array | ✓ | A list of payment methods selected for this order. |
payments.paymentMethodName | String | ✓ | Name of the payment method for this order. |
payments.paymentProviderName | String | ✓ | Name of the payment provider for this order. |
shipment | Object | ✓ | A list of attributes describing the shipping method selected for this order. |
shipment.items | object | ✓ | A list of items that are to be delivered to the shipping address defined in this shipment. |
shipment.shippingAddress | Object | ✓ | Customer’s shipping address for this shipment. |
shipment.shippingAddress.id | String | A hyphenated alphanumeric value of an existing customer address. To get it, include the addresses resource in your request or retrieve a customer’s addresses. If you pass this value for a billing or shipping address, do not pass the other address attributes. |
|
shipment.shippingAddress.idCompanyBusinessUnitAddress | String | A hyphenated alphanumeric value of an existing company business unit address. To get it, retrieve a company business unit with the company-business-unit-addresses resource included. If you pass this value for a billing or shipping address, do not pass the other address attributes. |
|
shipment.shippingAddress.salutation | String | ✓ | Salutation to use when addressing the customer. |
shipment.shippingAddress.email | String | ✓ | Customer’s email address. |
shipment.shippingAddress.firstName | String | ✓ | Customer’s first name. |
shipment.shippingAddress.lastName | String | ✓ | Customer’s last name. |
shipment.shippingAddress.address1 | String | ✓ | The 1st line of the customer’s address. |
shipment.shippingAddress.address2 | String | ✓ | The 2nd line of the customer’s address. |
shipment.shippingAddress.address3 | String | ✓ | The 3rd line of the customer’s address. |
shipment.shippingAddress.zipCode | String | ✓ | ZIP code. |
shipment.shippingAddress.city | String | ✓ | Specifies the city. |
shipment.shippingAddress.iso2Code | String | ✓ | Specifies an ISO 2 Country Code to use. |
shipment.shippingAddress.company | String | Customer’s company. | |
shipment.shippingAddress.phone | String | Customer’s phone number. | |
shipment.shippingAddress.idShipmentMethod | String | Unique identifier of the shipment method for this order or shipment. | |
shipment.shippingAddress.idShipmentMethod | String | ✓ | Unique identifier of the shipment method for this shipment. |
shipment.shippingAddress.requestedDeliveryDate | Date | The delivery date for this shipment requested by the customer. |
To prevent fraud, the invoice payment method is not accepted if a cart contains a gift card.
Response
Response sample: check out with one shipment
{
"data": {
"type": "checkout",
"id": null,
"attributes": {
"orderReference": "DE--1",
"redirectUrl": null,
"isExternalRedirect": null
},
"links": {
"self": "https://glue.mysprykershop.com/checkout"
}
}
}
Response sample: check out with a split shipment
{
"data": {
"type": "checkout",
"id": null,
"attributes": {
"orderReference": "DE--1",
"redirectUrl": null,
"isExternalRedirect": null
},
"links": {
"self": "https://glue.mysprykershop.com/checkout"
}
}
}
Response sample: check out with a split shipment, order information, and shipment information
{
"data": {
"type": "checkout",
"id": null,
"attributes": {
"orderReference": "DE--10",
"redirectUrl": null,
"isExternalRedirect": null
},
"links": {
"self": "https://glue.mysprykershop.com/checkout?include=orders,order-shipments"
},
"relationships": {
"orders": {
"data": [
{
"type": "orders",
"id": "DE--10"
}
]
}
}
},
"included": [
{
"type": "order-shipments",
"id": "18",
"attributes": {
"itemUuids": [
"34d4ea2b-7327-5fe3-843f-ca7e27fa1e81"
],
"methodName": "Express",
"carrierName": "Spryker Dummy Shipment",
"requestedDeliveryDate": "2021-09-29",
"shippingAddress": {
"salutation": "Mrs",
"firstName": "Sonia",
"middleName": null,
"lastName": "Wagner",
"address1": "Julie-Wolfthorn-Straße",
"address2": "1",
"address3": "new one",
"company": "spryker",
"city": "Berlin",
"zipCode": "10115",
"poBox": null,
"phone": "+49 (30) 2084 98350",
"cellPhone": null,
"description": null,
"comment": null,
"email": null,
"country": "Germany",
"iso2Code": "DE"
}
},
"links": {
"self": "https://glue.mysprykershop.com/order-shipments/18"
}
},
{
"type": "orders",
"id": "DE--10",
"attributes": {
"merchantReferences": [],
"itemStates": [
"payment pending"
],
"createdAt": "2021-01-18 13:07:24.000000",
"currencyIsoCode": "EUR",
"priceMode": "GROSS_MODE",
"totals": {
"expenseTotal": 590,
"discountTotal": 0,
"taxTotal": 6377,
"subtotal": 39353,
"grandTotal": 39943,
"canceledTotal": 0,
"remunerationTotal": 0
},
"billingAddress": {
"salutation": "Mr",
"firstName": "Sonia",
"middleName": null,
"lastName": "Wagner",
"address1": "Julie-Wolfthorn-Straße",
"address2": "1",
"address3": "new address",
"company": "spryker",
"city": "Berlin",
"zipCode": "10115",
"poBox": null,
"phone": "+49 (30) 2084 98350",
"cellPhone": null,
"description": null,
"comment": null,
"email": null,
"country": "Germany",
"iso2Code": "DE"
},
"shippingAddress": null,
"items": [
{
"merchantReference": null,
"state": "payment pending",
"name": "Samsung Galaxy S5 mini",
"sku": "066_23294028",
"sumPrice": 39353,
"quantity": 1,
"unitGrossPrice": 39353,
"sumGrossPrice": 39353,
"taxRate": "19.00",
"unitNetPrice": 0,
"sumNetPrice": 0,
"unitPrice": 39353,
"unitTaxAmountFullAggregation": 6283,
"sumTaxAmountFullAggregation": 6283,
"refundableAmount": 39353,
"canceledAmount": 0,
"sumSubtotalAggregation": 39353,
"unitSubtotalAggregation": 39353,
"unitProductOptionPriceAggregation": 0,
"sumProductOptionPriceAggregation": 0,
"unitExpensePriceAggregation": 0,
"sumExpensePriceAggregation": null,
"unitDiscountAmountAggregation": 0,
"sumDiscountAmountAggregation": 0,
"unitDiscountAmountFullAggregation": 0,
"sumDiscountAmountFullAggregation": 0,
"unitPriceToPayAggregation": 39353,
"sumPriceToPayAggregation": 39353,
"taxRateAverageAggregation": "19.00",
"taxAmountAfterCancellation": null,
"orderReference": null,
"uuid": "34d4ea2b-7327-5fe3-843f-ca7e27fa1e81",
"isReturnable": false,
"idShipment": 18,
"bundleItemIdentifier": null,
"relatedBundleItemIdentifier": null,
"salesOrderConfiguredBundle": null,
"salesOrderConfiguredBundleItem": null,
"metadata": {
"superAttributes": {
"color": "Blue"
},
"image": "https://images.icecat.biz/img/gallery_mediums/23294028_3275.jpg"
},
"salesUnit": null,
"calculatedDiscounts": [],
"productOptions": [],
"amount": null
}
],
"expenses": [
{
"type": "SHIPMENT_EXPENSE_TYPE",
"name": "Express",
"sumPrice": 590,
"unitGrossPrice": 590,
"sumGrossPrice": 590,
"taxRate": "19.00",
"unitNetPrice": 0,
"sumNetPrice": 0,
"canceledAmount": null,
"unitDiscountAmountAggregation": null,
"sumDiscountAmountAggregation": null,
"unitTaxAmount": 94,
"sumTaxAmount": 94,
"unitPriceToPayAggregation": 590,
"sumPriceToPayAggregation": 590,
"taxAmountAfterCancellation": null,
"idShipment": 18,
"idSalesExpense": 18
}
],
"payments": [
{
"amount": 39943,
"paymentProvider": "DummyPayment",
"paymentMethod": "Invoice"
}
],
"shipments": [
{
"shipmentMethodName": "Express",
"carrierName": "Spryker Dummy Shipment",
"deliveryTime": null,
"defaultGrossPrice": 590,
"defaultNetPrice": 0,
"currencyIsoCode": "EUR"
}
],
"calculatedDiscounts": [],
"bundleItems": []
},
"links": {
"self": "https://glue.mysprykershop.com/orders/DE--10"
},
"relationships": {
"order-shipments": {
"data": [
{
"type": "order-shipments",
"id": "18"
}
]
}
}
}
]
}
Response sample: check out with configurable bundles
{
"data": {
"type": "checkout",
"id": null,
"attributes": {
"orderReference": "DE--3",
"redirectUrl": null,
"isExternalRedirect": null
},
"links": {
"self": "https://glue.mysprykershop.com/checkout?include=orders"
},
"relationships": {
"orders": {
"data": [
{
"type": "orders",
"id": "DE--3"
}
]
}
}
},
"included": [
{
"type": "orders",
"id": "DE--3",
"attributes": {
"merchantReferences": [],
"itemStates": [
"payment pending"
],
"createdAt": "2021-01-06 11:38:13.249588",
"currencyIsoCode": "EUR",
"priceMode": "GROSS_MODE",
"totals": {
"expenseTotal": 980,
"discountTotal": 0,
"taxTotal": 3812,
"subtotal": 197788,
"grandTotal": 198768,
"canceledTotal": 0,
"remunerationTotal": 0
},
"billingAddress": {
"salutation": "Mr",
"firstName": "Spencor",
"middleName": null,
"lastName": "Hopkin",
"address1": "Julie-Wolfthorn-Straße",
"address2": "1",
"address3": "new address",
"company": "spryker",
"city": "Berlin",
"zipCode": "10115",
"poBox": null,
"phone": "+49 (30) 2084 98350",
"cellPhone": null,
"description": null,
"comment": null,
"email": null,
"country": "Germany",
"iso2Code": "DE"
},
"shippingAddress": null,
},
"items": [
{
"merchantReference": null,
"state": "payment pending",
"name": "Acer Extensa M2610",
"sku": "112_312526171",
"sumPrice": 43723,
"quantity": 1,
"unitGrossPrice": 43723,
"sumGrossPrice": 43723,
"taxRate": "0.00",
"unitNetPrice": 0,
"sumNetPrice": 0,
"unitPrice": 43723,
"unitTaxAmountFullAggregation": 0,
"sumTaxAmountFullAggregation": 0,
"refundableAmount": 43723,
"canceledAmount": 0,
"sumSubtotalAggregation": 43723,
"unitSubtotalAggregation": 43723,
"unitProductOptionPriceAggregation": 0,
"sumProductOptionPriceAggregation": 0,
"unitExpensePriceAggregation": 0,
"sumExpensePriceAggregation": null,
"unitDiscountAmountAggregation": 0,
"sumDiscountAmountAggregation": 0,
"unitDiscountAmountFullAggregation": 0,
"sumDiscountAmountFullAggregation": 0,
"unitPriceToPayAggregation": 43723,
"sumPriceToPayAggregation": 43723,
"taxRateAverageAggregation": "0.00",
"taxAmountAfterCancellation": null,
"orderReference": null,
"uuid": "dedc66da-9af9-504f-bdfc-e45b23118786",
"isReturnable": false,
"idShipment": 3,
"bundleItemIdentifier": null,
"relatedBundleItemIdentifier": null,
"salesOrderConfiguredBundle": {
"idSalesOrderConfiguredBundle": 3,
"configurableBundleTemplateUuid": "c8291fd3-c6ca-5b8f-8ff5-eccd6cb787de",
"name": "Smartstation Kit",
"quantity": 1
},
"salesOrderConfiguredBundleItem": {
"idSalesOrderConfiguredBundle": 3,
"configurableBundleTemplateSlotUuid": "9626de80-6caa-57a9-a683-2846ec5b6914"
},
"metadata": {
"superAttributes": {
"color": "Black",
"processor_cache": "3 MB"
},
"image": "https://images.icecat.biz/img/gallery_mediums/31252617_9321.jpg"
},
"salesUnit": null,
"calculatedDiscounts": [],
"productOptions": [],
"amount": null
},
{
"merchantReference": null,
"state": "payment pending",
"name": "Acer Extensa M2610",
"sku": "112_312526171",
"sumPrice": 43723,
"quantity": 1,
"unitGrossPrice": 43723,
"sumGrossPrice": 43723,
"taxRate": "0.00",
"unitNetPrice": 0,
"sumNetPrice": 0,
"unitPrice": 43723,
"unitTaxAmountFullAggregation": 0,
"sumTaxAmountFullAggregation": 0,
"refundableAmount": 43723,
"canceledAmount": 0,
"sumSubtotalAggregation": 43723,
"unitSubtotalAggregation": 43723,
"unitProductOptionPriceAggregation": 0,
"sumProductOptionPriceAggregation": 0,
"unitExpensePriceAggregation": 0,
"sumExpensePriceAggregation": null,
"unitDiscountAmountAggregation": 0,
"sumDiscountAmountAggregation": 0,
"unitDiscountAmountFullAggregation": 0,
"sumDiscountAmountFullAggregation": 0,
"unitPriceToPayAggregation": 43723,
"sumPriceToPayAggregation": 43723,
"taxRateAverageAggregation": "0.00",
"taxAmountAfterCancellation": null,
"orderReference": null,
"uuid": "93b87cb5-fc00-562f-a799-3ec28695ca51",
"isReturnable": false,
"idShipment": 3,
"bundleItemIdentifier": null,
"relatedBundleItemIdentifier": null,
"salesOrderConfiguredBundle": {
"idSalesOrderConfiguredBundle": 4,
"configurableBundleTemplateUuid": "c8291fd3-c6ca-5b8f-8ff5-eccd6cb787de",
"name": "Smartstation Kit",
"quantity": 1
},
"salesOrderConfiguredBundleItem": {
"idSalesOrderConfiguredBundle": 4,
"configurableBundleTemplateSlotUuid": "9626de80-6caa-57a9-a683-2846ec5b6914"
},
"metadata": {
"superAttributes": {
"color": "Black",
"processor_cache": "3 MB"
},
"image": "https://images.icecat.biz/img/gallery_mediums/31252617_9321.jpg"
},
"salesUnit": null,
"calculatedDiscounts": [],
"productOptions": [],
"amount": null
},
{
"merchantReference": null,
"state": "payment pending",
"name": "Samsung Galaxy S6",
"sku": "047_26408568",
"sumPrice": 5724,
"quantity": 1,
"unitGrossPrice": 5724,
"sumGrossPrice": 5724,
"taxRate": "19.00",
"unitNetPrice": 0,
"sumNetPrice": 0,
"unitPrice": 5724,
"unitTaxAmountFullAggregation": 914,
"sumTaxAmountFullAggregation": 914,
"refundableAmount": 5724,
"canceledAmount": 0,
"sumSubtotalAggregation": 5724,
"unitSubtotalAggregation": 5724,
"unitProductOptionPriceAggregation": 0,
"sumProductOptionPriceAggregation": 0,
"unitExpensePriceAggregation": 0,
"sumExpensePriceAggregation": null,
"unitDiscountAmountAggregation": 0,
"sumDiscountAmountAggregation": 0,
"unitDiscountAmountFullAggregation": 0,
"sumDiscountAmountFullAggregation": 0,
"unitPriceToPayAggregation": 5724,
"sumPriceToPayAggregation": 5724,
"taxRateAverageAggregation": "19.00",
"taxAmountAfterCancellation": null,
"orderReference": null,
"uuid": "c319e465-5160-59f1-a5b8-85073d1472b7",
"isReturnable": false,
"idShipment": 3,
"bundleItemIdentifier": null,
"relatedBundleItemIdentifier": null,
"salesOrderConfiguredBundle": {
"idSalesOrderConfiguredBundle": 3,
"configurableBundleTemplateUuid": "c8291fd3-c6ca-5b8f-8ff5-eccd6cb787de",
"name": "Smartstation Kit",
"quantity": 1
},
"salesOrderConfiguredBundleItem": {
"idSalesOrderConfiguredBundle": 3,
"configurableBundleTemplateSlotUuid": "2a5e55b1-993a-5510-864c-a4a18558aa75"
},
"metadata": {
"superAttributes": {
"color": "Gold"
},
"image": "https://images.icecat.biz/img/norm/medium/26408568-7449.jpg"
},
"salesUnit": null,
"calculatedDiscounts": [],
"productOptions": [],
"amount": null
},
{
"merchantReference": null,
"state": "payment pending",
"name": "Samsung Galaxy S6",
"sku": "047_26408568",
"sumPrice": 5724,
"quantity": 1,
"unitGrossPrice": 5724,
"sumGrossPrice": 5724,
"taxRate": "19.00",
"unitNetPrice": 0,
"sumNetPrice": 0,
"unitPrice": 5724,
"unitTaxAmountFullAggregation": 914,
"sumTaxAmountFullAggregation": 914,
"refundableAmount": 5724,
"canceledAmount": 0,
"sumSubtotalAggregation": 5724,
"unitSubtotalAggregation": 5724,
"unitProductOptionPriceAggregation": 0,
"sumProductOptionPriceAggregation": 0,
"unitExpensePriceAggregation": 0,
"sumExpensePriceAggregation": null,
"unitDiscountAmountAggregation": 0,
"sumDiscountAmountAggregation": 0,
"unitDiscountAmountFullAggregation": 0,
"sumDiscountAmountFullAggregation": 0,
"unitPriceToPayAggregation": 5724,
"sumPriceToPayAggregation": 5724,
"taxRateAverageAggregation": "19.00",
"taxAmountAfterCancellation": null,
"orderReference": null,
"uuid": "7ab614ca-d564-5292-8931-60f2c52c140d",
"isReturnable": false,
"idShipment": 3,
"bundleItemIdentifier": null,
"relatedBundleItemIdentifier": null,
"salesOrderConfiguredBundle": {
"idSalesOrderConfiguredBundle": 4,
"configurableBundleTemplateUuid": "c8291fd3-c6ca-5b8f-8ff5-eccd6cb787de",
"name": "Smartstation Kit",
"quantity": 1
},
"salesOrderConfiguredBundleItem": {
"idSalesOrderConfiguredBundle": 4,
"configurableBundleTemplateSlotUuid": "2a5e55b1-993a-5510-864c-a4a18558aa75"
},
"metadata": {
"superAttributes": {
"color": "Gold"
},
"image": "https://images.icecat.biz/img/norm/medium/26408568-7449.jpg"
},
"salesUnit": null,
"calculatedDiscounts": [],
"productOptions": [],
"amount": null
},
{
"merchantReference": null,
"state": "payment pending",
"name": "Acer Extensa M2610",
"sku": "112_312526171",
"sumPrice": 43723,
"quantity": 1,
"unitGrossPrice": 43723,
"sumGrossPrice": 43723,
"taxRate": "0.00",
"unitNetPrice": 0,
"sumNetPrice": 0,
"unitPrice": 43723,
"unitTaxAmountFullAggregation": 0,
"sumTaxAmountFullAggregation": 0,
"refundableAmount": 43723,
"canceledAmount": 0,
"sumSubtotalAggregation": 43723,
"unitSubtotalAggregation": 43723,
"unitProductOptionPriceAggregation": 0,
"sumProductOptionPriceAggregation": 0,
"unitExpensePriceAggregation": 0,
"sumExpensePriceAggregation": null,
"unitDiscountAmountAggregation": 0,
"sumDiscountAmountAggregation": 0,
"unitDiscountAmountFullAggregation": 0,
"sumDiscountAmountFullAggregation": 0,
"unitPriceToPayAggregation": 43723,
"sumPriceToPayAggregation": 43723,
"taxRateAverageAggregation": "0.00",
"taxAmountAfterCancellation": null,
"orderReference": null,
"uuid": "3b0d7d32-c519-5eea-92f1-408c54113c25",
"isReturnable": false,
"idShipment": 3,
"bundleItemIdentifier": null,
"relatedBundleItemIdentifier": null,
"salesOrderConfiguredBundle": {
"idSalesOrderConfiguredBundle": 5,
"configurableBundleTemplateUuid": "c8291fd3-c6ca-5b8f-8ff5-eccd6cb787de",
"name": "Smartstation Kit",
"quantity": 1
},
"salesOrderConfiguredBundleItem": {
"idSalesOrderConfiguredBundle": 5,
"configurableBundleTemplateSlotUuid": "9626de80-6caa-57a9-a683-2846ec5b6914"
},
"metadata": {
"superAttributes": {
"color": "Black",
"processor_cache": "3 MB"
},
"image": "https://images.icecat.biz/img/gallery_mediums/31252617_9321.jpg"
},
"salesUnit": null,
"calculatedDiscounts": [],
"productOptions": [],
"amount": null
},
{
"merchantReference": null,
"state": "payment pending",
"name": "Acer Extensa M2610",
"sku": "112_312526171",
"sumPrice": 43723,
"quantity": 1,
"unitGrossPrice": 43723,
"sumGrossPrice": 43723,
"taxRate": "0.00",
"unitNetPrice": 0,
"sumNetPrice": 0,
"unitPrice": 43723,
"unitTaxAmountFullAggregation": 0,
"sumTaxAmountFullAggregation": 0,
"refundableAmount": 43723,
"canceledAmount": 0,
"sumSubtotalAggregation": 43723,
"unitSubtotalAggregation": 43723,
"unitProductOptionPriceAggregation": 0,
"sumProductOptionPriceAggregation": 0,
"unitExpensePriceAggregation": 0,
"sumExpensePriceAggregation": null,
"unitDiscountAmountAggregation": 0,
"sumDiscountAmountAggregation": 0,
"unitDiscountAmountFullAggregation": 0,
"sumDiscountAmountFullAggregation": 0,
"unitPriceToPayAggregation": 43723,
"sumPriceToPayAggregation": 43723,
"taxRateAverageAggregation": "0.00",
"taxAmountAfterCancellation": null,
"orderReference": null,
"uuid": "b39c7e1c-12ba-53d3-8d81-5c363d5307e9",
"isReturnable": false,
"idShipment": 3,
"bundleItemIdentifier": null,
"relatedBundleItemIdentifier": null,
"salesOrderConfiguredBundle": {
"idSalesOrderConfiguredBundle": 6,
"configurableBundleTemplateUuid": "c8291fd3-c6ca-5b8f-8ff5-eccd6cb787de",
"name": "Smartstation Kit",
"quantity": 1
},
"salesOrderConfiguredBundleItem": {
"idSalesOrderConfiguredBundle": 6,
"configurableBundleTemplateSlotUuid": "9626de80-6caa-57a9-a683-2846ec5b6914"
},
"metadata": {
"superAttributes": {
"color": "Black",
"processor_cache": "3 MB"
},
"image": "https://images.icecat.biz/img/gallery_mediums/31252617_9321.jpg"
},
"salesUnit": null,
"calculatedDiscounts": [],
"productOptions": [],
"amount": null
},
{
"merchantReference": null,
"state": "payment pending",
"name": "Samsung Galaxy S6",
"sku": "047_26408568",
"sumPrice": 5724,
"quantity": 1,
"unitGrossPrice": 5724,
"sumGrossPrice": 5724,
"taxRate": "19.00",
"unitNetPrice": 0,
"sumNetPrice": 0,
"unitPrice": 5724,
"unitTaxAmountFullAggregation": 914,
"sumTaxAmountFullAggregation": 914,
"refundableAmount": 5724,
"canceledAmount": 0,
"sumSubtotalAggregation": 5724,
"unitSubtotalAggregation": 5724,
"unitProductOptionPriceAggregation": 0,
"sumProductOptionPriceAggregation": 0,
"unitExpensePriceAggregation": 0,
"sumExpensePriceAggregation": null,
"unitDiscountAmountAggregation": 0,
"sumDiscountAmountAggregation": 0,
"unitDiscountAmountFullAggregation": 0,
"sumDiscountAmountFullAggregation": 0,
"unitPriceToPayAggregation": 5724,
"sumPriceToPayAggregation": 5724,
"taxRateAverageAggregation": "19.00",
"taxAmountAfterCancellation": null,
"orderReference": null,
"uuid": "b189d4f2-da12-59f3-8e05-dfb4d95b1781",
"isReturnable": false,
"idShipment": 3,
"bundleItemIdentifier": null,
"relatedBundleItemIdentifier": null,
"salesOrderConfiguredBundle": {
"idSalesOrderConfiguredBundle": 5,
"configurableBundleTemplateUuid": "c8291fd3-c6ca-5b8f-8ff5-eccd6cb787de",
"name": "Smartstation Kit",
"quantity": 1
},
"salesOrderConfiguredBundleItem": {
"idSalesOrderConfiguredBundle": 5,
"configurableBundleTemplateSlotUuid": "2a5e55b1-993a-5510-864c-a4a18558aa75"
},
"metadata": {
"superAttributes": {
"color": "Gold"
},
"image": "https://images.icecat.biz/img/norm/medium/26408568-7449.jpg"
},
"salesUnit": null,
"calculatedDiscounts": [],
"productOptions": [],
"amount": null
},
{
"merchantReference": null,
"state": "payment pending",
"name": "Samsung Galaxy S6",
"sku": "047_26408568",
"sumPrice": 5724,
"quantity": 1,
"unitGrossPrice": 5724,
"sumGrossPrice": 5724,
"taxRate": "19.00",
"unitNetPrice": 0,
"sumNetPrice": 0,
"unitPrice": 5724,
"unitTaxAmountFullAggregation": 914,
"sumTaxAmountFullAggregation": 914,
"refundableAmount": 5724,
"canceledAmount": 0,
"sumSubtotalAggregation": 5724,
"unitSubtotalAggregation": 5724,
"unitProductOptionPriceAggregation": 0,
"sumProductOptionPriceAggregation": 0,
"unitExpensePriceAggregation": 0,
"sumExpensePriceAggregation": null,
"unitDiscountAmountAggregation": 0,
"sumDiscountAmountAggregation": 0,
"unitDiscountAmountFullAggregation": 0,
"sumDiscountAmountFullAggregation": 0,
"unitPriceToPayAggregation": 5724,
"sumPriceToPayAggregation": 5724,
"taxRateAverageAggregation": "19.00",
"taxAmountAfterCancellation": null,
"orderReference": null,
"uuid": "349f3ce2-0396-5ed4-a2df-c9e053cb3350",
"isReturnable": false,
"idShipment": 3,
"bundleItemIdentifier": null,
"relatedBundleItemIdentifier": null,
"salesOrderConfiguredBundle": {
"idSalesOrderConfiguredBundle": 6,
"configurableBundleTemplateUuid": "c8291fd3-c6ca-5b8f-8ff5-eccd6cb787de",
"name": "Smartstation Kit",
"quantity": 1
},
"salesOrderConfiguredBundleItem": {
"idSalesOrderConfiguredBundle": 6,
"configurableBundleTemplateSlotUuid": "2a5e55b1-993a-5510-864c-a4a18558aa75"
},
"metadata": {
"superAttributes": {
"color": "Gold"
},
"image": "https://images.icecat.biz/img/norm/medium/26408568-7449.jpg"
},
"salesUnit": null,
"calculatedDiscounts": [],
"productOptions": [],
"amount": null
}
],
"expenses": [
{
"type": "SHIPMENT_EXPENSE_TYPE",
"name": "Standard",
"sumPrice": 490,
"unitGrossPrice": 490,
"sumGrossPrice": 490,
"taxRate": "19.00",
"unitNetPrice": 0,
"sumNetPrice": 0,
"canceledAmount": null,
"unitDiscountAmountAggregation": null,
"sumDiscountAmountAggregation": null,
"unitTaxAmount": 78,
"sumTaxAmount": 78,
"unitPriceToPayAggregation": 490,
"sumPriceToPayAggregation": 490,
"taxAmountAfterCancellation": null,
"idShipment": 3,
"idSalesExpense": 3
}
],
"payments": [
{
"amount": 198768,
"paymentProvider": "DummyPayment",
"paymentMethod": "Invoice"
}
],
"shipments": [
{
"shipmentMethodName": "Standard",
"carrierName": "Spryker Dummy Shipment",
"deliveryTime": null,
"defaultGrossPrice": 490,
"defaultNetPrice": 0,
"currencyIsoCode": "EUR"
}
],
"calculatedDiscounts": [],
"bundleItems": []
},
"links": {
"self": "https://glue.mysprykershop.com/orders/DE--3"
}
}
]
}
ATTRIBUTE | TYPE | DESCRIPTION |
---|---|---|
orderReference | String | The unique ID of the order. |
redirectUrl | String | The URL to perform the payment verification requested by the selected payment method. After completing verification, ensure to update payment data. If the value is null or empty, no additional verification is required. |
isExternalRedirect | Boolean | If true, the customer is redirected to an external URL. |
INCLUDED RESOURCE | ATTRIBUTE | TYPE | DESCRIPTION |
---|---|---|---|
order-shipments | itemUuids | String | Unique identifier of the item in this shipment. |
order-shipments | methodName | String | Name of the shipment method selected. |
order-shipments | carrierName | String | Name of the shipment service provider. |
order-shipments | requestedDeliveryDate | Date | Desired delivery date. |
order-shipments | shippingAddress | Object | Shipping address of a shipment. |
order-shipments | salutation | String | Salutation to use when addressing the customer. |
order-shipments | firstName | String | Customer’s first name. |
order-shipments | middleName | String | Customer’s middle name. |
order-shipments | lastName | String | Customer’s last name. |
order-shipments | address1 | String | The 1st line of the customer’s address. |
order-shipments | address2 | String | The 2nd line of the customer’s address. |
order-shipments | address3 | String | The 3rd line of the customer’s address. |
order-shipments | company | String | Specifies the customer’s company. |
order-shipments | city | String | Specifies the city. |
order-shipments | zipCode | String | ZIP code. |
order-shipments | poBox | String | PO Box to use for communication. |
order-shipments | phone | String | Specifies the customer’s phone number. |
order-shipments | cellPhone | String | Mobile phone number. |
order-shipments | description | String | Address description. |
order-shipments | comment | String | Address comment. |
order-shipments | String | Email address to use for communication. | |
order-shipments | country | String | Specifies the country. |
order-shipments | iso2Code | String | ISO 2-Letter Country Code to use. |
For the attributes of other included resources, see Retrieve customer’s order
Possible errors
STATUS | REASONS |
---|---|
400 | Bad request. This error can occur due to the following reasons:
|
404 | Order not found. |
422 | Order payment is not updated. Checkout data is incorrect. |
1101 | Checkout data is invalid. |
1102 | Order cannot be placed. |
1103 | Cart not found. |
1104 | Cart is empty. |
1105 | One of Authorization or X-Anonymous-Customer-Unique-Id headers is required. |
1106 | Unable to delete cart. |
1107 | Multiple payments are not allowed. |
1108 | Payment method “%s” of payment provider “%s” is invalid. |
Next steps
Thank you!
For submitting the form