REST API
You can get the API_KEY from your account.
Example
This is the most basic and simple way to use the transform service!
You can also use a string instead of a file with curl
|
|
|
|
This is the most basic and simple way to use the transform service!
You can also use a string instead of a file with curl
|
|
|
|
Options
format
Required: Yes
Data to use for the document creation, must be xml or json.
template
Required: Yes
Template’s name to use.
You can use json sintax here to access data and have dynamic template names
Template name can use any data attribute or text node
We will translate that to the following
Template name can use any data attribute or text node
We will translate that to the following
And finally the service will try to find the template invoice-customer-123 in order to transform the data and generate the document.
Example
|
|
|
|
|
|
|
|
|
|
|
|
output
Required: Yes
Document response type from the service, it can be html, pdf, png or jpg.
templateBackup
Template’s name to use to be used if the option template is not available in the service.
note
Custom note that can be used to add any information, it’s limit up to 500 chars. This is useful if you want to add metadata such as document, transaction or customer ID.
You can use json syntax to access data and get dynamic template names.
Notes can use any data attribute or text
We will translate that to the following
Notes can use any data attribute or text
We will translate that to the following
Example
|
|
|
|
|
|
|
|
|
|
|
|