x-api-key: ********************
{
"usePoint": 0,
"pointCurrency": "string",
"storeId": "string",
"storeName": "string",
"cart": {
"subOrders": [
{
"id": "string",
"subOrderId": "string",
"price": 0
}
],
"items": [
{
"id": "string",
"qty": 0,
"totalPrice": 0
}
]
},
"user": {
"userId": "string"
}
}
curl --location --request POST 'https://api.b2b.retter.io/5p1hp1d2t/CALL/LoyaltyAPI/calculate/' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
"usePoint": 0,
"pointCurrency": "string",
"storeId": "string",
"storeName": "string",
"cart": {
"subOrders": [
{
"id": "string",
"subOrderId": "string",
"price": 0
}
],
"items": [
{
"id": "string",
"qty": 0,
"totalPrice": 0
}
]
},
"user": {
"userId": "string"
}
}'
{
"cart": {
"subOrders": [
{
"id": "string",
"subOrderId": "string",
"price": 0
}
],
"items": [
{
"id": "string",
"qty": 0,
"totalPrice": 0,
"totalUsablePoints": 0,
"totalUsablePointAsMoney": 0,
"totalPriceAfterPointUsed": 0
}
],
"userBalance": 0,
"totalPriceAfterPointUsed": 0,
"totalUsablePoints": 0,
"totalUsablePointAsMoney": 0,
"totalPriceToPay": 0
},
"calculationTime": 0
}