#Siva_K-webhooks

1 messages ยท Page 1 of 1 (latest)

stark meadow
#

๐Ÿ‘‹ happy to help

lofty hare
#

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

stark meadow
lofty hare
#

I'm using the same collection but getting below response

stark meadow
#

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

lofty hare
#

for Subscription

#

yes please

stark meadow
#

could you please move your message back to the thread

lofty hare
#

how can I move here?

stark meadow
#

just copy paste it here and delete it from the main channel please

lofty hare
#

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"
}
}

Learn more about error codes and how to resolve them.

#

Moved it here

#

done

stark meadow
#

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

lofty hare
#

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

stark meadow
#

then you're not creating a Subscription in Stripe right?

lofty hare
#

no we are creating the subscription

#

we need to provide best solutions

#

can we use the subscription or single payment

#

as Salesforce is maintaing the subscription