Skip to main content
GET
/
v1
/
businesses
/
{businessId}
/
invoices
/
{invoiceId}
/
pdf
Generate invoice PDF
curl --request GET \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/invoices/{invoiceId}/pdf \
  --header 'Authorization: Bearer <token>'
{
  "type": "S3_Presigned_Url",
  "presignedUrl": "https://example-bucket.s3.amazonaws.com/example-object?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=FAKEAWSACCESSKEY%2F20240710%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20240710T000000Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=FAKESIGNATURE1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef\n",
  "fileType": "pdf"
}

Authorizations

Authorization
string
header
required

Headers

Content-Type
string

Path Parameters

businessId
string<uuid>
required
invoiceId
string<uuid>
required

Response

type
string
Example:
presignedUrl
string
Example:
fileType
string
Example: