cartDiscount
This app commands allows users to add or retrieve discount into/from the cart.
GET
Description:
Get the discount information from the cart.
Request Body:
{
command: 'cartDiscount',
method: 'get',
version: '1.0'
}
Response Body:
{
command: 'cartDiscount',
method: 'get',
version: '1.0',
status_code: 200,
error: null,
discount_name: 'Shravan Discount',
amount_type: '%',
amount: 10.00
}
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 discount information to the cart.
Request Body:
{
command: 'cartDiscount',
method: 'post',
version: '1.0',
discount_name: 'Shravan Discount',
amount_type: '%',
amount: 10.00
}
Response Body:
{
command: 'cartDiscount',
method: 'post',
version: '1.0',
status_code: 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 |
discount_name | string | Name of Discount | null | 1 |
amount_type | string | Unit used for discount amount | '%', '$' | 1 |
amount | float, 2 decimal places | Discount amount | null | 1 |
Updated 7 months ago