Get passport data status
Receives information on passport data processing status for international orders
Function GetPassportDataStatus(Val Token, Val UUID, Val TestAPI = False) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Auth token |
UUID | --uuid | String | ✔ | Order UUID |
TestAPI | --testapi | Boolean | ✖ | Flag to use test API for requests |
Returns: Map Of KeyAndValue - serialized JSON response from CDEK
tip
Method at API documentation: Passport data information
1C:Enterprise/OneScript code example
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzY2MjEyMzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
UUID = "0869dacf-feb4-4944-8dc6-11bfb043ee2f";
Result = OPI_CDEK.GetPassportDataStatus(Token, UUID, True);
- Bash
- CMD/Bat
oint cdek GetPassportDataStatus \
--token "***" \
--uuid "d8ca93f8-cb36-4e93-a3a1-c28db9af4e19" \
--testapi "***"
oint cdek GetPassportDataStatus ^
--token "***" ^
--uuid "d8ca93f8-cb36-4e93-a3a1-c28db9af4e19" ^
--testapi "***"
Result
{
"orders": [
{
"order_uuid": "a93fd1b1-55b3-4033-a52a-d2df7bb6b469",
"cdek_number": 1106094897,
"passport": [
{
"client": "SENDER",
"passport_requirements_satisfied": false
},
{
"client": "RECEIVER",
"passport_requirements_satisfied": false
}
]
}
]
}