Activate and Deactivate cards

PUT /api/Card

Request URL

https:// .../api/Card

Use this call to activate and deactivate a card. A sample request and response is below.

Sample request

{
  "requestId": "00000000-0000-00ds04-0000-000000000000",
  "cardToken": "Bearer token {xxx}",
  "isActive": true
}

Body parameters

Parameter

Description

requestId
string

A customer generated unique ID.

cardToken
string

Token that the merchant stores.

isActive
boolean

Whether the card is active.
True if active, otherwise false.

Sample response

Click here to view the response attributes.

{
   "version":"1.0.0.0",
   "result":{
      "results":[
         {
            "requestId":"75390185-f4c4-4220-817a-2095fb3b2be5",
            "cardToken":"GXA2L4WIQOCIQMGFFLWMQRC02SZI7WO06JQKU6",
            "firstName":"Bobby",
            "lastName":"Builderino",
            "ownerExternalId":null,
            "address1":"1357 Odd Street",
            "address2":null,
            "city":"Venice",
            "isAuthorizationSucceeded":false,
            "state":"OH",
            "countryCode":"US",
            "phoneNumber":"5553455679",
            "email":"[email protected]",
            "expirationYear":"22",
            "expirationMonth":"05",
            "last4Digits":"1111",
            "cardCompany":"Visa",
            "isActive":false,
            "deactivatedAt":null,
            "addedOn":"2019-09-01T13:18:10.913",
            "rail":"RS2",
            "authorizationJson":"{\r\n \"PushCardID\": \"b2eee733-80c4-4507-acd5-
c2826c8e4135\",\r\n \"Authorized\": false,\r\n \"ResponseReceived\": true,\r\n
\"ResponseCode\": \"15\",\r\n \"ResponseDescription\": null,\r\n \"Error\": null,\r\n
\"AddressVerified\": false,\r\n \"Rail\": \"rS2\",\r\n \"CardType\":
\"unknown\"\r\n}"
         },         
      ],
      "pageNumber":1,
      "pageSize":3,
      "hasPreviousPage":false,
      "hasNextPage":false
   },
   "isSuccessfull":true
}

Did this page help you?