1. AVIA
ETS API
  • Try it and Run in ApiDog
  • AVIA API Documentation
  • AVIA Flows example
  • HOTELS API
  • AVIA
    • 1 REQ B2B Login Api Token
      POST
    • 1 REQ B2C Login
      GET
    • 2A Search Direct flight
      POST
    • 2C Search Round trip
      POST
    • 2B Search Multi-City
      POST
    • 3 Schedule - Amadeus optional
      POST
    • 4 Offers request
      POST
    • 4B Smart Offer Request optional
      GET
    • 4C Offer Rules
      GET
    • 5 Documents types for offer
      GET
    • 5.1 Get available citizenships for an offer
      GET
    • 6 Offer info
      GET
    • 7 Availability of Offer
      GET
    • 8 OPT Available Services
      GET
    • 9 OPT Select services
      POST
    • 10 Create Order
      POST
    • 11 Split Order
      PATCH
    • 12 Order payment methods
      POST
    • 13 Order payment
      POST
    • 14 Checkout status
      GET
    • 15 Refund order
      GET
    • 16 Get order info
      GET
    • 17 Print E-Tiket
      GET
    • 18 Receiving a cancellation fee
      GET
    • 19 Cancel Order
      GET
    • 20 Get airports
      GET
    • 21 Get cities
      GET
    • 22 Get countries
      GET
    • 23 Get counterparties info
      GET
    • 24 Get list of countries for citizenship
      GET
    • 25 Get list of country dialing codes
      GET
  • HOTELS
    • REQUIRED
      • 1A REQ B2B Login
      • 1B REQ B2B Login Token
      • 1C REQ B2C Login
      • 2 REQ Destination
      • 3 REQ Search
      • 4 REQ Receiving found hotels
      • 5 REQ Getting a Hotel Offer
      • 6 REQ Create order
      • 7 REQ Cancel order
    • OPTIONAL
      • 1 REQ B2B Login
      • 1B REQ B2B Login Token Copy
      • 1 REQ B2C Login
      • 2 REQ Search
      • 3 OPT Destination point info
      • 4 OPT List of popular destinations Copy
      • 5 OPT List of filtered destinations
      • 6 OPT Group guide
      • 7 OPT Getting information on possible hotels
      • 8 OPT Getting the list of currencies
      • 9 REQ Receiving found hotels
      • 10 REQ Getting a Hotel Offer
      • 11 OPT Cancel-policies
      • 12 OPT Account number and info
      • 13 OPT Receiving information on the hotel offer
      • 14 OPT Receive detailed information about the cost of an offer
      • 15 REQ Create order
      • 16 OPT Receive hotel services
  • External system export
    • Export Air Order
  • Schemas
    • Sample Schemas
      • Pet
      • Category
      • Tag
  1. AVIA

5 Documents types for offer

GET
{{AVIA_URL}}/api/documents/types/site
Documents types for offer.png
Returns the passenger document types you can use to book a specific offer.

Request#

pid: the pcc_id of the offer, for example response.data.offers[X].offers[0].segments[0].pcc_id from /api/air/offers. Always pass it. The list depends on the supplier of the offer, and offers on the same route can come from different suppliers.
locale: optional, the language of name.

Caching#

The list depends only on the supplier behind the pcc_id and changes only with platform updates. Request it for the pcc_id of each offer you book. You can cache the response per pcc_id, for example for 24 hours.

Response fields#

FieldDescription
idDocument type ID.
codeDocument type code. Pass it in passengers[].document.type when you create an order.
customThe supplier's code for this document type. For reference only, don't send it.
citizenThe citizenship this type applies to, see below.
nameDocument type name in the requested language.
attributesDocument fields this type supports, with limits in config: min, max, regex, hint.
cyrillic_dataSR only: true if the certificate number can contain Cyrillic letters.

How to choose a document type#

1.
Keep the types whose citizen matches the passenger's citizenship:
ALL: any citizenship;
RU: citizens of Russia only;
OTHER: any citizenship except Russia;
a two-letter country code, for example TJ: citizens of that country only.
2.
From these, take the type of the document the passenger travels with. The type depends on the document, not on the route:
citizens of Russia: PSP for a foreign passport, PS for a national passport;
other citizens: ZC for a foreign (international) passport, NP for a national passport or a national ID card;
children and infants: SR for a birth certificate, or a passport as above.
3.
Send only code in the order. If several rows have the same code, you don't need to choose between them: the supplier's code is selected by the passenger's citizenship.
Example, a citizen of Uzbekistan: with a foreign passport, ZC; with a national ID card, NP.
If no type matches the passenger's document, the offer can't be booked with that document. Use another document the passenger has, or choose another offer. Don't send codes that aren't in the response.

Attributes#

attributes lists the fields a document type supports. It isn't a list of required fields: an attribute doesn't make a field mandatory, and some types return an empty list.
DocumentNumber: limits for passengers[].document.number.
DocumentSeries: there is no separate series field. Write the series and the number together in number, for example AA1234567.
DocumentExpire: the document type has an expiry date. If the passenger's document has an expiry date, pass it in passengers[].document.expire even if this attribute isn't in the list.
LastName, FirstName, MiddleName: passenger name fields. middle_name is optional.

Birth certificate (SR)#

SR has no DocumentExpire attribute. Don't send expire.
cyrillic_data: false: the number contains only Latin letters and digits, without spaces, hyphens or other characters.
cyrillic_data: true: the number can contain Cyrillic letters, as in the document. If DocumentNumber has regex and hint, they describe the format of a Russian birth certificate. For certificates of other countries, use Latin letters and digits without spaces or hyphens.

Errors#

HTTP 400 if pid is not an integer or no supplier with this pid exists:
{
    "pid": ["Provider with this pid was not found."]
}

Request

Query Params

Header Params

Responses

🟢2004 Documents types for offer
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --globoff 'https://stage-api.etm-system.com/api/documents/types/site?locale=RU&pid={{pcc_id}}' \
--header 'Accept: application/json' \
--header 'Etm-Auth-Key: ' \
--header 'Accept-Encoding: gzip, deflate, br' \
--header 'Content-Type: application/json'
Response Response Example
{
    "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
                    }
                }
            ]
        }
    ]
}
Modified at 2026-11-25 15:30:22
Previous
4C Offer Rules
Next
5.1 Get available citizenships for an offer
Built with