Purchase to add licenses by checkout link
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
This class is used to create a checkout link to add various licenses.
The return URL. If the payment is successful, the user will be redirected to this URL.
The cancel URL. If the payment is canceled, the user will be redirected to this URL.
The package id of the license.
Plakdiooh209sz
The subscription type id of the license.
Plakdiooh209sz
The start date of the license.
2025-01-01
The end date of the license.
2025-02-01
The test mode of the license. By default, it is set to false.
true
The quantity of the license to create. By default, it is 1.
1
The request was successful.
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
The user has exceeded the rate limit.
POST /api/v1/licenses/purchase/checkout-link HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 213
{
"returnURL": "https://example.com",
"cancelURL": "https://example.com",
"packageId": "Plakdiooh209sz",
"subscriptionTypeId": "Plakdiooh209sz",
"startDate": "2025-01-01",
"endDate": "2025-02-01",
"testMode": true,
"quantity": 1
}
{
"success": true,
"statusCode": 200,
"message": "The request was successful.",
"data": "https://checkout.paypal.com/v2/checkout/orders/09H88704RC448263N",
"errors": []
}
Last updated
Was this helpful?