Skip to main content
GET

Get sales receipt PDF

Scope:sales:receipts.read
https://api.holded.com/api/v2/sales-receipts/{salesReceiptId}/pdf

Downloads the sales receipt as a PDF file. The response Content-Type is `application/pdf`.

Parameters

Path parameters

salesReceiptIdstringrequired

Sales Receipt ID (24-char hex ObjectId)

Request

python
import requests

url = "https://api.holded.com/api/v2/sales-receipts/{salesReceiptId}/pdf"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())

Responses

Response

json
"string"

Success responses

200PDF binary contentapplication/pdf
string<binary>

Error responses

401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Sales receipt not found.application/json
429Rate limit exceededapplication/json