Card View API

The Card View API is a highly efficient tool that allows you to effortlessly view Credit Card information and its associated details simply by accessing a URL. This API comprises several key components, including the partner ID, token ID (generated during Credit Card creation), and the client's IP address.

After passing the partner ID, token ID, and client IP into the API, it will generate a response containing a URL. This URL can be copied and pasted by the PMS into their system. By accessing this URL, the PMS will be able to conveniently view the card details directly within their own system, facilitating easy and seamless card management.


Endpoint

POST

https://token.suissu.com/service/api/view

Header Parameters


Content-Type string (Required)

Indicates the format of the data that has to be sent or received.

Example: application/json


x-api-name string (Required)

This is for authentication purpose and can be obtained by logging into the Extranet itself.

Example: XXXXFIRSTAPP

XXXX can be replaced with the client name.


x-api-key string (Required)

This is for authentication purpose and can be obtained by logging into the Extranet itself.

Example: kfpwsfnknknfwknfkwnknef9823rujfsormDFS3ijoncvowoeorfnv

This key will be unique for every client


Attributes

partner_id string (Required)

Indicates the unique property ID assigned upon the creation of the property.


token_id string (Required)

Indicates the token ID generated upon creation of a credit card.


client_ip string (Required)

Indicates the client's IP address.


Sample Request

{
  "partner_id": "H1",
  "token_id": "H4sIAAAAAAAAAzO3BADDOtuOAgAAAA==",
  "client_ip": "192.168.0.1"
}

Responses

200 Success Response

status string

Indicates the status of the request.


ErrorMessages string

Indicates the error messages, if any.


URL string

Provides the URL to view the credit card in your system.


{
  "Status": "Success",
  "ErrorMessages": [],
  "URL": "https://token.suissu.com/service/viewcard/co8mm6hqqe5grmgxmvn60f7z2zcyuapaq3isxwjn4zlvmtmp"
}

400 Bad Request

status string

Indicates the status of the request.


ErrorMessages string

Indicates the error messages, if any.

{
  "Status": "Fail",
  "ErrorMessages": [
    "client_ip : Invalid or missing client IP"
  ]
}

401 Unauthorized

status string

Indicates the status of the request.


ErrorMessages string

Indicates the error messages, if any.

{
  "Status": "Fail",
  "ErrorMessages": [
    "Unauthorised"
  ]
}

Last updated

Was this helpful?