Logo PopinaPopina API

Get current contract

Get the request's sender contract from the database

GET/v1/contracts/
AuthorizationBearer <token>

Please provide your device JWT token in the format 'Bearer '

In: header

Response Body

application/json

application/json

curl -X GET "http://localhost:4004/v1/contracts/"
{
  "contractType": "FINANCIAL_LEASE_WITH_AUTOMATIC_RENEWAL",
  "mainPosCount": 0,
  "secondaryPosCount": 0,
  "kioskCount": 0,
  "kdsCount": 0,
  "startedAt": "2019-08-24T14:15:22Z",
  "expireAt": "2019-08-24T14:15:22Z",
  "locationId": "1a5515a3-ba81-4a42-aee7-ad9ffc090a54",
  "featuresAccess": [
    {
      "name": "api_access",
      "enabled": true
    }
  ]
}
{
  "error": "string"
}