Happy Business Starts Here

Creating an invoice with subscription creation

Highlighted
Guru

Creating an invoice with subscription creation

We are using The Create Subscription rest API call with the following data:

  
{ 
"accountKey":"A00227902",
"autoRenew":false,
"contractEffectiveDate":"2019-01-01",
"customerAcceptanceDate":"2019-01-01",
"Department__c":"CMDCAN Ad Sales",
"renewalTerm":0,
"renewalTermPeriodType":"Month",
"runBilling":true,
"subscribeToRatePlans":[ 
{ 
"chargeOverrides":[ 
{ 
"description":"Description1_8",
"price":119.0,
"productRatePlanChargeId":"2c92c0f85d59652c015d7b0943ef74a3",
"triggerDate":"2019-10-29",
"triggerEvent":"USD"
}
],
"productRatePlanId":"2c92c0f85d59652c015d7b0943e274a1"
}
],
"serviceActivationDate":"2019-01-01",
"termType":"EVERGREEN"
}

However the Invoice is not being generated.

We want an invoice but we are not taking payment.

 

What do we need to change?

 

@doyeli can you help me find the answer? We have a new project that is using the rest API instead of the SOAP that I am used to. This is the error we get, should I open a support case?

error instead of invoice.JPG

Maggie Longshore
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Zuora Staff

Re: Creating an invoice with subscription creation

Please try setting "collect" to false in your request body. Also note the "collect" field is only available if you set the zuora-version request header to 196.0 or later. See the POST Subscription call API reference for more details

https://www.zuora.com/developer/api-reference/#operation/POST_Subscription

View solution in original post

4 REPLIES 4
Highlighted
Zuora Alumni

Re: Creating an invoice with subscription creation

Hi @MaggieL yes, can you please create a ticket with Product Line REST API and provide your end point and complete request

 

Thank you






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

Highlighted
Advanced Tutor

Re: Creating an invoice with subscription creation

hello,

 

I have the same problem, can you tell me how was this solved?

 

Thank you!

Nicoleta

Highlighted
Zuora Staff

Re: Creating an invoice with subscription creation

Please try setting "collect" to false in your request body. Also note the "collect" field is only available if you set the zuora-version request header to 196.0 or later. See the POST Subscription call API reference for more details

https://www.zuora.com/developer/api-reference/#operation/POST_Subscription

View solution in original post

Highlighted
Advanced Tutor

Re: Creating an invoice with subscription creation

It worked, thanks a lot!