> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mygigsters.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Verify ABN

> This endpoint verifies an Australian Business Number (ABN) and returns detailed business registration information including entity name, status, address, and GST registration details.

### Headers

**X-API-Version** `string` *required* (default: 1.2)

The API version to use. Supported versions are `1.1` and `1.2`.

### Request Body Parameters

**abn** `string` *required*

The Australian Business Number to verify. Can include spaces (e.g. "34 623 710 896").

### Response Body

| Field | Type | Description |
| - | - | - |
| `message` | string | A message describing the response status (e.g. "Verification Result"). |
| `data`object | object | The ABN verification result data. |
| ↳`Abn` | string | The ABN that was verified. |
| ↳`AbnStatus` | string | The current status of the ABN (e.g. "Active", "Cancelled"). |
| ↳`AbnStatusEffectiveFrom` | string | The date from which the ABN status is effective (YYYY-MM-DD). |
| ↳`Acn` | string | The Australian Company Number associated with the ABN. |
| ↳`AddressDate` | string | The date when the address was last updated (YYYY-MM-DD). |
| ↳`AddressPostcode` | string | The postcode of the registered business address. |
| ↳`AddressState` | string | The state of the registered business address (e.g. "VIC", "NSW"). |
| ↳`BusinessName` | array | A list of business names registered under this ABN. |
| ↳`EntityName` | string | The legal entity name associated with the ABN. |
| ↳`EntityTypeCode` | string | The entity type code (e.g. "PRV" for private company). |
| ↳`EntityTypeName` | string | The full entity type name (e.g. "Australian Private Company"). |
| ↳`Gst` | string | The date from which the entity is registered for GST (YYYY-MM-DD). |
| ↳`Message` | string | Additional message from the verification service (empty if no issues). |

### Response Codes

| Code | Description |
| - | - |
| 200 | The ABN was successfully verified and the business details are returned. |
| 400 | Bad Request. The ABN format is invalid or missing. |
| 401 | Unauthorized. Missing or invalid credentials. |
| 500 | Internal Server Error. |

```bash cURL theme={null}
curl -X POST https://qa-payments.mygigsters.com.au/api/v1/verify/abn \
  -u "YOUR_UUID:YOUR_SECRET" \
  -H "X-API-Version: 1.2" \
  -H "Content-Type: application/json" \
  -d '{
  "abn": "34 623 710 896"
}'
```

```javascript Node.js theme={null}
const response = await fetch("https://qa-payments.mygigsters.com.au/api/v1/verify/abn", {
  method: "POST",
  headers: {
    Authorization: "Basic " + Buffer.from("YOUR_UUID:YOUR_SECRET").toString("base64"),
    "X-API-Version": "1.2",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "abn": "34 623 710 896"
  }),
});

const data = await response.json();
console.log(data);
```

```python Python theme={null}
import requests

response = requests.post(
    "https://qa-payments.mygigsters.com.au/api/v1/verify/abn",
    auth=("YOUR_UUID", "YOUR_SECRET"),
    headers={
        "X-API-Version": "1.2",
    },
    json={
        "abn": "34 623 710 896",
    },
)

print(response.json())
```

```ruby Ruby theme={null}
require "net/http"
require "json"
require "uri"

uri = URI("https://qa-payments.mygigsters.com.au/api/v1/verify/abn")
request = Net::HTTP::Post.new(uri)
request.basic_auth("YOUR_UUID", "YOUR_SECRET")
request["X-API-Version"] = "1.2"
request["Content-Type"] = "application/json"
request.body = <<~JSON
  {
    "abn": "34 623 710 896"
  }
JSON

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
  http.request(request)
end

puts JSON.parse(response.body)
```

```php PHP theme={null}
<?php

$ch = curl_init("https://qa-payments.mygigsters.com.au/api/v1/verify/abn");

curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_USERPWD => "YOUR_UUID:YOUR_SECRET",
    CURLOPT_HTTPHEADER => [
        "X-API-Version: 1.2",
        "Content-Type: application/json",
    ],
    CURLOPT_POSTFIELDS => <<<'JSON'
{
  "abn": "34 623 710 896"
}
JSON,
]);

$response = curl_exec($ch);
curl_close($ch);

print_r(json_decode($response, true));
```

```java Java theme={null}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.util.Base64;

public class Example {
    public static void main(String[] args) throws Exception {
        String credentials = Base64.getEncoder()
            .encodeToString("YOUR_UUID:YOUR_SECRET".getBytes());

        String body = String.join("\n",
            "{",
            "  \"abn\": \"34 623 710 896\"",
            "}"
        );

        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create("https://qa-payments.mygigsters.com.au/api/v1/verify/abn"))
            .header("Authorization", "Basic " + credentials)
            .header("X-API-Version", "1.2")
            .header("Content-Type", "application/json")
            .method("POST", HttpRequest.BodyPublishers.ofString(body))
            .build();

        HttpResponse<String> response = HttpClient.newHttpClient()
            .send(request, HttpResponse.BodyHandlers.ofString());

        System.out.println(response.body());
    }
}
```

```go Go theme={null}
package main

import (
	"fmt"
	"io"
	"net/http"
	"strings"
)

func main() {
	body := strings.NewReader(`{
  "abn": "34 623 710 896"
}`)

	req, err := http.NewRequest("POST", "https://qa-payments.mygigsters.com.au/api/v1/verify/abn", body)
	if err != nil {
		panic(err)
	}
	req.SetBasicAuth("YOUR_UUID", "YOUR_SECRET")
	req.Header.Set("X-API-Version", "1.2")
	req.Header.Set("Content-Type", "application/json")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	data, _ := io.ReadAll(res.Body)
	fmt.Println(string(data))
}
```

```csharp .NET theme={null}
using System.Net.Http.Headers;
using System.Text;

using var client = new HttpClient();

var request = new HttpRequestMessage(HttpMethod.Post, "https://qa-payments.mygigsters.com.au/api/v1/verify/abn");
request.Headers.Authorization = new AuthenticationHeaderValue(
    "Basic", Convert.ToBase64String(Encoding.UTF8.GetBytes("YOUR_UUID:YOUR_SECRET")));
request.Headers.Add("X-API-Version", "1.2");
request.Content = new StringContent(@"{
  ""abn"": ""34 623 710 896""
}", Encoding.UTF8, "application/json");

var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());
```

```json Response theme={null}
{
  "message": "Verification Result",
  "data": {
    "Abn": "34 623 710 896",
    "AbnStatus": "Active",
    "AbnStatusEffectiveFrom": "2018-01-08",
    "Acn": "623710896",
    "AddressDate": "2023-07-01",
    "AddressPostcode": "3029",
    "AddressState": "VIC",
    "BusinessName": [
      "MyGigsters"
    ],
    "EntityName": "MYGIGSTERS TECHNOLOGIES PTY LTD",
    "EntityTypeCode": "PRV",
    "EntityTypeName": "Australian Private Company",
    "Gst": "2021-04-29",
    "Message": ""
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.