Purchase to add licenses by checkout link
Header parameters
Brand-URLstringRequiredExample:
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
Auth-KeystringRequiredExample:
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
YOUR_AUTH_KEY
Body
This class is used to create a checkout link to add various licenses.
returnURLstring · uri | nullableOptional
The return URL. If the payment is successful, the user will be redirected to this URL.
cancelURLstring · uri | nullableOptional
The cancel URL. If the payment is canceled, the user will be redirected to this URL.
packageIdstring · min: 1RequiredExample:
The package id of the license.
Plakdiooh209sz
subscriptionTypeIdstring · min: 1RequiredExample:
The subscription type id of the license.
Plakdiooh209sz
startDatestring · date-timeRequiredExample:
The start date of the license.
2025-01-01
endDatestring · date-timeRequiredExample:
The end date of the license.
2025-02-01
testModeboolean | nullableOptionalExample:
The test mode of the license. By default, it is set to false.
true
quantityinteger · int32OptionalExample:
The quantity of the license to create. By default, it is 1.
1
Responses
200
The request was successful.
application/json
401
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
application/json
429
The user has exceeded the rate limit.
application/json
post
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?