Back to Collection Items
LOCAL loHttp
LOCAL lnSuccess
LOCAL loResp
* This example assumes the Chilkat API to have been previously unlocked.
* See Global Unlock Sample for sample code.
loHttp = CreateObject('Chilkat.Http')
loHttp.BasicAuth = 1
loHttp.Login = "{{secretId}}"
loHttp.Password = "{{secretPassword}}"
loResp = CreateObject('Chilkat.HttpResponse')
lnSuccess = loHttp.HttpNoBody("DELETE","https://domain.com/api/recurring-expenses/:id/",loResp)
IF (lnSuccess = 0) THEN
? loHttp.LastErrorText
RELEASE loHttp
RELEASE loResp
CANCEL
ENDIF
? STR(loResp.StatusCode)
? loResp.BodyStr
RELEASE loHttp
RELEASE loResp
Curl Command
curl -X DELETE
-u '{{secretId}}:{{secretPassword}}'
https://domain.com/api/recurring-expenses/:id/
Postman Collection Item JSON
{
"name": "Destroy",
"request": {
"method": "DELETE",
"header": [
],
"url": {
"raw": "{{baseUrl}}/api/recurring-expenses/:id/",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"recurring-expenses",
":id",
""
],
"variable": [
{
"key": "id",
"value": null
}
]
},
"description": "Delete a specific recurring expense from your Belvo account."
},
"response": [
]
}