Back to Collection Items
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
Chilkat.Http http = new Chilkat.Http();
bool success;
http.SetRequestHeader("Authorization","Basic dGVzdGluZzp0ZXN0aW5nMTIz");
http.SetRequestHeader("Content-Type","application/json");
Chilkat.HttpResponse resp = http.QuickRequest("DELETE","https://domain.com/profile/{{profileid}}/{{acctid}}/{{merchid}}");
if (http.LastMethodSuccess == false) {
Debug.WriteLine(http.LastErrorText);
return;
}
Debug.WriteLine(Convert.ToString(resp.StatusCode));
Debug.WriteLine(resp.BodyStr);
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": [
]
}