# On-Demand Updates

## On-Demand Updates API - Testing <a href="#on-demand-updates-api---testing" id="on-demand-updates-api---testing"></a>

On-Demand Updates API performs a **one-time lookup** for the most recent Account Updater status without enrolling the card for ongoing updates.

* Real-time updates are supported only for Visa and Mastercard.
* American Express and Discover are not supported for real-time Account Updater lookups.
* This mock does not track future updates and does not enroll the card in Account Updater.

The On-Demand Updates API mock allows you to test real-time card update scenarios for **Visa and Mastercard** cards.

### Testing Steps <a href="#testing-steps" id="testing-steps"></a>

1. **Account Enrollment Type:** Manual Enrollment
2. **Register Cards**: Use the **Create Card API** to register the test cards listed in the table below.
3. **Invoke On-Demand Updates API**: Call the **Card Check API** with the cardIDs obtained in step 2 to simulate a card update check.

To test the On-Demand Account Updater endpoint, first set your account to **manual enrollment**. Then, create cards using the test cards listed below and trigger the On-Demand endpoint individually using each card’s `cardID` generated through this process.

**Note:** If you test this with an account set up for **on-create enrollment** and run the On-Demand endpoint using the card IDs from the test cards, the sync response will show an **enrolled** status, and the actual event will be sent to the async webhook URL configured on your VGS dashboard. Therefore, use these test cards only with accounts set up for **manual enrollment**.

#### Test Cards and Expected Responses <a href="#test-cards-and-expected-responses" id="test-cards-and-expected-responses"></a>

| Test Cards        | Expiry Date | Expected Account Updater Event |
| ----------------- | ----------- | ------------------------------ |
| 4680056031099387  | 8/26        | Expired                        |
| 4403933787254356  | 9/26        | Closed                         |
| 4000220720915104  | 1/25        | Contact cardholder advice      |
| 4327390068355738  | 12/23       | Updated                        |
| 4549612182636736  | 3/23        | Account non-participating      |
| 5100260000099240  | 9/26        | Updated                        |
| 5100260000059244  | 6/26        | Closed                         |
| 51223511000004505 | 7/25        | Expired                        |


---

# Agent Instructions: 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:

```
GET https://docs.verygoodsecurity.com/cmp/developer-resources/guides/testing/on-demand-updates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
