Create a Generator

https://{{MY_DOMAIN}}/wp-json/paddlepay/v2/generators/

POST Create a Generator

curl --location 'http://paddle-checkout.local/wp-json/paddlepay/v2/generators' \
--data '{
  "name": "Generator created by the API",
  "charset": "LICENSE_GENERATE",
  "chunks": 7,
  "chunk_length": 2,
  "times_activated_max": 2,
  "separator": "-",
  "prefix": "PRE",
  "suffix": "FIX",
  "expires_in": 10
}'

Response

{
  "success": true,
  "data": {
    "id": 3,
    "name": "Generator created by the API",
    "charset": "LICENSE_GENERATE",
    "chunks": 7,
    "chunkLength": 2,
    "timesActivatedMax": "2",
    "separator": "-",
    "prefix": "PRE",
    "suffix": "FIX",
    "expiresIn": "10",
    "createdAt": "2025-08-10 05:57:01",
    "createdBy": "1",
    "updatedAt": null,
    "updatedBy": null
  }
}