Purchase to add licenses by checkout link

Generate the checkout link to purchase the license.

post
Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.

Example: 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: 1Required

The package id of the license.

Example: Plakdiooh209sz
subscriptionTypeIdstring · min: 1Required

The subscription type id of the license.

Example: Plakdiooh209sz
startDatestring · date-timeRequired

The start date of the license.

Example: 2025-01-01
endDatestring · date-timeRequired

The end date of the license.

Example: 2025-02-01
testModeboolean | nullableOptional

The test mode of the license. By default, it is set to false.

Example: true
quantityinteger · int32Optional

The quantity of the license to create. By default, it is 1.

Example: 1
Responses
200
The request was successful.
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?