- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
How do I generate a prorated invoice for a subscription with a custom initial term period?
Hello! I want ot generate the invoice with my subscription API, but the code doesn't work. Why?
{
"subscribes": [
{
"Account": {
"AccountNumber": "Main123456789",
"AllowInvoiceEdit": true,
"AutoPay": false,
"Batch": "Batch1",
"BillCycleDay": 1,
"CrmId": "SFDC-1230661730921",
"Currency": "USD",
"CustomerServiceRepName": "Jill Smith",
"Name": "Bella Rodoni",
"PaymentTerm": "Due Upon Receipt",
"PurchaseOrderNumber": "PO-1230661730921",
"SalesRepName": "Tom Chen",
"Status": "Draft"
},
"BillToContact": {
"Address1": "52 Main Street",
"City": "Anaheim",
"Country": "United States",
"FirstName": "Bella",
"LastName": "Rodoni",
"PostalCode": "92808",
"State": "California",
"WorkEmail": "bella@rodoni.com",
"WorkPhone": "4152225151"
},
"PaymentMethod": {
"CreditCardAddress1": "52 Main Street",
"CreditCardCity": "Anaheim",
"CreditCardCountry": "United States",
"CreditCardExpirationMonth": 1,
"CreditCardExpirationYear": "2019",
"CreditCardHolderName": "Bella Rodoni",
"CreditCardNumber": "4959911773775979",
"CreditCardPostalCode": "92808",
"CreditCardState": "California",
"CreditCardType": "Visa",
"Type": "CreditCard"
},
"PreviewOptions": {},
"SubscribeOptions": {
"GenerateInvoice": true,
"SubscribeInvoiceProcessingOptions": {
"InvoiceTargetDate": "2018-07-26",
"InvoiceProcessingScope": "Subscription",
"InvoiceDate": "2018-07-26"
}
},
"SubscriptionData": {
"Subscription": {
"AutoRenew": false,
"ContractAcceptanceDate": "2018-07-26",
"ContractEffectiveDate": "2018-07-26",
"InitialTerm": 12,
"Name": "MainStreetOfficesLandscape",
"RenewalTerm": 12,
"ServiceActivationDate": "2018-07-26",
"TermStartDate": "2018-07-26",
"TermType": "TERMED",
"Version": "1"
},
"RatePlanData": [ { "RatePlan": { "ProductRatePlanId": "2c92c0f864cfe6c00164d61350fc6946" } } ]
}
}
]
}
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: How do I generate a prorated invoice for a subscription with a custom initial term period?
Morning @BigShot, There's another board for questions about the API. https://community.zuora.com/t5/API/bd-p/API You might get a faster answer after posting there. I don't know much about APIs but I thought the account needed to be Active before creating a new subscription.
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: How do I generate a prorated invoice for a subscription with a custom initial term period?
Thanks Ehavents, I have already found the answer.