Purchase to add licenses by wallet

Purchase to add license by the user's wallet.

post
Query parameters
walletIdstringRequired

The wallet id.

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

Contains the data for the license key create form.

packageIdstring · min: 1Required

The id of the package.

subscriptionTypeIdstring · min: 1Required

The id of the subscription type

codestring | nullableOptional

The license code custom. If the license code has value, we create with the license otherwise auto generate license code. Cannot be used when creating multiple licenses.

amountnumber · double · max: 2147483647Required

The amount value of a license to be created.

currencyCodestring · min: 1Required

The currency code in the ISO 4217 format, which is a three-letter uppercase code that identifies a specific currency. This value should strictly follow the ISO 4217 standard.

startDatestring · date-timeRequired

The start date of the license.

endDatestring · date-timeRequired

The end date of the license.

descriptionstring | nullableOptional

The description of the license.

tagsstring | nullableOptional

The tags of the license.

testModeboolean | nullableOptional

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

quantityinteger · int32 | nullableOptional

The quantity of the license to create. By default, it is 1. This value is must be between 1 and 100.

userCodestring | nullableOptional

The user code of the license. If the userCode is empty, we get the current user logged in.

Responses
200

The request was successful.

application/json
post
POST /api/v1/licenses/purchase/wallet HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 253

{
  "packageId": "text",
  "subscriptionTypeId": "text",
  "code": "text",
  "amount": 1,
  "currencyCode": "text",
  "startDate": "2025-08-11T05:26:54.400Z",
  "endDate": "2025-08-11T05:26:54.400Z",
  "description": "text",
  "tags": "text",
  "testMode": true,
  "quantity": 1,
  "userCode": "text"
}
{
  "success": true,
  "statusCode": 200,
  "message": "The request was successful.",
  "data": true,
  "errors": []
}

Last updated

Was this helpful?