Skip to main content

Advanced

Setting the handle of invoices

Handles identity a unique key for every Invoice. A handle is based on a sequence counter which increases per Invoice created. Handles consist of a syntax combined with parameters, and once compiled, the parameter is replaced with the desired value, as follows:
parameternote
Sequence counter.
Handles can be configured using the following snippet:
curl -X PATCH \
     -H "Content-Type: application/json" \
     -H "Authorization: Bearer {your_token_here}" \
     -H "X-environment: {your_environment_id_here}" \
     -H "X-version: 2022-03" \
     -d '{ "invoices/handle": "INV_{counter}" }' \
     https://api.plude.io/settings/