Estaci.one Integration API
  1. Ticket
Estaci.one Integration API
  • Fluxo de uso da API de Integração
  • OAuth
    • Recuperar token
      POST
  • Ticket
    • Emissão de ticket
      POST
    • Parse QrCode
      POST
    • Validação do ticket para uma loja
      POST
    • Adicionar transação ao ticket
      POST
  • Schemas
    • Money
    • Vehicle Details
    • Ticket Details
    • Provider Basic
    • Totem Basic
    • Transaction Details
    • 422
    • 400
  1. Ticket

Validação do ticket para uma loja

POST
/v1/tickets/{ticketNumber}/validate-by-location
Realiza a validação do ticket passando um ID de loja par obter desconto.

Request

Authorization
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Path Params

Header Params

Body Params application/json

Example
{
    "locationId": "765482959250923520",
    "purchaseAmount": 9105765,
    "receiptNumber": "97"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://partner-api.staging.estaci.one/v1/tickets//validate-by-location' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "locationId": "765482959250923520",
    "purchaseAmount": 9105765,
    "receiptNumber": "97"
}'

Responses

🟢200OK
application/json
Body

Example
{
    "id": "string",
    "ticketNumber": "string",
    "vehicle": {
        "vehicleType": "string",
        "plateNumber": "string",
        "vehicleModel": "string",
        "vehicleColor": "string"
    },
    "priceTableId": "string",
    "status": "created",
    "release": {
        "releaseValidUntil": "2019-08-24T14:15:22.123Z",
        "releaserType": "string",
        "releaserId": "string",
        "releaseAt": "2019-08-24T14:15:22.123Z"
    },
    "transactions": [
        {
            "id": "string",
            "amount": {
                "amount": 0,
                "currency": "string"
            },
            "type": "string",
            "method": "string",
            "paidAt": "2019-08-24T14:15:22.123Z",
            "isCanceled": true,
            "cancelReason": "string",
            "canceledAt": "2019-08-24T14:15:22.123Z"
        }
    ],
    "location": {
        "id": "string",
        "locationId": "string",
        "purchaseAmount": {
            "amount": 0,
            "currency": "string"
        },
        "receiptNumber": "string",
        "validatedAt": "2019-08-24T14:15:22.123Z"
    },
    "amountToPay": {
        "amount": 0,
        "currency": "string"
    },
    "issuerType": "string",
    "issuerId": "string",
    "checkIn": "2019-08-24T14:15:22.123Z",
    "checkOut": "2019-08-24T14:15:22.123Z",
    "entryGateId": "string",
    "exitGateId": "string",
    "createdAt": "2019-08-24T14:15:22.123Z",
    "updatedAt": "2019-08-24T14:15:22.123Z"
}
🟠401Unauthorized
🟠422Parameter Error
🟠400Bad Request
Modified at 2025-05-21 04:27:34
Previous
Parse QrCode
Next
Adicionar transação ao ticket
Built with