Bank Code. Delete item by ID POST

delete data by ID

# ENDPOINT
/abs/api/bankcode/deleteItem/{id}
# REQUEST arguments
Variable Value Example Usage Description
X-App-Sig
header
0
M Dev Authentication
id
path
0
M Id record
# RESPONSE
        						
# REQUEST arguments
Variable Name Type Format Usage Description
X-App-Sig X-App-Sig header string M Dev Authentication
How to fill this header
id id path integer M Id record
# AUTHENTICATION HEADERS
Header Value
Authorization Bearer <access_token> — the token returned by POST /oauth/v2/token (see Authentication & oAuth → Fetch Access / Refresh Token).
X-App-Ts Current Unix time in seconds, e.g. 1764000000. Must be the same value that was used to compute X-App-Sig.
X-App-Sig Lower-case hex HMAC-SHA256 of the request, keyed with your application's client secret:
X-App-Sig = hex( HMAC_SHA256( body + path + X-App-Ts, client_secret ) )
  • body — the exact JSON request body as sent (empty string when there is no body);
  • path — the request path with query string, including /abs, e.g. /abs/api/user/getData/userSearchRequest;
  • X-App-Ts — the value of the X-App-Ts header.
On a development stand the check can be skipped with X-App-Sig: DEV-SKIP (that is what «Dev Authentication» means); on production always send a real signature.
Example (PHP):
$ts   = time();
$body = json_encode($payload, JSON_UNESCAPED_UNICODE);
$sig  = hash_hmac('sha256', $body . '/abs/api/user/getData/userSearchRequest' . $ts, $clientSecret);
// headers: Authorization: Bearer $token, X-App-Ts: $ts, X-App-Sig: $sig
The Postman collection (button «Postman») fills both headers automatically from the collection variables access_token and client_secret.
# POSITIVE RESPONSE

200 - Response successfully when status is OK

200 - Response successfully when status is OK

Schema: HeaderResponseStatusOk
Type: application/json
Variable Name Type Format Description
status status string Request execution status
error_description Error Description string Description of error
error Error Code string Error code
data_type data_type string Type of data
total_records total_records string Total count of records
data data object Empty object
# NEGATIVE RESPONSE

200 - Response with error when status is ERROR

200 - Response with error when status is ERROR

Schema: HeaderResponseStatusError
Type: application/json
Variable Name Type Format Description
status status string Request execution status
error_description Error Description string Description of error
error Error Code string Error code
data_type data_type string Type of data
total_records total_records string Total count of records
data data object Empty object