These docs are for v1.0. Click to read the latest docs for v2.0.

Create an invoice

This endpoint allows you to create a invoice based on a specific payload. Pennylane will generate a pdf for you.

How the create and update flags are working together:

  • create_customer: true, update_customer: true => create the customer or update the customer
  • create_customer: true, update_customer: false => create the customer or raise an error The api will check that all the customer attributes given are the same in this case
  • create_customer: false, update_customer: false => find the existing customer or raise an error
  • create_customer: false, update_customer: true => find the existing customer and update it
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
boolean
required

Do you wish to create a new customer? If false, you need to specify a valid customer source_id

boolean

Update the customer data if the customer is found with the source_id

boolean
required

Do you wish to create new products? If false and you pass the product key in the invoice_lines object, all the lines must specify a valid product source_id.

invoice
object
required
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/html