Fetch a PDF report

Fetch a PDF report #

You can also request a report of the individual’s immunisation details as a PDF. Note the header should have an accept PDF

POST - Fetch immunisation details as a PDF #

The same rules apply for identifying an individual:

  • Medicare Card and IRN is sufficient if you have it
  • First name, last name, date of birth and postcode will also work.

The response to this request is a PDF which you will need to save and present to the end user.

{{base_url}}/{{version}}/air/individual/pdf?location={{location_id}}

Headers

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

Params

Paramvalue
location{{location_id}}

Body

{
    "_TestCase": "Fetch immunisation details as a PDF",
    "provider": {
        "information": "2433411Y"
    },
    "patient": {
        "dateOfBirth": "2012-04-17",
        "name": {
            "family": "Edwards"
        },
        "medicare": {
            "number": "2953701051",
            "ref": 2
        }
    }
}

Example Request:

curl --location -g 'https://sandbox.claiming.com.au/v2/air/individual/pdf?auth_group={{auth_group}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ' \
--header 'Accept: application/pdf' \
--data '{
    "_TestCase": "Fetch immunisation details as a PDF",
    "provider": {
        "information": "2433411Y"
    },
    "patient": {
        "dateOfBirth": "2012-04-17",
        "name": {
            "family": "Edwards"
        },
        "medicare": {
            "number": "2953701051",
            "ref": 2
        }
    }
}'

Example Response:

Body:

PDF doc

Headers:

HeaderValue
Servernginx/1.19.3
DateTue, 08 Jun 2021 04:49:28 GMT
Content-Typeapplication/pdf
Content-Length142540
Connectionkeep-alive
Content-Dispositionattachment; filename=“2433411Y_Edwards_27022021035957.pdf”
Access-Control-Allow-Origin*
Access-Control-Allow-MethodsGET, POST, OPTIONS