Intervia-PoC
    Intervia-PoC
    • Intervia PoC
    • Issue new ticket
      POST
    • Activate ticket
      POST
    • Inspect ticket
      POST
    • Schemas
      • IssueTicket request
      • Activate/Inspect request
      • Response

      Issue new ticket

      POST
      /issueTicket

      Request

      Authorization
      API Key
      Add parameter in header
      Authorization
      Example:
      Authorization: ********************
      or
      Body Params application/jsonRequired

      Example
      {
      "customerAddress": "0xB266856A3E1108aa44011aAAeB5a2996431Fb7aC",
      "originStopId": "S13",
       "destinationStopId": "S18",
       "serviceId": "L1E",
       "ticketType": "r"
       }

      Responses

      🟢201Created
      application/json
      Body

      Example
      {
          "success": true,
          "message": "Ticket issued and synchronized.",
          "data": {
              "ticketId": "0xFF7B44E6F6Ef98e6D6eC5fcBeaffB9E899dfd00b49e5ebE8D0D9CB99442369F1"
          }
      }
      🟢202Accepted
      🟠400Bad Request
      🟠401Unauthorized
      🔴500Internal Server Error
      🔴503Service Unavailable
      Previous
      Intervia PoC
      Next
      Activate ticket
      Built with