Skip to main content
GET
/
transactions
/
{transaction_id}
/
invoice
Get a PDF invoice for a transaction
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.paddle.com/transactions/{transaction_id}/invoice', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "data": {
    "url": "https://paddle-production-invoice-service-pdfs.s3.amazonaws.com/invoices/10889/e01ae945-9e6d-4208-a0ba-83b107e06657/invoice_325-10650_DX-ChatApp.pdf"
  },
  "meta": {
    "request_id": "126c131a-258a-482b-b4a9-9ffca5126539"
  }
}

Authorizations

Authorization
string
header
required

Requests are authenticated with API keys. Provide your API key as a Bearer token in the Authorization header.

API keys are assigned permissions, granting them access to entities and operations. Each endpoint may require one or more permissions, defined with the x-permissions extension. Values for include parameters may require specific permissions as defined in the x-enum-permissions extension. See all available permissions in the permission schema or documentation.

Get an API key and select the permissions you need from the Paddle dashboard under Paddle > Developer Tools > Authentication.

Path Parameters

transaction_id
string
required

Paddle ID of the transaction entity to work with.

Example:

"txn_01gw225vv6tjbb5gnt062a3k5v"

Query Parameters

disposition
enum<string>
default:attachment

Determine whether the generated URL should download the PDF as an attachment saved locally, or open it inline in the browser.

Default: attachment.

Available options:
attachment,
inline

Response

OK

data
Transaction invoice PDF · object
required
meta
Meta · object
required

Information about this response.