Download OpenAPI specification:Download
A sample API specification demonstrating OpenAPI capabilities - this is for example purposes only
Returns details for a customer given a unique customer ID
| customerId required | string Unique ID of customer |
{- "customerId": "string",
- "names": {
- "firstName": "Swithin",
- "middleName": "Henry",
- "lastName": "Foote",
- "salutation": "Mr Swithin Henry Foote",
- "title": "Mr"
}, - "addresses": [
- {
- "addressType": "Home",
- "address1": "2 Queens Drive",
- "address2": "Khandallah",
- "address3": "Wellington",
- "address4": "string",
- "country": "New Zealand"
}
], - "_links": [
- {
- "rel": "string",
- "href": "string"
}
]
}Updates a customer’s details
| customerId required | string Unique ID of customer |
object | |
Array of objects An array of addresses. Unpopulated properties or items will be returned as null JSON objects. |
{- "names": {
- "firstName": "Swithin",
- "middleName": "Henry",
- "lastName": "Foote",
- "salutation": "Mr Swithin Henry Foote",
- "title": "Mr"
}, - "addresses": [
- {
- "addressType": "Home",
- "address1": "2 Queens Drive",
- "address2": "Khandallah",
- "address3": "Wellington",
- "address4": "string",
- "country": "New Zealand"
}
]
}{- "errors": [
- {
- "code": 0,
- "description": "string"
}
], - "_links": [
- {
- "rel": "string",
- "href": "string"
}
]
}Deletes an existing customer resource
| customerId required | string Unique ID of customer |
{- "errors": [
- {
- "code": 0,
- "description": "string"
}
], - "_links": [
- {
- "rel": "string",
- "href": "string"
}
]
}Creates a new customer. API will create a customer resource and, if successful, return a hyperlink to the created resource
object | |
Array of objects An array of addresses. Unpopulated properties or items will be returned as null JSON objects. |
{- "names": {
- "firstName": "Swithin",
- "middleName": "Henry",
- "lastName": "Foote",
- "salutation": "Mr Swithin Henry Foote",
- "title": "Mr"
}, - "addresses": [
- {
- "addressType": "Home",
- "address1": "2 Queens Drive",
- "address2": "Khandallah",
- "address3": "Wellington",
- "address4": "string",
- "country": "New Zealand"
}
]
}[- {
- "rel": "string",
- "href": "string"
}
]