delphiDll / Bond APIs / Retrieve card statements
Back to Collection Items
var
http: HCkHttp;
success: Boolean;
sbResponseBody: HCkStringBuilder;
begin
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
http := CkHttp_Create();
CkHttp_SetRequestHeader(http,'Content-Type','application/json');
CkHttp_SetRequestHeader(http,'Authorization','{{authorization}}');
CkHttp_SetRequestHeader(http,'Identity','{{identity}}');
sbResponseBody := CkStringBuilder_Create();
success := CkHttp_QuickGetSb(http,'https://{{environment}}.bond.tech/api/v0/cards/:card_id/statements',sbResponseBody);
if (success = False) then
begin
Memo1.Lines.Add(CkHttp__lastErrorText(http));
Exit;
end;
Memo1.Lines.Add('Response status code = ' + IntToStr(CkHttp_getLastStatus(http)));
Memo1.Lines.Add(CkStringBuilder__getAsString(sbResponseBody));
CkHttp_Dispose(http);
CkStringBuilder_Dispose(sbResponseBody);
Curl Command
curl -X GET
-H "Content-Type: application/json"
-H "Authorization: {{authorization}}"
-H "Identity: {{identity}}"
https://{{environment}}.bond.tech/api/v0/cards/:card_id/statements
Postman Collection Item JSON
{
"name": "Retrieve card statements",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "Authorization",
"type": "text",
"value": "{{authorization}}"
},
{
"key": "Identity",
"type": "text",
"value": "{{identity}}"
}
],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://{{environment}}.bond.tech/api/v0/cards/:card_id/statements",
"protocol": "https",
"host": [
"{{environment}}",
"bond",
"tech"
],
"path": [
"api",
"v0",
"cards",
":card_id",
"statements"
],
"variable": [
{
"key": "card_id",
"value": "{{card_id}}"
}
]
},
"description": "Add Card financial Core"
},
"response": [
{
"name": "example",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "Authorization",
"type": "text",
"value": "{{authorization}}"
},
{
"key": "Identity",
"type": "text",
"value": "{{identity}}"
}
],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://{{environment}}.bond.tech/api/v0/cards/:card_id",
"protocol": "https",
"host": [
"{{environment}}",
"bond",
"tech"
],
"path": [
"api",
"v0",
"cards",
":card_id"
],
"variable": [
{
"key": "card_id",
"value": "{{card_id}}"
}
]
}
},
"_postman_previewlanguage": "json",
"header": null,
"cookie": [
],
"body": "{\n \"card_id\": \"2742ff6a-7455-4066-8b45-ae12d3acca34\",\n \"last_four\": \"6169\",\n \"status\": \"Inactive\",\n \"card_number\": \"tok_live_283734\",\n \"cvv\": \"tok_live_p923u34\",\n \"expiry_date\": \"tok_live_oeueo932\",\n \"card_account_id\": \"48aef94d-8473-47c8-943f-d3ac1745d8fa\",\n \"pseudoDDANumbers\": [\n {\n \"pseudoDdaNumber\": \"1010101010101010\"\n }\n ]\n}"
}
]
}