The application will send new operation notification messages through this channel.
The environment from which the event originated from e.g. dev, prod
Accepts one of the following messages:
Default Correlation ID
The application will send new order confirmed events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.order.confirmed",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"order": {
"id": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": {
"email": "string",
"userType": "string"
},
"locale": "string",
"number": "string",
"invoice": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"externalUrl": "string",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string"
},
"lineItems": [
{
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string",
"originalLineItem": {
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string"
},
"prescriptionKey": "string",
"productDetails": {},
"discount": {
"key": "string",
"discountCode": "string"
},
"price": {
"currencyCode": "string",
"centAmount": 0
},
"taxedPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"taxRate": {
"name": "string",
"amount": 0,
"includedInPrice": true,
"country": "string",
"subRates": [
{
"name": "string",
"amount": 0
}
]
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"unitPrice": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"lineItemGroups": [
{
"id": 0,
"type": "string",
"number": "string",
"manufacturingData": {
"requisitionRequestId": 0,
"manufacturingData": "string",
"frameAvailable": true,
"orderType": "string",
"errors": [
"string"
],
"infos": [
"string"
],
"warnings": [
"string"
]
}
}
],
"orderState": "OPEN",
"origin": "ONLINE",
"soldBy": {
"eposNumber": "string",
"entity": "string",
"marketId": "string"
},
"originalOrder": {
"id": "string",
"number": "string"
},
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "PREPAY",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
]
},
"type": "STANDARD",
"billingAddress": {
"id": "string",
"title": "string",
"firstName": "string",
"lastName": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"postalCode": "string",
"city": "string",
"state": "string",
"country": "string",
"phone": "string",
"email": "string"
},
"payments": [
{
"id": "string",
"merchantAccount": "string",
"merchantReference": "string",
"pspReference": "string",
"status": "string",
"transactions": [
{
"id": "string",
"interactionId": "string",
"state": "string",
"pspReference": "string",
"type": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"notes": "string"
}
],
"paymentInterface": "string",
"method": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"discounts": [
{
"key": "string",
"id": "string",
"isShippingDiscount": true,
"type": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"discountCodes": [
"string"
],
"discountSummary": [
{
"id": "string",
"type": "string",
"name": "string",
"isShippingDiscount": true,
"discountCode": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"prescriptions": [
{
"key": "string",
"type": "string",
"date": "2019-08-24",
"validFrom": "2019-08-24",
"validUntil": "2019-08-24",
"hasPrescription": true,
"leftEye": {},
"rightEye": {},
"store": {
"id": "string",
"name": "string"
},
"externalPrescription": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string",
"externalUrl": "string"
}
}
],
"shippingAddress": {
"id": "string",
"title": "string",
"firstName": "string",
"lastName": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"postalCode": "string",
"city": "string",
"state": "string",
"country": "string",
"phone": "string",
"email": "string"
},
"shippingInfo": {
"shippingMethodName": "string",
"price": {
"currencyCode": "string",
"centAmount": 0
},
"shippingRate": {
"price": {
"currencyCode": "string",
"centAmount": 0
}
},
"taxRate": {
"name": "string",
"amount": 0,
"includedInPrice": true,
"country": "string",
"subRates": [
{
"name": "string",
"amount": 0
}
]
},
"taxedPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
}
},
"taxedPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"taxedShippingPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"subtotalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"lastModifiedAt": "2019-08-24T14:15:22Z",
"isExpressReorder": true
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
}
}
}
Default Correlation ID
The application will send new order paid events through this channel.
{
"id": "string",
"specversion": "1.0",
"source": "string",
"time": "2019-08-24T14:15:22Z",
"type": "com.specsavers.order.created",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"order": {
"id": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": {
"email": "string",
"userType": "string"
},
"locale": "string",
"number": "string",
"invoice": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"externalUrl": "string",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string"
},
"lineItems": [
{
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string",
"originalLineItem": {
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string"
},
"prescriptionKey": "string",
"productDetails": {},
"discount": {
"key": "string",
"discountCode": "string"
},
"price": {
"currencyCode": "string",
"centAmount": 0
},
"taxedPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"taxRate": {
"name": "string",
"amount": 0,
"includedInPrice": true,
"country": "string",
"subRates": [
{
"name": "string",
"amount": 0
}
]
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"unitPrice": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"lineItemGroups": [
{
"id": 0,
"type": "string",
"number": "string",
"manufacturingData": {
"requisitionRequestId": 0,
"manufacturingData": "string",
"frameAvailable": true,
"orderType": "string",
"errors": [
"string"
],
"infos": [
"string"
],
"warnings": [
"string"
]
}
}
],
"orderState": "OPEN",
"origin": "ONLINE",
"soldBy": {
"eposNumber": "string",
"entity": "string",
"marketId": "string"
},
"originalOrder": {
"id": "string",
"number": "string"
},
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "PREPAY",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
]
},
"type": "STANDARD",
"billingAddress": {
"id": "string",
"title": "string",
"firstName": "string",
"lastName": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"postalCode": "string",
"city": "string",
"state": "string",
"country": "string",
"phone": "string",
"email": "string"
},
"payments": [
{
"id": "string",
"merchantAccount": "string",
"merchantReference": "string",
"pspReference": "string",
"status": "string",
"transactions": [
{
"id": "string",
"interactionId": "string",
"state": "string",
"pspReference": "string",
"type": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"notes": "string"
}
],
"paymentInterface": "string",
"method": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"discounts": [
{
"key": "string",
"id": "string",
"isShippingDiscount": true,
"type": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"discountCodes": [
"string"
],
"discountSummary": [
{
"id": "string",
"type": "string",
"name": "string",
"isShippingDiscount": true,
"discountCode": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"prescriptions": [
{
"key": "string",
"type": "string",
"date": "2019-08-24",
"validFrom": "2019-08-24",
"validUntil": "2019-08-24",
"hasPrescription": true,
"leftEye": {},
"rightEye": {},
"store": {
"id": "string",
"name": "string"
},
"externalPrescription": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string",
"externalUrl": "string"
}
}
],
"shippingAddress": {
"id": "string",
"title": "string",
"firstName": "string",
"lastName": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"postalCode": "string",
"city": "string",
"state": "string",
"country": "string",
"phone": "string",
"email": "string"
},
"shippingInfo": {
"shippingMethodName": "string",
"price": {
"currencyCode": "string",
"centAmount": 0
},
"shippingRate": {
"price": {
"currencyCode": "string",
"centAmount": 0
}
},
"taxRate": {
"name": "string",
"amount": 0,
"includedInPrice": true,
"country": "string",
"subRates": [
{
"name": "string",
"amount": 0
}
]
},
"taxedPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
}
},
"taxedPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"taxedShippingPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"subtotalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"lastModifiedAt": "2019-08-24T14:15:22Z",
"isExpressReorder": true
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
},
"__meta": {
"key": "string",
"language": "string",
"loginUrl": "string",
"logoUrl": "string",
"myAccountUrl": "string",
"contactUsUrl": "string",
"privacyPolicyUrl": "string",
"termsofPurchaseUrl": "string",
"legalPoliciesUrl": "string",
"name": "string",
"supportContactNumber": "string",
"supportEmailAddress": "string"
}
}
}
Default Correlation ID
The application will send new upcoming order(i.e recurring order) created events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.upcoming.order.created",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"order": {
"id": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": {
"email": "string",
"userType": "string"
},
"locale": "string",
"number": "string",
"lineItems": [
{
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string",
"originalLineItem": {
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string"
},
"prescriptionKey": "string",
"productDetails": {},
"discount": {
"key": "string",
"discountCode": "string"
},
"price": {
"currencyCode": "string",
"centAmount": 0
},
"taxedPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"taxRate": {
"name": "string",
"amount": 0,
"includedInPrice": true,
"country": "string",
"subRates": [
{
"name": "string",
"amount": 0
}
]
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"unitPrice": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"lineItemGroups": [
{
"id": 0,
"type": "string",
"number": "string",
"manufacturingData": {
"requisitionRequestId": 0,
"manufacturingData": "string",
"frameAvailable": true,
"orderType": "string",
"errors": [
"string"
],
"infos": [
"string"
],
"warnings": [
"string"
]
}
}
],
"orderState": "OPEN",
"origin": "ONLINE",
"soldBy": {
"eposNumber": "string",
"entity": "string",
"marketId": "string"
},
"originalOrder": {
"id": "string",
"number": "string"
},
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "PREPAY",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
]
},
"type": "STANDARD",
"billingAddress": {
"id": "string",
"title": "string",
"firstName": "string",
"lastName": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"postalCode": "string",
"city": "string",
"state": "string",
"country": "string",
"phone": "string",
"email": "string"
},
"payments": [
{
"id": "string",
"merchantAccount": "string",
"merchantReference": "string",
"pspReference": "string",
"status": "string",
"transactions": [
{
"id": "string",
"interactionId": "string",
"state": "string",
"pspReference": "string",
"type": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"notes": "string"
}
],
"paymentInterface": "string",
"method": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"discounts": [
{
"key": "string",
"id": "string",
"isShippingDiscount": true,
"type": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"discountCodes": [
"string"
],
"discountSummary": [
{
"id": "string",
"type": "string",
"name": "string",
"isShippingDiscount": true,
"discountCode": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"prescriptions": [
{
"key": "string",
"type": "string",
"date": "2019-08-24",
"validFrom": "2019-08-24",
"validUntil": "2019-08-24",
"hasPrescription": true,
"leftEye": {},
"rightEye": {},
"store": {
"id": "string",
"name": "string"
},
"externalPrescription": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string",
"externalUrl": "string"
}
}
],
"shippingAddress": {
"id": "string",
"title": "string",
"firstName": "string",
"lastName": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"postalCode": "string",
"city": "string",
"state": "string",
"country": "string",
"phone": "string",
"email": "string"
},
"shippingInfo": {
"shippingMethodName": "string",
"price": {
"currencyCode": "string",
"centAmount": 0
},
"shippingRate": {
"price": {
"currencyCode": "string",
"centAmount": 0
}
},
"taxRate": {
"name": "string",
"amount": 0,
"includedInPrice": true,
"country": "string",
"subRates": [
{
"name": "string",
"amount": 0
}
]
},
"taxedPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
}
},
"taxedPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"taxedShippingPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"subtotalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"lastModifiedAt": "2019-08-24T14:15:22Z",
"isExpressReorder": true
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
},
"__meta": {
"key": "string",
"language": "string",
"loginUrl": "string",
"logoUrl": "string",
"myAccountUrl": "string",
"contactUsUrl": "string",
"privacyPolicyUrl": "string",
"termsofPurchaseUrl": "string",
"legalPoliciesUrl": "string",
"name": "string",
"supportContactNumber": "string",
"supportEmailAddress": "string"
}
}
}
Default Correlation ID
The application will send new order rtp internal invoice created events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.rtp.order.created",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"order": {
"id": "string"
}
}
}
Default Correlation ID
The application will send RTP order cancelled events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.rtp.order.cancelled",
"correlationid": "string",
"data": {
"orderNumber": "string"
}
}
Default Correlation ID
The application will send new subscription rtp updated events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.rtp.subscription.updated",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"recurringOrder": {
"id": "string"
}
}
}
Default Correlation ID
The application will send new order rtp internal remorse completed events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.rtp.remorse.completed",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"order": {
"id": "string"
}
}
}
Default Correlation ID
The application will send new payment captured events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.payment.captured",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"order": {
"id": "string",
"locale": "string",
"number": "string",
"originalOrder": {
"id": "string",
"number": "string"
},
"orderState": "OPEN",
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "PREPAY",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
]
},
"lineItems": [
{
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "string",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string",
"originalLineItem": {
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string"
},
"price": {
"currencyCode": "string",
"centAmount": 0
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"taxRate": {
"name": "string",
"amount": 0,
"includedInPrice": true,
"country": "string",
"subRates": [
{
"name": "string",
"amount": 0
}
]
},
"taxedPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"unitPrice": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"billingAddress": {
"id": "string",
"title": "string",
"firstName": "string",
"lastName": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"postalCode": "string",
"city": "string",
"state": "string",
"country": "string",
"phone": "string",
"email": "string"
},
"payment": {
"id": "string",
"merchantAccount": "string",
"merchantReference": "string",
"pspReference": "string",
"status": "string",
"transaction": {
"id": "string",
"interactionId": "string",
"state": "string",
"pspReference": "string",
"type": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"notes": "string"
},
"paymentInterface": "string",
"method": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
},
"originalPayments": [
{
"id": "string",
"merchantAccount": "string",
"merchantReference": "string",
"pspReference": "string",
"status": "string",
"transaction": {
"id": "string",
"interactionId": "string",
"state": "string",
"pspReference": "string",
"type": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"notes": "string"
},
"paymentInterface": "string",
"method": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"refundPayment": {
"id": "string",
"merchantAccount": "string",
"merchantReference": "string",
"pspReference": "string",
"status": "string",
"transaction": {
"id": "string",
"interactionId": "string",
"state": "string",
"pspReference": "string",
"type": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"notes": "string"
},
"paymentInterface": "string",
"method": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
},
"totalRefundAmount": {
"currencyCode": "string",
"centAmount": 0
},
"subtotalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"type": "STANDARD",
"creditNote": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"externalUrl": "string",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string"
}
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
},
"__meta": {
"key": "string",
"language": "string",
"loginUrl": "string",
"logoUrl": "string",
"myAccountUrl": "string",
"contactUsUrl": "string",
"privacyPolicyUrl": "string",
"termsofPurchaseUrl": "string",
"legalPoliciesUrl": "string",
"name": "string",
"supportContactNumber": "string",
"supportEmailAddress": "string"
}
}
}
Default Correlation ID
The application will send new payment failed events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.payment.failed",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"order": {
"id": "string",
"locale": "string",
"number": "string",
"originalOrder": {
"id": "string",
"number": "string"
},
"orderState": "OPEN",
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "PREPAY",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
]
},
"lineItems": [
{
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "string",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string",
"originalLineItem": {
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string"
},
"price": {
"currencyCode": "string",
"centAmount": 0
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"taxRate": {
"name": "string",
"amount": 0,
"includedInPrice": true,
"country": "string",
"subRates": [
{
"name": "string",
"amount": 0
}
]
},
"taxedPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"unitPrice": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"billingAddress": {
"id": "string",
"title": "string",
"firstName": "string",
"lastName": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"postalCode": "string",
"city": "string",
"state": "string",
"country": "string",
"phone": "string",
"email": "string"
},
"payment": {
"id": "string",
"merchantAccount": "string",
"merchantReference": "string",
"pspReference": "string",
"status": "string",
"transaction": {
"id": "string",
"interactionId": "string",
"state": "string",
"pspReference": "string",
"type": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"notes": "string"
},
"paymentInterface": "string",
"method": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
},
"originalPayments": [
{
"id": "string",
"merchantAccount": "string",
"merchantReference": "string",
"pspReference": "string",
"status": "string",
"transaction": {
"id": "string",
"interactionId": "string",
"state": "string",
"pspReference": "string",
"type": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"notes": "string"
},
"paymentInterface": "string",
"method": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"refundPayment": {
"id": "string",
"merchantAccount": "string",
"merchantReference": "string",
"pspReference": "string",
"status": "string",
"transaction": {
"id": "string",
"interactionId": "string",
"state": "string",
"pspReference": "string",
"type": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"notes": "string"
},
"paymentInterface": "string",
"method": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
},
"totalRefundAmount": {
"currencyCode": "string",
"centAmount": 0
},
"subtotalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"type": "STANDARD",
"creditNote": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"externalUrl": "string",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string"
}
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
},
"__meta": {
"key": "string",
"language": "string",
"loginUrl": "string",
"logoUrl": "string",
"myAccountUrl": "string",
"contactUsUrl": "string",
"privacyPolicyUrl": "string",
"termsofPurchaseUrl": "string",
"legalPoliciesUrl": "string",
"name": "string",
"supportContactNumber": "string",
"supportEmailAddress": "string"
}
}
}
Default Correlation ID
The application will send new payment refunded events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.payment.refunded",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"order": {
"id": "string",
"locale": "string",
"number": "string",
"originalOrder": {
"id": "string",
"number": "string"
},
"orderState": "OPEN",
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "PREPAY",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
]
},
"lineItems": [
{
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "string",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string",
"originalLineItem": {
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string"
},
"price": {
"currencyCode": "string",
"centAmount": 0
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"taxRate": {
"name": "string",
"amount": 0,
"includedInPrice": true,
"country": "string",
"subRates": [
{
"name": "string",
"amount": 0
}
]
},
"taxedPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"unitPrice": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"billingAddress": {
"id": "string",
"title": "string",
"firstName": "string",
"lastName": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"postalCode": "string",
"city": "string",
"state": "string",
"country": "string",
"phone": "string",
"email": "string"
},
"payment": {
"id": "string",
"merchantAccount": "string",
"merchantReference": "string",
"pspReference": "string",
"status": "string",
"transaction": {
"id": "string",
"interactionId": "string",
"state": "string",
"pspReference": "string",
"type": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"notes": "string"
},
"paymentInterface": "string",
"method": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
},
"originalPayments": [
{
"id": "string",
"merchantAccount": "string",
"merchantReference": "string",
"pspReference": "string",
"status": "string",
"transaction": {
"id": "string",
"interactionId": "string",
"state": "string",
"pspReference": "string",
"type": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"notes": "string"
},
"paymentInterface": "string",
"method": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"refundPayment": {
"id": "string",
"merchantAccount": "string",
"merchantReference": "string",
"pspReference": "string",
"status": "string",
"transaction": {
"id": "string",
"interactionId": "string",
"state": "string",
"pspReference": "string",
"type": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"notes": "string"
},
"paymentInterface": "string",
"method": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
},
"totalRefundAmount": {
"currencyCode": "string",
"centAmount": 0
},
"subtotalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"type": "STANDARD",
"creditNote": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"externalUrl": "string",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string"
}
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
},
"__meta": {
"key": "string",
"language": "string",
"loginUrl": "string",
"logoUrl": "string",
"myAccountUrl": "string",
"contactUsUrl": "string",
"privacyPolicyUrl": "string",
"termsofPurchaseUrl": "string",
"legalPoliciesUrl": "string",
"name": "string",
"supportContactNumber": "string",
"supportEmailAddress": "string"
}
}
}
Default Correlation ID
The application will send new payment refund failed events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.payment.refund.failed",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"order": {
"id": "string",
"locale": "string",
"number": "string",
"originalOrder": {
"id": "string",
"number": "string"
},
"orderState": "OPEN",
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "PREPAY",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
]
},
"lineItems": [
{
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "string",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string",
"originalLineItem": {
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string"
},
"price": {
"currencyCode": "string",
"centAmount": 0
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"taxRate": {
"name": "string",
"amount": 0,
"includedInPrice": true,
"country": "string",
"subRates": [
{
"name": "string",
"amount": 0
}
]
},
"taxedPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"unitPrice": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"billingAddress": {
"id": "string",
"title": "string",
"firstName": "string",
"lastName": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"postalCode": "string",
"city": "string",
"state": "string",
"country": "string",
"phone": "string",
"email": "string"
},
"payment": {
"id": "string",
"merchantAccount": "string",
"merchantReference": "string",
"pspReference": "string",
"status": "string",
"transaction": {
"id": "string",
"interactionId": "string",
"state": "string",
"pspReference": "string",
"type": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"notes": "string"
},
"paymentInterface": "string",
"method": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
},
"originalPayments": [
{
"id": "string",
"merchantAccount": "string",
"merchantReference": "string",
"pspReference": "string",
"status": "string",
"transaction": {
"id": "string",
"interactionId": "string",
"state": "string",
"pspReference": "string",
"type": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"notes": "string"
},
"paymentInterface": "string",
"method": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"refundPayment": {
"id": "string",
"merchantAccount": "string",
"merchantReference": "string",
"pspReference": "string",
"status": "string",
"transaction": {
"id": "string",
"interactionId": "string",
"state": "string",
"pspReference": "string",
"type": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"notes": "string"
},
"paymentInterface": "string",
"method": "string",
"name": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
}
},
"totalRefundAmount": {
"currencyCode": "string",
"centAmount": 0
},
"subtotalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"type": "STANDARD",
"creditNote": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"externalUrl": "string",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string"
}
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
},
"__meta": {
"key": "string",
"language": "string",
"loginUrl": "string",
"logoUrl": "string",
"myAccountUrl": "string",
"contactUsUrl": "string",
"privacyPolicyUrl": "string",
"termsofPurchaseUrl": "string",
"legalPoliciesUrl": "string",
"name": "string",
"supportContactNumber": "string",
"supportEmailAddress": "string"
}
}
}
Default Correlation ID
The application will send RTP return refunded events when a refund payment is manually refunded through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.rtp.return.refunded",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"orderNumber": "string",
"returnKey": "string",
"paymentId": "string",
"transactionId": "string",
"isManualRefund": true
}
}
Default Correlation ID
The application will send RTP order refund events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.rtp.order.refunded",
"correlationid": "string",
"data": {
"orderNumber": "string",
"isCancellation": true,
"paymentId": "string",
"transactionId": "string",
"isManualRefund": true
}
}
Default Correlation ID
The application will send RTP credit note created events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.rtp.creditnote.created",
"correlationid": "string",
"data": {
"orderNumber": "string",
"creditNoteId": "string",
"isCancellation": true,
"returnKey": "string",
"paymentId": "string",
"transactionId": "string"
}
}
Default Correlation ID
The application will send new subscription created events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.subscription.created",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"__meta": {
"key": "string",
"language": "string",
"loginUrl": "string",
"logoUrl": "string",
"myAccountUrl": "string",
"contactUsUrl": "string",
"privacyPolicyUrl": "string",
"termsofPurchaseUrl": "string",
"legalPoliciesUrl": "string",
"name": "string",
"supportContactNumber": "string",
"supportEmailAddress": "string"
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
},
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "string",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
],
"originalOrderId": "string",
"originalOrderNumber": "string",
"startedAt": "2019-08-24T14:15:22Z",
"lineItems": [
{
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string",
"originalLineItem": {
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string"
},
"prescriptionKey": "string",
"productDetails": {},
"discount": {
"key": "string",
"discountCode": "string"
},
"price": {
"currencyCode": "string",
"centAmount": 0
},
"taxedPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"taxRate": {
"name": "string",
"amount": 0,
"includedInPrice": true,
"country": "string",
"subRates": [
{
"name": "string",
"amount": 0
}
]
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"unitPrice": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"taxedPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"taxedShippingPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"subtotalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
}
}
}
}
Default Correlation ID
The application will send new subscription updated events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.subscription.updated",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"__meta": {
"key": "string",
"language": "string",
"loginUrl": "string",
"logoUrl": "string",
"myAccountUrl": "string",
"contactUsUrl": "string",
"privacyPolicyUrl": "string",
"termsofPurchaseUrl": "string",
"legalPoliciesUrl": "string",
"name": "string",
"supportContactNumber": "string",
"supportEmailAddress": "string"
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
},
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "string",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
],
"originalOrderId": "string",
"originalOrderNumber": "string",
"startedAt": "2019-08-24T14:15:22Z",
"lineItems": [
{
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string",
"originalLineItem": {
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string"
},
"prescriptionKey": "string",
"productDetails": {},
"discount": {
"key": "string",
"discountCode": "string"
},
"price": {
"currencyCode": "string",
"centAmount": 0
},
"taxedPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"taxRate": {
"name": "string",
"amount": 0,
"includedInPrice": true,
"country": "string",
"subRates": [
{
"name": "string",
"amount": 0
}
]
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"unitPrice": {
"currencyCode": "string",
"centAmount": 0
}
}
],
"taxedPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"taxedShippingPrice": {
"totalNet": {
"currencyCode": "string",
"centAmount": 0
},
"totalGross": {
"currencyCode": "string",
"centAmount": 0
},
"taxPortions": [
{
"rate": 0,
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"name": "string"
}
],
"totalTax": {
"currencyCode": "string",
"centAmount": 0
}
},
"subtotalPrice": {
"currencyCode": "string",
"centAmount": 0
},
"totalPrice": {
"currencyCode": "string",
"centAmount": 0
}
}
}
}
Default Correlation ID
The application will send new subscription resumed events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.subscription.resumed",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"__meta": {
"key": "string",
"language": "string",
"loginUrl": "string",
"logoUrl": "string",
"myAccountUrl": "string",
"contactUsUrl": "string",
"privacyPolicyUrl": "string",
"termsofPurchaseUrl": "string",
"legalPoliciesUrl": "string",
"name": "string",
"supportContactNumber": "string",
"supportEmailAddress": "string"
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
},
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "string",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
],
"originalOrderId": "string",
"originalOrderNumber": "string",
"startedAt": "2019-08-24T14:15:22Z"
}
}
}
Default Correlation ID
The application will send new subscription updated events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.subscription.status.updated",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"__meta": {
"key": "string",
"language": "string",
"loginUrl": "string",
"logoUrl": "string",
"myAccountUrl": "string",
"contactUsUrl": "string",
"privacyPolicyUrl": "string",
"termsofPurchaseUrl": "string",
"legalPoliciesUrl": "string",
"name": "string",
"supportContactNumber": "string",
"supportEmailAddress": "string"
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
},
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "string",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
],
"originalOrderId": "string",
"originalOrderNumber": "string",
"startedAt": "2019-08-24T14:15:22Z"
}
}
}
Default Correlation ID
The application will send subscription cancelled events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.subscription.cancelled",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"__meta": {
"key": "string",
"language": "string",
"loginUrl": "string",
"logoUrl": "string",
"myAccountUrl": "string",
"contactUsUrl": "string",
"privacyPolicyUrl": "string",
"termsofPurchaseUrl": "string",
"legalPoliciesUrl": "string",
"name": "string",
"supportContactNumber": "string",
"supportEmailAddress": "string"
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
},
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "string",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
],
"originalOrderId": "string",
"originalOrderNumber": "string",
"startedAt": "2019-08-24T14:15:22Z",
"cancellationInfo": {
"id": "string",
"key": "string",
"code": "string",
"detail": "string",
"cancelledAt": "2019-08-24T14:15:22Z",
"cancelledBy": {
"id": "string",
"userType": "CUSTOMER",
"email": "string",
"name": "string"
}
}
}
}
}
Default Correlation ID
The application will send subscription product substitution events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.rtp.order.subscription.product.substituted",
"correlationid": "string",
"subject": "string",
"datacontenttype": "application/json",
"data": {
"productSubstitution": {
"oldSku": "string",
"newSku": "string",
"sendEmail": true
}
}
}
Default Correlation ID
The application will send subscription product substitution by SKU events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.rtp.order.subscription.product.substituted-by-sku",
"correlationid": "string",
"subject": "string",
"datacontenttype": "application/json",
"data": {
"cart": {
"id": "string"
},
"productSubstitution": {
"oldSku": "string",
"newSku": "string",
"sendEmail": true
}
}
}
Default Correlation ID
The application will send new order completed events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.order.completed",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"__meta": {
"key": "string",
"language": "string",
"loginUrl": "string",
"logoUrl": "string",
"myAccountUrl": "string",
"contactUsUrl": "string",
"privacyPolicyUrl": "string",
"termsofPurchaseUrl": "string",
"legalPoliciesUrl": "string",
"name": "string",
"supportContactNumber": "string",
"supportEmailAddress": "string"
},
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"order": {
"id": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": {
"email": "string",
"userType": "string"
},
"locale": "string",
"number": "string",
"invoice": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"externalUrl": "string",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string"
},
"lineItemGroups": [
{
"id": 0,
"type": "string",
"number": "string",
"manufacturingData": {
"requisitionRequestId": 0,
"manufacturingData": "string",
"frameAvailable": true,
"orderType": "string",
"errors": [
"string"
],
"infos": [
"string"
],
"warnings": [
"string"
]
}
}
],
"orderState": "OPEN",
"origin": "ONLINE",
"originalOrder": {
"id": "string",
"number": "string"
},
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "PREPAY",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
]
},
"type": "STANDARD",
"deliveries": [
{
"id": "string",
"key": "string",
"createdAt": "string",
"items": [
{
"id": "string",
"quantity": 0
}
],
"state": "string"
}
],
"lineItems": [
{
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string",
"originalLineItem": {
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string"
}
}
]
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
}
}
}
Default Correlation ID
The application will send new order events through this channel for order status update.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.order.updated",
"correlationid": "string",
"data": {
"__meta": {
"key": "string",
"language": "string",
"loginUrl": "string",
"logoUrl": "string",
"myAccountUrl": "string",
"contactUsUrl": "string",
"privacyPolicyUrl": "string",
"termsofPurchaseUrl": "string",
"legalPoliciesUrl": "string",
"name": "string",
"supportContactNumber": "string",
"supportEmailAddress": "string"
},
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"order": {
"id": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": {
"email": "string",
"userType": "string"
},
"locale": "string",
"number": "string",
"invoice": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"externalUrl": "string",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string"
},
"lineItemGroups": [
{
"id": 0,
"type": "string",
"number": "string",
"manufacturingData": {
"requisitionRequestId": 0,
"manufacturingData": "string",
"frameAvailable": true,
"orderType": "string",
"errors": [
"string"
],
"infos": [
"string"
],
"warnings": [
"string"
]
}
}
],
"orderState": "OPEN",
"origin": "ONLINE",
"originalOrder": {
"id": "string",
"number": "string"
},
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "PREPAY",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
]
},
"type": "STANDARD",
"lineItems": [
{
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string",
"originalLineItem": {
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string"
}
}
]
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
}
}
}
Default Correlation ID
The application will send new order shipped events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.order.shipped",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"__meta": {
"key": "string",
"language": "string",
"loginUrl": "string",
"logoUrl": "string",
"myAccountUrl": "string",
"contactUsUrl": "string",
"privacyPolicyUrl": "string",
"termsofPurchaseUrl": "string",
"legalPoliciesUrl": "string",
"name": "string",
"supportContactNumber": "string",
"supportEmailAddress": "string"
},
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"order": {
"id": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": {
"email": "string",
"userType": "string"
},
"locale": "string",
"number": "string",
"invoice": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"externalUrl": "string",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string"
},
"lineItemGroups": [
{
"id": 0,
"type": "string",
"number": "string",
"manufacturingData": {
"requisitionRequestId": 0,
"manufacturingData": "string",
"frameAvailable": true,
"orderType": "string",
"errors": [
"string"
],
"infos": [
"string"
],
"warnings": [
"string"
]
}
}
],
"orderState": "OPEN",
"origin": "ONLINE",
"originalOrder": {
"id": "string",
"number": "string"
},
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "PREPAY",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
]
},
"type": "STANDARD",
"lineItems": [
{
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string",
"originalLineItem": {
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string"
}
}
],
"deliveries": [
{
"id": "string",
"key": "string",
"createdAt": "string",
"items": [
{
"id": "string",
"quantity": 0
}
],
"state": "string"
}
]
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
}
}
}
Default Correlation ID
The application will send new order cancelled events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.order.cancelled",
"correlationid": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"data": {
"__meta": {
"key": "string",
"language": "string",
"loginUrl": "string",
"logoUrl": "string",
"myAccountUrl": "string",
"contactUsUrl": "string",
"privacyPolicyUrl": "string",
"termsofPurchaseUrl": "string",
"legalPoliciesUrl": "string",
"name": "string",
"supportContactNumber": "string",
"supportEmailAddress": "string"
},
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"order": {
"id": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": {
"email": "string",
"userType": "string"
},
"locale": "string",
"number": "string",
"invoice": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"externalUrl": "string",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string"
},
"lineItemGroups": [
{
"id": 0,
"type": "string",
"number": "string",
"manufacturingData": {
"requisitionRequestId": 0,
"manufacturingData": "string",
"frameAvailable": true,
"orderType": "string",
"errors": [
"string"
],
"infos": [
"string"
],
"warnings": [
"string"
]
}
}
],
"orderState": "OPEN",
"origin": "ONLINE",
"originalOrder": {
"id": "string",
"number": "string"
},
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "PREPAY",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
]
},
"type": "STANDARD",
"lineItems": [
{
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string",
"originalLineItem": {
"groupId": 0,
"id": "string",
"itemCategory": "string",
"eye": "L",
"name": "string",
"number": "string",
"groupNumber": "string",
"quantity": 0,
"sku": "string",
"state": "string",
"style": "string"
}
}
],
"cancellationInfo": {
"id": "string",
"key": "string",
"detail": "string",
"cancelledAt": "2019-08-24T14:15:22Z",
"cancelledBy": "string"
},
"creditNote": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"externalUrl": "string",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string"
},
"totalRefundAmount": {
"currencyCode": "string",
"centAmount": 0
}
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
}
}
}
Default Correlation ID
The application will send return created events through this channel.
{
"id": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/returns",
"type": "com.specsavers.return.created",
"correlationid": "string",
"data": {
"__meta": {
"key": "string",
"language": "string",
"loginUrl": "string",
"logoUrl": "string",
"myAccountUrl": "string",
"contactUsUrl": "string",
"privacyPolicyUrl": "string",
"termsofPurchaseUrl": "string",
"legalPoliciesUrl": "string",
"name": "string",
"supportContactNumber": "string",
"supportEmailAddress": "string"
},
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"order": {
"id": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": {
"email": "string",
"userType": "string"
},
"locale": "string",
"number": "string",
"invoice": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"externalUrl": "string",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string"
},
"lineItemGroups": [
{
"id": 0,
"type": "string",
"number": "string",
"manufacturingData": {
"requisitionRequestId": 0,
"manufacturingData": "string",
"frameAvailable": true,
"orderType": "string",
"errors": [
"string"
],
"infos": [
"string"
],
"warnings": [
"string"
]
}
}
],
"orderState": "OPEN",
"origin": "ONLINE",
"originalOrder": {
"id": "string",
"number": "string"
},
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "PREPAY",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
]
},
"type": "STANDARD",
"lineItems": [
{
"groupId": 0,
"id": "string",
"itemCategory": "string",
"name": "string",
"number": "string",
"quantity": 0,
"returnedQuantity": 0,
"returnableQuantity": 0,
"sku": "string",
"state": "string",
"style": "string"
}
]
},
"returnInfo": {
"number": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": {
"id": "string",
"email": "string",
"userType": "string",
"name": "string"
},
"lastModifiedAt": "2019-08-24T14:15:22Z",
"lastModifiedBy": {
"id": "string",
"email": "string",
"userType": "string",
"name": "string"
},
"state": "INITIATED",
"paymentState": "PENDING",
"type": "RECEIPTED",
"totalRefundAmount": {
"currencyCode": "string",
"centAmount": 0
},
"lineItems": [
{
"id": "string",
"lineItemId": "string",
"quantity": 0,
"reasonCode": "string",
"reason": "string",
"additionalInfo": "string",
"appeasementType": "PERCENT_OFF",
"appeasementValue": 0
}
],
"creditNote": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"externalUrl": "string",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string"
}
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
}
}
}
Default Correlation ID
The application will send return completed events through this channel.
{
"id": "string",
"subject": "string",
"market": "GB",
"datacontenttype": "application/json",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/returns",
"type": "com.specsavers.return.completed",
"correlationid": "string",
"data": {
"__meta": {
"key": "string",
"language": "string",
"loginUrl": "string",
"logoUrl": "string",
"myAccountUrl": "string",
"contactUsUrl": "string",
"privacyPolicyUrl": "string",
"termsofPurchaseUrl": "string",
"legalPoliciesUrl": "string",
"name": "string",
"supportContactNumber": "string",
"supportEmailAddress": "string"
},
"customer": {
"id": "string",
"title": "string",
"firstName": "string",
"middleName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"allowMarketing": true,
"contactInfo": {
"email": "string",
"mobile": "string"
},
"cprNumber": "string",
"personnummer": "string"
},
"order": {
"id": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": {
"email": "string",
"userType": "string"
},
"locale": "string",
"number": "string",
"invoice": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"externalUrl": "string",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string"
},
"lineItemGroups": [
{
"id": 0,
"type": "string",
"number": "string",
"manufacturingData": {
"requisitionRequestId": 0,
"manufacturingData": "string",
"frameAvailable": true,
"orderType": "string",
"errors": [
"string"
],
"infos": [
"string"
],
"warnings": [
"string"
]
}
}
],
"orderState": "OPEN",
"origin": "ONLINE",
"originalOrder": {
"id": "string",
"number": "string"
},
"subscription": {
"id": "string",
"interval": 0,
"unit": "DAYS",
"type": "PREPAY",
"status": "ACTIVE",
"instalments": [
{
"id": "string",
"amount": {
"currencyCode": "string",
"centAmount": 0
},
"dueDate": "2019-08-24T14:15:22Z",
"paidDate": {},
"success": {}
}
]
},
"type": "STANDARD",
"lineItems": [
{
"groupId": 0,
"id": "string",
"itemCategory": "string",
"name": "string",
"number": "string",
"quantity": 0,
"returnedQuantity": 0,
"returnableQuantity": 0,
"sku": "string",
"state": "string",
"style": "string"
}
]
},
"returnInfo": {
"number": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": {
"id": "string",
"email": "string",
"userType": "string",
"name": "string"
},
"lastModifiedAt": "2019-08-24T14:15:22Z",
"lastModifiedBy": {
"id": "string",
"email": "string",
"userType": "string",
"name": "string"
},
"state": "INITIATED",
"paymentState": "PENDING",
"type": "RECEIPTED",
"totalRefundAmount": {
"currencyCode": "string",
"centAmount": 0
},
"lineItems": [
{
"id": "string",
"lineItemId": "string",
"quantity": 0,
"reasonCode": "string",
"reason": "string",
"additionalInfo": "string",
"appeasementType": "PERCENT_OFF",
"appeasementValue": 0
}
],
"creditNote": {
"id": "string",
"fileName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdatedAt": "2019-08-24T14:15:22Z",
"externalUrl": "string",
"storageAccountName": "string",
"storageContainerName": "string",
"storagePath": "string"
}
},
"aftercareStore": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"line3": "string",
"name": "string",
"postcode": "string",
"region": "string"
},
"companyDetails": {
"name": "string",
"registeredAddress": "string"
},
"contactInfo": {
"phone": "string",
"email": "string"
},
"coordinates": {
"latitude": "string",
"longitude": "string"
},
"lineOfBusiness": "string",
"name": "string",
"eposNumber": "string",
"storeUrl": "string"
}
}
}
Default Correlation ID
The application will send new content events through this channel.
{
"id": "string",
"specversion": "1.0",
"env": "local",
"sourceService": "com.specsavers/order-service",
"type": "com.specsavers.rtp.order.hicaps.webhook",
"correlationid": "string",
"data": {
"headers": {
"property1": "string",
"property2": "string"
},
"body": "string"
}
}
The type of the asset. E.g. order
The environment from which the event originated from e.g. dev, prod