> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.rebateright.com.au/llms.txt.
> For full documentation content, see https://docs.rebateright.com.au/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.rebateright.com.au/_mcp/server.

# Update Encounter

POST https://api.rebateright.com.au/AIR/v1.3/encounter/update
Content-Type: application/json

Update a single encounter previously submitted via [Record Encounter](/api-reference/air/record-encounter/record-encounter). Use this to correct mistakes — wrong batch, wrong dose, wrong vaccine — for encounters your information provider originally submitted.

Identifies the encounter to update by `claimId` + `claimSeqNum` + `immEncSeqNum` (returned from Record Encounter or visible in [Immunisation History Details](/api-reference/air/individual-details/immunisation-history-details)). Only encounters where `editable: true` in the history response can be updated by your provider.

Requires an `individualIdentifier` from a prior [Identify Individual](/api-reference/air/individual-details/identify-individual) call.

For shared response patterns and the full status-code list, see [AIR Integration](/air).

#### Date format

Date fields use **DDMMYYYY** with no separators.

#### Fields you can update

Send the encounter's full new state — AIR replaces the existing encounter wholesale. Include all episodes, even unchanged ones; omitting an episode removes it.

The episode-level and encounter-level fields are the same as on [Record Encounter](/api-reference/air/record-encounter/record-encounter) (vaccine code, dose, batch, type, route, antenatal indicator, overseas flag, etc.). The vaccine-mandatory rules also apply.

#### Status Codes

| Code | Meaning |
|---|---|
| `AIR-I-1100` | Update successful. The updated `encounter` is returned. |
| `AIR-E-1005` | Validation errors (e.g. `AIR-E-1061` invalid identifier, `AIR-E-1052` encounter not found, `AIR-E-1064` not authorised to update). |


Reference: https://docs.rebateright.com.au/api-reference/air/individual-details/update-encounter

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /AIR/v1.3/encounter/update:
    post:
      operationId: update-encounter
      summary: Update Encounter
      description: >
        Update a single encounter previously submitted via [Record
        Encounter](/api-reference/air/record-encounter/record-encounter). Use
        this to correct mistakes — wrong batch, wrong dose, wrong vaccine — for
        encounters your information provider originally submitted.


        Identifies the encounter to update by `claimId` + `claimSeqNum` +
        `immEncSeqNum` (returned from Record Encounter or visible in
        [Immunisation History
        Details](/api-reference/air/individual-details/immunisation-history-details)).
        Only encounters where `editable: true` in the history response can be
        updated by your provider.


        Requires an `individualIdentifier` from a prior [Identify
        Individual](/api-reference/air/individual-details/identify-individual)
        call.


        For shared response patterns and the full status-code list, see [AIR
        Integration](/air).


        #### Date format


        Date fields use **DDMMYYYY** with no separators.


        #### Fields you can update


        Send the encounter's full new state — AIR replaces the existing
        encounter wholesale. Include all episodes, even unchanged ones; omitting
        an episode removes it.


        The episode-level and encounter-level fields are the same as on [Record
        Encounter](/api-reference/air/record-encounter/record-encounter)
        (vaccine code, dose, batch, type, route, antenatal indicator, overseas
        flag, etc.). The vaccine-mandatory rules also apply.


        #### Status Codes


        | Code | Meaning |

        |---|---|

        | `AIR-I-1100` | Update successful. The updated `encounter` is returned.
        |

        | `AIR-E-1005` | Validation errors (e.g. `AIR-E-1061` invalid
        identifier, `AIR-E-1052` encounter not found, `AIR-E-1064` not
        authorised to update). |
      tags:
        - subpackage_air.subpackage_air/individualDetails
      parameters:
        - name: x-api-key
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/AIR_Individual Details_Update
                  Encounter_Response_200
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                individualIdentifier:
                  type: string
                  description: Opaque token from a prior Identify Individual call.
                individualDateOfBirth:
                  type: string
                  description: DDMMYYYY format.
                encounter:
                  $ref: >-
                    #/components/schemas/AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaEncounter
                informationProvider:
                  $ref: >-
                    #/components/schemas/AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaInformationProvider
              required:
                - individualIdentifier
                - individualDateOfBirth
                - encounter
                - informationProvider
