Chilkat Online Tools

VB.NET / CardPointe API Integration / Profile (Delete)

Back to Collection Items

' This example assumes the Chilkat API to have been previously unlocked.
' See Global Unlock Sample for sample code.

Dim http As New Chilkat.Http
Dim success As Boolean

http.SetRequestHeader("Authorization","Basic dGVzdGluZzp0ZXN0aW5nMTIz")
http.SetRequestHeader("Content-Type","application/json")

Dim resp As Chilkat.HttpResponse = http.QuickRequest("DELETE","https://domain.com/profile/{{profileid}}/{{acctid}}/{{merchid}}")
If (http.LastMethodSuccess = False) Then
    Debug.WriteLine(http.LastErrorText)
    Exit Sub
End If


Debug.WriteLine(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": [
  ]
}