Skip to content
FreeTicketDocs
Esc
↑↓navigate↵open⌘Jpreview

Download a settlement PDF

Minimum role: ADMIN. Active workspace via the X-Workspace-Id header. Files live in a private bucket, so the response is a 302 to a signed URL valid for 5 minutes (the client must follow the redirect; the storage_path is never exposed). Only settlements visible to the organization (SENT, AWAITING_PAYMENT, PAID) and within the key’s event_scope.

GET/settlements/{id}/document
Authorization
AuthorizationAPI key · headerrequired

API key prefixed with Bearer . Alternative: the x-api-key header with the raw key. Available scopes: read and write (see /.well-known/oauth-protected-resource).

or
x-api-keyAPI key · headerrequired

Raw API key (without Bearer ), alternative to Authorization.

Path parameters
idstringrequired
Header parameters
X-Workspace-Idstring

Active workspace to operate on. Optional: when omitted, the default workspace of the user who owns the key is used (pickActiveOrg).

Responses
302

Redirect to the signed URL (5 min TTL) of the PDF, with Content-Disposition: attachment.

401

Invalid or missing credential.

errorobjectrequired
Show properties
codestringrequired
messagestringrequired
retryablebooleanrequired
detailsany
403

Insufficient role (< ADMIN).

errorobjectrequired
Show properties
codestringrequired
messagestringrequired
retryablebooleanrequired
detailsany
404

Settlement does not exist, belongs to another organization, is out of scope, or has no document yet.

errorobjectrequired
Show properties
codestringrequired
messagestringrequired
retryablebooleanrequired
detailsany
502

Could not sign the storage URL.

errorobjectrequired
Show properties
codestringrequired
messagestringrequired
retryablebooleanrequired
detailsany
503

Storage is not configured.

errorobjectrequired
Show properties
codestringrequired
messagestringrequired
retryablebooleanrequired
detailsany
Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://admin.appfreeticket.com/api/v1/settlements/string/document' \
  -H 'Authorization: YOUR_API_KEY'
Response
Redirect to the signed URL (5 min TTL) of the PDF, with Content-Disposition: attachment.