Renewal or upgrade user's package(*)
The id of the package.
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 upgrade a package. This class extends the CalculateTotalPricePackageRequestDto to include additional properties specific to package upgrades
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.
The id of the app integration associated with the package upgrade. This property is optional and can be null if not applicable.
The ID of the wallet to refund if the proration amount exceeds the upgrade price. The refund will be processed to this wallet during the package upgrade.
The request was successful.
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
POST /api/v1/packages/{packageId}/upgrade/checkout HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 106
{
"priceId": "text",
"walletId": "text",
"couponCode": "text",
"appIntegrationId": "text",
"refundWalletId": "text"
}
{
"success": true,
"statusCode": 200,
"message": "The request was successful.",
"data": {
"walletWithdrawalAmount": 10,
"walletWithdrawalCurrency": "USD",
"walletRefundAmount": 0,
"walletRefundCurrency": "USD",
"checkoutLink": "https://www.sandbox.paypal.com/checkoutnow"
},
"errors": []
}
Last updated
Was this helpful?