POST /sandbox/transfer/test_clock/advance
Use the /sandbox/transfer/test_clock/advance
endpoint to advance a test_clock
in the Sandbox environment.
A test clock object represents an independent timeline and has a virtual_time
field indicating the current timestamp of the timeline. A test clock can be advanced by incrementing virtual_time
, but may never go back to a lower virtual_time
.
If a test clock is advanced, we will simulate the changes that ought to occur during the time that elapsed.
For example, a client creates a weekly recurring transfer with a test clock set at t. When the client advances the test clock by setting virtual_time
= t + 15 days, 2 new originations should be created, along with the webhook events.
The advancement of the test clock from its current virtual_time
should be limited such that there are no more than 20 originations resulting from the advance operation on each recurring_transfer
associated with the test_clock
.
For example, if the recurring transfer associated with this test clock originates once every 4 weeks, you can advance the virtual_time
up to 80 weeks on each API call.
Servers
- https://production.plaid.com
- https://sandbox.plaid.com
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
client_id |
String | No |
Your Plaid API |
new_virtual_time |
String | Yes |
The virtual timestamp on the test clock. This will be of the form |
test_clock_id |
String | Yes |
Plaid’s unique identifier for a test clock. |
secret |
String | No |
Your Plaid API |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.