Reference

This is a flat view of all the representations and relations. If you would rather explore our API starting from the Entry Point, please use the Browser.

Quick reminder:
  • Representation: a set of name-value pairs representing the state of a resource.
  • Relation: the identifier of a link between two resources.

cards

  1. card-representation
  2. get-card
  3. search-card-by-id

1. card-representation

Description: A card representation. A card is a payment instrument.

Properties
id
The card id. Constraints: 36 characters or less, Read-Only.
bin
The card bin. Constraints: Text, 6 characters, Read-Only.
country
The card country. Constraints: Text, 2 characters, Read-Only.

2. get-card (relation)

Description: Get one card.

Properties

No dynamic property needed. This usually means that the server already took the liberty to build the full URL for you depending on the context. Less code for you!

Example: Get one card
Request
GET follow(https://api.slimpay.net/alps#get-card) HTTP/1.1
Accept: application/hal+json; profile="https://api.slimpay.net/alps/v1"
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJhcGkiXSwiZXhwIjoxNDg4NDc0NzI1LCJqdGkiOiI3OThhNGEyYy1hOGE4LTQwNmItOGY0YS1mMjE3ZmNhMTM5YjciLCJjbGllbnRfaWQiOiJkZW1vY3JlZGl0b3IwMSJ9.VoN5FoWOoPfLkJU15ZIcYp2iRam4WJoVfMBw_35XCkw
Response
HTTP/1.1 200 OK
Content-Type: application/hal+json; profile="https://api.slimpay.net/alps/v1";charset=UTF-8
Content-Length: 292

{
    "bin": "453268",
    "id": "fb081e2c-f83f-11e6-84e7-000000000000",
    "_links": {
        "self": {
            "href": "https://api-sandbox.slimpay.net/cards/fb081e2c-f83f-11e6-84e7-000000000000"
        },
        "profile": {
            "href": "https://api-sandbox.slimpay.net/alps/v1/cards"
        }
    }
}

3. search-card-by-id (relation)

Description: Get one card by id.

Properties
id
The card id. Constraints: 36 characters or less, Read-Only.