> For the complete documentation index, see [llms.txt](https://docs.coda.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coda.co/codapay/archived-tokenization-api-2.0/business-use-cases.md).

# Business Use Cases

In all of the following cases, we encourage you to store Coda information and link them to your own customer identifier: Shopper ID, Payment Method ID, Token ID, and Subscription ID.

## <mark style="color:purple;">Registering New Shopper</mark>

When registering a new shopper and generating a token for the first time, you will need to perform the following actions,

1. [Create a new Shopper](/codapay/archived-tokenization-api-2.0/integration-guide/shopper.md) using your customer ID
2. [Create a Payment Method ](/codapay/archived-tokenization-api-2.0/integration-guide/payment-method.md)depending on the customer's payment choice
3. [Generate a Token](/codapay/archived-tokenization-api-2.0/integration-guide/token.md) for that payment method
4. [Monitor Coda notification for token validation](/codapay/archived-tokenization-api-2.0/webhooks-notification/token-authorization-event-token.status.authorized.md), which partner can config Subscription Notification URL
5. [Charge the customer](/codapay/archived-tokenization-api-2.0/integration-guide/charge.md#create-new-charge-with-shopper-action) using the generated token

## <mark style="color:purple;">Returning Shoppers and Reusing the Same Payment Method</mark>

If you already have a token linked to your customer, then you simply need to initiate the customer charge using the generated token:

1. [Charge the customer](/codapay/archived-tokenization-api-2.0/integration-guide/charge.md#create-new-charge-with-shopper-action) using the generated token

## <mark style="color:purple;">Returning Shopper with Expired Payment Token</mark>

If you’re an existing shopper that needs to re-generate a token, follow these steps:&#x20;

1. [Generate a new Token](/codapay/archived-tokenization-api-2.0/integration-guide/token.md) for your customer’s payment method
2. [Monitor Coda notifications for token validation](/codapay/archived-tokenization-api-2.0/webhooks-notification/token-authorization-event-token.status.authorized.md)
3. [Charge the customer](/codapay/archived-tokenization-api-2.0/integration-guide/charge.md#create-new-charge-with-shopper-action) using the newly generated token

## <mark style="color:purple;">Generating a Token for New Payment Method for Existing Customers</mark>

If you’re an existing shopper that needs to generate a new token for an alternative payment method, follow these steps:

1. [Create a Payment Method](/codapay/archived-tokenization-api-2.0/integration-guide/payment-method.md)  according to the shopper’s payment choice (ex: Go-Pay) using existing Shopper ID linked to your customer ID
2. [Generate a Token](/codapay/archived-tokenization-api-2.0/integration-guide/token.md) for the selected payment method
3. [Monitor Coda notification for token validation](/codapay/archived-tokenization-api-2.0/webhooks-notification/token-authorization-event-token.status.authorized.md)
4. [Charge the customer](/codapay/archived-tokenization-api-2.0/integration-guide/charge.md#create-new-charge-with-shopper-action) using the generated token

## <mark style="color:purple;">Initiating a Subscription with Coda Scheduler</mark>

To set up a recurring charge for your shopper using Coda scheduler, follow the steps:

1. Create a new subscription plan (This step is required only once per plan)
2. [Create a new Shopper](/codapay/archived-tokenization-api-2.0/integration-guide/shopper.md) using your shopper ID
3. [Create a Payment Method ](/codapay/archived-tokenization-api-2.0/integration-guide/payment-method.md) according to the shopper’s payment choice (ex: Go-Pay)
4. [Generate a Token](/codapay/archived-tokenization-api-2.0/integration-guide/token.md) for the selected payment method
5. [Monitor Coda Notification for token validation](/codapay/archived-tokenization-api-2.0/webhooks-notification/token-authorization-event-token.status.authorized.md)
6. Launch the subscription by utilizing the subscription plan and the generated token

## <mark style="color:purple;">Cancelling a Subscription</mark>

To cancel a shopper’s subscription, follow these steps:

1. [Cancel an existing subscription](/codapay/archived-tokenization-api-2.0/subscription-coming-soon/cancel-subscription.md) using the ID generated


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.coda.co/codapay/archived-tokenization-api-2.0/business-use-cases.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
