- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi,
So I am currently investigating a method to take payment method refrence-id and set it as the default payment method for an account.
I can easly do this for credit cards with this PUT request:
URL: https://rest.apisandbox.zuora.com/v1/payment-methods/credit-cards/{paymentMethodID} "PUT"
{ "defaultPaymentMethod":true }
However I am unable to find documentaion on how to do this for ACH payment methods.
What would the request for setting an ACH payment method as the default payment method look like?
Cheers,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi @ayonge!
Given that HPM created ACH payment method successfully, it will return a payment method ID. The next step would be updating an account's default payment method with this newly created ID. Note that the default payment method is associated with Account object. Below is the details of my test.
PUT call to endpoint below, note that this is for sandbox and account ID at the end of endpoint:
https://rest.apisandbox.zuora.com/v1/object/account/2c92c0f950e512ab0150f2459b340223
Request:
{ "DefaultPaymentMethodId": "2c92c0f863f7f04001641f0d43367aa6" }
Response:
{ "Success": true, "Id": "2c92c0f950e512ab0150f2459b340223" }
Give this a try and let us know how this goes? Thank you!
Refrence: https://www.zuora.com/developer/api-reference/#operation/Object_PUTAccount
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Setting newly created ACH payment via a Hosted Payment Page as the default payment method
That did the trick!
Thanks Patrick,
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Setting newly created ACH payment via a Hosted Payment Page as the default payment method
My pleasure!
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √