Skip to main content

Quote API Examples

Base quote

{
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quotation": {
"items": [{
"id": "MH01",
"quantity": 1
}]
}
}

With delivery address & single shipping option

{
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quotation": {
"items": [{
"id": "MH01",
"quantity": 1
}],
"ship_to": {
"street": "128 City Road",
"city": "London",
"postcode": "EC1V 2NX",
"country": "GB"
}
}
}

With delivery address & multiple shipping options

{
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quotation": {
"items": [{
"id": "MH01",
"quantity": 1
}],
"ship_to": {
"street": "128 City Road",
"city": "London",
"postcode": "EC1V 2NX",
"country": "GB"
}
}
}

With user supplied coupon

{
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quotation": {
"items": [{
"id": "MH01",
"quantity": 1
}],
"coupon": "15OFF"
}
}

With automatic discount for returning customer

{
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quotation": {
"items": [{
"id": "MH01",
"quantity": 1
}],
"email": "hello@simpler.so"
}
}