servers:
  - url: https://api.rebateright.com.au
  - url: https://test-api.rebateright.com.au
components:
  schemas:
    AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaEncounterEpisodesItemsVaccineType:
      type: string
      enum:
        - NIP
        - OTH
      title: >-
        AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaEncounterEpisodesItemsVaccineType
    AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaEncounterEpisodesItemsRouteOfAdministration:
      type: string
      enum:
        - PO
        - SC
        - ID
        - IM
        - NS
      title: >-
        AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaEncounterEpisodesItemsRouteOfAdministration
    AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaEncounterEpisodesItems:
      type: object
      properties:
        id:
          type: integer
        vaccineCode:
          type: string
        vaccineDose:
          type: string
        vaccineBatch:
          type: string
        vaccineType:
          $ref: >-
            #/components/schemas/AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaEncounterEpisodesItemsVaccineType
        routeOfAdministration:
          $ref: >-
            #/components/schemas/AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaEncounterEpisodesItemsRouteOfAdministration
      title: >-
        AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaEncounterEpisodesItems
    AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaEncounterImmunisationProvider:
      type: object
      properties:
        providerNumber:
          type: string
        hpioNumber:
          type: string
        hpiiNumber:
          type: string
      title: >-
        AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaEncounterImmunisationProvider
    AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaEncounter:
      type: object
      properties:
        claimId:
          type: string
          description: Claim identifier from the original Record Encounter response.
        claimSeqNum:
          type: integer
          description: Claim sequence number assigned by AIR.
        immEncSeqNum:
          type: integer
          description: Immunisation encounter sequence number assigned by AIR.
        episodes:
          type: array
          items:
            $ref: >-
              #/components/schemas/AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaEncounterEpisodesItems
          description: >-
            The new state of every episode in this encounter. See [Record
            Encounter](/api-reference/air/record-encounter/record-encounter) for
            the full episode field set.
        dateOfService:
          type: string
          description: DDMMYYYY format.
        schoolId:
          type: string
        antenatalIndicator:
          type: boolean
        administeredOverseas:
          type: boolean
        countryCode:
          type: string
          description: ICAO country code. Required when `administeredOverseas` is `true`.
        immunisationProvider:
          $ref: >-
            #/components/schemas/AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaEncounterImmunisationProvider
      required:
        - claimId
        - claimSeqNum
        - immEncSeqNum
        - episodes
        - dateOfService
      title: >-
        AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaEncounter
    AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaInformationProvider:
      type: object
      properties:
        providerNumber:
          type: string
        hpioNumber:
          type: string
          description: Optional. HPI-O. 16 digits.
        hpiiNumber:
          type: string
          description: Optional. HPI-I. 16 digits.
      required:
        - providerNumber
      title: >-
        AirV13EncounterUpdatePostRequestBodyContentApplicationJsonSchemaInformationProvider
    AirV13EncounterUpdatePostResponsesContentApplicationJsonSchemaEncounterEpisodesItemsInformation:
      type: object
      properties:
        status:
          type: string
        code:
          type: string
        text:
          type: string
      title: >-
        AirV13EncounterUpdatePostResponsesContentApplicationJsonSchemaEncounterEpisodesItemsInformation
    AirV13EncounterUpdatePostResponsesContentApplicationJsonSchemaEncounterEpisodesItems:
      type: object
      properties:
        id:
          type: integer
        vaccineBatch:
          type: string
        vaccineCode:
          type: string
        vaccineDose:
          type: string
        routeOfAdministration:
          type: string
        vaccineType:
          type: string
        information:
          $ref: >-
            #/components/schemas/AirV13EncounterUpdatePostResponsesContentApplicationJsonSchemaEncounterEpisodesItemsInformation
      title: >-
        AirV13EncounterUpdatePostResponsesContentApplicationJsonSchemaEncounterEpisodesItems
    AirV13EncounterUpdatePostResponsesContentApplicationJsonSchemaEncounter:
      type: object
      properties:
        claimId:
          type: string
        claimSeqNum:
          type: integer
        immEncSeqNum:
          type: integer
        episodes:
          type: array
          items:
            $ref: >-
              #/components/schemas/AirV13EncounterUpdatePostResponsesContentApplicationJsonSchemaEncounterEpisodesItems
        dateOfService:
          type: string
      description: >-
        The updated encounter state. Episode-level `information.code` (e.g.
        `AIR-I-1002` valid, `AIR-I-1003` dose adjusted) appears here.
      title: AirV13EncounterUpdatePostResponsesContentApplicationJsonSchemaEncounter
    AirV13EncounterUpdatePostResponsesContentApplicationJsonSchemaErrorsItems:
      type: object
      properties:
        code:
          type: string
        field:
          type: string
        message:
          type: string
      title: >-
        AirV13EncounterUpdatePostResponsesContentApplicationJsonSchemaErrorsItems
    AIR_Individual Details_Update Encounter_Response_200:
      type: object
      properties:
        statusCode:
          type: string
        codeType:
          type: string
        message:
          type: string
        encounter:
          oneOf:
            - $ref: >-
                #/components/schemas/AirV13EncounterUpdatePostResponsesContentApplicationJsonSchemaEncounter
            - type: 'null'
          description: >-
            The updated encounter state. Episode-level `information.code` (e.g.
            `AIR-I-1002` valid, `AIR-I-1003` dose adjusted) appears here.
        errors:
          type:
            - array
            - 'null'
          items:
            $ref: >-
              #/components/schemas/AirV13EncounterUpdatePostResponsesContentApplicationJsonSchemaErrorsItems
        correlationId:
          type: string
      title: AIR_Individual Details_Update Encounter_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    minorId:
      type: apiKey
      in: header
      name: x-minor-id

