Skip to main content
POST
/
api
/
pdf
/
preview
preview pdf
curl --request POST \
  --url https://sbx.api.easybilling.cloud/billing/api/pdf/preview \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "objectType": "invoice",
  "objectId": "ed0633b2-b1b5-4c0e-98a2-0912483e7eda",
  "content": "<div>{{invoice.number}}</div>",
  "name": "INV-123"
}
'
[
  "<string>"
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

trace-id
string
default:{{$string.uuid}}

Body

application/json
objectType
string
required
Allowed value: "invoice"
objectId
string
required

invoice id

content
string
required
name
string
required

Response

200 - application/json