Calculate total price checkout(*)
This method is used to calculate the total price of a package at checkout based on the provided package ID and the request data. It takes into account the wallet used, refund amount, prorate amount, subtotal, tax, and total price to be paid.
The ID of the package for which the total price is being calculated.
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
YOUR_AUTH_KEY
Represents a request to calculate the total price of a package.
The ID of the package to calculate the total price for.
The ID of the app integration payment gateway to use for the calculation.
The coupon code to apply for the price calculation, if any.
POST /api/v1/packages/{packageId}/calculate-total-price-checkout HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"priceId": "text",
"walletId": "text",
"counponCode": "text"
}
{
"success": true,
"statusCode": 200,
"message": "The request was successful.",
"data": {
"walletUsed": 2,
"refundAmountWallet": 0,
"prorateAmount": 10,
"subtotal": 100,
"tax": {
"percent": 0,
"amount": 0
},
"total": 88,
"currency": "USD"
},
"errors": []
}
Last updated
Was this helpful?