Shared Card using API/tokens on both accounts

Hi,

Referring to Create a Shared Card on File and Make a Payment

If I want to share a card between two square accounts. Both have an app so I have both api tokens to proceed with requests in/on both accounts.

Using api/token#1, I first create a customer#1 in square account#1, I save a card on file (Card#1).

Using api/token#2, I duplicate / create customer#2 in account#2. I than can use Card#1 ccof token to charge customer#2 in account#2.

If I have api tokens for both accounts, is OAuth scoping really required or API tokens would allow me to use the card in both accounts?

Thanks.

:waving_hand: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Cards API
Cards API
Charge a Card on File

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

Currently, the shared card on file is only supported through OAuth. If you have credentials from an application from both accounts shared card on file will not work. This is because only one application can charge cards from multiple accounts using the shared card on file flow. :slight_smile: