Download OpenAPI specification:
Order service API
Cart, order and payment related service API
Returns the shopping cart.
| id required | string The resource id |
| siteKey required | string The site key |
| locale required | string The ISO locale code |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Return the cart that is associated with the JWT token
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Submit the order for the customer's current shopping cart
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
Get the cart for cart id
| cartId | string The id of the shopping cart that was submitted as an order |
{- "cartId": "string"
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Adds one address to the cart and uses it as a billing address, shipping address or both
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
| idempotency-key required | string Ensures idempotency |
An object containing the addresses to add. Either delivery or billing address must be provided.
If billingSameAsDeliveryAddress is true then delivery address must be specified.
object (order-address) | |
object (order-address) | |
| billingSameAsDeliveryAddress | boolean |
{- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingSameAsDeliveryAddress": true
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Adds a billing address to the cart
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
| idempotency-key required | string Ensures idempotency |
An object containing the billing address.
object (order-address) |
{- "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Remove a billing address from cart
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Adds a shipping/delivery address to the cart and optionally uses it as a billing address.
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
| idempotency-key required | string Ensures idempotency |
An object containing the delivery address.
If billingSameAsDeliveryAddress is true then delivery address also populates billing address.
object (order-address) | |
| billingSameAsDeliveryAddress | boolean |
{- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingSameAsDeliveryAddress": true
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Remove a delivery address from cart
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Sets the delivery method for the current cart of a customer
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
The delivery method to add, containing the method and either the delivery, collection or digital delivery details.
| deliveryMethod required | string Enum: "Home" "Collection" "Digital" |
object (order-delivery-method) | |
object | |
object |
{- "deliveryMethod": "Home",
- "homeDelivery": {
- "key": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "standard",
- "businessDays": 0
}, - "collection": {
- "collectionId": "string",
- "contact": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "email": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string"
}
}, - "digitalDelivery": {
- "emailAddress": "string"
}
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Adds a discount code (coupon code) to the cart and recalculates the price.
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
The discount code to add to the cart.
| code required | string |
{- "code": "string"
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Removes a discount code from the cart and recalculates the price.
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
The discount code to add to the cart.
| code required | string |
{- "code": "string"
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Remove a cart product group (frame, contact-lens or other)
| id required | string The resource id |
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
| groupId | number |
{- "groupId": 0
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Add left and right contact lens skus to the cart
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
| idempotency-key required | string Ensures idempotency |
object |
{- "contacts": {
- "productKey": "string",
- "recurrencePolicyId": "string",
- "leftEye": {
- "sku": "string",
- "quantity": 0
}, - "rightEye": {
- "sku": "string",
- "quantity": 0
}
}
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Update the left and right skus within the cart
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
| idempotency-key required | string Ensures idempotency |
object |
{- "contacts": {
- "productKey": "string",
- "recurrencePolicyId": "string",
- "leftEye": {
- "sku": "string",
- "quantity": 0
}, - "rightEye": {
- "sku": "string",
- "quantity": 0
}
}
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Add frame group details to the cart
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
| idempotency-key required | string Ensures idempotency |
Todo: Update frame object when details are known
| frame | object |
| talonOneData | string |
| prescription | string |
{- "frame": { },
- "talonOneData": "string",
- "prescription": "string"
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Update the frame product group details within the cart
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
| idempotency-key required | string Ensures idempotency |
Todo: Update frame object when details are known
| frame | object |
| talonOneData | string |
| prescription | string |
{- "frame": { },
- "talonOneData": "string",
- "prescription": "string"
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Initiates a payment session with Adyen for the customer's current shopping cart
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
| idempotency-key required | string Ensures idempotency |
The payment session parameter(s).
object (money) |
{- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}{- "id": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "sessionData": "string"
}Creates an Adyen payment, returning the payment details required for integration with Adyen Web Components.
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
| idempotency-key required | string Ensures idempotency |
Payload for creating an Adyen payment.
required | object (money) |
required | object Payment method details as provided by Adyen. |
required | object Browser information required for the payment process. |
{- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "paymentMethod": { },
- "browserInfo": { }
}{- "paymentId": "string",
- "amount": {
- "currency": "string",
- "value": 0
}, - "resultCode": "AuthenticationFinished",
- "action": {
- "type": "redirect",
- "url": "string",
- "paymentMethodType": "string",
- "method": "string"
}, - "paymentMethod": { }
}Fetches the available payment methods Adyen provides for the customer's current shopping cart
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
| idempotency-key required | string Ensures idempotency |
{- "paymentMethods": [
- {
- "name": "string",
- "type": "string",
- "brands": [
- "string"
], - "apps": [
- {
- "id": "string",
- "name": "string"
}
], - "group": {
- "name": "string",
- "type": "string",
- "paymentMethodData": "string"
}, - "issuers": [
- {
- "id": "string",
- "name": "string",
- "disabled": true
}
]
}
], - "responseString": "string"
}Initiates a payment session with HICAPS for the customer's current shopping cart
| siteKey required | string The site key |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
The payment session parameter(s).
| fund required | string The payment method to use |
| memberNumber required | string |
{- "fund": "string",
- "memberNumber": "string"
}{- "redirectUrl": "string"
}Sets the aftercare store for the customer's current cart and updates the customer's default aftercare store
| siteKey required | string The site key |
| marketKey required | string The market key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
The payload schema describes the information required to set the aftercare store on the customer's cart.
| aftercareStoreId required | string The aftercare store id of the store to set on the customer's cart |
{- "aftercareStoreId": "string"
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Cancel the active cart
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
| idempotency-key required | string Ensures idempotency |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Creates an express re-order cart from a previous order
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
| idempotency-key required | string Ensures idempotency |
The id of the order to be used for express re-order
| orderId | string |
{- "orderId": "string"
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Health check information for the carts service
{- "data": {
- "status": "pass",
- "version": "1.0",
- "releaseId": "1234567890",
- "service": "inventory",
- "details": {
- "time": "2023-11-15T12:19:05.737Z",
- "env": "dev",
- "commitId": "368de0fbdff3a5634895d69f8b17cbdfd5e77bfb"
}
}
}Get orders by ids
| ids required | string A comma-separated list of order IDs to retrieve |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "deliveries": [
- {
- "id": "string",
- "state": "string",
- "items": [
- {
- "id": "string",
- "quantity": "string"
}
], - "parcels": [
- {
- "id": "string",
- "carrier": "string",
- "trackingId": "string",
- "trackingUrl": "string"
}
]
}
], - "orderNumber": "string",
- "workflowState": "order_open",
- "isCancellable": true,
- "isReturnable": true,
- "isReplaceable": true,
- "isAppeaseable": true,
- "isExpressReorderEnabled": true,
- "isReplacementOrder": true,
- "originalOrderId?": "string",
- "originalOrderNumber": "string",
- "replacementOrderIds": [
- "string"
], - "returns": [
- {
- "key": "string",
- "includeShipping": true,
- "shippingReturnReasonCode": "string",
- "shippingReturnReason": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "createdBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "lastModifiedBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "returnStatus": "string",
- "refundStatus": "string",
- "refundMethods": [
- "string"
], - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "id": "string",
- "lineItemId": "string",
- "comment": "string",
- "quantity": 0,
- "reasons": [
- {
- "quantity": 0,
- "reasonCode": "string",
- "reason": "string"
}
], - "brand": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}
}
]
}
], - "cancellationInfo": {
- "id": "string",
- "code": "string",
- "details": "string",
- "cancelledAt": "2019-08-24T14:15:22Z",
- "cancelledBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}, - "replacementInfo": {
- "replacedAt": "2019-08-24T14:15:22Z",
- "replacedBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Get an order by id
| id required | string The resource id |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "deliveries": [
- {
- "id": "string",
- "state": "string",
- "items": [
- {
- "id": "string",
- "quantity": "string"
}
], - "parcels": [
- {
- "id": "string",
- "carrier": "string",
- "trackingId": "string",
- "trackingUrl": "string"
}
]
}
], - "orderNumber": "string",
- "workflowState": "order_open",
- "isCancellable": true,
- "isReturnable": true,
- "isReplaceable": true,
- "isAppeaseable": true,
- "isExpressReorderEnabled": true,
- "isReplacementOrder": true,
- "originalOrderId?": "string",
- "originalOrderNumber": "string",
- "replacementOrderIds": [
- "string"
], - "returns": [
- {
- "key": "string",
- "includeShipping": true,
- "shippingReturnReasonCode": "string",
- "shippingReturnReason": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "createdBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "lastModifiedBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "returnStatus": "string",
- "refundStatus": "string",
- "refundMethods": [
- "string"
], - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "id": "string",
- "lineItemId": "string",
- "comment": "string",
- "quantity": 0,
- "reasons": [
- {
- "quantity": 0,
- "reasonCode": "string",
- "reason": "string"
}
], - "brand": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}
}
]
}
], - "cancellationInfo": {
- "id": "string",
- "code": "string",
- "details": "string",
- "cancelledAt": "2019-08-24T14:15:22Z",
- "cancelledBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}, - "replacementInfo": {
- "replacedAt": "2019-08-24T14:15:22Z",
- "replacedBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Create a new return for an order
| id required | string The resource id |
| siteKey required | string The site key for the order |
| locale required | string The locale for the request |
| idempotency-key required | string Idempotency key to ensure the request is processed only once |
required | object The details of the items to return |
{- "returnDraft": {
- "includeShipping": true,
- "lineItems": [
- {
- "groupId": 0,
- "quantity": 0,
- "lineItemId": "string",
- "reason": "string",
- "reasonCode": "string",
- "comment": "string"
}
]
}
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "deliveries": [
- {
- "id": "string",
- "state": "string",
- "items": [
- {
- "id": "string",
- "quantity": "string"
}
], - "parcels": [
- {
- "id": "string",
- "carrier": "string",
- "trackingId": "string",
- "trackingUrl": "string"
}
]
}
], - "orderNumber": "string",
- "workflowState": "order_open",
- "isCancellable": true,
- "isReturnable": true,
- "isReplaceable": true,
- "isAppeaseable": true,
- "isExpressReorderEnabled": true,
- "isReplacementOrder": true,
- "originalOrderId?": "string",
- "originalOrderNumber": "string",
- "replacementOrderIds": [
- "string"
], - "returns": [
- {
- "key": "string",
- "includeShipping": true,
- "shippingReturnReasonCode": "string",
- "shippingReturnReason": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "createdBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "lastModifiedBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "returnStatus": "string",
- "refundStatus": "string",
- "refundMethods": [
- "string"
], - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "id": "string",
- "lineItemId": "string",
- "comment": "string",
- "quantity": 0,
- "reasons": [
- {
- "quantity": 0,
- "reasonCode": "string",
- "reason": "string"
}
], - "brand": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}
}
]
}
], - "cancellationInfo": {
- "id": "string",
- "code": "string",
- "details": "string",
- "cancelledAt": "2019-08-24T14:15:22Z",
- "cancelledBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}, - "replacementInfo": {
- "replacedAt": "2019-08-24T14:15:22Z",
- "replacedBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Creates an appeasement for an order. An appeasement is a refund without requiring physical items to be returned.
| id required | string The resource id |
| siteKey required | string The site key for the order |
| locale required | string The locale for the request |
| idempotency-key required | string Idempotency key to ensure the request is processed only once |
required | object (appeasement-calculation-input) |
| reasonCode required | string The reason code for the appeasement |
| additionalInfo | string Optional additional information about the appeasement |
{- "input": {
- "type": "PERCENTAGE",
- "value": 0,
- "lineItemIds": [
- "string"
], - "includeShipping": true
}, - "reasonCode": "string",
- "additionalInfo": "string"
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "deliveries": [
- {
- "id": "string",
- "state": "string",
- "items": [
- {
- "id": "string",
- "quantity": "string"
}
], - "parcels": [
- {
- "id": "string",
- "carrier": "string",
- "trackingId": "string",
- "trackingUrl": "string"
}
]
}
], - "orderNumber": "string",
- "workflowState": "order_open",
- "isCancellable": true,
- "isReturnable": true,
- "isReplaceable": true,
- "isAppeaseable": true,
- "isExpressReorderEnabled": true,
- "isReplacementOrder": true,
- "originalOrderId?": "string",
- "originalOrderNumber": "string",
- "replacementOrderIds": [
- "string"
], - "returns": [
- {
- "key": "string",
- "includeShipping": true,
- "shippingReturnReasonCode": "string",
- "shippingReturnReason": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "createdBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "lastModifiedBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "returnStatus": "string",
- "refundStatus": "string",
- "refundMethods": [
- "string"
], - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "id": "string",
- "lineItemId": "string",
- "comment": "string",
- "quantity": 0,
- "reasons": [
- {
- "quantity": 0,
- "reasonCode": "string",
- "reason": "string"
}
], - "brand": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}
}
]
}
], - "cancellationInfo": {
- "id": "string",
- "code": "string",
- "details": "string",
- "cancelledAt": "2019-08-24T14:15:22Z",
- "cancelledBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}, - "replacementInfo": {
- "replacedAt": "2019-08-24T14:15:22Z",
- "replacedBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Create a new replacement for an order
| id required | string The resource id |
| marketKey required | string The market key for the order |
| siteKey required | string The site key for the order |
| locale required | string The locale for the request |
| idempotency-key required | string Idempotency key to ensure the request is processed only once |
required | object The details of the items to replacement |
{- "replacementDraft": {
- "deliveryAddressId": "string",
- "lineItems": [
- {
- "groupId": 0,
- "quantity": 0,
- "lineItemId": "string",
- "reason": "string",
- "reasonCode": "string",
- "comment": "string"
}
]
}
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "deliveries": [
- {
- "id": "string",
- "state": "string",
- "items": [
- {
- "id": "string",
- "quantity": "string"
}
], - "parcels": [
- {
- "id": "string",
- "carrier": "string",
- "trackingId": "string",
- "trackingUrl": "string"
}
]
}
], - "orderNumber": "string",
- "workflowState": "order_open",
- "isCancellable": true,
- "isReturnable": true,
- "isReplaceable": true,
- "isAppeaseable": true,
- "isExpressReorderEnabled": true,
- "isReplacementOrder": true,
- "originalOrderId?": "string",
- "originalOrderNumber": "string",
- "replacementOrderIds": [
- "string"
], - "returns": [
- {
- "key": "string",
- "includeShipping": true,
- "shippingReturnReasonCode": "string",
- "shippingReturnReason": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "createdBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "lastModifiedBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "returnStatus": "string",
- "refundStatus": "string",
- "refundMethods": [
- "string"
], - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "id": "string",
- "lineItemId": "string",
- "comment": "string",
- "quantity": 0,
- "reasons": [
- {
- "quantity": 0,
- "reasonCode": "string",
- "reason": "string"
}
], - "brand": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}
}
]
}
], - "cancellationInfo": {
- "id": "string",
- "code": "string",
- "details": "string",
- "cancelledAt": "2019-08-24T14:15:22Z",
- "cancelledBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}, - "replacementInfo": {
- "replacedAt": "2019-08-24T14:15:22Z",
- "replacedBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Generate a summary for creating a new return
| id required | string The resource id |
{- "data": {
- "orderId": "string",
- "shippingRefunded": true,
- "shipping": {
- "availableToRefundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "previouslyRefunded": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "availableToRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "lineItemId": "string",
- "brand": "string",
- "name": "string",
- "sku": "string",
- "quantity": 0,
- "previouslyReturnedQuantity": 0,
- "availableToReturnQuantity": 0,
- "returnQuantity": 0,
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
], - "lineItemIds": [
- "string"
]
}
}
]
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Price a summary for creating a new return
| id required | string The resource id |
required | object The details of the items to price for a return refund |
{- "returnLineItemQuantities": {
- "lineItemId": "string",
- "quantity": 0
}
}{- "data": {
- "orderId": "string",
- "shippingRefunded": true,
- "shipping": {
- "availableToRefundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "previouslyRefunded": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "availableToRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "lineItemId": "string",
- "brand": "string",
- "name": "string",
- "sku": "string",
- "quantity": 0,
- "previouslyReturnedQuantity": 0,
- "availableToReturnQuantity": 0,
- "returnQuantity": 0,
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
], - "lineItemIds": [
- "string"
]
}
}
]
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Get a summary for creating a new appeasement
| id required | string The resource id |
| type required | string Enum: "PERCENTAGE" "AMOUNT" |
| value required | number |
| lineItemIds required | Array of strings |
| includeShipping required | boolean |
{- "type": "PERCENTAGE",
- "value": 0,
- "lineItemIds": [
- "string"
], - "includeShipping": true
}{- "data": {
- "orderId": "string",
- "shipping": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "previouslyRefundedAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "availableToRefundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}, - "lineItems": [
- {
- "groupType": "string",
- "lineItemId": "string",
- "brandName": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "quantity": 0,
- "previouslyReturnedQuantity": 0,
- "previouslyRefundedAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "availableToRefundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
]
}
}
], - "availableToRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Generate a summary for creating a new replacement
| id required | string The resource id |
{- "data": {
- "orderId": "string",
- "lineItems": [
- {
- "groupType": "string",
- "lineItemId": "string",
- "brand": "string",
- "name": "string",
- "sku": "string",
- "quantity": 0,
- "previouslyReturnedQuantity": 0,
- "availableToReplaceQuantity": 0,
- "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
]
}
}
], - "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Sets a return as manually refunded by recording transaction details. This endpoint is used when a return has been refunded outside of the normal automated process and needs to be marked as such in the system.
| orderNumber required | string The order number |
| returnKey required | string The return key |
| siteKey required | string Site key |
| locale required | string Locale |
| transactionRef | string Optional reference to the external transaction |
| transactionNotes required | string Notes about the manual refund transaction |
{- "transactionRef": "string",
- "transactionNotes": "string"
}{- "data": {
- "key": "string",
- "includeShipping": true,
- "shippingReturnReasonCode": "string",
- "shippingReturnReason": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "createdBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "lastModifiedBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "returnStatus": "string",
- "refundStatus": "string",
- "refundMethods": [
- "string"
], - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "id": "string",
- "lineItemId": "string",
- "comment": "string",
- "quantity": 0,
- "reasons": [
- {
- "quantity": 0,
- "reasonCode": "string",
- "reason": "string"
}
], - "brand": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
]
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
]
}
}
]
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Retrieves all returns associated with a specific order number. This endpoint allows filtering and retrieving return information for a given order.
| orderNumber required | string The order number to get returns for |
{- "data": [
- {
- "key": "string",
- "includeShipping": true,
- "shippingReturnReasonCode": "string",
- "shippingReturnReason": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "createdBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "lastModifiedBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "returnStatus": "string",
- "refundStatus": "string",
- "refundMethods": [
- "string"
], - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "id": "string",
- "lineItemId": "string",
- "comment": "string",
- "quantity": 0,
- "reasons": [
- {
- "quantity": 0,
- "reasonCode": "string",
- "reason": "string"
}
], - "brand": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
]
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
]
}
}
]
}
], - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Retrieves a specific return using the order number and return key. This endpoint provides detailed information about a single return associated with an order.
| orderNumber required | string The order number |
| returnKey required | string The return key |
{- "data": {
- "key": "string",
- "includeShipping": true,
- "shippingReturnReasonCode": "string",
- "shippingReturnReason": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "createdBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "lastModifiedBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "returnStatus": "string",
- "refundStatus": "string",
- "refundMethods": [
- "string"
], - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "id": "string",
- "lineItemId": "string",
- "comment": "string",
- "quantity": 0,
- "reasons": [
- {
- "quantity": 0,
- "reasonCode": "string",
- "reason": "string"
}
], - "brand": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
]
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
]
}
}
]
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Cancel an order by id
| id required | string The resource id |
| siteKey required | string The site key |
| locale required | string The ISO locale code |
Payload for cancelling an order by id
| code required | string Reason code |
| detail required | string Details about the cancellation reason |
{- "code": "string",
- "detail": "string"
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "deliveries": [
- {
- "id": "string",
- "state": "string",
- "items": [
- {
- "id": "string",
- "quantity": "string"
}
], - "parcels": [
- {
- "id": "string",
- "carrier": "string",
- "trackingId": "string",
- "trackingUrl": "string"
}
]
}
], - "orderNumber": "string",
- "workflowState": "order_open",
- "isCancellable": true,
- "isReturnable": true,
- "isReplaceable": true,
- "isAppeaseable": true,
- "isExpressReorderEnabled": true,
- "isReplacementOrder": true,
- "originalOrderId?": "string",
- "originalOrderNumber": "string",
- "replacementOrderIds": [
- "string"
], - "returns": [
- {
- "key": "string",
- "includeShipping": true,
- "shippingReturnReasonCode": "string",
- "shippingReturnReason": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "createdBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "lastModifiedBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "returnStatus": "string",
- "refundStatus": "string",
- "refundMethods": [
- "string"
], - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "id": "string",
- "lineItemId": "string",
- "comment": "string",
- "quantity": 0,
- "reasons": [
- {
- "quantity": 0,
- "reasonCode": "string",
- "reason": "string"
}
], - "brand": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}
}
]
}
], - "cancellationInfo": {
- "id": "string",
- "code": "string",
- "details": "string",
- "cancelledAt": "2019-08-24T14:15:22Z",
- "cancelledBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}, - "replacementInfo": {
- "replacedAt": "2019-08-24T14:15:22Z",
- "replacedBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Get an order by order number
| orderNumber required | string The order number |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "deliveries": [
- {
- "id": "string",
- "state": "string",
- "items": [
- {
- "id": "string",
- "quantity": "string"
}
], - "parcels": [
- {
- "id": "string",
- "carrier": "string",
- "trackingId": "string",
- "trackingUrl": "string"
}
]
}
], - "orderNumber": "string",
- "workflowState": "order_open",
- "isCancellable": true,
- "isReturnable": true,
- "isReplaceable": true,
- "isAppeaseable": true,
- "isExpressReorderEnabled": true,
- "isReplacementOrder": true,
- "originalOrderId?": "string",
- "originalOrderNumber": "string",
- "replacementOrderIds": [
- "string"
], - "returns": [
- {
- "key": "string",
- "includeShipping": true,
- "shippingReturnReasonCode": "string",
- "shippingReturnReason": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "createdBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "lastModifiedBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "returnStatus": "string",
- "refundStatus": "string",
- "refundMethods": [
- "string"
], - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "id": "string",
- "lineItemId": "string",
- "comment": "string",
- "quantity": 0,
- "reasons": [
- {
- "quantity": 0,
- "reasonCode": "string",
- "reason": "string"
}
], - "brand": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}
}
]
}
], - "cancellationInfo": {
- "id": "string",
- "code": "string",
- "details": "string",
- "cancelledAt": "2019-08-24T14:15:22Z",
- "cancelledBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}, - "replacementInfo": {
- "replacedAt": "2019-08-24T14:15:22Z",
- "replacedBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Get a collection of the customer's orders.
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| page required | string The page of the orders to get starting from 0. Related to the page-size, for example with page-size set to 5, page 1 will get orders 6-10. |
| page-size required | string The page size of the returned data |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
{- "data": {
- "orders": [
- {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": null,
- "value": null
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": null,
- "rulesetId": null,
- "ruleIndex": null,
- "ruleName": null,
- "effectType": null,
- "props": { }
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "deliveries": [
- {
- "id": "string",
- "state": "string",
- "items": [
- {
- "id": "string",
- "quantity": "string"
}
], - "parcels": [
- {
- "id": "string",
- "carrier": "string",
- "trackingId": "string",
- "trackingUrl": "string"
}
]
}
], - "orderNumber": "string",
- "workflowState": "order_open",
- "isCancellable": true,
- "isReturnable": true,
- "isReplaceable": true,
- "isAppeaseable": true,
- "isExpressReorderEnabled": true,
- "isReplacementOrder": true,
- "originalOrderId?": "string",
- "originalOrderNumber": "string",
- "replacementOrderIds": [
- "string"
], - "returns": [
- {
- "key": "string",
- "includeShipping": true,
- "shippingReturnReasonCode": "string",
- "shippingReturnReason": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "createdBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "lastModifiedBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "returnStatus": "string",
- "refundStatus": "string",
- "refundMethods": [
- "string"
], - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "id": "string",
- "lineItemId": "string",
- "comment": "string",
- "quantity": 0,
- "reasons": [
- {
- "quantity": null,
- "reasonCode": null,
- "reason": null
}
], - "brand": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": null,
- "name": null,
- "amount": null
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsGroups": [
- { }
]
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsGroups": [
- { }
]
}
}
]
}
], - "cancellationInfo": {
- "id": "string",
- "code": "string",
- "details": "string",
- "cancelledAt": "2019-08-24T14:15:22Z",
- "cancelledBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}, - "replacementInfo": {
- "replacedAt": "2019-08-24T14:15:22Z",
- "replacedBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}
}
], - "currentPage": 0,
- "totalOrders": 0,
- "pageSize": 0
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Health check information for the orders service
{- "data": {
- "status": "pass",
- "version": "1.0",
- "releaseId": "1234567890",
- "service": "inventory",
- "details": {
- "time": "2023-11-15T12:19:05.737Z",
- "env": "dev",
- "commitId": "368de0fbdff3a5634895d69f8b17cbdfd5e77bfb"
}
}
}Create a new return for an order
| id required | string The resource id |
| siteKey required | string The site key for the order |
| locale required | string The locale for the request |
| idempotency-key required | string Idempotency key to ensure the request is processed only once |
required | object The details of the items to return |
{- "returnDraft": {
- "includeShipping": true,
- "lineItems": [
- {
- "groupId": 0,
- "quantity": 0,
- "lineItemId": "string",
- "reason": "string",
- "reasonCode": "string",
- "comment": "string"
}
]
}
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "deliveries": [
- {
- "id": "string",
- "state": "string",
- "items": [
- {
- "id": "string",
- "quantity": "string"
}
], - "parcels": [
- {
- "id": "string",
- "carrier": "string",
- "trackingId": "string",
- "trackingUrl": "string"
}
]
}
], - "orderNumber": "string",
- "workflowState": "order_open",
- "isCancellable": true,
- "isReturnable": true,
- "isReplaceable": true,
- "isAppeaseable": true,
- "isExpressReorderEnabled": true,
- "isReplacementOrder": true,
- "originalOrderId?": "string",
- "originalOrderNumber": "string",
- "replacementOrderIds": [
- "string"
], - "returns": [
- {
- "key": "string",
- "includeShipping": true,
- "shippingReturnReasonCode": "string",
- "shippingReturnReason": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "createdBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "lastModifiedBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "returnStatus": "string",
- "refundStatus": "string",
- "refundMethods": [
- "string"
], - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "id": "string",
- "lineItemId": "string",
- "comment": "string",
- "quantity": 0,
- "reasons": [
- {
- "quantity": 0,
- "reasonCode": "string",
- "reason": "string"
}
], - "brand": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}
}
]
}
], - "cancellationInfo": {
- "id": "string",
- "code": "string",
- "details": "string",
- "cancelledAt": "2019-08-24T14:15:22Z",
- "cancelledBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}, - "replacementInfo": {
- "replacedAt": "2019-08-24T14:15:22Z",
- "replacedBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Generate a summary for creating a new return
| id required | string The resource id |
{- "data": {
- "orderId": "string",
- "shippingRefunded": true,
- "shipping": {
- "availableToRefundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "previouslyRefunded": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "availableToRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "lineItemId": "string",
- "brand": "string",
- "name": "string",
- "sku": "string",
- "quantity": 0,
- "previouslyReturnedQuantity": 0,
- "availableToReturnQuantity": 0,
- "returnQuantity": 0,
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
], - "lineItemIds": [
- "string"
]
}
}
]
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Price a summary for creating a new return
| id required | string The resource id |
required | object The details of the items to price for a return refund |
{- "returnLineItemQuantities": {
- "lineItemId": "string",
- "quantity": 0
}
}{- "data": {
- "orderId": "string",
- "shippingRefunded": true,
- "shipping": {
- "availableToRefundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "previouslyRefunded": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "availableToRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "lineItemId": "string",
- "brand": "string",
- "name": "string",
- "sku": "string",
- "quantity": 0,
- "previouslyReturnedQuantity": 0,
- "availableToReturnQuantity": 0,
- "returnQuantity": 0,
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
], - "lineItemIds": [
- "string"
]
}
}
]
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Sets a return as manually refunded by recording transaction details. This endpoint is used when a return has been refunded outside of the normal automated process and needs to be marked as such in the system.
| orderNumber required | string The order number |
| returnKey required | string The return key |
| siteKey required | string Site key |
| locale required | string Locale |
| transactionRef | string Optional reference to the external transaction |
| transactionNotes required | string Notes about the manual refund transaction |
{- "transactionRef": "string",
- "transactionNotes": "string"
}{- "data": {
- "key": "string",
- "includeShipping": true,
- "shippingReturnReasonCode": "string",
- "shippingReturnReason": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "createdBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "lastModifiedBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "returnStatus": "string",
- "refundStatus": "string",
- "refundMethods": [
- "string"
], - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "id": "string",
- "lineItemId": "string",
- "comment": "string",
- "quantity": 0,
- "reasons": [
- {
- "quantity": 0,
- "reasonCode": "string",
- "reason": "string"
}
], - "brand": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
]
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
]
}
}
]
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Retrieves all returns associated with a specific order number. This endpoint allows filtering and retrieving return information for a given order.
| orderNumber required | string The order number to get returns for |
{- "data": [
- {
- "key": "string",
- "includeShipping": true,
- "shippingReturnReasonCode": "string",
- "shippingReturnReason": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "createdBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "lastModifiedBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "returnStatus": "string",
- "refundStatus": "string",
- "refundMethods": [
- "string"
], - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "id": "string",
- "lineItemId": "string",
- "comment": "string",
- "quantity": 0,
- "reasons": [
- {
- "quantity": 0,
- "reasonCode": "string",
- "reason": "string"
}
], - "brand": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
]
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
]
}
}
]
}
], - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Retrieves a specific return using the order number and return key. This endpoint provides detailed information about a single return associated with an order.
| orderNumber required | string The order number |
| returnKey required | string The return key |
{- "data": {
- "key": "string",
- "includeShipping": true,
- "shippingReturnReasonCode": "string",
- "shippingReturnReason": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "createdBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "lastModifiedBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "returnStatus": "string",
- "refundStatus": "string",
- "refundMethods": [
- "string"
], - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "id": "string",
- "lineItemId": "string",
- "comment": "string",
- "quantity": 0,
- "reasons": [
- {
- "quantity": 0,
- "reasonCode": "string",
- "reason": "string"
}
], - "brand": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
]
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
]
}
}
]
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Create a new replacement for an order
| id required | string The resource id |
| marketKey required | string The market key for the order |
| siteKey required | string The site key for the order |
| locale required | string The locale for the request |
| idempotency-key required | string Idempotency key to ensure the request is processed only once |
required | object The details of the items to replacement |
{- "replacementDraft": {
- "deliveryAddressId": "string",
- "lineItems": [
- {
- "groupId": 0,
- "quantity": 0,
- "lineItemId": "string",
- "reason": "string",
- "reasonCode": "string",
- "comment": "string"
}
]
}
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "deliveries": [
- {
- "id": "string",
- "state": "string",
- "items": [
- {
- "id": "string",
- "quantity": "string"
}
], - "parcels": [
- {
- "id": "string",
- "carrier": "string",
- "trackingId": "string",
- "trackingUrl": "string"
}
]
}
], - "orderNumber": "string",
- "workflowState": "order_open",
- "isCancellable": true,
- "isReturnable": true,
- "isReplaceable": true,
- "isAppeaseable": true,
- "isExpressReorderEnabled": true,
- "isReplacementOrder": true,
- "originalOrderId?": "string",
- "originalOrderNumber": "string",
- "replacementOrderIds": [
- "string"
], - "returns": [
- {
- "key": "string",
- "includeShipping": true,
- "shippingReturnReasonCode": "string",
- "shippingReturnReason": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "createdBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "lastModifiedBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "returnStatus": "string",
- "refundStatus": "string",
- "refundMethods": [
- "string"
], - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "id": "string",
- "lineItemId": "string",
- "comment": "string",
- "quantity": 0,
- "reasons": [
- {
- "quantity": 0,
- "reasonCode": "string",
- "reason": "string"
}
], - "brand": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}
}
]
}
], - "cancellationInfo": {
- "id": "string",
- "code": "string",
- "details": "string",
- "cancelledAt": "2019-08-24T14:15:22Z",
- "cancelledBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}, - "replacementInfo": {
- "replacedAt": "2019-08-24T14:15:22Z",
- "replacedBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Generate a summary for creating a new replacement
| id required | string The resource id |
{- "data": {
- "orderId": "string",
- "lineItems": [
- {
- "groupType": "string",
- "lineItemId": "string",
- "brand": "string",
- "name": "string",
- "sku": "string",
- "quantity": 0,
- "previouslyReturnedQuantity": 0,
- "availableToReplaceQuantity": 0,
- "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
]
}
}
], - "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Creates an appeasement for an order. An appeasement is a refund without requiring physical items to be returned.
| id required | string The resource id |
| siteKey required | string The site key for the order |
| locale required | string The locale for the request |
| idempotency-key required | string Idempotency key to ensure the request is processed only once |
required | object (appeasement-calculation-input) |
| reasonCode required | string The reason code for the appeasement |
| additionalInfo | string Optional additional information about the appeasement |
{- "input": {
- "type": "PERCENTAGE",
- "value": 0,
- "lineItemIds": [
- "string"
], - "includeShipping": true
}, - "reasonCode": "string",
- "additionalInfo": "string"
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "deliveries": [
- {
- "id": "string",
- "state": "string",
- "items": [
- {
- "id": "string",
- "quantity": "string"
}
], - "parcels": [
- {
- "id": "string",
- "carrier": "string",
- "trackingId": "string",
- "trackingUrl": "string"
}
]
}
], - "orderNumber": "string",
- "workflowState": "order_open",
- "isCancellable": true,
- "isReturnable": true,
- "isReplaceable": true,
- "isAppeaseable": true,
- "isExpressReorderEnabled": true,
- "isReplacementOrder": true,
- "originalOrderId?": "string",
- "originalOrderNumber": "string",
- "replacementOrderIds": [
- "string"
], - "returns": [
- {
- "key": "string",
- "includeShipping": true,
- "shippingReturnReasonCode": "string",
- "shippingReturnReason": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "createdBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "lastModifiedBy": {
- "id": "string",
- "name": "string",
- "email": "string",
- "userType": "CUSTOMER"
}, - "returnStatus": "string",
- "refundStatus": "string",
- "refundMethods": [
- "string"
], - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "lineItems": [
- {
- "groupType": "string",
- "id": "string",
- "lineItemId": "string",
- "comment": "string",
- "quantity": 0,
- "reasons": [
- {
- "quantity": 0,
- "reasonCode": "string",
- "reason": "string"
}
], - "brand": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountedPrice": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "elementsAndTreatmentsNames": [
- null
]
}
]
}
}
]
}
], - "cancellationInfo": {
- "id": "string",
- "code": "string",
- "details": "string",
- "cancelledAt": "2019-08-24T14:15:22Z",
- "cancelledBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}, - "replacementInfo": {
- "replacedAt": "2019-08-24T14:15:22Z",
- "replacedBy": {
- "id": "string",
- "email": "string",
- "name": "string",
- "userType": "COLLEAGUE"
}
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Get a summary for creating a new appeasement
| id required | string The resource id |
| type required | string Enum: "PERCENTAGE" "AMOUNT" |
| value required | number |
| lineItemIds required | Array of strings |
| includeShipping required | boolean |
{- "type": "PERCENTAGE",
- "value": 0,
- "lineItemIds": [
- "string"
], - "includeShipping": true
}{- "data": {
- "orderId": "string",
- "shipping": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "previouslyRefundedAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "availableToRefundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}, - "lineItems": [
- {
- "groupType": "string",
- "lineItemId": "string",
- "brandName": "string",
- "name": "string",
- "sku": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discounts": [
- {
- "key": "string",
- "name": "string",
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
], - "quantity": 0,
- "previouslyReturnedQuantity": 0,
- "previouslyRefundedAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "availableToRefundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "refundAmount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "color": "string",
- "size": "string",
- "frame": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}, - "lensPackage": {
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsGroups": [
- {
- "key": "string",
- "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "elementsAndTreatmentsNames": [
- "string"
]
}
]
}
}
], - "availableToRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "itemsRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "shippingRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalRefund": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Get a subscription by id
| subscriptionId required | string The ID of the subscription |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "lastModifiedAt": "string",
- "hasFailedPayment": true,
- "customerId": "string",
- "customerEmail": "string",
- "cart": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "originOrderId": "string",
- "startsAt": "string",
- "nextOrderAt": "string",
- "recurringOrderState": "Active",
- "standardScheduleValue": 0,
- "standardScheduleUnits": "Days"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Update the subscription cart's recurrence_policy
| subscriptionId required | string The ID of the subscription |
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
| subscriptionId | string |
| subscriptionPlanType | string Enum: "POSTPAY" "PREPAY" "RECURRING" |
| recurrencePolicyId | string |
| nextOrderAt | string |
{- "subscriptionId": "string",
- "subscriptionPlanType": "POSTPAY",
- "recurrencePolicyId": "string",
- "nextOrderAt": "string"
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Remove a group from a customer's subscription's template cart
| subscriptionId required | string The ID of the subscription |
| groupId required | string The ID of a contact lens group in a cart |
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "lastModifiedAt": "string",
- "hasFailedPayment": true,
- "customerId": "string",
- "customerEmail": "string",
- "cart": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "originOrderId": "string",
- "startsAt": "string",
- "nextOrderAt": "string",
- "recurringOrderState": "Active",
- "standardScheduleValue": 0,
- "standardScheduleUnits": "Days"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Pause the subscription
| subscriptionId required | string The ID of the subscription |
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "lastModifiedAt": "string",
- "hasFailedPayment": true,
- "customerId": "string",
- "customerEmail": "string",
- "cart": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "originOrderId": "string",
- "startsAt": "string",
- "nextOrderAt": "string",
- "recurringOrderState": "Active",
- "standardScheduleValue": 0,
- "standardScheduleUnits": "Days"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Resume the subscription
| subscriptionId required | string The ID of the subscription |
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "lastModifiedAt": "string",
- "hasFailedPayment": true,
- "customerId": "string",
- "customerEmail": "string",
- "cart": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "originOrderId": "string",
- "startsAt": "string",
- "nextOrderAt": "string",
- "recurringOrderState": "Active",
- "standardScheduleValue": 0,
- "standardScheduleUnits": "Days"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Cancel the subscription
| subscriptionId required | string The ID of the subscription |
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
Payload for cancelling a subscription by id.
| code required | string Reason code |
| detail required | string Detail about the cancellation reason |
| paymentMethodId | string Identifier of the payment method to settle outstanding balance |
{- "code": "string",
- "detail": "string",
- "paymentMethodId": "string"
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "lastModifiedAt": "string",
- "hasFailedPayment": true,
- "customerId": "string",
- "customerEmail": "string",
- "cart": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "originOrderId": "string",
- "startsAt": "string",
- "nextOrderAt": "string",
- "recurringOrderState": "Active",
- "standardScheduleValue": 0,
- "standardScheduleUnits": "Days"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Retry the subscription payment
| subscriptionId required | string The ID of the subscription |
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "lastModifiedAt": "string",
- "hasFailedPayment": true,
- "customerId": "string",
- "customerEmail": "string",
- "cart": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "originOrderId": "string",
- "startsAt": "string",
- "nextOrderAt": "string",
- "recurringOrderState": "Active",
- "standardScheduleValue": 0,
- "standardScheduleUnits": "Days"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Get my subscription
| customerId required | string The id of the customer |
| siteKey required | string The site key |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "lastModifiedAt": "string",
- "hasFailedPayment": true,
- "customerId": "string",
- "customerEmail": "string",
- "cart": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "originOrderId": "string",
- "startsAt": "string",
- "nextOrderAt": "string",
- "recurringOrderState": "Active",
- "standardScheduleValue": 0,
- "standardScheduleUnits": "Days"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Get my subscriptions
| customerId required | string The id of the customer |
| siteKey required | string The site key |
{- "data": [
- {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "lastModifiedAt": "string",
- "hasFailedPayment": true,
- "customerId": "string",
- "customerEmail": "string",
- "cart": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": null,
- "value": null
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": null,
- "rulesetId": null,
- "ruleIndex": null,
- "ruleName": null,
- "effectType": null,
- "props": { }
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "originOrderId": "string",
- "startsAt": "string",
- "nextOrderAt": "string",
- "recurringOrderState": "Active",
- "standardScheduleValue": 0,
- "standardScheduleUnits": "Days"
}
], - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Remove a group from a subscription's template cart
| subscriptionId required | string The ID of the subscription |
| groupId required | string The ID of a contact lens group in a cart |
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "lastModifiedAt": "string",
- "hasFailedPayment": true,
- "customerId": "string",
- "customerEmail": "string",
- "cart": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "originOrderId": "string",
- "startsAt": "string",
- "nextOrderAt": "string",
- "recurringOrderState": "Active",
- "standardScheduleValue": 0,
- "standardScheduleUnits": "Days"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Pause the subscription
| subscriptionId required | string The ID of the subscription |
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "lastModifiedAt": "string",
- "hasFailedPayment": true,
- "customerId": "string",
- "customerEmail": "string",
- "cart": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "originOrderId": "string",
- "startsAt": "string",
- "nextOrderAt": "string",
- "recurringOrderState": "Active",
- "standardScheduleValue": 0,
- "standardScheduleUnits": "Days"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Resume the subscription
| subscriptionId required | string The ID of the subscription |
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "lastModifiedAt": "string",
- "hasFailedPayment": true,
- "customerId": "string",
- "customerEmail": "string",
- "cart": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "originOrderId": "string",
- "startsAt": "string",
- "nextOrderAt": "string",
- "recurringOrderState": "Active",
- "standardScheduleValue": 0,
- "standardScheduleUnits": "Days"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Cancel the subscription
| subscriptionId required | string The ID of the subscription |
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
Payload for cancelling a subscription by id.
| code required | string Reason code |
| detail required | string Detail about the cancellation reason |
| paymentMethodId | string Identifier of the payment method to settle outstanding balance |
{- "code": "string",
- "detail": "string",
- "paymentMethodId": "string"
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "lastModifiedAt": "string",
- "hasFailedPayment": true,
- "customerId": "string",
- "customerEmail": "string",
- "cart": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "originOrderId": "string",
- "startsAt": "string",
- "nextOrderAt": "string",
- "recurringOrderState": "Active",
- "standardScheduleValue": 0,
- "standardScheduleUnits": "Days"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Retry the subscription payment
| subscriptionId required | string The ID of the subscription |
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "lastModifiedAt": "string",
- "hasFailedPayment": true,
- "customerId": "string",
- "customerEmail": "string",
- "cart": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "originOrderId": "string",
- "startsAt": "string",
- "nextOrderAt": "string",
- "recurringOrderState": "Active",
- "standardScheduleValue": 0,
- "standardScheduleUnits": "Days"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Update subscription's payment method
| subscriptionId required | string The ID of the subscription |
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The JWT authorisation token known to commercetools for the customer session |
| paymentMethodId | string |
{- "paymentMethodId": "string"
}{- "data": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "lastModifiedAt": "string",
- "hasFailedPayment": true,
- "customerId": "string",
- "customerEmail": "string",
- "cart": {
- "id": "string",
- "version": 0,
- "createdAt": "string",
- "customerEmail": "string",
- "deliveryAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "billingAddress": {
- "id": "string",
- "key": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "city": "string",
- "postcode": "string",
- "county": "string",
- "country": "string",
- "title": "string"
}, - "lineItemGroups": {
- "groupId": 0,
- "groupNumber": "string",
- "groupType": "string",
- "statusLastModifiedAt": "2019-08-24T14:15:22Z",
- "productStatus": "string",
- "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "unitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "savings": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxRate": 0,
- "name": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoLightUrl": "string",
- "logoDarkUrl": "string"
}, - "productKey": "string",
- "dataLayer": [
- { }
], - "refundInfos": [
- { }
], - "supplyChainGroupNumber": "string",
- "colleagueStatus": "string",
- "customerStatus": "string",
- "prescription": { },
- "frame": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "lens": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}, - "elementsAndTreatments": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": null,
- "value": null,
- "position": null,
- "subPosition": null,
- "scope": null
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}
}, - "lensOptions": {
- "id": "string",
- "quantity": 0,
- "name": "string",
- "oneOffUnitPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalDiscountedPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "variant": {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "shortDescription": "string",
- "key": "string",
- "sku": "string",
- "inventory": {
- "inStock": true,
- "isStockLevelLow": true,
- "quantity": 0,
- "groupRef": "string"
}, - "productType": "string"
}, - "productKey": "string",
- "selectedOptions": [
- {
- "label": "string",
- "value": "string"
}
], - "productType": "string",
- "packDescription": "string",
- "taxLineNumber": "string",
- "deliveryExclusion": true,
- "brand": "string",
- "image": {
- "label": "string",
- "url": "string"
}, - "shortDescription": "string",
- "quantityLimits": {
- "min": 0,
- "max": 0
}, - "talonOneData": {
- "originalValue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "pairId": 0,
- "discounts": [
- {
- "campaignId": 0,
- "rulesetId": 0,
- "ruleIndex": 0,
- "ruleName": "string",
- "effectType": "string",
- "props": {
- "name": "string",
- "value": 0,
- "position": 0,
- "subPosition": 0,
- "scope": "string"
}
}
]
}, - "contactLensData": {
- "eye": "left",
- "sku": "string",
- "quantity": 0
}, - "productGroup": "string",
- "groupId": 0,
- "lensOptions": {
- "colour": "string",
- "topLTF": "string",
- "bottomLTF": "string",
- "fullTintLTF": "string"
}
}, - "manufacturingData": {
- "requisitionRequestId": 0,
- "manufacturingData": "string",
- "frameAvailable": true,
- "orderType": "string",
- "errors": [
- "string"
], - "infos": [
- "string"
], - "warnings": [
- "string"
]
}
}, - "subtotal": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "amountDue": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalPrice": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "taxedPrice": {
- "totalNet": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalGross": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "totalTax": { },
- "taxPortions": [
- {
- "name": { },
- "rate": 0,
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}, - "isTaxInclusive": true,
- "deliveryMethod": {
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "method": {
- "id": "string",
- "price": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "serviceType": "string",
- "carrierCode": "string",
- "deliveryBy": "string",
- "cutoff": 0,
- "cutoffDateTime": "string"
}
}, - "description": "string",
- "discountCodes": [
- "string"
], - "paymentMethods": [
- "string"
], - "isExpressReorder": true,
- "lastOrderedAt": "string",
- "healthFund": "string",
- "healthFundPolicy": "string",
- "paymentInfo": {
- "payments": [
- {
- "id": "string",
- "key": "string",
- "brand": "string",
- "lastFour": "string",
- "paymentInterface": "string",
- "method": "string",
- "amountPlanned": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}
]
}
}, - "originOrderId": "string",
- "startsAt": "string",
- "nextOrderAt": "string",
- "recurringOrderState": "Active",
- "standardScheduleValue": 0,
- "standardScheduleUnits": "Days"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Health check information for the subscriptions service
{- "data": {
- "status": "pass",
- "version": "1.0",
- "releaseId": "1234567890",
- "service": "inventory",
- "details": {
- "time": "2023-11-15T12:19:05.737Z",
- "env": "dev",
- "commitId": "368de0fbdff3a5634895d69f8b17cbdfd5e77bfb"
}
}
}