Delete unpaid transaction
/account/delete-unpaid-transaction
Something terrible goes wrong and you want to delete an unpaid transaction, here is how to it, Chief π
POST https://live.chimoney.io/api/v0.1/account/delete-unpaid-transaction
Delete an unpaid transaction
Headers
Name
Type
Description
X-API-Key*
API_KEY_FROM_DEV_PORTAL
Request Body
Name
Type
Description
chiRef*
chiRef to delete
{
// success
}#Javascript FETCH
var myHeaders = new Headers();
myHeaders.append("X-API-Key", "API_KEY_FROM_DEV_PORTAL");
var raw = "{\n \"chiRef\": \"chiRef to delete\"\n}";
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://live.chimoney.io/api/v0.1/account/delete-unpaid-transaction", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));#Python REQUESTS
#PHP cURL
Yay! It's done.
Last updated