Back to Collection Items
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loHttp = createobject("CkHttp")
loHttp.BasicAuth = .T.
loHttp.Login = "{{api_key}}"
loHttp.Password = "{{api_secret}}"
loResp = loHttp.QuickRequest("DELETE","https://domain.com/v1/accounts/:account_id/transfers/:transfer_id")
if (loHttp.LastMethodSuccess = .F.) then
? loHttp.LastErrorText
release loHttp
return
endif
? str(loResp.StatusCode)
? loResp.BodyStr
release loResp
release loHttp
Curl Command
curl -X DELETE
-u '{{api_key}}:{{api_secret}}'
https://domain.com/v1/accounts/:account_id/transfers/:transfer_id
Postman Collection Item JSON
{
"name": "Transfer",
"request": {
"method": "DELETE",
"header": [
],
"url": {
"raw": "{{HOST}}/v1/accounts/:account_id/transfers/:transfer_id",
"host": [
"{{HOST}}"
],
"path": [
"v1",
"accounts",
":account_id",
"transfers",
":transfer_id"
],
"variable": [
{
"key": "account_id",
"value": null
},
{
"key": "transfer_id",
"value": null
}
]
}
},
"response": [
]
}