x-api-key: ********************
{
"cart": {
"subOrders": [
{
"id": "string",
"subOrderId": "string",
"price": 0
}
],
"items": [
{
"id": "string",
"qty": 0,
"totalPrice": 0
}
]
},
"user": {
"userId": "string"
},
"pointCurrency": "string",
"usePoint": 0,
"storeId": "string",
"storeName": "string",
"transactionId": "string"
}
curl --location --request POST 'https://api.b2b.retter.io/5p1hp1d2t/CALL/Promotion/startTransaction/' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
"cart": {
"subOrders": [
{
"id": "string",
"subOrderId": "string",
"price": 0
}
],
"items": [
{
"id": "string",
"qty": 0,
"totalPrice": 0
}
]
},
"user": {
"userId": "string"
},
"pointCurrency": "string",
"usePoint": 0,
"storeId": "string",
"storeName": "string",
"transactionId": "string"
}'
{
"runWithLoyalty": true,
"message": "string",
"transactionId": "string",
"userId": "string",
"couponId": "string",
"transaction": {
"transactionId": "string",
"promotions": [
{
"id": "string",
"promotionTemplateId": "string",
"giftAmount": 0,
"tag": "string",
"promotionType": "string",
"userMessage": "string"
}
],
"couponId": "string",
"transactionTimeout": 0,
"cart": {
"subOrders": [
{
"merchantId": "string",
"subOrderId": "string",
"id": "string",
"price": 0,
"itemType": "string",
"priceAfterPromotion": 0,
"displayPrice": 0,
"promotionDiscount": 0,
"appliedPromotions": [
{
"id": "string",
"promotionTemplateId": "string",
"giftAmount": 0
}
]
}
],
"items": [
{
"merchantId": "string",
"id": "string",
"qty": 0,
"attributes": {
"shortName": "string",
"longName": "string",
"brand": "string",
"categories": [
{
"id": "string",
"name": "string"
}
],
"images": [
"string"
],
"productLimit": 0,
"logisticTags": [
{}
],
"etiketler": [
"string"
]
},
"price": 0,
"totalPrice": 0,
"itemType": "string",
"promotionDiscount": 0,
"priceAfterPromotion": 0,
"appliedPromotions": [
{
"id": "string",
"promotionTemplateId": "string",
"giftAmount": 0
}
],
"totalPromotionDiscount": 0,
"totalPriceAfterPromotion": 0,
"totalDisplayPrice": 0
}
]
}
}
}