Agreements
Retrieve the current agreement
GET /api/v1/reservations/{id}/agreement
The booking’s current agreement, or null when none has been issued. Superseded versions are not listed; the current one carries its version.
Path parameters
| Parameter | In | Type | Description |
|---|---|---|---|
| id required | path | string | The reservation id. |
Response
200 { agreement: Agreement | null }
Agreement fields
| Field | Type | Description |
|---|---|---|
| id | string | |
| version | integer | Counts up on every re-issue. Superseded versions are not listed. |
| provider | enum | quarters for an envelope Quarters issued itself, external for one written through this API. "quarters""external" |
| externalId | string | null | Your stable id for the envelope, as you reported it. |
| status | enum | "sent""completed""declined""failed""superseded""voided" |
| templateName | string | null | The Quarters template used; null for an external envelope. |
| sentAt | timestamp | null | ISO 8601 |
| completedAt | timestamp | null | ISO 8601 |
| declinedAt | timestamp | null | ISO 8601 |
| voidedAt | timestamp | null | ISO 8601 |
| error | string | null | Why it failed. Only kept while status is failed. |
| documentUrl | string | null | The provider-hosted copy of the executed document, as reported. |
| document | object | null | Set once the executed PDF has been archived: by Quarters for its own envelopes, by you through the document endpoint for yours. |
| signers | Signer[] | |
| createdAt | timestamp | ISO 8601 |
| updatedAt | timestamp | ISO 8601 |
Errors
Every failure is { error, message }; see Errors. A missing or expired bearer is a 401 on every endpoint
but the token exchange.
| Status | error | When |
|---|---|---|
| 404 | not_found | Unknown reservation. |
Notes
providerisquartersfor an envelope Quarters issued itself andexternalfor one written through this API. A Quarters signer never exposes its signing link here; an external one echoes thesigningUrlyou reported.documentis set once the executed PDF has been archived, by Quarters for its own envelopes and by you through the document endpoint for yours.documentUrlis the copy hosted by the external provider, if you reported one.