cartTaxes

This app commands allows users to add or retrieve tax into/from the cart.

GET

Description:
Get the tax info such as name of tax and tax amount from cart

Request Body:

{
    command: 'cartTaxes',
    method: 'get',
    version: '1.0'
}

Response Body:

{
    command: 'cartTaxes',
    method: 'get',
    version: '1.0',
    status_code: 200,
    error: null,
    tax_name: 'Ontario HST/GST', 
    amount: 13.00,
    amount_type: '$'
}

Parameters:

Attribute NameAttribute TypeDescriptionEnumRequired (Binary)
commandstringHigh level command name to interact with Olivernull1
methodstringThese correspond to create, read, update, and delete (or CRUD) operationsnull1
versionstringThe version of the command usednull1

POST

Description:
Add tax into cart with info such as name of tax and tax amount.

Request Body:

{
    command: 'cartTaxes',
    method: 'post',
    version: '1.0',
    tax_name: 'Ontario HST/GST',
    amount: 13.00,
    amount_type: '$'
}

Response Body:

{
    command: 'cartTaxes',
    method: 'post',
    version: '1.0',
    status_code: 200,
    error: null
}

Parameters:

Attribute NameAttribute TypeDescriptionEnumRequired (Binary)
commandstringHigh level command name to interact with Olivernull1
methodstringThese correspond to create, read, update, and delete (or CRUD) operationsnull1
versionstringThe version of the command usednull1
tax_namestringName of taxnull1
amountfloat, 2 decimal placesAmount of taxnull1
amount_typestringAmount type'$', '%'1