Back to Collection Items
; This example assumes the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
$oHttp = ObjCreate("Chilkat.Http")
Local $bSuccess
$oHttp.BasicAuth = True
$oHttp.Login = "{{secretId}}"
$oHttp.Password = "{{secretPassword}}"
Local $oResp = $oHttp.QuickRequest("DELETE","https://domain.com/api/recurring-expenses/:id/")
If ($oHttp.LastMethodSuccess = False) Then
ConsoleWrite($oHttp.LastErrorText & @CRLF)
Exit
EndIf
ConsoleWrite($oResp.StatusCode & @CRLF)
ConsoleWrite($oResp.BodyStr & @CRLF)
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": [
]
}