Cycle Logo

Receiving Linked Cards

To obtain a list of linked cards, send a POST request to the API. The response will be paginated, returning up to 100 cards per page.

Endpoint

POST /api/v1/payment/GetLinkedCards

Request Body

Field NameTypeDescription
AccountIdIntegerAgent ID
StateIntegerMode
StatusIntegerStatus
DeletedIntegerDeleted
PageIntegerPage number for pagination
CurrentAccountIDIntegerUser ID used for authorization
LocationJsonObjectLocation object
CountryStringCountry
CountryCodeStringCountry code
DeviceInfoJsonObjectDevice object
GMTIntegerTime zone
AppFrameworkStringFramework applications
LangStringLanguage
IPStringIP address

Example Request

{
  "AccountId": 19083,
  "Page": 1,
  "CurrentAccountID": 19083,
  "Location": {
    "Latitude": -26.2041,
    "Longitude": 28.0473
  },
  "Country": "South Africa",
  "CountryCode": "ZA",
  "DeviceInfo": {
    "PhoneManufacturer": "Generic",
    "PhoneModel": "Windows_RestAPI",
    "DeviceID": "",
    "DeviceType": "1",
    "AppFramework": "java",
    "OS": "Windows",
    "OSVersion": "10",
    "AppID": "RestAPI",
    "BuildNumber": "2.4.390248"
  },
  "GMT": 2,
  "AppFramework": "java",
  "Lang": "en"
}

Response Body

Field NameTypeDescription
IDIntegerID card
LinkTypeIntegerAlways 1
StateIntegerCard status (1 - active, 2 - blocked/deleted)
StatusIntegerBinding status (1 - Created, 2 - In verification, 3 - Verified, 10 - Error)
AccountIDIntegerID of the agent who linked the card
AliasStringDescription of the card
CardholderNameStringCardholder name
LinkIDStringBinding ID
PANEndingStringLast 4 digits of card number
PANMaskedStringLast 5 symbols of card mask
PaymentTypeStringPayment system name
CardExpStringCard expiration date
CreatedStringCreated timestamp
UpdatedStringUpdated timestamp
DeletedBooleanDeleted status
CanDeleteBooleanCan be deleted
TransactionCountIntegerNumber of transactions
ErrorCodeIntegerExecution result code
ErrorMessageStringExecution result message
ValidationsArrayValidation results

Example Response

{
  "LinkedCards": [
    {
      "ID": 7856,
      "LinkType": 1,
      "State": 1,
      "Status": 3,
      "AccountID": 19083,
      "Alias": "visa *4207",
      "CardholderName": null,
      "LinkID": "95deef98-ea73-421d-890d-77511b12186e",
      "PANEnding": "4207",
      "PANMasked": "*4207",
      "PaymentType": "visa",
      "CardExp": "2028-06-30T23:59:59",
      "Created": "2024-09-22T18:46:48.687",
      "Updated": "2024-09-22T15:46:48.687",
      "Deleted": false,
      "CanDelete": false,
      "TransactionCount": 0,
      "StorageID": 1
    },
    {
      "ID": 7855,
      "LinkType": 1,
      "State": 1,
      "Status": 3,
      "AccountID": 19083,
      "Alias": "mastercard *5100",
      "CardholderName": null,
      "LinkID": "b5b78219-d94f-4b08-ba29-33cd51c6b857",
      "PANEnding": "5100",
      "PANMasked": "*5100",
      "PaymentType": "mastercard",
      "CardExp": "2026-03-31T23:59:59",
      "Created": "2024-09-22T18:45:29.95",
      "Updated": "2024-09-22T15:46:09.243",
      "Deleted": false,
      "CanDelete": false,
      "TransactionCount": 0,
      "StorageID": 1
    }
  ],
  "ErrorCode": 0,
  "ErrorMessage": null,
  "Validations": null
}