curl --location -g --request GET 'https://stage-api.etm-system.ru/api/documents/types/site?locale=RU&pid={{pcc_id}}' \
--header 'Accept: application/json' \
--header 'Cookie: etmsessid=8Pwz9vY4oXUDj7ojfR5u1VdXsMW6xOVYosNxo08d' \
--header 'Content-Type: application/json'
{
"data": [
{
"id": 2,
"code": "PSP",
"custom": "P",
"citizen": "RU",
"name": "Заграничный паспорт",
"attributes": []
},
{
"id": 4,
"code": "PS",
"custom": "P",
"citizen": "RU",
"name": "Национальный паспорт",
"attributes": []
},
{
"id": 6,
"code": "ZC",
"custom": "P",
"citizen": "OTHER",
"name": "Заграничный паспорт",
"attributes": []
},
{
"id": 7,
"code": "NP",
"custom": "P",
"citizen": "OTHER",
"name": "Национальный паспорт",
"attributes": [
{
"id": 76,
"code": "LastName",
"name": "Фамилия",
"config": {
"type": "string"
}
},
{
"id": 77,
"code": "FirstName",
"name": "Имя",
"config": {
"type": "string"
}
},
{
"id": 78,
"code": "MiddleName",
"name": "Отчество",
"config": {
"type": "string"
}
},
{
"id": 132,
"code": "DocumentSeries",
"name": "Серия",
"config": {
"type": "string",
"max": 16
}
},
{
"id": 10,
"code": "DocumentNumber",
"name": "Номер документа",
"config": {
"type": "string",
"min": 1,
"max": 17
}
}
]
},
{
"id": 8,
"code": "SR",
"custom": "I",
"citizen": "ALL",
"name": "Свидетельство о рождении",
"attributes": [
{
"id": 79,
"code": "LastName",
"name": "Фамилия",
"config": {
"type": "string"
}
},
{
"id": 80,
"code": "FirstName",
"name": "Имя",
"config": {
"type": "string"
}
},
{
"id": 81,
"code": "MiddleName",
"name": "Отчество",
"config": {
"type": "string"
}
},
{
"id": 133,
"code": "DocumentSeries",
"name": "Серия",
"config": {
"type": "string",
"max": 16
}
},
{
"id": 12,
"code": "DocumentNumber",
"name": "Номер документа",
"config": {
"type": "string",
"min": 1,
"max": 17
}
}
]
}
]
}