Happy Business Starts Here

Highlighted
Zuora Staff

Why Callout for new default payment method is not firing ?

When our users update their credit cards in our application, we do a POST request on/rest/v1/payment-methods/credit-cards with a body that looks like:

{
...

"cardHolderName": "TEST Testington", 
"addressLine1": "123 Mulberry Rd",
"addressLine2": null,
"defaultPaymentMethod": true
}

In our sandbox account, I've enabled the "Payment Method Updated | API",  "Payment Method Updated | Manually", and "Payment Method Updated | Payment Method Updater" callouts, but I do not see them firing when updating credit cards as described. Should these events be firing, or is there another callout that can provide notification for our workflow?



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

1 REPLY 1
Zuora Staff

Re: Why Callout for new default payment method is not firing ?

The email and Callout are sent when you update the current default payment method.

 

Based on the below REST API reference,

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

 

You can use use:
PUT https://rest.apisandbox.zuora.com/v1/payment-methods/credit-cards/{payment method id}
{
"defaultPaymentMethod": true
}

 

then update the Payment Method information:

 

PUT https://rest.apisandbox.zuora.com/v1/payment-methods/credit-cards/{payment method id}
{

"cardHolderName": "TEST Testington",
"addressLine1": "123 Mulberry Rd",
"addressLine2": null,

}

 

An email and/or a callout are triggered after you launched this 2nd query.



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