Endpoint:
POST -> {host}/scplite/card/ debit/{{accountId}}
Write citation…
Request Headers
Name | Key | Value (Sample) | Type | Length |
---|---|---|---|---|
Banck code | BankCode | 999 | number | – |
Card’s encrypted Auth Data | authData | …SASA22312= | String | – |
Issuer Number | issuerNr | 2 | string | – |
User Id | userId | user.name | string | – |
Sample Request
{
"issuerNr":"2",
"cardProgram":"VERVE_PREPAID",
"userId":"olasoji.joseph",
"accountId"
: "3442022219",
"accountType"
: "10"
}
Request Body Description
Name | Key | Type | Length |
---|---|---|---|
Account ID | accountId | String | 20 |
Account Type | accountType | Numeric | 2 |
Card Program | cardProgram | String | – |
Issuer Number | issuerNr | Numeric | 3 |
User Id | userId | String | – |
Sample Response (Success)
{
"responseCode": "00",
"responseMessage": null,
"systemResponseCode": "0",
"systemResponseMessage": "Approved or completed successfully",
"card": {
"pan": "5060990580000509473",
"seqNr": "001",
"defaultAccountType": "20",
"expiryDate": "2704",
"pinOffset": "6417",
"cvv": "123",
"cvv2": "967",
"pinInfo": "6387FBB446A20AE4",
"track2": "5060990580000509473=2704601006417123"
},
"responseCodeDescription": null
}
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 | Type | Description |
---|---|---|---|
1 | code | Numeric | Postilion’s response code |
2 | message | String | Textual representation of the response code |
3 | pan | String | PAN |
4 | seqNr | Numeric | Sequence numeric |
5 | defaultAccountType | Numeric | Default Account Type |
6 | expiryDate | Numberic | Expiry Date |
7 | pinOffset | String | Pin Offset |
8 | cvv | Numeric | CVV |
9 | cvv2 | Numeric | CVV 2 |
10 | pinInfo | String | PIN Info |
11 | track2 | String | Track 2 |