Documents

This resource represents a digital document. Example documents include invoices and vouchers, which are created in PDF format.

XML Schema:

Fields

Name

Type

Description

id read-only

String

href read-only

Field

date_created required

Datetime

The time when the resource was created, in the standard Dates & Times.

type read-only

String

The document type, currently: INVOICE, ATOL_CERTIFICATE, VOUCHER.

audience read-only

String

The intended audience of this document. Either AGENT or CUSTOMER.

booking read-only

Reference Object

The related booking resource.

mime_type read-only

String

The Internet media type.

content required

String

The document content, base64-encoded.

Get a Document

GET /documents/(string: document_id)/

List documents

GET /bookings/(string: booking_id)/documents