Get Invoice

Stripe offers services that allow individuals and businesses to accept payments over the Internet. This activity allows you retrieve a list of all the invoices created in your Stripe account. To achieve this, first add this activity to your canvas, and configure it. Select the appropriate connection for Stripe. If you haven’t created a connection, select ‘Add new’ to create one. 

In the ‘Customer ID’ field, you need to select/specify the ID of the customer whose invoice records you wish to retrieve. Clicking the ‘Refresh’ icon will fetch the list of all the customers of your Stripe account—based on the connection selected—and display it in the drop-down list. In case there are too many customers, you can search the required one by his ‘name’ or ‘ID’. Alternatively, you can manually enter the name or ID of the customer whose invoice records you wish to retrieve or use the output of the previous activity as an input for this field.

You can also limit the number of invoices that will be returned in response by specifying a number in the ‘Limit’ field (between 1 and 100). 

Once you have entered these details, click on ‘Done’ and run the flow. This will return the list of invoices that match your search criteria.

get-invoice

Output:
  • output-arrow stripe-new-128 Get Invoice
    • left-triangle object string
    • left-triangle has_more boolean
    • left-triangle url string
    • left-triangle data array
      • left-triangle date integer
      • left-triangle id string
      • left-triangle period_start integer
      • left-triangle period_end integer
      • left-triangle lines object
      • left-triangle total integer
      • left-triangle customer string
      • left-triangle object string
      • left-triangle attempted boolean
      • left-triangle paid boolean
      • left-triangle currency string
      • left-triangle next_payment_attempt integer
      • left-triangle webhooks_delivered_at integer
      • left-triangle subscription string