#jcnguyen_36895_03919

1 messages · Page 1 of 1 (latest)

dusty lotusBOT
lucid escarp
#

Hello

#

Can you clarify? Not exactly sure what you mean.

#

An example JSON response might help

viscid pine
#

let me give you an example: when i have a subscription with price cost $200. When a subscription upgrade to another price let say $400. I used upcoming invoice to calculate the prorate and due amount. However, the API return 3 line items

  1. Prorate amount look correct
  2. Somehow it added another line called with new price
  3. Actual line with new price
#

because of 3 lines the amount due end up $600 instead of $200

lucid escarp
#

Can you show me your code for how you are doing this?

dusty lotusBOT
viscid pine
#

SubscriptionItems = new List<InvoiceSubscriptionItemOptions>
{

new()
{
    Price = priceid,
    Quantity = 1,
    Id = subscriptionitem.Id,
}

},

fast kernel
#

Hi, stepping in as bismark need to delurk. Let me catch up here

viscid pine
#

sure let me get you the requestid

#

req_xybHwt1oEyO5wN

#

it stop return 3 when i include this setting in the request: SubscriptionProrationBehavior = "always_invoice",

fast kernel
#

Can you share the response here?

viscid pine
#

one second

#

the one without subscriptionbehavior?

fast kernel
#

the response from this upcoming invoice request

viscid pine
#

let me know if you need additional details

#

but i think adding SubscriptionProrationBehavior = "always_invoice" seems to works

#

seems shown up the amount due correctly after include ProrateBehavior as always_invoice

fast kernel
#

Can you share the request id where it works properly?

viscid pine
#

req_UvONv6qGuslonq

fast kernel
viscid pine
#

got it thanks

#

i think adding proratebehavior seems to do the trick

#

i've tested and seems to work

fast kernel
#

Nice, I'll add this to my test too.

viscid pine
#

but in term of why it double charge if not specify that's something i don't know

fast kernel