Download OpenAPI specification:
Specification contains list of all services available through retail platform.
| customerId required | string Customer ID |
| siteKey | string The site key |
{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}A subset of customer info is returned based on a search query
| query required | string Search query string |
| siteKey required | string The site key |
| locale | string The ISO locale code |
{- "data": [
- {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "Mr",
- "firstName": "Test",
- "lastName": "Shopper",
- "dateOfBirth": "1980-01-04",
- "billingAddresses": [ ],
- "deliveryAddresses": [ ],
- "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb"
}, - {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a2",
- "email": "test2@shopper.com",
- "title": "Mr",
- "firstName": "Test",
- "lastName": "Shopper",
- "dateOfBirth": "1980-01-05",
- "billingAddresses": [ ],
- "deliveryAddresses": [ ],
- "createdAt": "2024-07-02T12:00:00Z",
- "registeredOnSite": "specsavers-gb"
}
], - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}A subset of customer info is returned based on exact field matching
| siteKey required | string The site key |
| marketKey required | string The market key |
| firstName | string The customer first name to search for |
| lastName | string The customer last name to search for |
| phoneNumber | string The customer phone number to search for |
string The customer email to search for | |
| dateOfBirth | string The customer date of birth to search for. Must be in YYYY-MM-DD format |
| postcode | string The customer postal code to search for |
| nationalHealthId | string The customer national health id to search for |
{- "data": [
- {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "Mr",
- "firstName": "Test",
- "lastName": "Shopper",
- "dateOfBirth": "1980-01-04",
- "billingAddresses": [ ],
- "deliveryAddresses": [ ],
- "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb"
}, - {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a2",
- "email": "test2@shopper.com",
- "title": "Mr",
- "firstName": "Test",
- "lastName": "Shopper",
- "dateOfBirth": "1980-01-05",
- "billingAddresses": [ ],
- "deliveryAddresses": [ ],
- "createdAt": "2024-07-02T12:00:00Z",
- "registeredOnSite": "specsavers-gb"
}
], - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Update profile fields for a customer identified by ID
| customerId required | string <uuid> ^[0-9a-fA-F-]{36}$ Customer ID |
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| marketKey required | string The market key |
Partial profile update payload
| title | string |
| firstName | string |
| lastName | string |
| dateOfBirth | string <date> |
| phoneNumber | string |
string <email> |
{- "title": "string",
- "firstName": "string",
- "lastName": "string",
- "dateOfBirth": "2019-08-24",
- "phoneNumber": "string",
- "email": "user@example.com"
}{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Update the email address for a customer identified by ID
| customerId required | string Customer ID |
| siteKey required | string The site key |
Email update payload
| email required | string <email> The new email address |
{- "email": "user@example.com"
}{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Add an activity log entry for a customer (colleague route)
| customerId required | string Customer ID |
| siteKey required | string The site key |
| idempotency-key required | string Ensures idempotency |
Activity payload
| detail required | string Activity detail text |
| channel | string Enum: "online" "instore" "customer-service" The channel where the activity occurred |
{- "detail": "string",
- "channel": "online"
}{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Update a customer's payment method by ID (colleague route)
| customerId required | string Customer ID |
| paymentMethodId required | string Payment method id |
| siteKey required | string The site key |
| idempotency-key required | string Ensures idempotency |
Payment method update payload
| holderName required | string Cardholder name |
object (1.0.0-customer_address-draft) |
{- "holderName": "string",
- "address": {
- "key": "string",
- "title": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "county": "string",
- "city": "string",
- "postcode": "string",
- "country": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUpdatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Remove a customer's payment method by ID (colleague route)
| customerId required | string Customer ID |
| paymentMethodId required | string Payment method id |
| siteKey required | string The site key |
{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Add a delivery address to a customer (colleague route)
| customerId required | string <uuid> ^[0-9a-fA-F-]{36}$ Customer ID |
| siteKey required | string The site key |
| idempotency-key required | string Ensures idempotency |
Delivery address payload
| isDefault required | boolean Whether this should be the default delivery address |
required | object (1.0.0-customer_address-draft) |
{- "isDefault": true,
- "address": {
- "key": "string",
- "title": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "county": "string",
- "city": "string",
- "postcode": "string",
- "country": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUpdatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Edit a customer's delivery address (colleague route)
| customerId required | string <uuid> ^[0-9a-fA-F-]{36}$ Customer ID |
| addressId required | string Address id |
| siteKey required | string The site key |
| idempotency-key required | string Ensures idempotency |
Delivery address update payload
| isDefault required | boolean Whether this should be the default delivery address |
required | object (1.0.0-customer_address-draft) |
{- "isDefault": true,
- "address": {
- "key": "string",
- "title": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "county": "string",
- "city": "string",
- "postcode": "string",
- "country": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUpdatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Remove a customer's delivery address (colleague route)
| customerId required | string Customer ID |
| addressId required | string Address id |
| siteKey required | string The site key |
{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Set a delivery address as the default for a customer (colleague route)
| customerId required | string Customer ID |
| addressId required | string Address id |
| siteKey required | string The site key |
{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}The customer details are returned matching the provided customer token and site key
| marketKey required | string The market key |
| specsavers-customer-auth required | string The customer token |
{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Update the current customer's profile fields
| marketKey required | string The market key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The customer token |
The payload schema describes the information required to update the customer's profile
| title | string The title being set |
| firstName required | string The first name being set |
| lastName required | string The last name being set |
| nationalHealthId | string The national health ID being set |
| dateOfBirth | string The data of birth being set |
| gender | string The gender being set |
| phoneNumber | string The telephone number being set |
{- "title": "string",
- "firstName": "string",
- "lastName": "string",
- "nationalHealthId": "string",
- "dateOfBirth": "string",
- "gender": "string",
- "phoneNumber": "string"
}{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Add a new address to the current customer's profile
| marketKey required | string The market key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The customer token |
| idempotency-key required | string Ensures idempotency |
The payload schema describes the information required to add an address to the customer's profile
required | object (1.0.0-customer_address-draft) The address being set |
| isBilling | boolean Indicates the address should be used for billing |
| isDelivery | boolean Indicates the address should be used for delivery |
| isDefaultBilling | boolean Indicates the address should be used as the default for billing |
| isDefaultDelivery | boolean Indicates the address should be used as the default for delivery |
{- "address": {
- "key": "string",
- "title": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "county": "string",
- "city": "string",
- "postcode": "string",
- "country": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUpdatedAt": "2019-08-24T14:15:22Z"
}, - "isBilling": true,
- "isDelivery": true,
- "isDefaultBilling": true,
- "isDefaultDelivery": true
}{- "data": {
- "customer": {
- "id": "string",
- "email": "string",
- "title": "string",
- "firstName": "string",
- "lastName": "string",
- "billingAddresses": [
- {
- "id": "string",
- "key": "string",
- "title": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "county": "string",
- "city": "string",
- "postcode": "string",
- "country": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUpdatedAt": "2019-08-24T14:15:22Z"
}
], - "deliveryAddresses": [
- {
- "id": "string",
- "key": "string",
- "title": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "county": "string",
- "city": "string",
- "postcode": "string",
- "country": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUpdatedAt": "2019-08-24T14:15:22Z"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "lastGlassesOrderId": "string",
- "lastContactLensesOrderId": "string",
- "defaultDeliveryAddressId": "string",
- "defaultBillingAddressId": "string",
- "nationalHealthId": "string",
- "gender": "string",
- "registeredOnSite": "string",
- "phoneNumber": "string",
- "dateOfBirth": "string",
- "storedPaymentMethods": [
- {
- "isVerified": true,
- "id": "string",
- "billingAddress": {
- "id": "string",
- "key": "string",
- "title": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "county": "string",
- "city": "string",
- "postcode": "string",
- "country": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUpdatedAt": "2019-08-24T14:15:22Z"
}, - "type": "string",
- "name": "string",
- "brand": "string",
- "lastModifiedAt": "2019-08-24T14:15:22Z",
- "shopperEmail": "string",
- "shopperReference": "string",
- "isDefault": true,
- "supportsSubscriptions": true,
- "isLinkedToActiveSubscription": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUsedAt": "2019-08-24T14:15:22Z",
- "issuerName": "string",
- "lastFour": "string",
- "expiryMonth": 0,
- "expiryYear": 0,
- "holderName": "string",
- "isExpired": true,
- "state": "string",
- "nickname": "string",
- "token": "string"
}
], - "aftercareStore": {
- "id": "string",
- "name": "string",
- "slug": "string",
- "lineOfBusiness": "OPTICAL",
- "coordinates": {
- "latitude": "string",
- "longitude": "string"
}, - "contactInfo": {
- "phone": "string",
- "email": "string"
}, - "address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "postcode": "string",
- "country": "string",
- "formattedAddress": "string"
}
}
}, - "addressId": "string"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Edit an existing address in the current customer's profile
| addressId required | string The ID of the address to edit |
| marketKey required | string The market key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The customer token |
| idempotency-key required | string Ensures idempotency |
The payload schema describes the information required to edit an address in the customer's profile
| addressId required | string The ID of the address being edited |
required | object (1.0.0-customer_address-draft) The address being edited |
| isBilling | boolean Indicates the address should be used for billing |
| isDelivery | boolean Indicates the address should be used for delivery |
| isDefaultBilling | boolean Indicates the address should be used as the default for billing |
| isDefaultDelivery | boolean Indicates the address should be used as the default for delivery |
{- "addressId": "string",
- "address": {
- "key": "string",
- "title": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "county": "string",
- "city": "string",
- "postcode": "string",
- "country": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUpdatedAt": "2019-08-24T14:15:22Z"
}, - "isBilling": true,
- "isDelivery": true,
- "isDefaultBilling": true,
- "isDefaultDelivery": true
}{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Remove an address from the current customer's profile
| addressId required | string The ID of the address to remove |
| marketKey required | string The market key |
| locale required | string The ISO locale code |
| isBilling | boolean Remove as billing address |
| isDelivery | boolean Remove as delivery address |
| specsavers-customer-auth required | string The customer token |
{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Set an address as the default billing and/or delivery address
| addressId required | string The ID of the address to set as default |
| marketKey required | string The market key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The customer token |
Default address options
| isDefaultDelivery | boolean Set as default delivery address |
| isDefaultBilling | boolean Set as default billing address |
{- "isDefaultDelivery": true,
- "isDefaultBilling": true
}{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Update the last glasses or contact lenses order ID for the customer
| marketKey required | string The market key |
| specsavers-customer-auth required | string The customer token |
Last order id payload - at least one ID must be provided
| lastContactLensesOrderId | string ID of the last contact lenses order |
| lastGlassesOrderId | string ID of the last glasses order |
{- "lastContactLensesOrderId": "string",
- "lastGlassesOrderId": "string"
}{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Add a new payment method to the current customer's wallet
| marketKey required | string The market key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The customer token |
Payment method payload
required | object (1.0.0-customer_address-draft) |
| adyenPaymentMethod required | object Adyen payment method details |
object |
{- "address": {
- "key": "string",
- "title": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "county": "string",
- "city": "string",
- "postcode": "string",
- "country": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUpdatedAt": "2019-08-24T14:15:22Z"
}, - "adyenPaymentMethod": { },
- "amount": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}
}{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Update an existing payment method in the customer's wallet
| paymentMethodId required | string The ID of the payment method to update |
| marketKey required | string The market key |
| specsavers-customer-auth required | string The customer token |
Payment method update payload
| holderName | string Cardholder name |
| expiryMonth | integer Expiry month (1-12) |
| expiryYear | integer Expiry year |
object (1.0.0-customer_address-draft) | |
| lastUsedAt | string <date-time> Last time the payment method was used |
{- "holderName": "string",
- "expiryMonth": 0,
- "expiryYear": 0,
- "address": {
- "key": "string",
- "title": "string",
- "firstName": "string",
- "lastName": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "county": "string",
- "city": "string",
- "postcode": "string",
- "country": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUpdatedAt": "2019-08-24T14:15:22Z"
}, - "lastUsedAt": "2019-08-24T14:15:22Z"
}{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Remove a payment method from the customer's wallet
| paymentMethodId required | string The ID of the payment method to remove |
| marketKey required | string The market key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The customer token |
{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Set a payment method as the default for the customer
| paymentMethodId required | string The ID of the payment method to set as default |
| marketKey required | string The market key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The customer token |
{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Update the current customer's email address
| marketKey required | string The market key |
| specsavers-customer-auth required | string The customer token |
The payload schema describes the information required to update the customer's email address
| email required | string The email address being set |
{- "email": "string"
}{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Sets the customer's default aftercare store
| marketKey required | string The market key |
| locale required | string The ISO locale code |
| specsavers-customer-auth required | string The customer token |
The payload schema describes the information required to update the customer's default aftercare store.
| aftercareStoreId | string The aftercare store id of the store to set as default on the customer's account |
{- "aftercareStoreId": "string"
}{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Register a new partial customer account
| siteKey required | string The site key |
Customer registration payload
| title | string |
| firstName | string |
| lastName | string |
| dateOfBirth | string <date> |
| phoneNumber | string |
| email required | string <email> |
| marketingOptIn | boolean Default: false |
| idpId | string Identity provider ID |
| anonymousId | string Anonymous session ID |
{- "title": "string",
- "firstName": "string",
- "lastName": "string",
- "dateOfBirth": "2019-08-24",
- "phoneNumber": "string",
- "email": "user@example.com",
- "marketingOptIn": false,
- "idpId": "string",
- "anonymousId": "string"
}{- "data": {
- "id": "27272a51-3825-4c41-8dc9-d956870fd7a1",
- "email": "test1@shopper.com",
- "title": "",
- "firstName": "Test",
- "lastName": "Shopper",
- "billingAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "deliveryAddresses": [
- {
- "id": "VEacUDED",
- "key": "1721398689806",
- "title": "Ms",
- "firstName": "Test",
- "lastName": "Shopper",
- "phone": "",
- "email": "",
- "addressLine1": "The Beeches, 16 Lakes Lane",
- "addressLine2": "",
- "addressLine3": "",
- "locality": "",
- "city": "Newport Pagnell",
- "postcode": "MK16 8HP",
- "county": "ABE",
- "country": "GB",
- "isDefault": false
}
], - "createdAt": "2024-07-01T12:00:00Z",
- "registeredOnSite": "specsavers-gb",
- "storedPaymentMethods": [
- {
- "id": "324f74b7-69e8-47bd-9d41-bd83db71b05a",
- "brand": "visa",
- "expiryMonth": 3,
- "expiryYear": 2030,
- "holderName": "visa credit",
- "isDefault": true,
- "lastFour": "6746",
- "nickname": "",
- "billingAddress": {
- "id": "RGPTK1gm",
- "title": "Mr",
- "firstName": "credit",
- "lastName": "visa",
- "addressLine1": "19 East Circular Road",
- "addressLine2": "",
- "addressLine3": "",
- "postcode": "OX25 2BJ",
- "city": "Bicester",
- "county": "",
- "country": "GB"
}
}
]
}, - "metrics": {
- "durationMs": 810.24
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Handle password reset event from identity provider
| siteKey required | string The site key |
Password reset event payload
| token required | string Password reset token |
| commercetoolsId | string Customer's Commercetools ID (optional) |
| email required | string <email> Customer's email address |
{- "token": "string",
- "commercetoolsId": "string",
- "email": "user@example.com"
}{- "data": {
- "message": "Validation failed",
- "code": "ValidationFailed",
- "errors": [
- "body.address.city is a required field",
- "body.address field has unspecified keys: email"
]
}, - "metrics": {
- "durationMs": 292.11
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Handle OTP verification event from identity provider
| siteKey required | string The site key |
OTP event payload
| commercetoolsId | string Customer's commercetools ID (optional) |
| email required | string <email> Customer's email address |
| otpCode required | string One-time password code |
{- "commercetoolsId": "string",
- "email": "user@example.com",
- "otpCode": "string"
}{- "data": {
- "message": "Validation failed",
- "code": "ValidationFailed",
- "errors": [
- "body.address.city is a required field",
- "body.address field has unspecified keys: email"
]
}, - "metrics": {
- "durationMs": 292.11
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}The health endpoint.
{- "data": {
- "status": "pass",
- "version": "1.0",
- "releaseId": "1234567890",
- "service": "inventory",
- "details": {
- "time": "2023-11-15T12:19:05.737Z",
- "env": "dev",
- "commitId": "368de0fbdff3a5634895d69f8b17cbdfd5e77bfb"
}
}
}Get the delivery options using the key of the site and id of cart supplied.
| siteKey required | string The key of the site for delivery options |
| cartId | string The id of the cart |
{- "data": {
- "data": {
- "items": {
- "key": "uk-contacts-standard",
- "serviceType": "STANDARD",
- "price": {
- "fractionDigits": 2,
- "currencyCode": "GBP",
- "centAmount": 199
}, - "businessDays": 10
}
}, - "metrics": {
- "durationMs": 190
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}The health endpoint.
{- "data": {
- "status": "pass",
- "version": "1.0",
- "releaseId": "1234567890",
- "service": "inventory",
- "details": {
- "time": "2023-11-15T12:19:05.737Z",
- "env": "dev",
- "commitId": "368de0fbdff3a5634895d69f8b17cbdfd5e77bfb"
}
}
}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 (1.0.0-order_order-address) | |
object (1.0.0-order_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 (1.0.0-order_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 (1.0.0-order_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 (1.0.0-order_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 (1.0.0-order_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 (1.0.0-order_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 (1.0.0-order_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 (1.0.0-order_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"
}
}
}Retrieves inventory for a list of skus provided based on site and optionally delivery country. You can also specify whether to avoid the cache when retrieving inventory information.
Note that although this is a POST request, nothing is created on the server. The POST verb is used because the request body is large and the GET verb has a limit on the size of the request body.
The payload schema describes the information required to retrieve inventory.
required | Array of objects List of skus to retrieve inventory information for. |
| siteKey required | string The id of the site to retrieve sku inventory for e.g. specsavers-gb |
| deliveryCountryCode | string The code of the country the sku will be delivered to. e.g. FR |
| live required | boolean If true, retrieve inventory from source system, otherwise check for a cached value first |
{- "items": [
- {
- "sku": "123",
- "fulfilmentCountryCode": "GB"
}
], - "siteKey": "specsavers-gb",
- "deliveryCountryCode": "GB",
- "live": true
}{- "data": { }
}Retrieves inventory for all skus. Optionally filtered by the query parameters siteKey or
fulfilmentCountryCode
Results can be paged using the query parameter limit along with a cursor using before or after query parameter.
| siteKey required | string The site key |
| limit | number [ 1 .. 500 ] The maximum number of results to return. 0 defaults to the maximum of 500 |
| before | string <= 10000 Cursor to retrieve results before. |
| after | string Cursor to retrieve results after. |
| fulfilmentCountryCode required | string The code of the country the sku will be fulfilled from. e.g. GB |
{- "data": {
- "items": [
- {
- "sku": "string",
- "inventory": {
- "quantity": 0,
- "inStock": true,
- "stockLevelLow": true,
- "fallback": true
}
}
], - "pageInfo": {
- "hasPreviousPage": true,
- "hasNextPage": true,
- "startCursor": "string",
- "endCursor": "string"
}, - "totalCount": 0
}
}Retrieves inventory for a single sku provided based on specified parameters. You can also specify whether to avoid the cache when retrieving inventory information.
| sku required | string The id of the sku to retrieve inventory information for. |
| siteKey required | string The site key |
| fulfilmentCountryCode required | string The code of the country the sku will be fulfilled from. e.g. GB |
| deliveryCountryCode | string The code of the country the sku will be delivered to. e.g. FR |
| live required | boolean If true, retrieve inventory from source system, otherwise check for a cached value first |
{- "data": { }
}The health endpoint.
{- "data": {
- "status": "pass",
- "version": "1.0",
- "releaseId": "1234567890",
- "service": "inventory",
- "details": {
- "time": "2023-11-15T12:19:05.737Z",
- "env": "dev",
- "commitId": "368de0fbdff3a5634895d69f8b17cbdfd5e77bfb"
}
}
}Returns all URLs for the given site key and locale.
Results can be paged using the query parameter limit along with an optional cursor of before or after.
| siteKey required | string The site key |
| locale required | string The ISO locale code |
| limit required | number [ 1 .. 500 ] The maximum number of results to return. 0 defaults to the maximum of 500 |
| before required | string <= 10000 Cursor to retrieve results before. |
| after required | string Cursor to retrieve results after. |
{- "data": {
- "items": [
- "/glasses/plastic-glasses/kids-sun-rx-08",
- "/glasses/geometric-glasses/osiris-outstanding"
], - "pageInfo": {
- "hasPreviousPage": false,
- "hasNextPage": true,
- "limit": 2,
- "startCursor": "eyJhc3NldFNpdGVXRlQOmVuLUdCIn0=",
- "endCursor": "eyJG9jYWxlIjoic3NkZ3dzLXVVuLUdCIn0="
}
}, - "metrics": {
- "durationMs": 886.42
}, - "context": {
- "siteKey": "specsavers-gb",
- "locale": "en-GB",
- "build": {
- "env": "dev",
- "releaseId": "842",
- "commitId": "96e3bccf81ce8dc58edc54808ccdaf5305c20561"
}
}
}Returns URL info for specific items.
Note that although this is a POST request, nothing is created on the server. The POST verb is used because the request body is potentially large and the GET verb has a limit on the size of the request body.
The payload schema describes the information required to retrieve URL info for multiple items.
| type required | string The type of the asset being looked up |
| key required | string The key of the asset being looked up |
[- {
- "type": "string",
- "key": "string"
}
]{- "data": {
- "product": {
- "5004833": {
- "specsavers-gb": {
- "en-GB": "/glasses/womens-glasses/mimco-02"
}, - "specsavers-ie": {
- "en-IE": "/glasses/womens-glasses/mimco-02"
}, - "specsavers-es": {
- "es-ES": "/glasses/gafas-de-mujer/mimco-02",
- "en-ES": "/en/glasses/womens-glasses/mimco-02"
}, - "specsavers-au": {
- "en-AU": "/glasses/womens-glasses/mimco-02"
}
}, - "X150": {
- "specsavers-gb": {
- "en-GB": "/x1-pez-cr39"
}, - "specsavers-ie": {
- "en-IE": "/x1-pez-cr39"
}, - "specsavers-es": {
- "es-ES": "/x1-pez-cr39",
- "en-ES": "/en/x1-pez-cr39"
}, - "specsavers-au": {
- "en-AU": "/x1-pez-cr39"
}
}
}
}, - "metrics": {
- "durationMs": 73.74
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "842",
- "commitId": "96e3bccf81ce8dc58edc54808ccdaf5305c20561"
}
}
}Returns all the assets data for the given asset type
Results can be paged using the query parameter limit along with an optional cursor of before or after.
| type required | string Enum: "blog-news-page" "brand-page" "category-page" "collection-page" "content-page" "health-fund-page" "health-page" "home-page" "offer-page" "product" "product-listing-page" "store" The asset type to retrieve |
| limit required | number [ 1 .. 500 ] The maximum number of results to return. 0 defaults to the maximum of 500 |
| before required | string <= 10000 Cursor to retrieve results before. |
| after required | string Cursor to retrieve results after. |
{- "data": {
- "items": [
- {
- "key": "5004833",
- "sites": {
- "specsavers-gb": {
- "en-GB": "/glasses/womens-glasses/mimco-02"
}, - "specsavers-es": {
- "es-ES": "/glasses/gafas-de-mujer/mimco-02",
- "en-ES": "/en/glasses/womens-glasses/mimco-02"
}
}
}
], - "pageInfo": {
- "hasPreviousPage": false,
- "hasNextPage": true,
- "limit": 2,
- "startCursor": "eyJhc3NldFR5cGVBbmRL9",
- "endCursor": "eyJhc3NldFR5cGVBbmR"
}
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Returns the asset data for the asset type and key
| type required | string Enum: "blog-news-page" "brand-page" "category-page" "collection-page" "content-page" "health-fund-page" "health-page" "home-page" "offer-page" "product" "product-listing-page" "store" The asset type to retrieve |
| key required | string The resource key |
{- "data": {
- "specsavers-gb": {
- "en-GB": "/glasses/womens-glasses/mimco-02"
}, - "specsavers-ie": {
- "en-IE": "/glasses/womens-glasses/mimco-02"
}, - "specsavers-es": {
- "es-ES": "/glasses/gafas-de-mujer/mimco-02",
- "en-ES": "/en/glasses/womens-glasses/mimco-02"
}, - "specsavers-au": {
- "en-AU": "/glasses/womens-glasses/mimco-02"
}
}, - "metrics": {
- "durationMs": 787.61
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "842",
- "commitId": "96e3bccf81ce8dc58edc54808ccdaf5305c20561"
}
}
}Returns all the assets data for the given asset group type
Results can be paged using the query parameter limit along with an optional cursor of before or after.
| group-type required | string Enum: "content" "catalog" The asset group type to retrieve |
| limit required | number [ 1 .. 500 ] The maximum number of results to return. 0 defaults to the maximum of 500 |
| before required | string <= 10000 Cursor to retrieve results before. |
| after required | string Cursor to retrieve results after. |
{- "data": {
- "items": [
- {
- "key": "5004833",
- "sites": {
- "specsavers-gb": {
- "en-GB": "/glasses/womens-glasses/mimco-02"
}, - "specsavers-es": {
- "es-ES": "/glasses/gafas-de-mujer/mimco-02",
- "en-ES": "/en/glasses/womens-glasses/mimco-02"
}
}
}
], - "pageInfo": {
- "hasPreviousPage": false,
- "hasNextPage": true,
- "limit": 2,
- "startCursor": "eyJhc3NldFR5cGVBbmRL9",
- "endCursor": "eyJhc3NldFR5cGVBbmR"
}
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Returns the URL data for the given site and locale
| siteKey required | string The key of the site for delivery options |
| locale required | string The ISO locale code |
{- "data": {
- "key": "specsavers-gb",
- "type": "home-page"
}, - "metrics": {
- "durationMs": 876.93
}, - "context": {
- "siteKey": "specsavers-gb",
- "locale": "en-GB",
- "build": {
- "env": "dev",
- "releaseId": "842",
- "commitId": "96e3bccf81ce8dc58edc54808ccdaf5305c20561"
}
}
}Returns the URL data for the given site, locale and path
| siteKey required | string The key of the site for delivery options |
| locale required | string The ISO locale code |
| * | string The wildcard should be the path of page to retrieve |
{- "data": {
- "key": "specsavers-gb",
- "type": "home-page"
}, - "metrics": {
- "durationMs": 876.93
}, - "context": {
- "siteKey": "specsavers-gb",
- "locale": "en-GB",
- "build": {
- "env": "dev",
- "releaseId": "842",
- "commitId": "96e3bccf81ce8dc58edc54808ccdaf5305c20561"
}
}
}Returns the list of valid asset types
{- "data": [
- "blog-news-page",
- "brand-page",
- "category-page",
- "collection-page",
- "content-page",
- "health-fund-page",
- "health-page",
- "home-page",
- "offer-page",
- "product",
- "product-listing-page",
- "store"
], - "metrics": {
- "durationMs": 0.41
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "842",
- "commitId": "96e3bccf81ce8dc58edc54808ccdaf5305c20561"
}
}
}Health check information for the URL service
{- "data": {
- "status": "pass",
- "version": "1.0",
- "releaseId": "1234567890",
- "service": "inventory",
- "details": {
- "time": "2023-11-15T12:19:05.737Z",
- "env": "dev",
- "commitId": "368de0fbdff3a5634895d69f8b17cbdfd5e77bfb"
}
}
}Checks whether URLs exist for the specified asset type and key
Checks the current and pending URLs for an Asset and determines if the pending URL is a duplicate
| type required | string Enum: "blog-news-page" "brand-page" "category-page" "collection-page" "content-page" "health-fund-page" "health-page" "home-page" "offer-page" "product" "product-listing-page" "store" The asset type to retrieve |
| key required | string The resource key |
{- "data": {
- "current": {
- "specsavers-gb": {
- "includeInSitemap": {
- "url": true
}, - "locales": {
- "url": {
- "en-GB": "/terms-and-conditions"
}
}
}, - "specsavers-ie": {
- "includeInSitemap": {
- "url": true
}, - "locales": {
- "url": {
- "en-IE": "/terms-and-conditions"
}
}
}, - "specsavers-es": {
- "includeInSitemap": {
- "url": true
}, - "locales": {
- "url": {
- "es-ES": "/terms-and-conditions",
- "en-ES": "/en/terms-and-conditions"
}
}
}, - "specsavers-au": {
- "includeInSitemap": {
- "url": true
}, - "locales": {
- "url": {
- "en-AU": "/terms-and-conditions"
}
}
}
}, - "pending": {
- "specsavers-gb": {
- "en-GB": {
- "url": "/terms-and-conditions",
- "isDuplicate": false
}
}, - "specsavers-ie": {
- "en-IE": {
- "url": "/terms-and-conditions",
- "isDuplicate": false
}
}, - "specsavers-es": {
- "es-ES": {
- "url": "/terms-and-conditions",
- "isDuplicate": false
}, - "en-ES": {
- "url": "/en/terms-and-conditions",
- "isDuplicate": false
}
}, - "specsavers-au": {
- "en-AU": {
- "url": "/terms-and-conditions",
- "isDuplicate": false
}
}
}
}, - "metrics": {
- "durationMs": 3528.68
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "842",
- "commitId": "96e3bccf81ce8dc58edc54808ccdaf5305c20561"
}
}
}Return url info for a specific category or product.
| key required | string The resource key |
| assetType required | string Enum: "product" "category" The type of the asset |
{- "data": {
- "product": {
- "sites": [
- "specsavers-gb",
- "specsavers-ie",
- "specsavers-au"
], - "includeInSitemap": true,
- "locales": {
- "en-IE": {
- "title": "Bow Glasses"
}, - "en-AU": {
- "title": "Bow Glasses"
}, - "en-GB": {
- "title": "Bow Glasses"
}
}, - "colorSlugs": {
- "en-IE": [
- "green"
], - "en-AU": [
- "green"
], - "en-GB": [
- "green"
]
}, - "siteLocaleOverrides": { },
- "createdAt": "2024-03-18T15:39:35.012Z",
- "ancestors": [
- {
- "type": "category",
- "key": "glasses"
}
], - "key": "bow-glasses"
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Return url info for all categories and products. Supports pagination
| limit | number [ 1 .. 500 ] The maximum number of results to return. 0 defaults to the maximum of 500 |
| after | string Cursor to retrieve results after. |
{- "data": {
- "items": {
- "property1": [
- {
- "sites": [
- "specsavers-gb",
- "specsavers-ie",
- "specsavers-au"
], - "includeInSitemap": true,
- "locales": {
- "en-IE": {
- "title": "Bow Glasses"
}, - "en-AU": {
- "title": "Bow Glasses"
}, - "en-GB": {
- "title": "Bow Glasses"
}
}, - "siteLocaleOverrides": { },
- "createdAt": "2024-03-18T15:39:35.012Z",
- "ancestors": [
- {
- "type": "category",
- "key": "glasses"
}
], - "key": "bow-glasses"
}
], - "property2": [
- {
- "sites": [
- "specsavers-gb",
- "specsavers-ie",
- "specsavers-au"
], - "includeInSitemap": true,
- "locales": {
- "en-IE": {
- "title": "Bow Glasses"
}, - "en-AU": {
- "title": "Bow Glasses"
}, - "en-GB": {
- "title": "Bow Glasses"
}
}, - "siteLocaleOverrides": { },
- "createdAt": "2024-03-18T15:39:35.012Z",
- "ancestors": [
- {
- "type": "category",
- "key": "glasses"
}
], - "key": "bow-glasses"
}
]
}, - "pageInfo": {
- "hasPreviousPage": true,
- "hasNextPage": true,
- "startCursor": "string",
- "endCursor": "string"
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Supports a number of views
Use locale to retrieve the product in a particular locale. If locale is not set it returns the product in all the supported locales.
Use siteKey to retrieve the product for a specific site, if the siteKey is not in the includedInStore property then 404 is returned.
Use projections to control the volume of data returned, multiple projections can be specified:
summary - returns the product details (summary is always returned, but use this to only return the summary)
skus - returns the variants of the product, can take longer for products with large numbers of variants
matrix - returns a concisely formatted version of the variant information, use when volumes of potential skus is very high
Use filters to control filtering of products searchable, sellable and browsable. Multiple filters can be specified:
isSearchable - limits to products defined as searchable in product data
isSellableOnWeb - limits to products defined as sellable online in product data
isBrowsable - limits to products defined as browsable in product data
| key required | string The resource key |
| locale | string The ISO locale code |
| siteKey | string The site key |
| currencyCode | string Used in retrieving sku prices, requested currency code |
| customerGroup | string Used in retrieving sku prices, Customer group identiifier |
| customerId | string Used in retrieving sku prices, Customer ID |
| filters | string Example: filters='isBrowsable,isSearchable,isSellableOnWeb' Comma separated string of filters to apply to the products, valid values are 'isBrowsable', 'isSellableOnWeb', 'isSearchable' |
| priceChannelKey | string Used in retrieving sku prices,, Key of the price channel / site |
| projections | string Example: projections='summary,skus,matrix' Comma separated string containing product projections. Valid projections 'summary', 'matrix', 'skus', 'prices' |
object Nested projection attributes used to reduce the attributes returned for a projection. Note the projection specified in the key should match a projection specified in the projection query param. Example: |
{- "data": {
- "property1": {
- "property1": {
- "id": "string",
- "key": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "shortDescription": "string",
- "slug": "string",
- "metaTitle": "string",
- "metaDescription": "string",
- "metaKeywords": "string",
- "categoryKeys": [
- "string"
], - "categoryHierarchies": [
- {
- "key": "string",
- "hierarchy": [
- {
- "key": "string",
- "label": "string"
}
]
}
], - "isParentProduct": true,
- "isDigital": true,
- "includedInSitemap": true,
- "totalReviewCount": 0,
- "averageOverallRating": 0,
- "productTypeKey": "frame",
- "productGroup": "frame",
- "priceMode": "string",
- "rangeKeys": [
- "string"
], - "collections": [
- "string"
], - "offerKeys": [
- "string"
], - "offers": [
- {
- "key": "string",
- "title": "string",
- "lozenge": {
- "title": "string",
- "color": "string",
- "priority": 0
}
}
], - "taxRatioCode": "string",
- "healthFundCodeSingle": "string",
- "healthFundCodePair": "string",
- "healthFundCodeComplete": "string",
- "originalBrandName": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoUrl": "string"
}, - "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string",
- "color": "string"
}
], - "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "quantityLimit": {
- "min": 0,
- "max": 0
}, - "includedInStores": [
- "string"
], - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "deliveryLeadTimeInDays": 0,
- "matrix": {
- "key": "string",
- "skus": [
- {
- "key": "string",
- "attributes": {
- "property1": 0,
- "property2": 0
}, - "isSellableOnWeb": true
}
], - "attributes": {
- "property1": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}
}
}, - "variants": [
- {
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string"
}
], - "color": "string"
}
], - "ageGroup": "string",
- "ageGender": "string",
- "applicableElements": "string",
- "associatedAccessories": "string",
- "finish": "string",
- "frameShape": "string",
- "frameType": "F",
- "gender": "M",
- "includedAccessories": "string",
- "includeInSiteMap": true,
- "isBifocalCompatible": true,
- "isDesigner": true,
- "isSafety": true,
- "isSunRx": true,
- "isVarifocalCompatible": true,
- "materialType": "string",
- "priceLastUpdatedAt": "string",
- "colors": [
- {
- "label": "string",
- "colorKey": "string",
- "swatchUrl": "string",
- "primaryColor": "string",
- "primaryHexCode": "string",
- "secondaryColor": "string",
- "isVtoAvailable": true
}
]
}, - "property2": {
- "id": "string",
- "key": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "shortDescription": "string",
- "slug": "string",
- "metaTitle": "string",
- "metaDescription": "string",
- "metaKeywords": "string",
- "categoryKeys": [
- "string"
], - "categoryHierarchies": [
- {
- "key": "string",
- "hierarchy": [
- {
- "key": "string",
- "label": "string"
}
]
}
], - "isParentProduct": true,
- "isDigital": true,
- "includedInSitemap": true,
- "totalReviewCount": 0,
- "averageOverallRating": 0,
- "productTypeKey": "frame",
- "productGroup": "frame",
- "priceMode": "string",
- "rangeKeys": [
- "string"
], - "collections": [
- "string"
], - "offerKeys": [
- "string"
], - "offers": [
- {
- "key": "string",
- "title": "string",
- "lozenge": {
- "title": "string",
- "color": "string",
- "priority": 0
}
}
], - "taxRatioCode": "string",
- "healthFundCodeSingle": "string",
- "healthFundCodePair": "string",
- "healthFundCodeComplete": "string",
- "originalBrandName": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoUrl": "string"
}, - "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string",
- "color": "string"
}
], - "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "quantityLimit": {
- "min": 0,
- "max": 0
}, - "includedInStores": [
- "string"
], - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "deliveryLeadTimeInDays": 0,
- "matrix": {
- "key": "string",
- "skus": [
- {
- "key": "string",
- "attributes": {
- "property1": 0,
- "property2": 0
}, - "isSellableOnWeb": true
}
], - "attributes": {
- "property1": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}
}
}, - "variants": [
- {
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string"
}
], - "color": "string"
}
], - "ageGroup": "string",
- "ageGender": "string",
- "applicableElements": "string",
- "associatedAccessories": "string",
- "finish": "string",
- "frameShape": "string",
- "frameType": "F",
- "gender": "M",
- "includedAccessories": "string",
- "includeInSiteMap": true,
- "isBifocalCompatible": true,
- "isDesigner": true,
- "isSafety": true,
- "isSunRx": true,
- "isVarifocalCompatible": true,
- "materialType": "string",
- "priceLastUpdatedAt": "string",
- "colors": [
- {
- "label": "string",
- "colorKey": "string",
- "swatchUrl": "string",
- "primaryColor": "string",
- "primaryHexCode": "string",
- "secondaryColor": "string",
- "isVtoAvailable": true
}
]
}
}, - "property2": {
- "property1": {
- "id": "string",
- "key": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "shortDescription": "string",
- "slug": "string",
- "metaTitle": "string",
- "metaDescription": "string",
- "metaKeywords": "string",
- "categoryKeys": [
- "string"
], - "categoryHierarchies": [
- {
- "key": "string",
- "hierarchy": [
- {
- "key": "string",
- "label": "string"
}
]
}
], - "isParentProduct": true,
- "isDigital": true,
- "includedInSitemap": true,
- "totalReviewCount": 0,
- "averageOverallRating": 0,
- "productTypeKey": "frame",
- "productGroup": "frame",
- "priceMode": "string",
- "rangeKeys": [
- "string"
], - "collections": [
- "string"
], - "offerKeys": [
- "string"
], - "offers": [
- {
- "key": "string",
- "title": "string",
- "lozenge": {
- "title": "string",
- "color": "string",
- "priority": 0
}
}
], - "taxRatioCode": "string",
- "healthFundCodeSingle": "string",
- "healthFundCodePair": "string",
- "healthFundCodeComplete": "string",
- "originalBrandName": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoUrl": "string"
}, - "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string",
- "color": "string"
}
], - "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "quantityLimit": {
- "min": 0,
- "max": 0
}, - "includedInStores": [
- "string"
], - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "deliveryLeadTimeInDays": 0,
- "matrix": {
- "key": "string",
- "skus": [
- {
- "key": "string",
- "attributes": {
- "property1": 0,
- "property2": 0
}, - "isSellableOnWeb": true
}
], - "attributes": {
- "property1": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}
}
}, - "variants": [
- {
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string"
}
], - "color": "string"
}
], - "ageGroup": "string",
- "ageGender": "string",
- "applicableElements": "string",
- "associatedAccessories": "string",
- "finish": "string",
- "frameShape": "string",
- "frameType": "F",
- "gender": "M",
- "includedAccessories": "string",
- "includeInSiteMap": true,
- "isBifocalCompatible": true,
- "isDesigner": true,
- "isSafety": true,
- "isSunRx": true,
- "isVarifocalCompatible": true,
- "materialType": "string",
- "priceLastUpdatedAt": "string",
- "colors": [
- {
- "label": "string",
- "colorKey": "string",
- "swatchUrl": "string",
- "primaryColor": "string",
- "primaryHexCode": "string",
- "secondaryColor": "string",
- "isVtoAvailable": true
}
]
}, - "property2": {
- "id": "string",
- "key": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "shortDescription": "string",
- "slug": "string",
- "metaTitle": "string",
- "metaDescription": "string",
- "metaKeywords": "string",
- "categoryKeys": [
- "string"
], - "categoryHierarchies": [
- {
- "key": "string",
- "hierarchy": [
- {
- "key": "string",
- "label": "string"
}
]
}
], - "isParentProduct": true,
- "isDigital": true,
- "includedInSitemap": true,
- "totalReviewCount": 0,
- "averageOverallRating": 0,
- "productTypeKey": "frame",
- "productGroup": "frame",
- "priceMode": "string",
- "rangeKeys": [
- "string"
], - "collections": [
- "string"
], - "offerKeys": [
- "string"
], - "offers": [
- {
- "key": "string",
- "title": "string",
- "lozenge": {
- "title": "string",
- "color": "string",
- "priority": 0
}
}
], - "taxRatioCode": "string",
- "healthFundCodeSingle": "string",
- "healthFundCodePair": "string",
- "healthFundCodeComplete": "string",
- "originalBrandName": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoUrl": "string"
}, - "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string",
- "color": "string"
}
], - "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "quantityLimit": {
- "min": 0,
- "max": 0
}, - "includedInStores": [
- "string"
], - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "deliveryLeadTimeInDays": 0,
- "matrix": {
- "key": "string",
- "skus": [
- {
- "key": "string",
- "attributes": {
- "property1": 0,
- "property2": 0
}, - "isSellableOnWeb": true
}
], - "attributes": {
- "property1": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}
}
}, - "variants": [
- {
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string"
}
], - "color": "string"
}
], - "ageGroup": "string",
- "ageGender": "string",
- "applicableElements": "string",
- "associatedAccessories": "string",
- "finish": "string",
- "frameShape": "string",
- "frameType": "F",
- "gender": "M",
- "includedAccessories": "string",
- "includeInSiteMap": true,
- "isBifocalCompatible": true,
- "isDesigner": true,
- "isSafety": true,
- "isSunRx": true,
- "isVarifocalCompatible": true,
- "materialType": "string",
- "priceLastUpdatedAt": "string",
- "colors": [
- {
- "label": "string",
- "colorKey": "string",
- "swatchUrl": "string",
- "primaryColor": "string",
- "primaryHexCode": "string",
- "secondaryColor": "string",
- "isVtoAvailable": true
}
]
}
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Supports a number of views
Use locale to retrieve the product in a particular locale. If locale is not set it returns the product in all the supported locales.
Use siteKey to retrieve the product for a specific site, if the siteKey is not in the includedInStore property then 404 is returned.
Use projections to control the volume of data returned, multiple projections can be specified:
summary - returns the product details (summary is always returned, but use this to only return the summary)
skus - returns the variants of the product, can take longer for products with large numbers of variants
matrix - returns a concisely formatted version of the variant information, use when volumes of potential skus is very high
Use filters to control filtering of products searchable, sellable and browsable. Multiple filters can be specified:
isSearchable - limits to products defined as searchable in product data
isSellableOnWeb - limits to products defined as sellable online in product data
isBrowsable - limits to products defined as browsable in product data
| key required | string The resource key |
| locale | string The ISO locale code |
| siteKey | string The site key |
| currencyCode | string Used in retrieving sku prices, requested currency code |
| customerGroup | string Used in retrieving sku prices, Customer group identiifier |
| customerId | string Used in retrieving sku prices, Customer ID |
| filters | string Example: filters='isBrowsable,isSearchable,isSellableOnWeb' Comma separated string of filters to apply to the products, valid values are 'isBrowsable', 'isSellableOnWeb', 'isSearchable' |
| priceChannelKey | string Used in retrieving sku prices,, Key of the price channel / site |
| projections | string Example: projections='summary,skus,matrix' Comma separated string containing product projections. Valid projections 'summary', 'matrix', 'skus', 'prices' |
{- "data": {
- "property1": {
- "property1": {
- "id": "string",
- "key": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "shortDescription": "string",
- "slug": "string",
- "metaTitle": "string",
- "metaDescription": "string",
- "metaKeywords": "string",
- "categoryKeys": [
- "string"
], - "categoryHierarchies": [
- {
- "key": "string",
- "hierarchy": [
- {
- "key": "string",
- "label": "string"
}
]
}
], - "isParentProduct": true,
- "isDigital": true,
- "includedInSitemap": true,
- "totalReviewCount": 0,
- "averageOverallRating": 0,
- "productTypeKey": "frame",
- "productGroup": "frame",
- "priceMode": "string",
- "rangeKeys": [
- "string"
], - "collections": [
- "string"
], - "offerKeys": [
- "string"
], - "offers": [
- {
- "key": "string",
- "title": "string",
- "lozenge": {
- "title": "string",
- "color": "string",
- "priority": 0
}
}
], - "taxRatioCode": "string",
- "healthFundCodeSingle": "string",
- "healthFundCodePair": "string",
- "healthFundCodeComplete": "string",
- "originalBrandName": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoUrl": "string"
}, - "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string",
- "color": "string"
}
], - "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "quantityLimit": {
- "min": 0,
- "max": 0
}, - "includedInStores": [
- "string"
], - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "deliveryLeadTimeInDays": 0,
- "matrix": {
- "key": "string",
- "skus": [
- {
- "key": "string",
- "attributes": {
- "property1": 0,
- "property2": 0
}, - "isSellableOnWeb": true
}
], - "attributes": {
- "property1": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}
}
}, - "variants": [
- {
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string"
}
], - "color": "string"
}
], - "ageGroup": "string",
- "ageGender": "string",
- "applicableElements": "string",
- "associatedAccessories": "string",
- "finish": "string",
- "frameShape": "string",
- "frameType": "F",
- "gender": "M",
- "includedAccessories": "string",
- "includeInSiteMap": true,
- "isBifocalCompatible": true,
- "isDesigner": true,
- "isSafety": true,
- "isSunRx": true,
- "isVarifocalCompatible": true,
- "materialType": "string",
- "priceLastUpdatedAt": "string",
- "colors": [
- {
- "label": "string",
- "colorKey": "string",
- "swatchUrl": "string",
- "primaryColor": "string",
- "primaryHexCode": "string",
- "secondaryColor": "string",
- "isVtoAvailable": true
}
]
}, - "property2": {
- "id": "string",
- "key": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "shortDescription": "string",
- "slug": "string",
- "metaTitle": "string",
- "metaDescription": "string",
- "metaKeywords": "string",
- "categoryKeys": [
- "string"
], - "categoryHierarchies": [
- {
- "key": "string",
- "hierarchy": [
- {
- "key": "string",
- "label": "string"
}
]
}
], - "isParentProduct": true,
- "isDigital": true,
- "includedInSitemap": true,
- "totalReviewCount": 0,
- "averageOverallRating": 0,
- "productTypeKey": "frame",
- "productGroup": "frame",
- "priceMode": "string",
- "rangeKeys": [
- "string"
], - "collections": [
- "string"
], - "offerKeys": [
- "string"
], - "offers": [
- {
- "key": "string",
- "title": "string",
- "lozenge": {
- "title": "string",
- "color": "string",
- "priority": 0
}
}
], - "taxRatioCode": "string",
- "healthFundCodeSingle": "string",
- "healthFundCodePair": "string",
- "healthFundCodeComplete": "string",
- "originalBrandName": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoUrl": "string"
}, - "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string",
- "color": "string"
}
], - "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "quantityLimit": {
- "min": 0,
- "max": 0
}, - "includedInStores": [
- "string"
], - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "deliveryLeadTimeInDays": 0,
- "matrix": {
- "key": "string",
- "skus": [
- {
- "key": "string",
- "attributes": {
- "property1": 0,
- "property2": 0
}, - "isSellableOnWeb": true
}
], - "attributes": {
- "property1": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}
}
}, - "variants": [
- {
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string"
}
], - "color": "string"
}
], - "ageGroup": "string",
- "ageGender": "string",
- "applicableElements": "string",
- "associatedAccessories": "string",
- "finish": "string",
- "frameShape": "string",
- "frameType": "F",
- "gender": "M",
- "includedAccessories": "string",
- "includeInSiteMap": true,
- "isBifocalCompatible": true,
- "isDesigner": true,
- "isSafety": true,
- "isSunRx": true,
- "isVarifocalCompatible": true,
- "materialType": "string",
- "priceLastUpdatedAt": "string",
- "colors": [
- {
- "label": "string",
- "colorKey": "string",
- "swatchUrl": "string",
- "primaryColor": "string",
- "primaryHexCode": "string",
- "secondaryColor": "string",
- "isVtoAvailable": true
}
]
}
}, - "property2": {
- "property1": {
- "id": "string",
- "key": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "shortDescription": "string",
- "slug": "string",
- "metaTitle": "string",
- "metaDescription": "string",
- "metaKeywords": "string",
- "categoryKeys": [
- "string"
], - "categoryHierarchies": [
- {
- "key": "string",
- "hierarchy": [
- {
- "key": "string",
- "label": "string"
}
]
}
], - "isParentProduct": true,
- "isDigital": true,
- "includedInSitemap": true,
- "totalReviewCount": 0,
- "averageOverallRating": 0,
- "productTypeKey": "frame",
- "productGroup": "frame",
- "priceMode": "string",
- "rangeKeys": [
- "string"
], - "collections": [
- "string"
], - "offerKeys": [
- "string"
], - "offers": [
- {
- "key": "string",
- "title": "string",
- "lozenge": {
- "title": "string",
- "color": "string",
- "priority": 0
}
}
], - "taxRatioCode": "string",
- "healthFundCodeSingle": "string",
- "healthFundCodePair": "string",
- "healthFundCodeComplete": "string",
- "originalBrandName": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoUrl": "string"
}, - "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string",
- "color": "string"
}
], - "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "quantityLimit": {
- "min": 0,
- "max": 0
}, - "includedInStores": [
- "string"
], - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "deliveryLeadTimeInDays": 0,
- "matrix": {
- "key": "string",
- "skus": [
- {
- "key": "string",
- "attributes": {
- "property1": 0,
- "property2": 0
}, - "isSellableOnWeb": true
}
], - "attributes": {
- "property1": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}
}
}, - "variants": [
- {
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string"
}
], - "color": "string"
}
], - "ageGroup": "string",
- "ageGender": "string",
- "applicableElements": "string",
- "associatedAccessories": "string",
- "finish": "string",
- "frameShape": "string",
- "frameType": "F",
- "gender": "M",
- "includedAccessories": "string",
- "includeInSiteMap": true,
- "isBifocalCompatible": true,
- "isDesigner": true,
- "isSafety": true,
- "isSunRx": true,
- "isVarifocalCompatible": true,
- "materialType": "string",
- "priceLastUpdatedAt": "string",
- "colors": [
- {
- "label": "string",
- "colorKey": "string",
- "swatchUrl": "string",
- "primaryColor": "string",
- "primaryHexCode": "string",
- "secondaryColor": "string",
- "isVtoAvailable": true
}
]
}, - "property2": {
- "id": "string",
- "key": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "shortDescription": "string",
- "slug": "string",
- "metaTitle": "string",
- "metaDescription": "string",
- "metaKeywords": "string",
- "categoryKeys": [
- "string"
], - "categoryHierarchies": [
- {
- "key": "string",
- "hierarchy": [
- {
- "key": "string",
- "label": "string"
}
]
}
], - "isParentProduct": true,
- "isDigital": true,
- "includedInSitemap": true,
- "totalReviewCount": 0,
- "averageOverallRating": 0,
- "productTypeKey": "frame",
- "productGroup": "frame",
- "priceMode": "string",
- "rangeKeys": [
- "string"
], - "collections": [
- "string"
], - "offerKeys": [
- "string"
], - "offers": [
- {
- "key": "string",
- "title": "string",
- "lozenge": {
- "title": "string",
- "color": "string",
- "priority": 0
}
}
], - "taxRatioCode": "string",
- "healthFundCodeSingle": "string",
- "healthFundCodePair": "string",
- "healthFundCodeComplete": "string",
- "originalBrandName": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoUrl": "string"
}, - "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string",
- "color": "string"
}
], - "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "quantityLimit": {
- "min": 0,
- "max": 0
}, - "includedInStores": [
- "string"
], - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "deliveryLeadTimeInDays": 0,
- "matrix": {
- "key": "string",
- "skus": [
- {
- "key": "string",
- "attributes": {
- "property1": 0,
- "property2": 0
}, - "isSellableOnWeb": true
}
], - "attributes": {
- "property1": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}
}
}, - "variants": [
- {
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string"
}
], - "color": "string"
}
], - "ageGroup": "string",
- "ageGender": "string",
- "applicableElements": "string",
- "associatedAccessories": "string",
- "finish": "string",
- "frameShape": "string",
- "frameType": "F",
- "gender": "M",
- "includedAccessories": "string",
- "includeInSiteMap": true,
- "isBifocalCompatible": true,
- "isDesigner": true,
- "isSafety": true,
- "isSunRx": true,
- "isVarifocalCompatible": true,
- "materialType": "string",
- "priceLastUpdatedAt": "string",
- "colors": [
- {
- "label": "string",
- "colorKey": "string",
- "swatchUrl": "string",
- "primaryColor": "string",
- "primaryHexCode": "string",
- "secondaryColor": "string",
- "isVtoAvailable": true
}
]
}
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Supports a number of views
Use locale to retrieve the product skus in a particular locale. If locale is not set it returns the product in all the supported locales.
Use siteKey to retrieve the product skus for a specific site, if the siteKey is not in the includedInStore property then 404 is returned.
| productKey required | string The product key |
| locale | string The ISO locale code |
| siteKey | string The site key |
| currencyCode | string Used in retrieving sku prices, requested currency code |
| customerGroup | string Used in retrieving sku prices, Customer group identiifier |
| customerId | string Used in retrieving sku prices, Customer ID |
| filters | string Example: filters='isBrowsable,isSearchable,isSellableOnWeb' Comma separated string of filters to apply to the products, valid values are 'isBrowsable', 'isSellableOnWeb', 'isSearchable' |
| priceChannelKey | string Used in retrieving sku prices,, Key of the price channel / site |
{- "data": [
- {
- "productId": "string",
- "productKey": "string",
- "isParentProduct": true,
- "productGroup": "string",
- "productTypeKey": "string",
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string"
}
], - "color": "string"
}
], - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Supports a number of filters
Use locale to retrieve the product in a particular locale. If locale is not set it returns the product in all the supported locales.
Use siteKey to retrieve the product for a specific site, if the siteKey is not in the includedInStore property then 404 is returned.
| productKey required | string The product key |
| key required | string The resource key |
| locale | string The ISO locale code |
| siteKey | string The site key |
| currencyCode | string Used in retrieving sku prices, requested currency code |
| customerGroup | string Used in retrieving sku prices, Customer group identiifier |
| customerId | string Used in retrieving sku prices, Customer ID |
| filters | string Example: filters='isBrowsable,isSearchable,isSellableOnWeb' Comma separated string of filters to apply to the products, valid values are 'isBrowsable', 'isSellableOnWeb', 'isSearchable' |
| priceChannelKey | string Used in retrieving sku prices,, Key of the price channel / site |
{- "data": {
- "productId": "string",
- "productKey": "string",
- "isParentProduct": true,
- "productGroup": "string",
- "productTypeKey": "string",
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string"
}
], - "color": "string"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Allows the retrieve of multiple products from the catalog. Utilizes pagination to allow results to be paged.
For performance reasons, if a projection is not specified a default abbreviated version of the product is returned.
| locale | string The ISO locale code |
| siteKey | string The site key |
| limit | number [ 1 .. 500 ] The maximum number of results to return. 0 defaults to the maximum of 500 |
| after | string Cursor to retrieve results after. |
| filters | string Example: filters='isBrowsable,isSearchable,isSellableOnWeb' Comma separated string of filters to apply to the products, valid values are 'isBrowsable', 'isSellableOnWeb', 'isSearchable' |
| projections | string Example: projections='summary,skus,matrix' Comma separated string containing product projections. Valid projections 'summary', 'matrix', 'skus', 'prices' |
| type | string Example: type='frame,accessory' The product type to filter the products by |
{- "data": {
- "products": {
- "property1": {
- "property1": {
- "property1": {
- "id": "string",
- "key": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "shortDescription": "string",
- "slug": "string",
- "metaTitle": "string",
- "metaDescription": "string",
- "metaKeywords": "string",
- "categoryKeys": [
- "string"
], - "categoryHierarchies": [
- {
- "key": "string",
- "hierarchy": [
- {
- "key": null,
- "label": null
}
]
}
], - "isParentProduct": true,
- "isDigital": true,
- "includedInSitemap": true,
- "totalReviewCount": 0,
- "averageOverallRating": 0,
- "productTypeKey": "frame",
- "productGroup": "frame",
- "priceMode": "string",
- "rangeKeys": [
- "string"
], - "collections": [
- "string"
], - "offerKeys": [
- "string"
], - "offers": [
- {
- "key": "string",
- "title": "string",
- "lozenge": {
- "title": "string",
- "color": "string",
- "priority": 0
}
}
], - "taxRatioCode": "string",
- "healthFundCodeSingle": "string",
- "healthFundCodePair": "string",
- "healthFundCodeComplete": "string",
- "originalBrandName": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoUrl": "string"
}, - "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string",
- "color": "string"
}
], - "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "quantityLimit": {
- "min": 0,
- "max": 0
}, - "includedInStores": [
- "string"
], - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "deliveryLeadTimeInDays": 0,
- "matrix": {
- "key": "string",
- "skus": [
- {
- "key": "string",
- "attributes": {
- "property1": null,
- "property2": null
}, - "isSellableOnWeb": true
}
], - "attributes": {
- "property1": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}
}
}, - "variants": [
- {
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "was": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "current": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": null,
- "viewType": null,
- "label": null,
- "contentType": null
}
], - "color": "string"
}
], - "ageGroup": "string",
- "ageGender": "string",
- "applicableElements": "string",
- "associatedAccessories": "string",
- "finish": "string",
- "frameShape": "string",
- "frameType": "F",
- "gender": "M",
- "includedAccessories": "string",
- "includeInSiteMap": true,
- "isBifocalCompatible": true,
- "isDesigner": true,
- "isSafety": true,
- "isSunRx": true,
- "isVarifocalCompatible": true,
- "materialType": "string",
- "priceLastUpdatedAt": "string",
- "colors": [
- {
- "label": "string",
- "colorKey": "string",
- "swatchUrl": "string",
- "primaryColor": "string",
- "primaryHexCode": "string",
- "secondaryColor": "string",
- "isVtoAvailable": true
}
]
}, - "property2": {
- "id": "string",
- "key": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "shortDescription": "string",
- "slug": "string",
- "metaTitle": "string",
- "metaDescription": "string",
- "metaKeywords": "string",
- "categoryKeys": [
- "string"
], - "categoryHierarchies": [
- {
- "key": "string",
- "hierarchy": [
- {
- "key": null,
- "label": null
}
]
}
], - "isParentProduct": true,
- "isDigital": true,
- "includedInSitemap": true,
- "totalReviewCount": 0,
- "averageOverallRating": 0,
- "productTypeKey": "frame",
- "productGroup": "frame",
- "priceMode": "string",
- "rangeKeys": [
- "string"
], - "collections": [
- "string"
], - "offerKeys": [
- "string"
], - "offers": [
- {
- "key": "string",
- "title": "string",
- "lozenge": {
- "title": "string",
- "color": "string",
- "priority": 0
}
}
], - "taxRatioCode": "string",
- "healthFundCodeSingle": "string",
- "healthFundCodePair": "string",
- "healthFundCodeComplete": "string",
- "originalBrandName": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoUrl": "string"
}, - "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string",
- "color": "string"
}
], - "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "quantityLimit": {
- "min": 0,
- "max": 0
}, - "includedInStores": [
- "string"
], - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "deliveryLeadTimeInDays": 0,
- "matrix": {
- "key": "string",
- "skus": [
- {
- "key": "string",
- "attributes": {
- "property1": null,
- "property2": null
}, - "isSellableOnWeb": true
}
], - "attributes": {
- "property1": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}
}
}, - "variants": [
- {
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "was": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "current": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": null,
- "viewType": null,
- "label": null,
- "contentType": null
}
], - "color": "string"
}
], - "ageGroup": "string",
- "ageGender": "string",
- "applicableElements": "string",
- "associatedAccessories": "string",
- "finish": "string",
- "frameShape": "string",
- "frameType": "F",
- "gender": "M",
- "includedAccessories": "string",
- "includeInSiteMap": true,
- "isBifocalCompatible": true,
- "isDesigner": true,
- "isSafety": true,
- "isSunRx": true,
- "isVarifocalCompatible": true,
- "materialType": "string",
- "priceLastUpdatedAt": "string",
- "colors": [
- {
- "label": "string",
- "colorKey": "string",
- "swatchUrl": "string",
- "primaryColor": "string",
- "primaryHexCode": "string",
- "secondaryColor": "string",
- "isVtoAvailable": true
}
]
}
}, - "property2": {
- "property1": {
- "id": "string",
- "key": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "shortDescription": "string",
- "slug": "string",
- "metaTitle": "string",
- "metaDescription": "string",
- "metaKeywords": "string",
- "categoryKeys": [
- "string"
], - "categoryHierarchies": [
- {
- "key": "string",
- "hierarchy": [
- {
- "key": null,
- "label": null
}
]
}
], - "isParentProduct": true,
- "isDigital": true,
- "includedInSitemap": true,
- "totalReviewCount": 0,
- "averageOverallRating": 0,
- "productTypeKey": "frame",
- "productGroup": "frame",
- "priceMode": "string",
- "rangeKeys": [
- "string"
], - "collections": [
- "string"
], - "offerKeys": [
- "string"
], - "offers": [
- {
- "key": "string",
- "title": "string",
- "lozenge": {
- "title": "string",
- "color": "string",
- "priority": 0
}
}
], - "taxRatioCode": "string",
- "healthFundCodeSingle": "string",
- "healthFundCodePair": "string",
- "healthFundCodeComplete": "string",
- "originalBrandName": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoUrl": "string"
}, - "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string",
- "color": "string"
}
], - "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "quantityLimit": {
- "min": 0,
- "max": 0
}, - "includedInStores": [
- "string"
], - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "deliveryLeadTimeInDays": 0,
- "matrix": {
- "key": "string",
- "skus": [
- {
- "key": "string",
- "attributes": {
- "property1": null,
- "property2": null
}, - "isSellableOnWeb": true
}
], - "attributes": {
- "property1": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}
}
}, - "variants": [
- {
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "was": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "current": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": null,
- "viewType": null,
- "label": null,
- "contentType": null
}
], - "color": "string"
}
], - "ageGroup": "string",
- "ageGender": "string",
- "applicableElements": "string",
- "associatedAccessories": "string",
- "finish": "string",
- "frameShape": "string",
- "frameType": "F",
- "gender": "M",
- "includedAccessories": "string",
- "includeInSiteMap": true,
- "isBifocalCompatible": true,
- "isDesigner": true,
- "isSafety": true,
- "isSunRx": true,
- "isVarifocalCompatible": true,
- "materialType": "string",
- "priceLastUpdatedAt": "string",
- "colors": [
- {
- "label": "string",
- "colorKey": "string",
- "swatchUrl": "string",
- "primaryColor": "string",
- "primaryHexCode": "string",
- "secondaryColor": "string",
- "isVtoAvailable": true
}
]
}, - "property2": {
- "id": "string",
- "key": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "shortDescription": "string",
- "slug": "string",
- "metaTitle": "string",
- "metaDescription": "string",
- "metaKeywords": "string",
- "categoryKeys": [
- "string"
], - "categoryHierarchies": [
- {
- "key": "string",
- "hierarchy": [
- {
- "key": null,
- "label": null
}
]
}
], - "isParentProduct": true,
- "isDigital": true,
- "includedInSitemap": true,
- "totalReviewCount": 0,
- "averageOverallRating": 0,
- "productTypeKey": "frame",
- "productGroup": "frame",
- "priceMode": "string",
- "rangeKeys": [
- "string"
], - "collections": [
- "string"
], - "offerKeys": [
- "string"
], - "offers": [
- {
- "key": "string",
- "title": "string",
- "lozenge": {
- "title": "string",
- "color": "string",
- "priority": 0
}
}
], - "taxRatioCode": "string",
- "healthFundCodeSingle": "string",
- "healthFundCodePair": "string",
- "healthFundCodeComplete": "string",
- "originalBrandName": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoUrl": "string"
}, - "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string",
- "color": "string"
}
], - "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "quantityLimit": {
- "min": 0,
- "max": 0
}, - "includedInStores": [
- "string"
], - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "deliveryLeadTimeInDays": 0,
- "matrix": {
- "key": "string",
- "skus": [
- {
- "key": "string",
- "attributes": {
- "property1": null,
- "property2": null
}, - "isSellableOnWeb": true
}
], - "attributes": {
- "property1": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}
}
}, - "variants": [
- {
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "was": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "current": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": null,
- "viewType": null,
- "label": null,
- "contentType": null
}
], - "color": "string"
}
], - "ageGroup": "string",
- "ageGender": "string",
- "applicableElements": "string",
- "associatedAccessories": "string",
- "finish": "string",
- "frameShape": "string",
- "frameType": "F",
- "gender": "M",
- "includedAccessories": "string",
- "includeInSiteMap": true,
- "isBifocalCompatible": true,
- "isDesigner": true,
- "isSafety": true,
- "isSunRx": true,
- "isVarifocalCompatible": true,
- "materialType": "string",
- "priceLastUpdatedAt": "string",
- "colors": [
- {
- "label": "string",
- "colorKey": "string",
- "swatchUrl": "string",
- "primaryColor": "string",
- "primaryHexCode": "string",
- "secondaryColor": "string",
- "isVtoAvailable": true
}
]
}
}
}, - "property2": {
- "property1": {
- "property1": {
- "id": "string",
- "key": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "shortDescription": "string",
- "slug": "string",
- "metaTitle": "string",
- "metaDescription": "string",
- "metaKeywords": "string",
- "categoryKeys": [
- "string"
], - "categoryHierarchies": [
- {
- "key": "string",
- "hierarchy": [
- {
- "key": null,
- "label": null
}
]
}
], - "isParentProduct": true,
- "isDigital": true,
- "includedInSitemap": true,
- "totalReviewCount": 0,
- "averageOverallRating": 0,
- "productTypeKey": "frame",
- "productGroup": "frame",
- "priceMode": "string",
- "rangeKeys": [
- "string"
], - "collections": [
- "string"
], - "offerKeys": [
- "string"
], - "offers": [
- {
- "key": "string",
- "title": "string",
- "lozenge": {
- "title": "string",
- "color": "string",
- "priority": 0
}
}
], - "taxRatioCode": "string",
- "healthFundCodeSingle": "string",
- "healthFundCodePair": "string",
- "healthFundCodeComplete": "string",
- "originalBrandName": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoUrl": "string"
}, - "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string",
- "color": "string"
}
], - "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "quantityLimit": {
- "min": 0,
- "max": 0
}, - "includedInStores": [
- "string"
], - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "deliveryLeadTimeInDays": 0,
- "matrix": {
- "key": "string",
- "skus": [
- {
- "key": "string",
- "attributes": {
- "property1": null,
- "property2": null
}, - "isSellableOnWeb": true
}
], - "attributes": {
- "property1": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}
}
}, - "variants": [
- {
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "was": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "current": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": null,
- "viewType": null,
- "label": null,
- "contentType": null
}
], - "color": "string"
}
], - "ageGroup": "string",
- "ageGender": "string",
- "applicableElements": "string",
- "associatedAccessories": "string",
- "finish": "string",
- "frameShape": "string",
- "frameType": "F",
- "gender": "M",
- "includedAccessories": "string",
- "includeInSiteMap": true,
- "isBifocalCompatible": true,
- "isDesigner": true,
- "isSafety": true,
- "isSunRx": true,
- "isVarifocalCompatible": true,
- "materialType": "string",
- "priceLastUpdatedAt": "string",
- "colors": [
- {
- "label": "string",
- "colorKey": "string",
- "swatchUrl": "string",
- "primaryColor": "string",
- "primaryHexCode": "string",
- "secondaryColor": "string",
- "isVtoAvailable": true
}
]
}, - "property2": {
- "id": "string",
- "key": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "shortDescription": "string",
- "slug": "string",
- "metaTitle": "string",
- "metaDescription": "string",
- "metaKeywords": "string",
- "categoryKeys": [
- "string"
], - "categoryHierarchies": [
- {
- "key": "string",
- "hierarchy": [
- {
- "key": null,
- "label": null
}
]
}
], - "isParentProduct": true,
- "isDigital": true,
- "includedInSitemap": true,
- "totalReviewCount": 0,
- "averageOverallRating": 0,
- "productTypeKey": "frame",
- "productGroup": "frame",
- "priceMode": "string",
- "rangeKeys": [
- "string"
], - "collections": [
- "string"
], - "offerKeys": [
- "string"
], - "offers": [
- {
- "key": "string",
- "title": "string",
- "lozenge": {
- "title": "string",
- "color": "string",
- "priority": 0
}
}
], - "taxRatioCode": "string",
- "healthFundCodeSingle": "string",
- "healthFundCodePair": "string",
- "healthFundCodeComplete": "string",
- "originalBrandName": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoUrl": "string"
}, - "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string",
- "color": "string"
}
], - "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "quantityLimit": {
- "min": 0,
- "max": 0
}, - "includedInStores": [
- "string"
], - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "deliveryLeadTimeInDays": 0,
- "matrix": {
- "key": "string",
- "skus": [
- {
- "key": "string",
- "attributes": {
- "property1": null,
- "property2": null
}, - "isSellableOnWeb": true
}
], - "attributes": {
- "property1": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}
}
}, - "variants": [
- {
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "was": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "current": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": null,
- "viewType": null,
- "label": null,
- "contentType": null
}
], - "color": "string"
}
], - "ageGroup": "string",
- "ageGender": "string",
- "applicableElements": "string",
- "associatedAccessories": "string",
- "finish": "string",
- "frameShape": "string",
- "frameType": "F",
- "gender": "M",
- "includedAccessories": "string",
- "includeInSiteMap": true,
- "isBifocalCompatible": true,
- "isDesigner": true,
- "isSafety": true,
- "isSunRx": true,
- "isVarifocalCompatible": true,
- "materialType": "string",
- "priceLastUpdatedAt": "string",
- "colors": [
- {
- "label": "string",
- "colorKey": "string",
- "swatchUrl": "string",
- "primaryColor": "string",
- "primaryHexCode": "string",
- "secondaryColor": "string",
- "isVtoAvailable": true
}
]
}
}, - "property2": {
- "property1": {
- "id": "string",
- "key": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "shortDescription": "string",
- "slug": "string",
- "metaTitle": "string",
- "metaDescription": "string",
- "metaKeywords": "string",
- "categoryKeys": [
- "string"
], - "categoryHierarchies": [
- {
- "key": "string",
- "hierarchy": [
- {
- "key": null,
- "label": null
}
]
}
], - "isParentProduct": true,
- "isDigital": true,
- "includedInSitemap": true,
- "totalReviewCount": 0,
- "averageOverallRating": 0,
- "productTypeKey": "frame",
- "productGroup": "frame",
- "priceMode": "string",
- "rangeKeys": [
- "string"
], - "collections": [
- "string"
], - "offerKeys": [
- "string"
], - "offers": [
- {
- "key": "string",
- "title": "string",
- "lozenge": {
- "title": "string",
- "color": "string",
- "priority": 0
}
}
], - "taxRatioCode": "string",
- "healthFundCodeSingle": "string",
- "healthFundCodePair": "string",
- "healthFundCodeComplete": "string",
- "originalBrandName": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoUrl": "string"
}, - "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string",
- "color": "string"
}
], - "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "quantityLimit": {
- "min": 0,
- "max": 0
}, - "includedInStores": [
- "string"
], - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "deliveryLeadTimeInDays": 0,
- "matrix": {
- "key": "string",
- "skus": [
- {
- "key": "string",
- "attributes": {
- "property1": null,
- "property2": null
}, - "isSellableOnWeb": true
}
], - "attributes": {
- "property1": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}
}
}, - "variants": [
- {
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "was": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "current": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": null,
- "viewType": null,
- "label": null,
- "contentType": null
}
], - "color": "string"
}
], - "ageGroup": "string",
- "ageGender": "string",
- "applicableElements": "string",
- "associatedAccessories": "string",
- "finish": "string",
- "frameShape": "string",
- "frameType": "F",
- "gender": "M",
- "includedAccessories": "string",
- "includeInSiteMap": true,
- "isBifocalCompatible": true,
- "isDesigner": true,
- "isSafety": true,
- "isSunRx": true,
- "isVarifocalCompatible": true,
- "materialType": "string",
- "priceLastUpdatedAt": "string",
- "colors": [
- {
- "label": "string",
- "colorKey": "string",
- "swatchUrl": "string",
- "primaryColor": "string",
- "primaryHexCode": "string",
- "secondaryColor": "string",
- "isVtoAvailable": true
}
]
}, - "property2": {
- "id": "string",
- "key": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "lastModifiedAt": "string",
- "shortDescription": "string",
- "slug": "string",
- "metaTitle": "string",
- "metaDescription": "string",
- "metaKeywords": "string",
- "categoryKeys": [
- "string"
], - "categoryHierarchies": [
- {
- "key": "string",
- "hierarchy": [
- {
- "key": null,
- "label": null
}
]
}
], - "isParentProduct": true,
- "isDigital": true,
- "includedInSitemap": true,
- "totalReviewCount": 0,
- "averageOverallRating": 0,
- "productTypeKey": "frame",
- "productGroup": "frame",
- "priceMode": "string",
- "rangeKeys": [
- "string"
], - "collections": [
- "string"
], - "offerKeys": [
- "string"
], - "offers": [
- {
- "key": "string",
- "title": "string",
- "lozenge": {
- "title": "string",
- "color": "string",
- "priority": 0
}
}
], - "taxRatioCode": "string",
- "healthFundCodeSingle": "string",
- "healthFundCodePair": "string",
- "healthFundCodeComplete": "string",
- "originalBrandName": "string",
- "brand": {
- "key": "string",
- "title": "string",
- "logoUrl": "string"
}, - "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string",
- "color": "string"
}
], - "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "quantityLimit": {
- "min": 0,
- "max": 0
}, - "includedInStores": [
- "string"
], - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "deliveryLeadTimeInDays": 0,
- "matrix": {
- "key": "string",
- "skus": [
- {
- "key": "string",
- "attributes": {
- "property1": null,
- "property2": null
}, - "isSellableOnWeb": true
}
], - "attributes": {
- "property1": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "n": "string",
- "v": {
- "property1": "string",
- "property2": "string"
}
}
}
}, - "variants": [
- {
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "was": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "current": {
- "centAmount": null,
- "currencyCode": null,
- "fractionDigits": null
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": null,
- "viewType": null,
- "label": null,
- "contentType": null
}
], - "color": "string"
}
], - "ageGroup": "string",
- "ageGender": "string",
- "applicableElements": "string",
- "associatedAccessories": "string",
- "finish": "string",
- "frameShape": "string",
- "frameType": "F",
- "gender": "M",
- "includedAccessories": "string",
- "includeInSiteMap": true,
- "isBifocalCompatible": true,
- "isDesigner": true,
- "isSafety": true,
- "isSunRx": true,
- "isVarifocalCompatible": true,
- "materialType": "string",
- "priceLastUpdatedAt": "string",
- "colors": [
- {
- "label": "string",
- "colorKey": "string",
- "swatchUrl": "string",
- "primaryColor": "string",
- "primaryHexCode": "string",
- "secondaryColor": "string",
- "isVtoAvailable": true
}
]
}
}
}
}, - "pageInfo": {
- "hasPreviousPage": true,
- "hasNextPage": true,
- "startCursor": "string",
- "endCursor": "string"
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Supports a number of filters
Use locale to retrieve the product in a particular locale. If locale is not set it returns the product in all the supported locales.
Use siteKey to retrieve the product for a specific site, if the siteKey is not in the includedInStore property then 404 is returned.
| key required | string The resource key |
| locale | string The ISO locale code |
| siteKey | string The site key |
| currencyCode | string Used in retrieving sku prices, requested currency code |
| customerGroup | string Used in retrieving sku prices, Customer group identiifier |
| customerId | string Used in retrieving sku prices, Customer ID |
| filters | string Example: filters='isBrowsable,isSearchable,isSellableOnWeb' Comma separated string of filters to apply to the products, valid values are 'isBrowsable', 'isSellableOnWeb', 'isSearchable' |
| priceChannelKey | string Used in retrieving sku prices,, Key of the price channel / site |
{- "data": {
- "productId": "string",
- "productKey": "string",
- "isParentProduct": true,
- "productGroup": "string",
- "productTypeKey": "string",
- "id": "string",
- "key": "string",
- "isMaster": true,
- "isEnabled": true,
- "sortOrderHint": 0,
- "sku": "string",
- "price": {
- "base": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "was": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "current": {
- "centAmount": 0,
- "currencyCode": "string",
- "fractionDigits": 0
}, - "discountAmount": "string",
- "discountPercent": 0,
- "discountType": "string"
}, - "isBrowsable": true,
- "isSearchable": true,
- "isSellableOnWeb": true,
- "launchDate": "string",
- "status": "string",
- "aMeasurement": 0,
- "bMeasurement": 0,
- "distanceBetweenLenses": 0,
- "frontRimMeasurement": 0,
- "hingeMeasurement": 0,
- "materials": [
- "string"
], - "primaryColor": "string",
- "primaryColorHexCode": "string",
- "pupillaryDistance": 0,
- "secondaryColor": "string",
- "size": "string",
- "templeLength": 0,
- "images": [
- {
- "url": "string",
- "viewType": "A",
- "label": "string",
- "contentType": "string"
}
], - "color": "string"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Get all the categories
| locale | string The ISO locale code |
| siteKey | string The site key |
| limit | number [ 1 .. 500 ] The maximum number of results to return. 0 defaults to the maximum of 500 |
| after | string Cursor to retrieve results after. |
{- "data": {
- "items": {
- "property1": {
- "ancestorIds": [
- "string"
], - "ancestorKeys": [
- "string"
], - "slug": "string",
- "createdAt": "string",
- "rootCategoryKey": "string",
- "parentCategoryKey": "string",
- "name": "string",
- "excludeFromSearch": true,
- "includeInSitemap": true,
- "id": "string",
- "key": "string",
- "lastModifiedAt": "string"
}, - "property2": {
- "ancestorIds": [
- "string"
], - "ancestorKeys": [
- "string"
], - "slug": "string",
- "createdAt": "string",
- "rootCategoryKey": "string",
- "parentCategoryKey": "string",
- "name": "string",
- "excludeFromSearch": true,
- "includeInSitemap": true,
- "id": "string",
- "key": "string",
- "lastModifiedAt": "string"
}
}, - "pageInfo": {
- "hasPreviousPage": true,
- "hasNextPage": true,
- "startCursor": "string",
- "endCursor": "string"
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Retrieve the category using a key.
You can request a category for a specific locale and site/store.
| key required | string The resource key |
| locale | string The ISO locale code |
| siteKey | string The site key |
{- "data": {
- "ancestorIds": [
- "375501da-9393-4aab-bc66-cb753136cb76"
], - "ancestorKeys": [
- "contact-lens"
], - "slug": "monthly-spherical",
- "createdAt": "2024-03-18T15:43:25.424Z",
- "rootCategoryKey": "specsavers-root",
- "name": "Monthly Spherical",
- "parentCategoryKey": "contact-lens",
- "excludeFromSearch": false,
- "includeInSitemap": true,
- "id": "d32d8859-0f8b-41d7-a4c1-53611f2db574",
- "key": "monthly-spherical",
- "lastModifiedAt": "2024-04-08T12:05:53.671Z"
}, - "metrics": {
- "durationMs": 488.92
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "155",
- "commitId": "a3e2da6f99f5e3e790db780d0433c7dec195ffe5"
}
}
}Retrieve the product-type using a key.
| key required | string The resource key |
{- "data": {
- "id": "string",
- "key": "string",
- "name": "string",
- "description": "string",
- "lastModifiedAt": "string",
- "createdAt": "string",
- "attributes": [
- {
- "name": "string",
- "label": "string",
- "attributeConstraint": "string"
}
]
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Get the frame configuration
| locale | string The ISO locale code |
| siteKey | string The site key |
{- "data": {
- "lensElementsAndTreatments": [
- {
- "productKey": "string",
- "sku": "string",
- "name": "string",
- "description": "string",
- "price": {
- "currencyCode": "string",
- "centAmount": 0,
- "fractionDigits": 0
}
}
], - "pageInfo": {
- "hasPreviousPage": true,
- "hasNextPage": true,
- "startCursor": "string",
- "endCursor": "string"
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Health check information for the catalog service
{- "data": {
- "status": "pass",
- "version": "1.0",
- "releaseId": "1234567890",
- "service": "inventory",
- "details": {
- "time": "2023-11-15T12:19:05.737Z",
- "env": "dev",
- "commitId": "368de0fbdff3a5634895d69f8b17cbdfd5e77bfb"
}
}
}Get the component for the given id
| id required | string The resource id |
{- "data": {
- "_meta": {
- "id": "2bS5GnMZPsaH5nV18B9msF"
}, - "_type": "ProductList",
- "entryTitle": "Product List"
}, - "metrics": {
- "durationMs": 544.78
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "790",
- "commitId": "539b03892ce29507eb1db78f4436abfbf260905a"
}
}
}Gets the page based on site, content type and key
| siteKey required | string The key of the site for delivery options |
| key required | string The resource key |
| pageType required | string (PageType) Enum: "blog-news-page" "brand-page" "category-page" "collection-page" "content-page" "home-page" "health-fund-page" "health-page" "offer-page" "product-listing-page" "product" "site" The content page type |
| locale | string The ISO locale code |
| isPreview | boolean If set to true, this is for preview environment |
{- "data": {
- "_type": "string",
- "subject": {
- "_type": "string"
}, - "title": "string",
- "description": "string",
- "crumbtrail": [
- {
- "assetType": "",
- "assetKey": "string",
- "label": "string"
}
], - "hideCrumbtrail": false,
- "breadcrumbTitle": "string",
- "summaryImage": {
- "url": "string",
- "title": "string",
- "_type": "Image"
}, - "seoMetaDescription": "string",
- "noTopSpacing": false,
- "isIndexable": true,
- "siteAvailability": [
- "string"
], - "components": {
- "top": [
- {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "property1": null,
- "property2": null
}
], - "main": [
- {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "property1": null,
- "property2": null
}
], - "bottom": [
- {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "property1": null,
- "property2": null
}
]
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Get the site content for the site key specified
| siteKey required | string The key of the site for delivery options |
| locale | string The ISO locale code |
{- "data": {
- "name": "string",
- "header": {
- "default": {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "property1": null,
- "property2": null
}, - "checkout": {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "property1": null,
- "property2": null
}
}, - "footer": {
- "default": {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "property1": null,
- "property2": null
}
}, - "emptyBasketActionCards": [
- {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "property1": null,
- "property2": null
}
], - "helpPrescriptionModal": {
- "default": {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "property1": null,
- "property2": null
}
}, - "helpSunProtectionModal": {
- "default": {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "property1": null,
- "property2": null
}
}, - "helpLensThicknessModal": {
- "default": {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "property1": null,
- "property2": null
}
}, - "helpLensExtrasModal": {
- "default": {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "property1": null,
- "property2": null
}
}, - "helpAddModal": {
- "default": {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "property1": null,
- "property2": null
}
}, - "helpLensTypeModal": {
- "default": {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "property1": null,
- "property2": null
}
}, - "noResultsPageGallery": {
- "default": {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "property1": null,
- "property2": null
}
}, - "notFoundPage": {
- "default": {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "property1": null,
- "property2": null
}
}, - "cardRetentionPolicy": {
- "default": {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "property1": null,
- "property2": null
}
}, - "titleSuffix": "string",
- "subscriptionDetailText": "string",
- "externalUrls": {
- "bookAppointment": "string",
- "storeFinder": "string"
}, - "internalUrls": {
- "termsAndConditions": {
- "label": "string",
- "target": {
- "type": "site",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "style": "string",
- "_type": "Link",
- "_meta": {
- "id": "string",
- "key": "string"
}
}, - "privacyPolicy": {
- "label": "string",
- "target": {
- "type": "site",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "style": "string",
- "_type": "Link",
- "_meta": {
- "id": "string",
- "key": "string"
}
}, - "deliveryPolicy": {
- "label": "string",
- "target": {
- "type": "site",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "style": "string",
- "_type": "Link",
- "_meta": {
- "id": "string",
- "key": "string"
}
}, - "returnsPolicy": {
- "label": "string",
- "target": {
- "type": "site",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "style": "string",
- "_type": "Link",
- "_meta": {
- "id": "string",
- "key": "string"
}
}, - "offersLegal": {
- "label": "string",
- "target": {
- "type": "site",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "style": "string",
- "_type": "Link",
- "_meta": {
- "id": "string",
- "key": "string"
}
}, - "faqHub": {
- "label": "string",
- "target": {
- "type": "site",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "style": "string",
- "_type": "Link",
- "_meta": {
- "id": "string",
- "key": "string"
}
}, - "glassesCategory": {
- "label": "string",
- "target": {
- "type": "site",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "style": "string",
- "_type": "Link",
- "_meta": {
- "id": "string",
- "key": "string"
}
}, - "contactLensCategory": {
- "label": "string",
- "target": {
- "type": "site",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "style": "string",
- "_type": "Link",
- "_meta": {
- "id": "string",
- "key": "string"
}
}, - "contactUs": {
- "label": "string",
- "target": {
- "type": "site",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "style": "string",
- "_type": "Link",
- "_meta": {
- "id": "string",
- "key": "string"
}
}
}, - "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Returns URL info objects for all URLs
{- "data": {
- "property1": [
- {
- "key": "string",
- "sites": [
- "string"
], - "includeInSitemap": true,
- "ancestors": [
- {
- "key": "string",
- "type": "string"
}
], - "locales": {
- "property1": {
- "slug": "string",
- "title": "string"
}, - "property2": {
- "slug": "string",
- "title": "string"
}
}, - "siteOverrides": {
- "property1": {
- "includeInSitemap": true,
- "ancestors": [
- {
- "key": "string",
- "type": "string"
}
], - "locales": {
- "property1": {
- "slug": "string",
- "title": "string"
}, - "property2": {
- "slug": "string",
- "title": "string"
}
}
}, - "property2": {
- "includeInSitemap": true,
- "ancestors": [
- {
- "key": "string",
- "type": "string"
}
], - "locales": {
- "property1": {
- "slug": "string",
- "title": "string"
}, - "property2": {
- "slug": "string",
- "title": "string"
}
}
}
}
}
], - "property2": [
- {
- "key": "string",
- "sites": [
- "string"
], - "includeInSitemap": true,
- "ancestors": [
- {
- "key": "string",
- "type": "string"
}
], - "locales": {
- "property1": {
- "slug": "string",
- "title": "string"
}, - "property2": {
- "slug": "string",
- "title": "string"
}
}, - "siteOverrides": {
- "property1": {
- "includeInSitemap": true,
- "ancestors": [
- {
- "key": "string",
- "type": "string"
}
], - "locales": {
- "property1": {
- "slug": "string",
- "title": "string"
}, - "property2": {
- "slug": "string",
- "title": "string"
}
}
}, - "property2": {
- "includeInSitemap": true,
- "ancestors": [
- {
- "key": "string",
- "type": "string"
}
], - "locales": {
- "property1": {
- "slug": "string",
- "title": "string"
}, - "property2": {
- "slug": "string",
- "title": "string"
}
}
}
}
}
]
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Returns URL info for a given asset type
| pageType required | string (PageType) Enum: "blog-news-page" "brand-page" "category-page" "collection-page" "content-page" "home-page" "health-fund-page" "health-page" "offer-page" "product-listing-page" "product" "site" The content page type |
{- "data": {
- "property1": [
- {
- "key": "string",
- "sites": [
- "string"
], - "includeInSitemap": true,
- "ancestors": [
- {
- "key": "string",
- "type": "string"
}
], - "locales": {
- "property1": {
- "slug": "string",
- "title": "string"
}, - "property2": {
- "slug": "string",
- "title": "string"
}
}, - "siteOverrides": {
- "property1": {
- "includeInSitemap": true,
- "ancestors": [
- {
- "key": "string",
- "type": "string"
}
], - "locales": {
- "property1": {
- "slug": "string",
- "title": "string"
}, - "property2": {
- "slug": "string",
- "title": "string"
}
}
}, - "property2": {
- "includeInSitemap": true,
- "ancestors": [
- {
- "key": "string",
- "type": "string"
}
], - "locales": {
- "property1": {
- "slug": "string",
- "title": "string"
}, - "property2": {
- "slug": "string",
- "title": "string"
}
}
}
}
}
], - "property2": [
- {
- "key": "string",
- "sites": [
- "string"
], - "includeInSitemap": true,
- "ancestors": [
- {
- "key": "string",
- "type": "string"
}
], - "locales": {
- "property1": {
- "slug": "string",
- "title": "string"
}, - "property2": {
- "slug": "string",
- "title": "string"
}
}, - "siteOverrides": {
- "property1": {
- "includeInSitemap": true,
- "ancestors": [
- {
- "key": "string",
- "type": "string"
}
], - "locales": {
- "property1": {
- "slug": "string",
- "title": "string"
}, - "property2": {
- "slug": "string",
- "title": "string"
}
}
}, - "property2": {
- "includeInSitemap": true,
- "ancestors": [
- {
- "key": "string",
- "type": "string"
}
], - "locales": {
- "property1": {
- "slug": "string",
- "title": "string"
}, - "property2": {
- "slug": "string",
- "title": "string"
}
}
}
}
}
]
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}The type and key parameters must uniquely identify an asset
| pageType required | string (PageType) Enum: "blog-news-page" "brand-page" "category-page" "collection-page" "content-page" "home-page" "health-fund-page" "health-page" "offer-page" "product-listing-page" "product" "site" The content page type |
| key required | string The resource key |
{- "data": {
- "key": "string",
- "sites": [
- "string"
], - "includeInSitemap": true,
- "ancestors": [
- {
- "key": "string",
- "type": "string"
}
], - "locales": {
- "property1": {
- "slug": "string",
- "title": "string"
}, - "property2": {
- "slug": "string",
- "title": "string"
}
}, - "siteOverrides": {
- "property1": {
- "includeInSitemap": true,
- "ancestors": [
- {
- "key": "string",
- "type": "string"
}
], - "locales": {
- "property1": {
- "slug": "string",
- "title": "string"
}, - "property2": {
- "slug": "string",
- "title": "string"
}
}
}, - "property2": {
- "includeInSitemap": true,
- "ancestors": [
- {
- "key": "string",
- "type": "string"
}
], - "locales": {
- "property1": {
- "slug": "string",
- "title": "string"
}, - "property2": {
- "slug": "string",
- "title": "string"
}
}
}
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Gets the page view based on site, content type and key
| siteKey required | string The key of the site to retrieve content for |
| locale required | string The ISO locale code |
| key required | string The resource key |
| pageType required | string (PageType) Enum: "blog-news-page" "brand-page" "category-page" "collection-page" "content-page" "home-page" "health-fund-page" "health-page" "offer-page" "product-listing-page" "product" "site" The content page type |
{- "data": {
- "_type": "string",
- "title": "string",
- "description": "string"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}The health endpoint.
{- "data": {
- "status": "pass",
- "version": "1.0",
- "releaseId": "1234567890",
- "service": "inventory",
- "details": {
- "time": "2023-11-15T12:19:05.737Z",
- "env": "dev",
- "commitId": "368de0fbdff3a5634895d69f8b17cbdfd5e77bfb"
}
}
}The health endpoint.
{- "data": {
- "status": "pass",
- "version": "1.0",
- "releaseId": "1234567890",
- "service": "inventory",
- "details": {
- "time": "2023-11-15T12:19:05.737Z",
- "env": "dev",
- "commitId": "368de0fbdff3a5634895d69f8b17cbdfd5e77bfb"
}
}
}Handles a Contentful Webhook request
{- "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Health check information for the config service
{- "data": {
- "status": "pass",
- "version": "1.0",
- "releaseId": "1234567890",
- "service": "inventory",
- "details": {
- "time": "2023-11-15T12:19:05.737Z",
- "env": "dev",
- "commitId": "368de0fbdff3a5634895d69f8b17cbdfd5e77bfb"
}
}
}Get the configuration for a site by site key
| siteKey | string The key of the site for delivery options |
{- "data": {
- "key": "string",
- "name": "string",
- "countryCode": "string",
- "language": "string",
- "homepageUrl": "string",
- "logoUrl": "string",
- "loginUrl": "string",
- "myAccountUrl": "string",
- "supportContactNumber": "string",
- "supportEmailAddress": "string",
- "externalUrls": {
- "bookAppointment": "string",
- "storeFinder": "string"
}, - "aftercareStores": {
- "enabled": true
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Introspect the JWT token. Verify the token and return verified data.
The JWT token to introspect
| token required | string |
{- "token": "string"
}{- "data": {
- "active": true
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Health check information for the auth service
{- "data": {
- "status": "pass",
- "version": "1.0",
- "releaseId": "1234567890",
- "service": "inventory",
- "details": {
- "time": "2023-11-15T12:19:05.737Z",
- "env": "dev",
- "commitId": "368de0fbdff3a5634895d69f8b17cbdfd5e77bfb"
}
}
}Automatically generates a JWT for an anonymous customer
| siteKey required | string The site key |
{- "data": {
- "jwt": "string"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Logs the user out so no further authorised transactions can be performed with the provided token
| refreshToken | string The JWT token to be refreshed |
{- "data": {
- "message": "Validation failed",
- "code": "ValidationFailed",
- "errors": [
- "body.address.city is a required field",
- "body.address field has unspecified keys: email"
]
}, - "metrics": {
- "durationMs": 292.11
}, - "context": {
- "build": {
- "env": "dev",
- "releaseId": "409",
- "commitId": "aca0a2aa4af5a63f8f2f401792e26f59e7c1fa78"
}
}
}Refreshes the token supplied in the request cookie. If successful the returned cookie will contain the refreshed token.
| refreshToken required | string The JWT token to be refreshed |
{- "data": {
- "jwt": "string"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Register a user
| siteKey required | string The site key |
| anonymousId | string The anonymousId of the customer before registering |
| email required | string |
| password required | string |
| title required | string |
| firstName required | string |
| lastName required | string |
| nationalHealthId | string |
| dateOfBirth required | string |
| gender required | string |
| phoneNumber required | string |
| marketingOptIn required | boolean |
{- "email": "string",
- "password": "string",
- "title": "string",
- "firstName": "string",
- "lastName": "string",
- "nationalHealthId": "string",
- "dateOfBirth": "string",
- "gender": "string",
- "phoneNumber": "string",
- "marketingOptIn": true
}{- "data": {
- "jwt": "string"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Update the customer email
| siteKey required | string The site key |
| email required | string |
| commercetoolsId required | string |
{- "email": "string",
- "commercetoolsId": "string"
}{- "data": {
- "jwt": "string"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Health check information for the precisely service
{- "data": {
- "status": "pass",
- "version": "1.0",
- "releaseId": "1234567890",
- "service": "inventory",
- "details": {
- "time": "2023-11-15T12:19:05.737Z",
- "env": "dev",
- "commitId": "368de0fbdff3a5634895d69f8b17cbdfd5e77bfb"
}
}
}Login to the precisely account
{- "data": {
- "authToken": "string"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Health check information for the precisely service
{- "data": {
- "status": "pass",
- "version": "1.0",
- "releaseId": "1234567890",
- "service": "inventory",
- "details": {
- "time": "2023-11-15T12:19:05.737Z",
- "env": "dev",
- "commitId": "368de0fbdff3a5634895d69f8b17cbdfd5e77bfb"
}
}
}Login to the precisely account
{- "data": {
- "authToken": "string"
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Health check information for the Render Graph service
{- "data": {
- "status": "pass",
- "version": "1.0",
- "releaseId": "1234567890",
- "service": "inventory",
- "details": {
- "time": "2023-11-15T12:19:05.737Z",
- "env": "dev",
- "commitId": "368de0fbdff3a5634895d69f8b17cbdfd5e77bfb"
}
}
}Retrieve a render graph page for a give site, locale and URL
| siteKey required | string The key of the site for delivery options |
| locale required | string The ISO locale code |
| url required | string The url of page to retrieve |
{- "data": {
- "urlInfo": {
- "canonical": "string",
- "hreflang": "string",
- "siteKey": "string",
- "locale": "string",
- "alternate": [
- {
- "href": "string",
- "hreflang": "string",
- "siteKey": "string",
- "locale": "string",
- "include": true
}
]
}, - "page": {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "summary": {
- "title": "string",
- "description": "string"
}, - "crumbtrial": {
- "hide": true,
- "items": [
- {
- "title": "string",
- "url": "string"
}
]
}, - "seo": {
- "title": "string",
- "metaDescription": "string",
- "noFollow": true,
- "noIndex": true,
- "openGraphMetaImage": {
- "url": "string",
- "title": "string",
- "_type": "Image"
}
}, - "componentTop": {
- "_type": "string",
- "property1": null,
- "property2": null
}, - "componentsMain": [
- {
- "_type": "string",
- "property1": null,
- "property2": null
}
], - "componentBottom": {
- "_type": "string",
- "property1": null,
- "property2": null
}
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Retrieve a component for a give site and locale by ID
| siteKey required | string The key of the site for delivery options |
| locale required | string The ISO locale code |
| id required | string The resource id |
{- "data": {
- "page": {
- "_type": "string",
- "_meta": {
- "id": "string",
- "key": "string"
}, - "summary": {
- "title": "string",
- "description": "string"
}, - "crumbtrial": {
- "hide": true,
- "items": [
- {
- "title": "string",
- "url": "string"
}
]
}, - "seo": {
- "title": "string",
- "metaDescription": "string",
- "noFollow": true,
- "noIndex": true,
- "openGraphMetaImage": {
- "url": "string",
- "title": "string",
- "_type": "Image"
}
}, - "componentTop": {
- "_type": "string",
- "property1": null,
- "property2": null
}, - "componentsMain": [
- {
- "_type": "string",
- "property1": null,
- "property2": null
}
], - "componentBottom": {
- "_type": "string",
- "property1": null,
- "property2": null
}
}, - "urlInfo": {
- "canonical": "string",
- "hreflang": "string",
- "siteKey": "string",
- "locale": "string",
- "alternate": [
- {
- "hreflang": "string",
- "href": "string",
- "siteKey": "string",
- "locale": "string",
- "include": true
}
]
}, - "asset": {
- "type": "string",
- "key": "string"
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Retrieves a site asset for the given site key and locale
| siteKey required | string The key of the site for delivery options |
| locale required | string The ISO locale code |
{- "data": {
- "key": "string",
- "name": "string",
- "shorthand": "string",
- "currencies": {
- "default": "string"
}, - "locales": [
- {
- "code": "string",
- "prefix": "string",
- "isDefault": true
}
], - "opticalRanges": {
- "sphere": [
- "string"
], - "cylinder": [
- "string"
], - "add": [
- "string"
]
}, - "readingGlassesLimits": {
- "maxSphere": 0,
- "maxSum": 0,
- "maxSphereDifference": 0,
- "acceptableSphereValues": [
- "string"
], - "acceptableCylinderValues": [
- "string"
]
}, - "distanceGlassesLimits": {
- "maxSphere": 0,
- "maxSum": 0,
- "maxSphereDifference": 0,
- "acceptableSphereValues": [
- "string"
], - "acceptableCylinderValues": [
- "string"
]
}, - "planoPrescriptionValidation": {
- "enabled": true,
- "threshold": 0
}, - "noFramePrescriptionRequired": true,
- "prescriptionConfig": {
- "internal": {
- "dateFormat": "string",
- "validateDate": true,
- "confirmValidSchema": true,
- "confirmValidSchemaRequired": true
}, - "external": {
- "dateFormat": "string",
- "validateDate": true,
- "confirmValidSchema": true,
- "confirmValidSchemaRequired": true
}
}, - "components": {
- "header": {
- "default": {
- "_type": "string",
- "property1": null,
- "property2": null
}, - "checkout": {
- "_type": "string",
- "property1": null,
- "property2": null
}
}, - "footer": {
- "default": {
- "_type": "string",
- "property1": null,
- "property2": null
}
}, - "emptyBasketActionCards": [
- {
- "_type": "string",
- "property1": null,
- "property2": null
}
], - "helpPrescriptionModal": {
- "default": {
- "_type": "string",
- "property1": null,
- "property2": null
}
}, - "helpSunProtectionModal": {
- "default": {
- "_type": "string",
- "property1": null,
- "property2": null
}
}, - "helpLensThicknessModal": {
- "default": {
- "_type": "string",
- "property1": null,
- "property2": null
}
}, - "helpLensExtrasModal": {
- "default": {
- "_type": "string",
- "property1": null,
- "property2": null
}
}, - "helpAddModal": {
- "default": {
- "_type": "string",
- "property1": null,
- "property2": null
}
}, - "helpLensTypeModal": {
- "default": {
- "_type": "string",
- "property1": null,
- "property2": null
}
}, - "cartTwoForOnePromoBanner": {
- "_type": "string",
- "property1": null,
- "property2": null
}, - "subscriptionCardBenefits": [
- {
- "title": "string",
- "body": "string",
- "linkText": "string",
- "linkTarget": {
- "_type": "string",
- "_meta": {
- "key": "string",
- "id": "string"
}, - "label": "string",
- "target": {
- "type": "content-page",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "url": "string"
}, - "icon": "string"
}
], - "subscriptionModalBenefits": [
- {
- "title": "string",
- "body": "string",
- "linkText": "string",
- "linkTarget": {
- "_type": "string",
- "_meta": {
- "key": "string",
- "id": "string"
}, - "label": "string",
- "target": {
- "type": "content-page",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "url": "string"
}, - "icon": "string"
}
], - "noResultsPageGallery": {
- "_type": "string",
- "property1": null,
- "property2": null
}, - "notFoundPage": [
- {
- "_type": "string",
- "property1": null,
- "property2": null
}
], - "cardRetentionPolicy": {
- "_type": "string",
- "property1": null,
- "property2": null
}
}, - "deliveryCountryCodes": [
- "string"
], - "titleSuffix": "string",
- "subscriptionDetailText": "string",
- "enableAnnualOverview": true,
- "paymentMethods": [
- "string"
], - "externalUrls": {
- "bookAppointment": "string",
- "storeFinder": "string"
}, - "internalUrls": {
- "termsAndConditions": {
- "_type": "string",
- "_meta": {
- "key": "string",
- "id": "string"
}, - "label": "string",
- "target": {
- "type": "content-page",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "url": "string"
}, - "privacyPolicy": {
- "_type": "string",
- "_meta": {
- "key": "string",
- "id": "string"
}, - "label": "string",
- "target": {
- "type": "content-page",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "url": "string"
}, - "deliveryPolicy": {
- "_type": "string",
- "_meta": {
- "key": "string",
- "id": "string"
}, - "label": "string",
- "target": {
- "type": "content-page",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "url": "string"
}, - "returnsPolicy": {
- "_type": "string",
- "_meta": {
- "key": "string",
- "id": "string"
}, - "label": "string",
- "target": {
- "type": "content-page",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "url": "string"
}, - "offersLegal": {
- "_type": "string",
- "_meta": {
- "key": "string",
- "id": "string"
}, - "label": "string",
- "target": {
- "type": "content-page",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "url": "string"
}, - "faqHub": {
- "_type": "string",
- "_meta": {
- "key": "string",
- "id": "string"
}, - "label": "string",
- "target": {
- "type": "content-page",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "url": "string"
}, - "glassesCategory": {
- "_type": "string",
- "_meta": {
- "key": "string",
- "id": "string"
}, - "label": "string",
- "target": {
- "type": "content-page",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "url": "string"
}, - "contactLensCategory": {
- "_type": "string",
- "_meta": {
- "key": "string",
- "id": "string"
}, - "label": "string",
- "target": {
- "type": "content-page",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "url": "string"
}, - "contactUs": {
- "_type": "string",
- "_meta": {
- "key": "string",
- "id": "string"
}, - "label": "string",
- "target": {
- "type": "content-page",
- "value": "string"
}, - "noFollow": true,
- "newWindow": true,
- "url": "string"
}
}, - "contact": {
- "email": "string",
- "phone": "string"
}, - "productColors": [
- { }
], - "subscriptions": {
- "enabled": true,
- "supportedPlanTypes": [
- "string"
], - "isSubscriptionDefaultOnPDP": true
}, - "facetValues": {
- "property1": "string",
- "property2": "string"
}, - "isAftercareStoresEnabled": true,
- "appointments": {
- "enabled": true,
- "amendUrl": "string"
}, - "subscriptionCancellationReasons": {
- "reasons": [
- {
- "code": "string",
- "label": "string",
- "additionalInfoNeeded": true
}
]
}, - "isContactLensPrescriptionUploadRequired": true,
- "isGlassesPrescriptionUploadRequired": true,
- "urlPathPrefix": {
- "invoice": "string",
- "creditNote": "string"
}, - "isContactLensPrescriptionStoreRequired": true,
- "isGlassesPrescriptionStoreRequired": true,
- "canonicalHostname": "string",
- "returns": {
- "address": "string",
- "url": "string"
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}{- "data": [
- {
- "key": "string",
- "locales": [
- {
- "code": "string"
}
]
}
], - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}Health check information for the customer service config API
{- "data": {
- "status": "pass",
- "version": "1.0",
- "releaseId": "1234567890",
- "service": "inventory",
- "details": {
- "time": "2023-11-15T12:19:05.737Z",
- "env": "dev",
- "commitId": "368de0fbdff3a5634895d69f8b17cbdfd5e77bfb"
}
}
}Customer service configuration for a particular site and locale
| siteKey required | string The key of the site for delivery options |
| locale required | string The ISO locale code |
{- "data": {
- "key": "string",
- "name": "string",
- "countryCode": "string",
- "canonicalHostname": "string",
- "formats": {
- "dateField": "string",
- "dateDisplay": "string",
- "timeDisplay": "string",
- "dateTimeDisplay": "string"
}, - "search": {
- "customers": {
- "maxResults": 0
}
}, - "locales": [
- {
- "isDefault": true,
- "code": "string",
- "prefix": "string"
}
], - "externalUrls": {
- "offersLegal": "string",
- "bookAppointment": "string",
- "appointmentManagement": {
- "greenpoint": "string",
- "rockit": "string",
- "auditData": "string",
- "jarvis": "string"
}
}, - "returns": {
- "reasons": [
- {
- "code": "string",
- "label": "string",
- "additionalInfoNeeded": true
}
]
}, - "cancellation": {
- "reasons": [
- {
- "code": "string",
- "label": "string",
- "additionalInfoNeeded": true
}
]
}, - "replacement": {
- "reasons": [
- {
- "code": "string",
- "label": "string",
- "additionalInfoNeeded": true
}
]
}, - "subscriptionCancellation": {
- "reasons": [
- {
- "code": "string",
- "label": "string",
- "additionalInfoNeeded": true
}
]
}, - "aftercareStores": {
- "enabled": true
}, - "appeasement": {
- "reasons": [
- {
- "code": "string",
- "label": "string",
- "additionalInfoNeeded": true
}
], - "typeValues": [
- {
- "type": "string",
- "value": 0
}
]
}, - "urlPathPrefix": {
- "invoice": "string",
- "creditNote": "string"
}
}, - "context": {
- "siteKey": "specsavers-gb",
- "build": {
- "env": "dev",
- "releaseId": "911",
- "commitId": "3d13f3c6c4f017d66d2a9c16c566ffb11f05f32c"
}
}, - "metrics": {
- "durationMs": 0
}
}