Quick start
This is a minimal list of steps required to start using T-API. For more details please refer to API Reference and User guide.
1. Create technical user
- Go to API page and click Create under Technical users section.
- Fill form with technical user name and confirm.
- Click Bearer token, copy token to clipboard and save for later use.
2. Create data type
- Go to Data types page and click Create.
-
Fill form with data type name, given sample YAML definition and confirm.
-
Click Save.
3. Create template
- Go to Templates creator page and click Create.
- Fill required fields.
-
Create set of variables to cover all custom data fields from data type and insert them into template content.
Warning
Name variable exactly like on the figure above. It is required to map data from data type to template. If you are using different Data type definition, you have to change variable names accordingly. It is concatenation of field name and descendant object name.
For example use
headerFirstnameinstead ofFirstnameif you have following data type definition:You can find more datailed instruction in Template variables mapping section.
-
Click Save.
4. Create data stream
- Go to Data streams page and click Create.
- Fill form with data stream name, select previously created Data Type and Technical user.
-
Add template configuration for created Template.
-
Click Save.
5. Send transaction data
- Using
curlsend POST request to given endpoint.curl --location 'https://ext-api.pergam.in/ext-api/v2/transactions' \ --header 'accept: application/json' \ --header 'Authorization: Bearer {token}' \ --header 'Content-Type: application/json' \s --data-raw '{ "transaction_data_stream": "SAMPLE_DATA_STREAM", "transaction_body": { "header": { "TransactionId": "SAMPLE_TRANSACTION_00001", "TransactionOwner": "{email}", "Firstname": "John", "Lastname": "Doe" } } }'Warning
Replace
{token}with Bearer token from Technical user creation step.Replace
{email}with email address of existing user in your organization.

