A Block Card call is a request to block a card by an issuer.
Endpoint:POST -> {host}/scplite/cards/block
The following describes the important elements required to be sent for a Block Card request
Request Headers
| Name | Key | Value (Sample) | Type | Length | Purpose (Use cases) |
|---|---|---|---|---|---|
| Card’s encrypted Auth Data | authData | …SASA22312= | String | – | AuthData Specification |
| Banck code | BankCode | 999 | number | – | Submitted with the CMS API requests. CMS uses this value to query for the Card Programs value. |
| User Id | userId | user.name | string | – | This is submitted as part of the calls to Postman to identify the user making the call. |
| Issuer Number | issuerNr | 2 | string | – | Card issuer unique id. |
Sample Request
{"sequenceNo":2222}
Request Body Description
| Name | Key | Value | Type | Length |
|---|---|---|---|---|
| Card sequence number | sequenceNo | 999 | Numeric | 3 |
Response code
| Response Code | Response Message |
|---|---|
| 204 | No content |
| 400 | bad request. |
| 500 | Internal error (exception) occurred. |
Sample Response (Success)
HTTP response code 204
Sample Response (Failure)
{"errors": [{"code": 57, //A postilion response code"message": "PAN not found"//Interpretation of the postilion code}]}
Response Body Description
| Field | Field name | Description |
|---|---|---|
| 1 | code | Postilion’s response code |
| 2 | message | Textual representation of the response code |