Reset sandbox data
POST
/sandbox/reset
const url = 'https://api.banklink.co.za/v1/sandbox/reset';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.banklink.co.za/v1/sandbox/reset \ --header 'Authorization: Bearer <token>'Test mode only. Wipes your organisation’s sandbox accounts and
transactions; the next call re-seeds a fresh dataset. Returns 404 when
called with a live (sk_live_) key.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Sandbox reset
Media typeapplication/json
object
data
required
object
reset
required
boolean
Example
{ "data": { "reset": true }}Missing or invalid API key
Media typeapplication/json
object
error
required
object
code
required
Machine-readable error code
string
message
required
Human-readable error description
string
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key" }}