Docs

Log in to read the version of docs relevant to your site, or use the dropdown versions

Assign Payment roles via API

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.

Was this article helpful?