Skip to main content

Post V2 Customer Sales Preview

Post V2 Customer Sales Preview

POST /v2/customer-sales/preview

Headers

NameDescriptionType
tenantId*string (header)string
countryCode*string (header)string

Request Body

{
"customerId": "string",
"customerBusinessId": "string",
"merchantId": "string",
"businessId": "string",
"agentId": "string",
"discountType": "FIXED",
"products": [
{
"productId": "string",
"quantity": 0
}
],
"paymentMethod": "QR",
"paymentMode": "IN_STORE",
"discount": 0,
"deliveryMode": "PICK_UP",
"extraPayloads": {
"ussdString": "string",
"bankCode": "string",
"accountNumber": "string",
"paymentLink": "string",
"navigatingUrl": "string",
"qrCode": "string"
},
"eftAttachment": "string",
"eft": true,
"inStore": true
}

SCHEMA

{
"customerId": "string",
"deliveryAddressId": "string",
"newDeliveryAddress": {
"state": "string",
"city": "string",
"address": "string",
"longitude": 0,
"latitude": 0,
"postalCode": "string",
"deliveryMode": "PICK_UP",
"customerPhoneNumber": "string"
},
"agentId": "string",
"deliveryMode": "PICK_UP",
"orders": [
{
"productId": "string",
"quantity": 0
}
]
}

Responses

200 OK

Description: Successful operation

Example Value

{
"message": "string",
"data": {
"totalShippingFee": 0,
"totalOrderAmount": 0,
"totalVat": 0,
"totalVatRatio": 0,
"totalAmount": 0,
"shippingFeeDetail": {
"totalDistanceCovered": 0,
"unitOfMeasurement": "string",
"baseFare": 0,
"unitPrice": 0,
"totalShippingFee": 0
}
},
"meta": {
"currentPage": 0,
"from": 0,
"to": 0,
"perPage": 0,
"total": 0,
"lastPage": 0
}
}