Australian Taxation Office Get Payment Reference Number API

The Get Payment Reference Number API from Australian Taxation Office — 1 operation(s) for get payment reference number.

Operations 1

GET / This endpoint will allow you to get a Payment Reference Number (PRN) for a… #

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://artifacts.apis.io/australian-taxation-office/json-schema/australian-taxation-office-relying-party-schema.json
📊
JSONSchema
https://artifacts.apis.io/australian-taxation-office/json-schema/australian-taxation-office-combined-minimum-global-domestic-return-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/australian-taxation-office/json-schema/australian-taxation-office-global-domestic-minimum-tax-return-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/australian-taxation-office/json-schema/australian-taxation-office-global-domestic-minimum-group-entity-tax-return-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/australian-taxation-office/json-schema/australian-taxation-office-global-domestic-minimum-group-entity-tax-return-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/australian-taxation-office/json-schema/australian-taxation-office-transaction-payment-reference-number-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/australian-taxation-office/json-schema/australian-taxation-office-gstproperty-settlement-withholding-notification-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/australian-taxation-office/json-schema/australian-taxation-office-gstproperty-settlement-date-confirmation-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/australian-taxation-office/json-schema/australian-taxation-office-heartbeat-info-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/australian-taxation-office/json-schema/australian-taxation-office-provider-list-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/australian-taxation-office/json-schema/australian-taxation-office-stapled-super-fund-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/australian-taxation-office/json-schema/australian-taxation-office-stapled-super-fund-response-schema.json

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/australian-taxation-office:australian-taxation-office-get-payment-reference-number-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

australian-taxation-office-get-payment-reference-number-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: This API will be used to get a Payment Reference Number (PRN).
  version: 1.0.19
  x-status: Proposed
  title: Get Payment Reference Number API
servers:
- url: https://{env}/payment/v1/paymentReferenceNumber
  description: Payment Reference Number
  variables:
    env:
      default: sandbox.api.ato.gov.au
      description: This is the environment host that is going to be used to hit the API.
      enum:
      - sandbox.api.ato.gov.au
      - api.ato.gov.au
tags:
- name: Get Payment Reference Number
paths:
  /:
    get:
      tags:
      - Get Payment Reference Number
      parameters:
      - $ref: '#/components/parameters/transactionIdParam'
      - $ref: '#/components/parameters/roleTypeParam'
      summary: This endpoint will allow you to get a Payment Reference Number (PRN) for a…
      description: 'In order to retrieve a Payment Reference Number you need to provide the below information.


        **1. Transaction ID**


        **2. Role Type**'
      operationId: retrievePaymentReferenceNumberFormat4
      responses:
        '200':
          description: Payment Reference Number Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionPaymentReferenceNumberResponse'
              examples:
                SuccessfulPaymentReferenceNumberResponse:
                  $ref: '#/components/examples/PaymentReferenceNumberTransactionResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorsResponse'
              examples:
                BadRequestResponseExample:
                  $ref: '#/components/examples/BadRequestResponseExample'
        '401':
          description: Unauthorised
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorsResponse'
              examples:
                UnauthorisedResponseExample:
                  $ref: '#/components/examples/UnauthorisedResponseExample'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorsResponse'
              examples:
                ForbiddenResponseExample:
                  $ref: '#/components/examples/ForbiddenResponseExample'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorsResponse'
              examples:
                NotFoundResponseExample:
                  $ref: '#/components/examples/NotFoundResponseExample'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorsResponse'
              examples:
                InternalServerErrorResponseExample:
                  $ref: '#/components/examples/InternalServerErrorResponseExample'
