openapi: 3.0.1
info:
  x-metadata:
    apiId: NowInfinity Partner v1
    tags:
      - NowInfinity Partner
  title: Lookups
  version: '1.0'
  description: >-
    - Retrieve reference data used when populating other NowInfinity requests.

    - Countries, and Australian states and territories.



    <div class="env-panel" data-component-name="EnvPanel"><div
    class="env-panel__header">Servers</div><div class="env-panel__body"><div
    class="env-row"><div class="env-name">Partner Integration Environment
    (Sandbox)</div><div class="env-url-row"><span
    class="env-url">https://partnerapi.nowinfinity-test.com.au/v1</span><button
    type="button" class="copy-btn"
    data-copy="https://partnerapi.nowinfinity-test.com.au/v1"
    aria-label="Copy"><svg viewBox="0 0 16 16" fill="none"
    xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path
    fill-rule="evenodd" clip-rule="evenodd" d="M5.16667 2.66667C5.16667 2.57462
    5.24129 2.5 5.33333 2.5H12C12.092 2.5 12.1667 2.57462 12.1667
    2.66667V10.6667C12.1667 10.7587 12.092 10.8333 12 10.8333H10H5.33333C5.24129
    10.8333 5.16667 10.7587 5.16667 10.6667V4.66667V2.66667ZM4.16667
    4.16667V2.66667C4.16667 2.02233 4.689 1.5 5.33333 1.5H12C12.6443 1.5 13.1667
    2.02233 13.1667 2.66667V10.6667C13.1667 11.311 12.6443 11.8333 12
    11.8333H10.5V13.3333C10.5 13.6428 10.3771 13.9395 10.1583 14.1583C9.9395
    14.3771 9.64275 14.5 9.33333 14.5H2.66667C2.35725 14.5 2.0605 14.3771
    1.84171 14.1583C1.62292 13.9395 1.5 13.6428 1.5 13.3333V5.33333C1.5 5.02391
    1.62292 4.72717 1.84171 4.50838C2.0605 4.28958 2.35725 4.16667 2.66667
    4.16667H4.16667ZM9.5 11.8333V13.3333C9.5 13.3775 9.48244 13.4199 9.45118
    13.4512C9.41993 13.4824 9.37754 13.5 9.33333 13.5H2.66667C2.62246 13.5
    2.58007 13.4824 2.54882 13.4512C2.51756 13.4199 2.5 13.3775 2.5
    13.3333V5.33333C2.5 5.28913 2.51756 5.24674 2.54882 5.21548C2.58007 5.18423
    2.62246 5.16667 2.66667 5.16667H4.16667V10.6667C4.16667 11.311 4.689 11.8333
    5.33333 11.8333H9.5Z" fill="currentColor"/></svg></button></div></div><div
    class="env-row"><div class="env-name">Production Environment</div><div
    class="env-url-row"><span
    class="env-url">https://partnerapi.nowinfinity.com.au/v1</span><button
    type="button" class="copy-btn"
    data-copy="https://partnerapi.nowinfinity.com.au/v1" aria-label="Copy"><svg
    viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"
    aria-hidden="true"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.16667
    2.66667C5.16667 2.57462 5.24129 2.5 5.33333 2.5H12C12.092 2.5 12.1667
    2.57462 12.1667 2.66667V10.6667C12.1667 10.7587 12.092 10.8333 12
    10.8333H10H5.33333C5.24129 10.8333 5.16667 10.7587 5.16667
    10.6667V4.66667V2.66667ZM4.16667 4.16667V2.66667C4.16667 2.02233 4.689 1.5
    5.33333 1.5H12C12.6443 1.5 13.1667 2.02233 13.1667 2.66667V10.6667C13.1667
    11.311 12.6443 11.8333 12 11.8333H10.5V13.3333C10.5 13.6428 10.3771 13.9395
    10.1583 14.1583C9.9395 14.3771 9.64275 14.5 9.33333 14.5H2.66667C2.35725
    14.5 2.0605 14.3771 1.84171 14.1583C1.62292 13.9395 1.5 13.6428 1.5
    13.3333V5.33333C1.5 5.02391 1.62292 4.72717 1.84171 4.50838C2.0605 4.28958
    2.35725 4.16667 2.66667 4.16667H4.16667ZM9.5 11.8333V13.3333C9.5 13.3775
    9.48244 13.4199 9.45118 13.4512C9.41993 13.4824 9.37754 13.5 9.33333
    13.5H2.66667C2.62246 13.5 2.58007 13.4824 2.54882 13.4512C2.51756 13.4199
    2.5 13.3775 2.5 13.3333V5.33333C2.5 5.28913 2.51756 5.24674 2.54882
    5.21548C2.58007 5.18423 2.62246 5.16667 2.66667
    5.16667H4.16667V10.6667C4.16667 11.311 4.689 11.8333 5.33333 11.8333H9.5Z"
    fill="currentColor"/></svg></button></div></div></div></div>
tags:
  - name: Reference data
    description: >
      Static lists used to populate address and jurisdiction fields elsewhere in
      the

      NowInfinity Partner APIs.
servers:
  - url: https://partnerapi.nowinfinity-test.com.au/v1
    description: Partner Integration Environment (Sandbox)
  - url: https://partnerapi.nowinfinity.com.au/v1
    description: Production Environment
paths:
  /references/countries:
    get:
      tags:
        - Reference data
      summary: Countries
      description: |
        Returns the list of countries recognised by NowInfinity.
      operationId: GetCountries
      responses:
        '200':
          description: Success (Ok)
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Country'
      security:
        - NowInfinity_oAuth:
            - api1
  /references/australian-states-and-territories:
    get:
      tags:
        - Reference data
      summary: Australian states and territories
      description: >
        Returns the list of Australian states and territories, with their
        abbreviations.
      operationId: GetAustralianStatesAndTerritories
      responses:
        '200':
          description: Success (Ok)
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/StateOrTerritory'
      security:
        - NowInfinity_oAuth:
            - api1
components:
  schemas:
    Country:
      type: object
      properties:
        Name:
          type: string
          example: Australia
    StateOrTerritory:
      type: object
      properties:
        Abbreviation:
          type: string
          example: NSW
        Name:
          type: string
          example: New South Wales
  securitySchemes:
    NowInfinity_oAuth:
      type: oauth2
      description: NowInfinity uses OAuth2 for authentication and authorisation.
      flows:
        implicit:
          authorizationUrl: https://auth.nowinfinity-test.com.au/connect/authorize
          scopes:
            api1: Web API access
            reporting: Reporting
