CardStateUpdate
Suspend or Unsuspend the card based on the request params.
| Name | Required | Definition |
|---|---|---|
| CustId | Y | Customer ID |
| ProgramId | Y | Program ID |
| Active | Y | Y to keeping the card Active or N for suspending the card temporarily. |
Authorization
- Name
Bearer Token- Type
- e865a1e59daa629a8ade53bdae8ae659
- Description
Header
- Name
Content-Type- Type
- application/json
- Description
Body
- Name
raw- Type
- json
- Description
JSON
{ "ServiceName": "CardStateUpdate", "data": { "CustId": "E7D22940-E873-4DA4-8F29-5250B1272CE1", "ProgramId": "EFBF92FE-600C-499D-B561-61D47B57E16C", "Active": "N" } }
Request
POST
https://YOURENDPOINT.virtualrx.co/jsonapi.phpcurl --location 'https://YOURENDPOINT.virtualrx.co/jsonapi.php' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data '{
"ServiceName": "CardStateUpdate",
"data": {
"CustId": "E7D22940-E873-4DA4-8F29-5250B1272CE1",
"ProgramId": "EFBF92FE-600C-499D-B561-61D47B57E16C",
"Active": "N"
}
}'
Response
{
"ResponseDetails": {
"ServiceName": "CardStateUpdate",
"SessionId": "13a24748-7722-45b7-9e71-61d4d802b32c",
"StatusCode": "0",
"StatusName": "StatusOK",
"StatusDescription": "NA",
"ServiceDate": "2022-04-06 08:01:19",
"ServiceId": "13a24748-7722-45b7-9e71-61d4d802b32c"
},
"ResponseParams": ""
}