Back to Collection Items
require 'chilkat'
# This example assumes the Chilkat API to have been previously unlocked.
# See Global Unlock Sample for sample code.
http = Chilkat::CkHttp.new()
http.SetRequestHeader("Authorization","Basic dGVzdGluZzp0ZXN0aW5nMTIz")
http.SetRequestHeader("Content-Type","application/json")
# resp is a CkHttpResponse
resp = http.QuickRequest("DELETE","https://domain.com/profile/{{profileid}}/{{acctid}}/{{merchid}}")
if (http.get_LastMethodSuccess() == false)
print http.lastErrorText() + "\n";
exit
end
print resp.get_StatusCode().to_s() + "\n";
print resp.bodyStr() + "\n";
Curl Command
curl -X DELETE
-H "Authorization: Basic dGVzdGluZzp0ZXN0aW5nMTIz"
-H "Content-Type: application/json"
https://domain.com/profile/{{profileid}}/{{acctid}}/{{merchid}}
Postman Collection Item JSON
{
"name": "Profile (Delete)",
"request": {
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "Basic dGVzdGluZzp0ZXN0aW5nMTIz"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{url}}/profile/{{profileid}}/{{acctid}}/{{merchid}}",
"host": [
"{{url}}"
],
"path": [
"profile",
"{{profileid}}",
"{{acctid}}",
"{{merchid}}"
]
},
"description": "[Profile Documentation](https://developer.cardconnect.com/cardconnect-api#profile)"
},
"response": [
]
}