Skip to main content
POST
/
invoices
/
{invoiceId}
/
pdf
Upload invoice PDF
curl --request POST \
  --url https://api.leanpay.fr/v1/public/invoices/{invoiceId}/pdf \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "file": {
    "base64": "aSDinaTvuI8gbWludGxpZnk="
  }
}
'

Authorizations

Authorization
string
header
required

Path Parameters

invoiceId
string<uuid>
required

Id of the invoice

Body

application/json

Invoice upload object

file
object
required

Response

PDF uploaded