CustomerInSale
This app command can either retrieve or add a customer into a sale. Oliver will respond with the name and email of a customer currently added to a sale when a GET method is used. Alternatively, adding a customer using a POST method requires the email address of a customer, name is optional.
GET
Description:
Retrieves a customer that is added to sale.
Request Body:
{
command: 'CustomerInSale',
method: 'get',
version: '1.0'
}
Response Body:
{
command: 'CustomerInSale',
method: 'get',
version: '1.0',
status: 200,
data: {
first_name: 'Raymond',
last_name: 'Holt',
email: '[email protected]'
},
error: null
}
Parameters:
Attribute Name | Attribute Type | Description | Enum | Required (binary) |
---|---|---|---|---|
command | string | High level command name to interact with Oliver | null | 1 |
method | string | These correspond to create, read, update, and delete (or CRUD) operations | null | 1 |
version | string | The version of the command used | null | 1 |
POST
Description:
Add a customer into a sale.
Request Body:
{
command: 'CustomerInSale',
method: 'post',
version: '1.0',
email: '[email protected]'
}
Response Body:
{
command: 'CustomerInSale',
method: 'post',
version: '1.0',
status: 200,
error: null
}
Parameters:
Attribute Name | Attribute Type | Description | Enum | Required (binary) |
---|---|---|---|---|
command | string | High level command name to interact with Oliver | null | 1 |
method | string | These correspond to create, read, update, and delete (or CRUD) operations | null | 1 |
version | string | The version of the command used | null | 1 |
string | Customer email address, must be unique | null | 1 |
Updated 7 months ago