#Siva_K-webhooks
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
as per our docs https://stripe.com/docs/webhooks/best-practices#event-ordering, Stripe doesn't guarantee delivery of events in order
Thank you for your response @stark meadow
Do you have an example for creating the invoice with postman
what are the parameters do we nee to follow'
any sequence of action before making create invoice api
we have an official postman collection you could use https://www.postman.com/stripedev/workspace/stripe-developers/overview
I'm using the same collection but getting below response
{
"error": {
"code": "invoice_no_subscription_line_items",
"doc_url": "https://stripe.com/docs/error-codes/invoice-no-subscription-line-items",
"message": "Nothing to invoice for subscription",
"param": "subscription",
"type": "invalid_request_error"
}
are you creating an invoice for a subscription or for a one-time payment?
@lofty hare let's continue our conversation in the thread if you don't mind
could you please move your message back to the thread
just copy paste it here and delete it from the main channel please
Invoice Creation through API:
Did anyone create an Invoice through API? please let me know if I need help on this.
Do you have an example body for creating the invoice with the postman
what are the parameters we need to follow?
Do we need to follow any sequence of action before making create invoice API?
I want to create an invoice for a subscription through API callout? I do not want to use subscription automated invoices as don't want to pass the usage history to Stripe.
I'm using the Stripe postman collections, but getting the below response
{
"error": {
"code": "invoice_no_subscription_line_items",
"doc_url": "https://stripe.com/docs/error-codes/invoice-no-subscription-line-items",
"message": "Nothing to invoice for subscription",
"param": "subscription",
"type": "invalid_request_error"
}
}
Moved it here
done
thanks ๐
instead of creating an invoice, you should create a subscription and extend on latest_invoice, this way you will have the invoice object on the subscription that you just created
My subscription is metered and businesses don't want to pass the usage information to Stripe as they are using Salesforce to collect the usage and calculate the total amount and taxes in salesforce itself and then charge the customer with API or create an invoice through API
then you're not creating a Subscription in Stripe right?