1b.app
Link copied -

How to send the necessary GET, POST, DELETE, PUT requests and use the received responses in orders

Here is an example of the request we send:
{
"apiKey": "here we take the key from the settings of the activated New Mail integration, for example",
"modelName": "TrackingDocument",
"calledMethod": "getStatusDocuments",
"methodProperties": {
"Documents": [
{
"DocumentNumber": "20450801443193",
"Phone": "380958010474"
}
]
}
}
When we receive a response to the request, we need to write the data in the appropriate additional fields of the business process.
Here is an example of such data from a response:
"Number": "20450801443193",
"StatusCode": "1",
"Status": "",
"DateCreated": "30-10-2023 09:58:54",
"CargoDescriptionString": "Household Goods",
"CheckWeight": "",
"CityRecipient": "Hotel",
"CounterpartySenderDescription": "Private Person",
"PhoneSender": "380554884855",
"RecipientAddress": "Gostintseve Village, Branch #1, Tsentralna Street, 1",
"SenderAddress": "Chernihiv, Department No. 9 (up to 30 kg): 59a, Krasnosilskogo str.",
"SenderFullNameEW": "Chestik Petro",
"ServiceType": "WarehouseWarehouse",
"VolumeWeight": "2.76",
"WarehouseRecipient": "Department No. 1: Tsentralna St., 1",
"RecipientWarehouseIndex": "71116/1",
"WarehouseSender": "Department No. 9 (up to 30 kg): 59a, Krasnosilskogo str.",
Now in the system I found two actions in business processes that allow working with the API:
1. Transfer the process to the API
2. Add entries to the directory based on the response to the API request
How to adjust these steps to get the desired result?
Do you need to develop a separate action to do what you want?
If so, please rate this action.
Original question is available on version: ua Вячеслав Легеза

Answers:

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment