#Chaithanya-credit-note

1 messages · Page 1 of 1 (latest)

north girder
rapid hemlock
#

ok 2 mins

#

credit note id: cn_1K6CSIHLoK8FyKnZ54pzFgYh

north girder
#

How do you have an ID if there was no response?

rapid hemlock
#

in stripe it is creating but it is not giving response

#

var cn_options = new CreditNoteCreateOptions
{
Invoice = invoiceid,
Reason = "order_change",
RefundAmount = Convert.ToInt32(amountForNewMembers * 100),
Lines = new List<CreditNoteLineOptions>
{
new CreditNoteLineOptions
{
Type = "invoice_line_item",
InvoiceLineItem = invoicelineid,
Quantity = numberofUsers,
Amount = Convert.ToInt32(amountForNewMembers * 100),
},
},
};
var cn_service = new CreditNoteService();
cn = await cn_service.CreateAsync(cn_options);

#

this is my code in C#

north girder
#

Have you wrapped the call in an async task?

rapid hemlock
#

oh ok got it.. i will do it now. thanks ...

north girder
#

That's my assumption, anyway! Let me know

rapid hemlock
#

ok