Happy Business Starts Here

[REST] How do I resolve error: "Electronic payment needs electronic payment method" when creating a subscription?

Community Manager

[REST] How do I resolve error: "Electronic payment needs electronic payment method" when creating a subscription?

See Reply



Subscribe to Zuora System Updates at Zuora Trust
Follow Zuora Global Support on Twitter and LinkedIn

1 REPLY 1
Community Manager

Re: [REST] How do I resolve error: "Electronic payment needs electronic payment method" when creating a subscription?

Problem:

The following REST call used to work for creating subscriptions, but now we're getting the Electronic payment needs electronic payment method message.

{
  "accountKey": "Account ID or number",
  "termType": "EVERGREEN",
  "subscribeToRatePlans": [
    {
      "productRatePlanId": "Product rate plan ID"
    }
  ],
  "contractEffectiveDate": "2015-01-01",
  "serviceActivationDate": "2015-01-01"
}

 

Solution:

The POST Subscription call actually has an optional field, invoiceCollect. This field's value is set to true by default, so we will try to process a payment immediately when creating the subscription, which is not possible without an Electronic Payment Method configured.

Check the account you're creating the subscription for:

- The account should have an Electronic Payment Method configured. Protip: it does not have to be in Active status in order to process payments. Closed payment methods can also be used to process a payment in the UI and API. However, by default, closed payment methods will not be used to process electronic payments in an automated payment run, unless the appropriate processing option is selected.

restsubscribe.JPG

 

 

- This Electronic Payment Method needs to be set up as the Default Payment Method

 restsubscribe2.JPG

 

 

- Alternatively, in case you don't want to configure an Electronic Payment Method for any reason, simply use the following call, which will create the subscription without trying to process a payment:

{
  "accountKey": "Account ID or number",
  "termType": "EVERGREEN",
  "subscribeToRatePlans": [
    {
      "productRatePlanId": "Product rate plan ID"
    }
  ],
  "contractEffectiveDate": "2015-01-01",
  "serviceActivationDate": "2015-01-01",
"invoiceCollect": "false" }

 

Supporting References:

https://knowledgecenter.zuora.com/BC_Developers/REST_API/B_REST_API_reference/Subscriptions/02_Creat...



Subscribe to Zuora System Updates at Zuora Trust
Follow Zuora Global Support on Twitter and LinkedIn