Advanced data corrections
The API provides powerful mechanisms to ensure data consistency, but not all actions automatically bring the complete system into a consistent state. For certain complex scenarios, the API offers advanced endpoints that provide enhanced consistency guarantees.
For example:
If you assigned a token to the wrong subscription, you would typically correct this by making two API requests: first, marking the incorrect token link as defunct, and then creating the correct token link. In these cases, the API will not automatically reprice the affected charge sessions after the first request, as it doesn’t know when you’ve completed the correction process.
For such advanced corrections, a special endpoint is available that allows you to complete the entire process in a single request. This endpoint not only performs the correction but also ensures that related data, such as pricing for charge sessions, is automatically updated for consistency.
It’s important to note that these automatic corrections are an advanced feature and are not available for all operations. For many tasks, you’ll need to follow the manual process to ensure data integrity.