Help Center
Login Sign up
  1. Start
  2. API-Referenz
  3. API-Dokumentation (XML/ JSON)
  4. Auftragstypen
  5. Contact Document Auftragstypen

Contact Document Info (Download)

API-Referenz (XML/JSON) · Aktualisiert 2023-12-29

Funktion

Der Auftragstyp ContactDocumentInfo ermittelt die Daten und den Inhalt eines Dokuments für einen bestimmten Kontakt und Dokumenttyp.

Beschreibung

Route:  GET /contact/{id}/document/{type}

Es muss kein Body mitgeschickt werden

{
}
{
    "stid": "20210520-app-9059",
    "status": {
        "code": "S0364",
        "text": "Das Dokument für den Kontakt konnte erfolgreich ermittelt werden.",
        "type": "SUCCESS"
    },
    "data": [
        {
            "created": "2021-05-20T12:30:00.000+0200",
            "updated": "2021-05-20T14:30:00.000+0200",
            "contact": {
                "id": 6346
            },
            "document": {
                "created": "2021-05-20T12:30:00.000+0200",
                "updated": "2021-05-20T12:30:00.000+0200",
                "id": 23433,
                "comment": "owner:1",
                "type": "contactDocument",
                "mimeType": "application/pdf",
                "data": "PGNvbnRlbnQ+Sl ... 9PC9jb250ZW50Pg==",
                "size": 112,
                "name": "document.pdf"
            },
            "type": "IDCARD",
            "verification": "NOT_SET",
            "expire": "2023-05-20T12:30:00.000+0200"
        }
    ]
}

cURL-Beispiel

curl -v --request GET 'https://gateway.autodns.com/v1/contact/12345678/document/id_card' --header 'X-Domainrobot-Context: 4' --header 'Content-Type: multipart/form-data' --user 'exampleuser:examplepassword'