components:
  examples:
    PaymentReferenceNumberTransactionResponse:
      summary: Successful Payment Reference Number Response
      description: 'Example Successful Payment Reference Number Response

        '
      value:
        data:
          roleType: GDMT
          transactionId: '6300000000001'
          paymentReferenceNumber: '123456789123456789'
    InternalServerErrorResponseExample:
      summary: Internal Server Error Response
      description: 'Example Internal Server Error Response

        '
      value:
        errors:
        - code: 500-01
          detail: Your request cannot be processed. Please try again later.  If the problem persists, please contact ATO
    NotFoundResponseExample:
      summary: Not Found Response
      description: 'Example Not Found Response

        '
      value:
        errors:
        - code: 404-01
          detail: No API path found that matches request '{request.uri}'
    BadRequestResponseExample:
      summary: Bad Request Response
      description: 'Example Bad Request Response

        '
      value:
        errors:
        - code: OAS.VAL.00000
          detail: Object has missing required properties (['transactionId'])
    UnauthorisedResponseExample:
      summary: Unauthorised Response
      description: 'Example Unauthorised Response

        '
      value:
        errors:
        - code: 401-01
          detail: api key is invalid
    ForbiddenResponseExample:
      summary: Forbidden Response
      description: 'Example Forbidden Response

        '
      value:
        errors:
        - code: 403-01
          detail: Forbidden
  schemas:
    ApiError:
      title: ApiError
      type: object
      properties:
        detail:
          type:
          - string
          - 'null'
          description: 'A human-readable explanation specific to this occurrence of the problem.

            '
        code:
          type:
          - string
          - 'null'
          description: 'An application-specific error code.

            '
        source:
          $ref: '#/components/schemas/Source'
      description: 'This will hold the response error details.

        '
    Source:
      title: Source
      type: object
      properties:
        pointer:
          type:
          - string
          - 'null'
          description: '''JSON Pointer [RFC6901] to the associated entity in the request document.''

            '
        parameter:
          type:
          - string
          - 'null'
          description: 'A string indicating which URI query parameter caused the error.

            '
      description: 'An object containing references to the source of the error.

        '
    TransactionPaymentReferenceNumber:
      description: 'This will hold the payment reference number that will be sent back in the response for a transaction.

        '
      properties:
        roleType:
          description: 'This is the type of tax payment that the client is obligated to make payments for to the ATO.

            '
          type: string
          example: GLOBE
        transactionId:
          description: 'This is the Transaction ID identifier that the taxpayer uses to make payments to the ATO.

            '
          type: string
          pattern: '[0-9]{13}'
          example: '6300000000001'
        paymentReferenceNumber:
          description: 'This is up to an 18 digit code to define the payment. A number which payment processing will use to determine

            where a client''s payment will be allocated.

            '
          type: string
          maxLength: 18
          example: '123456789098765432'
    ApiErrorsResponse:
      description: 'Full error payload returned to client. Will contain multiple errors if there are multiple that get returned.

        '
      properties:
        errors:
          items:
            $ref: '#/components/schemas/ApiError'
          type: array
    TransactionPaymentReferenceNumberResponse:
      description: 'This is the response that is returned upon successful Retrieval of a Payment Reference Number for a transaction.

        '
      properties:
        data:
          $ref: '#/components/schemas/TransactionPaymentReferenceNumber'
  parameters:
    transactionIdParam:
      name: transactionId
      required: true
      in: query
      description: "The `transactionId` parameter specifies the Transaction Id generated when a transaction is lodged. \n  - The `transactionId` would be returned in the `receipt` response header when submitting a transaction.\n\n  Use this as the transactionId you will pass into this call.\n\n  Query Parameter Example: `transactionId=6300000000001`\n"
      schema:
        type: string
        pattern: '[0-9]{13}'
        maxLength: 13
        minLength: 13
      examples:
        TransactionId:
          value: transactionId=6300000000001
    roleTypeParam:
      name: roleType
      required: true
      in: query
      description: "The `roletype` parameter specifies the Role type code that indicates the client's tax obligation. \nWhen you are sending Role Type in the request, please use one of the Role Type Codes listed in the table below. \n\nQuery Parameter Example: `roleType=GDMT`\n\n**Role Type Code and Description Table**\n|Role Type Code| Description    |\n|--------------|----------------|\n|GDMT         |\tGlobal and Domestic Minimum Tax |\n"
      schema:
        type: string
        enum:
        - GDMT