```

## SDK Code Examples

```python Success
import requests

url = "https://api.rebateright.com.au/AIR/v1.3/encounter/update"

payload = {
    "individualIdentifier": "wXrN7bKidsrIHzwqkDkGJHDOYBHbiH_3fEgIe4PEaESYj0qNDFRSdnqCM0BvbRF-9maImeb7tXpSC50uqA-T_wGPH8QDag8rTHC-N11jTan2OY_92X9U6Q==",
    "individualDateOfBirth": "18042016",
    "encounter": {
        "claimId": "WB021Y6$",
        "claimSeqNum": 1,
        "immEncSeqNum": 1,
        "episodes": [
            {
                "id": 1,
                "vaccineCode": "BEXO",
                "vaccineDose": "2",
                "vaccineBatch": "NEWBATCH",
                "vaccineType": "NIP"
            }
        ],
        "dateOfService": "20052026"
    },
    "informationProvider": { "providerNumber": "T39126X" }
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Success
const url = 'https://api.rebateright.com.au/AIR/v1.3/encounter/update';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"individualIdentifier":"wXrN7bKidsrIHzwqkDkGJHDOYBHbiH_3fEgIe4PEaESYj0qNDFRSdnqCM0BvbRF-9maImeb7tXpSC50uqA-T_wGPH8QDag8rTHC-N11jTan2OY_92X9U6Q==","individualDateOfBirth":"18042016","encounter":{"claimId":"WB021Y6$","claimSeqNum":1,"immEncSeqNum":1,"episodes":[{"id":1,"vaccineCode":"BEXO","vaccineDose":"2","vaccineBatch":"NEWBATCH","vaccineType":"NIP"}],"dateOfService":"20052026"},"informationProvider":{"providerNumber":"T39126X"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Success
package main

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

func main() {

	url := "https://api.rebateright.com.au/AIR/v1.3/encounter/update"

	payload := strings.NewReader("{\n  \"individualIdentifier\": \"wXrN7bKidsrIHzwqkDkGJHDOYBHbiH_3fEgIe4PEaESYj0qNDFRSdnqCM0BvbRF-9maImeb7tXpSC50uqA-T_wGPH8QDag8rTHC-N11jTan2OY_92X9U6Q==\",\n  \"individualDateOfBirth\": \"18042016\",\n  \"encounter\": {\n    \"claimId\": \"WB021Y6$\",\n    \"claimSeqNum\": 1,\n    \"immEncSeqNum\": 1,\n    \"episodes\": [\n      {\n        \"id\": 1,\n        \"vaccineCode\": \"BEXO\",\n        \"vaccineDose\": \"2\",\n        \"vaccineBatch\": \"NEWBATCH\",\n        \"vaccineType\": \"NIP\"\n      }\n    ],\n    \"dateOfService\": \"20052026\"\n  },\n  \"informationProvider\": {\n    \"providerNumber\": \"T39126X\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Success
require 'uri'
require 'net/http'

url = URI("https://api.rebateright.com.au/AIR/v1.3/encounter/update")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"individualIdentifier\": \"wXrN7bKidsrIHzwqkDkGJHDOYBHbiH_3fEgIe4PEaESYj0qNDFRSdnqCM0BvbRF-9maImeb7tXpSC50uqA-T_wGPH8QDag8rTHC-N11jTan2OY_92X9U6Q==\",\n  \"individualDateOfBirth\": \"18042016\",\n  \"encounter\": {\n    \"claimId\": \"WB021Y6$\",\n    \"claimSeqNum\": 1,\n    \"immEncSeqNum\": 1,\n    \"episodes\": [\n      {\n        \"id\": 1,\n        \"vaccineCode\": \"BEXO\",\n        \"vaccineDose\": \"2\",\n        \"vaccineBatch\": \"NEWBATCH\",\n        \"vaccineType\": \"NIP\"\n      }\n    ],\n    \"dateOfService\": \"20052026\"\n  },\n  \"informationProvider\": {\n    \"providerNumber\": \"T39126X\"\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java Success
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.rebateright.com.au/AIR/v1.3/encounter/update")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"individualIdentifier\": \"wXrN7bKidsrIHzwqkDkGJHDOYBHbiH_3fEgIe4PEaESYj0qNDFRSdnqCM0BvbRF-9maImeb7tXpSC50uqA-T_wGPH8QDag8rTHC-N11jTan2OY_92X9U6Q==\",\n  \"individualDateOfBirth\": \"18042016\",\n  \"encounter\": {\n    \"claimId\": \"WB021Y6$\",\n    \"claimSeqNum\": 1,\n    \"immEncSeqNum\": 1,\n    \"episodes\": [\n      {\n        \"id\": 1,\n        \"vaccineCode\": \"BEXO\",\n        \"vaccineDose\": \"2\",\n        \"vaccineBatch\": \"NEWBATCH\",\n        \"vaccineType\": \"NIP\"\n      }\n    ],\n    \"dateOfService\": \"20052026\"\n  },\n  \"informationProvider\": {\n    \"providerNumber\": \"T39126X\"\n  }\n}")
  .asString();
```

```php Success
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.rebateright.com.au/AIR/v1.3/encounter/update', [
  'body' => '{
  "individualIdentifier": "wXrN7bKidsrIHzwqkDkGJHDOYBHbiH_3fEgIe4PEaESYj0qNDFRSdnqCM0BvbRF-9maImeb7tXpSC50uqA-T_wGPH8QDag8rTHC-N11jTan2OY_92X9U6Q==",
  "individualDateOfBirth": "18042016",
  "encounter": {
    "claimId": "WB021Y6$",
    "claimSeqNum": 1,
    "immEncSeqNum": 1,
    "episodes": [
      {
        "id": 1,
        "vaccineCode": "BEXO",
        "vaccineDose": "2",
        "vaccineBatch": "NEWBATCH",
        "vaccineType": "NIP"
      }
    ],
    "dateOfService": "20052026"
  },
  "informationProvider": {
    "providerNumber": "T39126X"
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Success
using RestSharp;

var client = new RestClient("https://api.rebateright.com.au/AIR/v1.3/encounter/update");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"individualIdentifier\": \"wXrN7bKidsrIHzwqkDkGJHDOYBHbiH_3fEgIe4PEaESYj0qNDFRSdnqCM0BvbRF-9maImeb7tXpSC50uqA-T_wGPH8QDag8rTHC-N11jTan2OY_92X9U6Q==\",\n  \"individualDateOfBirth\": \"18042016\",\n  \"encounter\": {\n    \"claimId\": \"WB021Y6$\",\n    \"claimSeqNum\": 1,\n    \"immEncSeqNum\": 1,\n    \"episodes\": [\n      {\n        \"id\": 1,\n        \"vaccineCode\": \"BEXO\",\n        \"vaccineDose\": \"2\",\n        \"vaccineBatch\": \"NEWBATCH\",\n        \"vaccineType\": \"NIP\"\n      }\n    ],\n    \"dateOfService\": \"20052026\"\n  },\n  \"informationProvider\": {\n    \"providerNumber\": \"T39126X\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Success
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "individualIdentifier": "wXrN7bKidsrIHzwqkDkGJHDOYBHbiH_3fEgIe4PEaESYj0qNDFRSdnqCM0BvbRF-9maImeb7tXpSC50uqA-T_wGPH8QDag8rTHC-N11jTan2OY_92X9U6Q==",
  "individualDateOfBirth": "18042016",
  "encounter": [
    "claimId": "WB021Y6$",
    "claimSeqNum": 1,
    "immEncSeqNum": 1,
    "episodes": [
      [
        "id": 1,
        "vaccineCode": "BEXO",
        "vaccineDose": "2",
        "vaccineBatch": "NEWBATCH",
        "vaccineType": "NIP"
      ]
    ],
    "dateOfService": "20052026"
  ],
  "informationProvider": ["providerNumber": "T39126X"]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/AIR/v1.3/encounter/update")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

```python Invalid Identifier
import requests

url = "https://api.rebateright.com.au/AIR/v1.3/encounter/update"

payload = {
    "individualIdentifier": "INVALID",
    "individualDateOfBirth": "18042016",
    "encounter": {
        "claimId": "WB021Y6$",
        "claimSeqNum": 1,
        "immEncSeqNum": 1,
        "episodes": [
            {
                "id": 1,
                "vaccineCode": "BEXO",
                "vaccineDose": "1",
                "vaccineBatch": "BATCH",
                "vaccineType": "NIP"
            }
        ],
        "dateOfService": "20052026"
    },
    "informationProvider": { "providerNumber": "T39126X" }
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Invalid Identifier
const url = 'https://api.rebateright.com.au/AIR/v1.3/encounter/update';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"individualIdentifier":"INVALID","individualDateOfBirth":"18042016","encounter":{"claimId":"WB021Y6$","claimSeqNum":1,"immEncSeqNum":1,"episodes":[{"id":1,"vaccineCode":"BEXO","vaccineDose":"1","vaccineBatch":"BATCH","vaccineType":"NIP"}],"dateOfService":"20052026"},"informationProvider":{"providerNumber":"T39126X"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Invalid Identifier
package main

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

func main() {

	url := "https://api.rebateright.com.au/AIR/v1.3/encounter/update"

	payload := strings.NewReader("{\n  \"individualIdentifier\": \"INVALID\",\n  \"individualDateOfBirth\": \"18042016\",\n  \"encounter\": {\n    \"claimId\": \"WB021Y6$\",\n    \"claimSeqNum\": 1,\n    \"immEncSeqNum\": 1,\n    \"episodes\": [\n      {\n        \"id\": 1,\n        \"vaccineCode\": \"BEXO\",\n        \"vaccineDose\": \"1\",\n        \"vaccineBatch\": \"BATCH\",\n        \"vaccineType\": \"NIP\"\n      }\n    ],\n    \"dateOfService\": \"20052026\"\n  },\n  \"informationProvider\": {\n    \"providerNumber\": \"T39126X\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Invalid Identifier
require 'uri'
require 'net/http'

url = URI("https://api.rebateright.com.au/AIR/v1.3/encounter/update")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"individualIdentifier\": \"INVALID\",\n  \"individualDateOfBirth\": \"18042016\",\n  \"encounter\": {\n    \"claimId\": \"WB021Y6$\",\n    \"claimSeqNum\": 1,\n    \"immEncSeqNum\": 1,\n    \"episodes\": [\n      {\n        \"id\": 1,\n        \"vaccineCode\": \"BEXO\",\n        \"vaccineDose\": \"1\",\n        \"vaccineBatch\": \"BATCH\",\n        \"vaccineType\": \"NIP\"\n      }\n    ],\n    \"dateOfService\": \"20052026\"\n  },\n  \"informationProvider\": {\n    \"providerNumber\": \"T39126X\"\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java Invalid Identifier
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.rebateright.com.au/AIR/v1.3/encounter/update")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"individualIdentifier\": \"INVALID\",\n  \"individualDateOfBirth\": \"18042016\",\n  \"encounter\": {\n    \"claimId\": \"WB021Y6$\",\n    \"claimSeqNum\": 1,\n    \"immEncSeqNum\": 1,\n    \"episodes\": [\n      {\n        \"id\": 1,\n        \"vaccineCode\": \"BEXO\",\n        \"vaccineDose\": \"1\",\n        \"vaccineBatch\": \"BATCH\",\n        \"vaccineType\": \"NIP\"\n      }\n    ],\n    \"dateOfService\": \"20052026\"\n  },\n  \"informationProvider\": {\n    \"providerNumber\": \"T39126X\"\n  }\n}")
  .asString();
```

```php Invalid Identifier
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.rebateright.com.au/AIR/v1.3/encounter/update', [
  'body' => '{
  "individualIdentifier": "INVALID",
  "individualDateOfBirth": "18042016",
  "encounter": {
    "claimId": "WB021Y6$",
    "claimSeqNum": 1,
    "immEncSeqNum": 1,
    "episodes": [
      {
        "id": 1,
        "vaccineCode": "BEXO",
        "vaccineDose": "1",
        "vaccineBatch": "BATCH",
        "vaccineType": "NIP"
      }
    ],
    "dateOfService": "20052026"
  },
  "informationProvider": {
    "providerNumber": "T39126X"
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Invalid Identifier
using RestSharp;

var client = new RestClient("https://api.rebateright.com.au/AIR/v1.3/encounter/update");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"individualIdentifier\": \"INVALID\",\n  \"individualDateOfBirth\": \"18042016\",\n  \"encounter\": {\n    \"claimId\": \"WB021Y6$\",\n    \"claimSeqNum\": 1,\n    \"immEncSeqNum\": 1,\n    \"episodes\": [\n      {\n        \"id\": 1,\n        \"vaccineCode\": \"BEXO\",\n        \"vaccineDose\": \"1\",\n        \"vaccineBatch\": \"BATCH\",\n        \"vaccineType\": \"NIP\"\n      }\n    ],\n    \"dateOfService\": \"20052026\"\n  },\n  \"informationProvider\": {\n    \"providerNumber\": \"T39126X\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Invalid Identifier
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "individualIdentifier": "INVALID",
  "individualDateOfBirth": "18042016",
  "encounter": [
    "claimId": "WB021Y6$",
    "claimSeqNum": 1,
    "immEncSeqNum": 1,
    "episodes": [
      [
        "id": 1,
        "vaccineCode": "BEXO",
        "vaccineDose": "1",
        "vaccineBatch": "BATCH",
        "vaccineType": "NIP"
      ]
    ],
    "dateOfService": "20052026"
  ],
  "informationProvider": ["providerNumber": "T39126X"]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/AIR/v1.3/encounter/update")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```