Assign Payment roles via API

Modified on: Mon, 10 Oct, 2022 at 5:16 PM

This article covers 

How to assign payment roles for a customer?

Can we assign payment roles for a subscription via API?

 

Summary

 

This article will help you with changing the payment roles for the payment methods for a customer.

 

Pre-Requisites

 

There should be at least 2 payment methods added for the customer to be able to set them as primary and back-up.

 

Steps:

From UI:

From API:

You can make use of Assign payment Role API call to mark a payment method as Primary or back-up using API. It is necessary to pass the below parameters


Payment_source_id : Payment source id this role will be assigned to.

Role : 
primary, backup,none.

Related articles and Documentation

https://support.chargebee.com/a/solutions/articles/255981

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.
×