APG PayAPG Paydocs

Reference data

Create ABN lookups

POST/abn-lookups

Ask the register about an ABN. The answer is the lookup, nothing is stored, so keep it.

Permissions

Required permission
referenceData:query

Requires the `query` action on `referenceData` for the supplied runtime context

Request body

This body is a tagged shape: type is always "AbnlkCmdByNumber". Send it; more variants can be added, and a caller that switches on it keeps working when they are.

Discriminated by type
type = "AbnlkCmdByNumber"
abnstringrequired

The ABN, digits only. The register is asked directly, so an unknown one is a 404 from it rather than from us.

curl -X POST https://api.tst.au.apgpay.dev/abn-lookups \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "AbnlkCmdByNumber",
  "abn": "string"
}'

Responses

The response is a tagged shape: type is always "AbnlkCreateRspAttributes". Switch on it; subtypes can be added, and a client that already reads it will not break.

Discriminated by type
type = "AbnlkCreateRspAttributes"

The resource that was created.

Example
{
  "type": "AbnlkCreateRspAttributes",
  "created": {
    "type": "AbnlkViewAttributes",
    "abn": {
      "type": "AbnlkIdentifierAttributes",
      "value": "string",
      "currentIndicator": "string"
    },
    "lastUpdated": "2026-08-19",
    "entityStatus": {
      "type": "AbnlkStatusAttributes",
      "code": "string",
      "effectiveFrom": "2026-08-19",
      "effectiveTo": "2026-08-19"
    },
    "entityType": {
      "type": "AbnlkEntityTypeAttributes",
      "code": "string",
      "description": "string"
    },
    "gstStatus": {
      "type": "AbnlkPeriodAttributes",
      "effectiveFrom": "2026-08-19",
      "effectiveTo": "2026-08-19"
    },
    "asicNumber": "string",
    "legalNames": [
      {
        "type": "AbnlkNameAttributes",
        "name": "Ada Lovelace",
        "effectiveFrom": "2026-08-19",
        "effectiveTo": "2026-08-19"
      }
    ],
    "tradingNames": [
      {
        "type": "AbnlkNameAttributes",
        "name": "Ada Lovelace",
        "effectiveFrom": "2026-08-19",
        "effectiveTo": "2026-08-19"
      }
    ],
    "locations": [
      {
        "type": "AbnlkLocationAttributes",
        "state": "string",
        "postcode": "3000",
        "effectiveFrom": "2026-08-19",
        "effectiveTo": "2026-08-19"
      }
    ]
  }
}

Error responses