Specifying the variables for the Postman collection
In Postman, complete these steps:
-
Select the collection and click the Variables tab.
A list of variables is displayed.
-
Remove or disable all duplicate variables. These variables are marked with a
warning (exclamation mark) icon.
- To remove a variable, click the Delete icon in the row that contains the variable.
- To disable a variable, clear the corresponding check box.
- Do not remove or change any other variables.
- Click Save.
-
Add these variables:
- ci
- cs
- saak
- sask
- pu
- ot
- cn
- sc
To add a variable, specify the variable name in the Variable column. Then specify the corresponding value in the Initial Value and Current value columns.
You can find the values for these variables in the file that contains the credentials of the service account. This is the file you downloaded when you registered the authorized app. You can open the file with Notepad and copy the values of the variables.
Note:- The file is comma-separated and does not contain any line breaks. For better readability, optionally, insert a line break after each comma, so that each parameter is displayed on a separate line.
- Ensure that you copy only the value of the variable, without the surrounding double quotes.
-
Add the company variable:
- In the Variable column, specify company.
- In the Initial Value and Current value columns, specify an LN company number for which the service has been activated.
-
Specify the values for the other variables that are displayed on the Variables tab. These variables depend on the
API service for which you imported a .json file.
For example, you exported the API documentation for the tdapi.purPurchaseOrder service, and imported the generated .json file in Postman. On the Variables tab, you can specify values for several variables, such as PurchaseOrder, Line, Sequence, ReceiptSequenceNumber, and BusinessPartner.Note: You do not have to specify all variables simultaneously. When you select a request in Postman, the URL of the request shows the variables that are required to run the request. For example, the Get entity from Orders by key request has this URL: {{baseUrl}}/odata/tdapi.purPurchaseOrder/Orders(PurchaseOrder='{{PurchaseOrder}}') To run this request, you must only specify a value for the PurchaseOrder variable.
- Click Save.