POST Operator/Calculate_Checkout?Ticket={Ticket}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Ticket | string |
Required |
Body Parameters
Params_Calculate_Checkout| Name | Description | Type | Additional information |
|---|---|---|---|
| Selected_Offers | Collection of Checkout_Line |
None. |
|
| DELIVERY_TYPE_ID | integer |
None. |
|
| Nornal_Delivery_Cost | decimal number |
None. |
|
| Express_Delivery_Cost | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Selected_Offers": [
{
"REQUEST_LINE_ID": 1,
"REQUEST_ID": 2,
"OFFER_ID": 3,
"DELIVERY_TYPE_ID": 4,
"Delivery_Cost": 5.0,
"QUANTITY": 1
},
{
"REQUEST_LINE_ID": 1,
"REQUEST_ID": 2,
"OFFER_ID": 3,
"DELIVERY_TYPE_ID": 4,
"Delivery_Cost": 5.0,
"QUANTITY": 1
}
],
"DELIVERY_TYPE_ID": 1,
"Nornal_Delivery_Cost": 2.0,
"Express_Delivery_Cost": 3.0
}
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Result_Calculate_Checkout| Name | Description | Type | Additional information |
|---|---|---|---|
| My_DeliveryTypes | Collection of Delivery_Type_T |
None. |
|
| ExceptionMsg | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"My_DeliveryTypes": [
{
"DELIVERY_TYPE_ID": 1,
"DELIVERY_TYPE_DESCRIPTION": "sample string 2",
"DELIVERY_TYPE_NAME": "sample string 3",
"CURRENCY": "sample string 4",
"AMOUNT": 5.0,
"My_Cost": {
"DELIVERY_COST_ID": 1,
"DELIVERY_TYPE_NAME": "sample string 2",
"CITY_CATEGORY_NAME": "sample string 3",
"DELIVERY_DURATION": 1.0,
"AMOUNT": 1.0,
"CURRENCY": "sample string 4"
},
"Summary": {
"ITEMS_QUANTITY": 1,
"SUPPLIERS_QUANTITY": 2,
"DELIVERY_DURATION": 3.0,
"DELIVERY_DATE": "sample string 4",
"DELIVERY_TOTAL": 5.0,
"USD_TOTAL": 6.0,
"LBP_TOTAL": 7.0,
"EUR_TOTAL": 8.0,
"USD_COMMISSION_TOTAL": 9.0,
"LBP_COMMISSION_TOTAL": 10.0,
"EUR_COMMISSION_TOTAL": 11.0
}
},
{
"DELIVERY_TYPE_ID": 1,
"DELIVERY_TYPE_DESCRIPTION": "sample string 2",
"DELIVERY_TYPE_NAME": "sample string 3",
"CURRENCY": "sample string 4",
"AMOUNT": 5.0,
"My_Cost": {
"DELIVERY_COST_ID": 1,
"DELIVERY_TYPE_NAME": "sample string 2",
"CITY_CATEGORY_NAME": "sample string 3",
"DELIVERY_DURATION": 1.0,
"AMOUNT": 1.0,
"CURRENCY": "sample string 4"
},
"Summary": {
"ITEMS_QUANTITY": 1,
"SUPPLIERS_QUANTITY": 2,
"DELIVERY_DURATION": 3.0,
"DELIVERY_DATE": "sample string 4",
"DELIVERY_TOTAL": 5.0,
"USD_TOTAL": 6.0,
"LBP_TOTAL": 7.0,
"EUR_TOTAL": 8.0,
"USD_COMMISSION_TOTAL": 9.0,
"LBP_COMMISSION_TOTAL": 10.0,
"EUR_COMMISSION_TOTAL": 11.0
}
}
],
"ExceptionMsg": "sample string 1"
}