Locations

Locations #

location in v2 the replacement terminology for auth_group in v1

As explained in detail here each vendor should organise their customers into locations or groups, generally 1 for each practice site or business, each linked to a unique ‘MinorID’ or ‘LocationID’. The MinorID looks like SAP12345 and is a unique identifier used in electronic claiming to show where the claim is coming from. The location is our unique reference for the MinorID.

IMPORTANT - Minor IDs issued in development will not be used in production, do not use the development Minor ID to register providers with Medicare!

GET - List all locations #

Get a current list of all location for a vendor

Endpoint:

{{base_url}}/{{version}}/locations

Headers:

HeaderValue
Acceptapplication/json
AuthorizationBearer {{oauth_token}}

Example Request:

curl --location 'https://sandbox.claiming.com.au/v2/locations' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer '

Example Response:

Body:

{
  "status": "OK",
  "items": [
    {
      "id": 1442,
      "name": "Test Location",
      "active": false,
      "minorID": "SAP01078",
      "providers": [
        {
          "id": 1921,
          "providerNumber": "2433411Y",
          "name": "test provider",
          "active": true
        }
      ]
    },
    {
      "id": 1977,
      "name": "Second Test Location",
      "active": true,
      "minorID": "SAP01609",
      "providers": []
    }
  ],
  "total": 2,
  "offset": 0
}

Headers:

HeaderValue
Servernginx/1.19.3T
DateTue, 08 Jun 2021 04:49:28 GMT
Content-Typeapplication/json
Content-Length1792
Connectionkeep-alive
Access-Control-Allow-Origin*
Access-Control-Allow-MethodsGET, POST, OPTIONS

POST - Add a new location #

When you create a new location, the API will generate a unique Minor ID and UID for this site and return them in the response.

You can use either the Minor ID or the UID to refer to a location in a URL or parameter. We recommend using the actual Minor ID for simplicity.

IMPORTANT - the Minor IDs issued in development will not be used in production, do not use the development Minor ID to register providers with Medicare!

Endpoint:

{{base_url}}/{{version}}/locations

Headers:

HeaderValue
Acceptapplication/json
Content-Typeapplication/json
AuthorizationBearer {{oauth_token}}

Body:

{
	"name": "My New Location"
}

Example Request:

curl --location 'https://sandbox.claiming.com.au/v2/locations' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ' \
--data '{
	"name": "My New Location"
}'

Example Response:

Body:

{
  "id": 2059,
  "minorID": "SAP01691",
  "keystore": null,
  "name": "My New Location",
  "providers": [],
  "active": true
}
HeaderValue
Servernginx/1.19.3T
DateTue, 08 Jun 2021 04:49:28 GMT
Content-Typeapplication/json
Content-Length114
Connectionkeep-alive
Access-Control-Allow-Origin*
Access-Control-Allow-MethodsGET, POST, OPTIONS

PUT - Update an existing location #

You can change the name of the location, and toggle its ‘active’ flag.

Endpoint:

{{base_url}}/{{version}}/locations/{{location_id}}

Headers:

HeaderValue
Acceptapplication/json
Content-Typeapplication/json
AuthorizationBearer {{oauth_token}}

Body:

{
	"name": "My Updated Location",
	"active": true
}

Example Request:

curl --location --request PUT 'https://sandbox.claiming.com.au/v2/locations/25' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ' \
--data '{
	"name": "My Updated Location",
	"active": true
}'

Example Response:

Body:

{
  "id": 1887,
  "minorID": "SAP01519",
  "keystore": null,
  "name": "My Updated Location",
  "providers": [],
  "active": true,
  "address": null,
  "phoneNumber": null
}
HeaderValue
Servernginx/1.19.3T
DateTue, 08 Jun 2021 04:49:28 GMT
Content-Typeapplication/json
Content-Length156
Connectionclose
Access-Control-Allow-Origin*
Access-Control-Allow-MethodsGET, POST, OPTIONS
Strict-Transport-Securitymax-age=3153600; includeSubDomains; preload
X-XSS-Protection1; mode=block
X-Content-Type-Optionsnosniff
X-Frame-OptionsSAMEORIGIN