#crispycodes
1 messages · Page 1 of 1 (latest)
Hey, I want to better understand what you are trying to do exactly, so an example request ID would help.
I haven't coded anything yet
All I need to do using the invoicing api is
- Generate an invoice with a price I determine at the time of generating it. (So I can't create prices in the dashboard as the prices are different for every invoice)
- Once the invoice is generated, I need to get a website link for stripes hosted invoice page to give to the client
- I cannot provide an email in the invoice as my clients do not have emails listed
This doc shows how to create an invoice like that. It uses a predefined price but you can just use the invoice item's price_data hash to define an ad hoc price
https://stripe.com/docs/invoicing/integration/quickstart
Ok thank you. Do you mind leaving this open for 10-20 minutes so I can test this
I see the docs say:
Does this mean I must provide a customer object? I don't have the customers email or anything
because it seems I must already setup a customer to use invoicing:
The customer object is listed as optional in the API reference, so you can use it without one https://stripe.com/docs/api/invoices/create#create_invoice-customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok thank you, maybe this page should be updated to reflect a customer isn't needed to create an invoice