TicketingHub

Endpoints:

  • GET /v1/Organizations/:id/ticketingHub
  • POST /v1/Organizations/:id/ticketingHub
  • GET /v1/Organizations/:id/ticketingHub/count
  • PUT /v1/TicketingHub/:id
  • DELETE /v1/TicketingHub/:id

The TicketingHub object

Parameters

  • id string readonly

  • token string

  • businessPremiseId string

  • electronicDeviceId string

  • organizationId string

    
      {
  "token": "string",
  "businessPremiseId": "string",
  "electronicDeviceId": "string",
  "id": "string",
  "organizationId": "string"
}    
  

Find TicketingHubs

GET /v1/Organizations/:id/ticketingHub

Parameters

Path
  • id string required

    Organization id

Query
  • filter string optional

      
        const response = await fetch('https://api.spaceinvoices.com/v1/Organizations/{id}/ticketingHub', {
  method: 'GET',
  headers: {
    'Authorization': 'ACCESS_TOKEN',
    'content-type': 'application/json'
  }
});      
    

Your access token is displayed in examples.

Prerequisite: npm install node-fetch

        
          curl -X GET https://api.spaceinvoices.com/v1/Organizations/{id}/ticketingHub \
  -H 'Authorization: ACCESS_TOKEN' \
  -H 'Content-Type: application/json'        
      

Your access token displayed in examples.

        
          import requests
url = 'https://api.spaceinvoices.com/v1/Organizations/{id}/ticketingHub'
headers = {
  'Authorization': 'ACCESS_TOKEN',
  'content-type': 'application/json',
}
response = requests.get(url, params={}, headers=headers)        
      

Your access token displayed in examples.

Response:

    
      [
  {
    "token": "string",
    "businessPremiseId": "string",
    "electronicDeviceId": "string",
    "id": "string",
    "organizationId": "string"
  }
]    
  

Create TicketingHub

POST /v1/Organizations/:id/ticketingHub

Parameters

Path
  • id string required

    Organization id

Properties

  • token string optional

  • businessPremiseId string optional

  • electronicDeviceId string optional

  • organizationId string optional

      
        const response = await fetch('https://api.spaceinvoices.com/v1/Organizations/{id}/ticketingHub', {
  method: 'POST',
  headers: {
    'Authorization': 'ACCESS_TOKEN',
    'content-type': 'application/json'
  },
  body: JSON.stringify({
    token: 'string',
    businessPremiseId: 'string',
    electronicDeviceId: 'string',
    organizationId: 'string'
  })
});      
    

Your access token is displayed in examples.

Prerequisite: npm install node-fetch

        
          curl -X POST https://api.spaceinvoices.com/v1/Organizations/{id}/ticketingHub \
  -H 'Authorization: ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "token": "string", \
    "businessPremiseId": "string", \
    "electronicDeviceId": "string", \
    "organizationId": "string"
  }'        
      

Your access token displayed in examples.

        
          import requests
url = 'https://api.spaceinvoices.com/v1/Organizations/{id}/ticketingHub'
headers = {
  'Authorization': 'ACCESS_TOKEN',
  'content-type': 'application/json',
}
params = {
  'token': 'string',
  'businessPremiseId': 'string',
  'electronicDeviceId': 'string',
  'organizationId': 'string'
}
response = requests.post(url, json=params, headers=headers)        
      

Your access token displayed in examples.

Response:

    
      {
  "token": "string",
  "businessPremiseId": "string",
  "electronicDeviceId": "string",
  "id": "string",
  "organizationId": "string"
}    
  

Count TicketingHubs

GET /v1/Organizations/:id/ticketingHub/count

Parameters

Path
  • id string required

    Organization id

Query
  • where string optional

    Criteria to match model instances

      
        const response = await fetch('https://api.spaceinvoices.com/v1/Organizations/{id}/ticketingHub/count', {
  method: 'GET',
  headers: {
    'Authorization': 'ACCESS_TOKEN',
    'content-type': 'application/json'
  }
});      
    

Your access token is displayed in examples.

Prerequisite: npm install node-fetch

        
          curl -X GET https://api.spaceinvoices.com/v1/Organizations/{id}/ticketingHub/count \
  -H 'Authorization: ACCESS_TOKEN' \
  -H 'Content-Type: application/json'        
      

Your access token displayed in examples.

        
          import requests
url = 'https://api.spaceinvoices.com/v1/Organizations/{id}/ticketingHub/count'
headers = {
  'Authorization': 'ACCESS_TOKEN',
  'content-type': 'application/json',
}
response = requests.get(url, params={}, headers=headers)        
      

Your access token displayed in examples.

Response:

    
      {
  "count": 42
}    
  

Replace TicketingHub

PUT /v1/TicketingHub/:id

Parameters

Path
  • id string required

    Model id

Properties

  • token string optional

  • businessPremiseId string optional

  • electronicDeviceId string optional

  • organizationId string optional

      
        const response = await fetch('https://api.spaceinvoices.com/v1/TicketingHub/{id}', {
  method: 'PUT',
  headers: {
    'Authorization': 'ACCESS_TOKEN',
    'content-type': 'application/json'
  },
  body: JSON.stringify({
    token: 'string',
    businessPremiseId: 'string',
    electronicDeviceId: 'string',
    organizationId: 'string'
  })
});      
    

Your access token is displayed in examples.

Prerequisite: npm install node-fetch

        
          curl -X PUT https://api.spaceinvoices.com/v1/TicketingHub/{id} \
  -H 'Authorization: ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "token": "string", \
    "businessPremiseId": "string", \
    "electronicDeviceId": "string", \
    "organizationId": "string"
  }'        
      

Your access token displayed in examples.

        
          import requests
url = 'https://api.spaceinvoices.com/v1/TicketingHub/{id}'
headers = {
  'Authorization': 'ACCESS_TOKEN',
  'content-type': 'application/json',
}
params = {
  'token': 'string',
  'businessPremiseId': 'string',
  'electronicDeviceId': 'string',
  'organizationId': 'string'
}
response = requests.put(url, json=params, headers=headers)        
      

Your access token displayed in examples.

Response:

    
      {
  "token": "string",
  "businessPremiseId": "string",
  "electronicDeviceId": "string",
  "id": "string",
  "organizationId": "string"
}    
  

Delete TicketingHub

DELETE /v1/TicketingHub/:id

Parameters

Path
  • id string required

    Model id

      
        const response = await fetch('https://api.spaceinvoices.com/v1/TicketingHub/{id}', {
  method: 'DELETE',
  headers: {
    'Authorization': 'ACCESS_TOKEN',
    'content-type': 'application/json'
  }
});      
    

Your access token is displayed in examples.

Prerequisite: npm install node-fetch

        
          curl -X DELETE https://api.spaceinvoices.com/v1/TicketingHub/{id} \
  -H 'Authorization: ACCESS_TOKEN' \
  -H 'Content-Type: application/json'        
      

Your access token displayed in examples.

        
          import requests
url = 'https://api.spaceinvoices.com/v1/TicketingHub/{id}'
headers = {
  'Authorization': 'ACCESS_TOKEN',
  'content-type': 'application/json',
}
response = requests.delete(url, params={}, headers=headers)        
      

Your access token displayed in examples.

Response:

    
      {
  "count": 1
}