> 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 AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.rebateright.com.au/_mcp/server.

# Lodgement Advice (PDF)

POST https://test-api.rebateright.com.au/PatientClaimLodgementAdvice
Content-Type: application/json

**What do I give the claimant when a patient claim is pended?**

The claimant gets the Lodgement Advice. This endpoint produces it as a PDF, in the wording Services
Australia sets, with the claim's details filled in.

Test environment only. Services Australia is certifying this service, and it reaches production once certified.

Services Australia requires the location to give the claimant a printed statement for each
interactive patient claim. This advice is for a claim that Medicare has pended, with `status`
`MEDICARE_PENDED`, for an operator to assess. A `MEDICARE_PENDABLE` claim gets no advice until you
pend it, as [Pendable Claims](/patient-claim-interactive#pendable-claims) describes.
[Printed statements](/services-australia-requirements#printed-statements) says which statement each
outcome needs.

| You send                                                                          | You get                           | Then                                                                                                    |
| --------------------------------------------------------------------------------- | --------------------------------- | ------------------------------------------------------------------------------------------------------- |
| The claim you lodged, Medicare's response, and the names the claim does not carry | The **Lodgement Advice** as a PDF | Print it for the claimant. The location may keep its own copy. Medicare tells the claimant the outcome. |

## What the PDF carries

The PDF carries the header Services Australia sets, the Location ID and claim reference, the
location, the patient and claimant, how the claim was submitted, the providers and referral, each
service with its charge, the total, the payment details, the claimant declaration and the privacy
notice. The static wording follows the Patient Claim Interactive specification word for word, with
the Acts in italics. When the claimant has `eftDetails`, the PDF also carries their authority to pay
the benefit into that account. The footer on each page records the date and time RebateRight made the
PDF.

**Claim reference.** The PDF prints Medicare's `claimId` as the **Claim Reference**. The `claimId`
is the Location ID followed by the date and time of lodgement, which is how Services Australia
defines the claim reference.

## Request body

Send the request you lodged at an [Interactive Patient Claim](/api-reference/medicare-claiming/interactive-patient-claims/interactive-patient-claim-general)
endpoint, with the `status` and `claimAssessment` from Medicare's response beside
`patientClaimInteractive`. Add `statementDetails` for the location and the names the claim does not
carry. This endpoint reads the fields below and ignores the rest. It sends nothing to Medicare.

`status` must be `MEDICARE_PENDED`. For an assessed claim, use
[Statement of Claim and Benefit Payment (PDF)](/api-reference/medicare-claiming/interactive-patient-claims/statement-of-claim-and-benefit-payment-pdf).

## Location on the PDF

The PDF prints the **`x-minor-id`** request header as its **Location ID**.

## Response

| Status | Content type      | Meaning                                                                                                                                                                             |
| ------ | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `200`  | `application/pdf` | The advice, offered as the download **`PatientClaimLodgementAdvice.pdf`**.                                                                                                          |
| `400`  | `text/plain`      | The JSON is invalid, a field has the wrong type or value, a required field or the `x-minor-id` header is missing, or `status` is not `MEDICARE_PENDED`. The body names the problem. |

Reference: https://docs.rebateright.com.au/api-reference/medicare-claiming/interactive-patient-claims/lodgement-advice-pdf

## Authentication

- `x-api-key` header (required) — API Key authentication via header
- `x-minor-id` header (required) — Your Minor ID is 3 uppercase letters followed by 5 digits, such as `MDE00000`. Send the Minor ID exactly as issued. A malformed value returns `400` with the text `The Minor ID is not valid.` on every endpoint.

## Servers

- `https://test-api.rebateright.com.au` (Test, default)
- `https://api.rebateright.com.au` (Production)

## Request

### Headers

- `x-minor-id` (string, required) — The Minor ID of the clinic you act for. See [Keys, Minor ID and environments](/keys-and-environments).

### Body (application/json)

This endpoint expects an object.

- `patientClaimInteractive` (map from string to any, required) — The `patientClaimInteractive` object you lodged, unchanged. `medicalEvent` needs at least 1 medical event. Most fields print as you sent them. These print in their own form: | Field | On the PDF | |---|---| | `chargeAmount` and `patientContribAmount` | In dollars, such as `$25.05`, with a total of each | | `hospitalInd` `Y` | `*` after the item number | | `numberOfPatientsSeen` | After the item number, as `23/2` | | `medicalEventTime` | Under the date of service | | `referral.periodCode` | `N` prints `period` in months, `I` prints Indefinite, and `S` prints `statementDetails.referralPeriodMonths` in months | | `referralOverrideCode` | `E` prints Emergency referral, `L` prints Lost referral, and `H` prints Referral within, then `statementDetails.hospitalName`, or the facility ID when you leave the name out | | `accountPaidInd` | The account is fully paid: YES or NO | | `claimant.residentialAddress` | Under the claimant's details. Correspondence goes to the ABOVE ADDRESS when you send it, and to the ADDRESS HELD BY MEDICARE when you do not | | `claimant.eftDetails` | The claimant's authority to pay into that account, with its BSB, number and name | Each service's notations print in its Description of Service, in Services Australia's form: `aftercareOverrideInd` as NNAC, `accessionDateTime` as A-, `collectionDateTime` as C-, `duplicateServiceOverrideInd` as NDS, `fieldQuantity` as FQty-, `lspNumber` as LSPNum-, `multipleProcedureOverrideInd` as MPO, `rule3ExemptInd` as R3Ex, `restrictiveOverrideCode` as its meaning, `selfDeemedCode` as sent, `s4b3ExemptInd` as S4b3Ex, `scpId` as SCPId-, and `text` and `timeDuration` as sent. When the claimant is the patient, the claimant's name, date of birth and card print blank, because Services Australia asks for them only when the patient is not the claimant.
- `status` (enum, required) — The `status` from Medicare's response. It must be `MEDICARE_PENDED`.
  - Allowed values: `MEDICARE_PENDED`
- `claimAssessment` (map from string to any, required) — The `claimAssessment` object from Medicare's response, unchanged. The PDF prints `claimId` as the Claim Reference.
- `statementDetails` (PatientClaimLodgementAdvicePostRequestBodyContentApplicationJsonSchemaStatementDetails, optional) — Details Services Australia requires on the advice that the claim does not carry. Send them so the advice names the location and each provider. A field you leave out prints as a blank.

## Response

### 200

The Lodgement Advice as a PDF, named `PatientClaimLodgementAdvice.pdf`.

- File download.

## Types

### PatientClaimLodgementAdvicePostRequestBodyContentApplicationJsonSchemaStatementDetails

Details Services Australia requires on the advice that the claim does not carry. Send them so the advice names the location and each provider. A field you leave out prints as a blank.

- `locationName` (string, optional) — The location's name, printed under **Servicing Location**.
- `locationAddress` (string, optional) — The location's address, printed under the location's name.
- `locationPhoneNumber` (string, optional) — Optional. The location's phone number, printed under its address.
- `servicingProviderName` (string, optional) — The servicing provider's name, printed beside **Servicing Provider Name**.
- `payeeProviderName` (string, optional) — The payee provider's name, printed beside **Payee Provider** when the claim has a `payeeProvider`.
- `referringProviderName` (string, optional) — The requesting or referring provider's name, printed when the claim has a `referral`.
- `hospitalName` (string, optional) — The hospital's name, printed after Referral within when `referralOverrideCode` is `H`.
- `referralPeriodMonths` (integer, optional) — The length of a standard referral in months, required when `referral.periodCode` is `S`. A standard referral runs 12 months when a GP refers, and 3 months when a specialist refers.

## Examples

### Pathology Claim

**Request**

```json
{
  "patientClaimInteractive": {
    "accountPaidInd": "Y",
    "authorisationDate": "2026-04-13",
    "claimant": {
      "identity": {
        "dateOfBirth": "2009-02-08",
        "familyName": "FLETCHER",
        "givenName": "Clint"
      },
      "medicare": {
        "memberNumber": "4951525561",
        "memberRefNumber": "3"
      }
    },
    "medicalEvent": [
      {
        "id": "01",
        "medicalEventDate": "2025-09-01",
        "service": [
          {
            "chargeAmount": "2505",
            "id": "1001",
            "itemNumber": "65120",
            "scpId": "00001"
          }
        ]
      }
    ],
    "patient": {
      "identity": {
        "dateOfBirth": "2009-02-08",
        "familyName": "FLETCHER",
        "givenName": "Clint"
      },
      "medicare": {
        "memberNumber": "4951525561",
        "memberRefNumber": "3"
      }
    },
    "referral": {
      "issueDate": "2026-01-01",
      "provider": {
        "providerNumber": "2447781L"
      },
      "typeCode": "P"
    },
    "serviceProvider": {
      "providerNumber": "2446081F"
    },
    "submissionAuthorityInd": "Y"
  },
  "status": "MEDICARE_PENDED",
  "claimAssessment": {
    "claimId": "MDE0000028112516495485",
    "medicalEvent": [
      {
        "eventDate": "2025-09-01",
        "id": "01",
        "service": [
          {
            "assessmentCode": "",
            "chargeAmount": "2505",
            "id": "1001",
            "itemNumber": "65120"
          }
        ]
      }
    ]
  },
  "statementDetails": {
    "locationName": "<locationName>",
    "locationAddress": "<locationAddress>",
    "servicingProviderName": "GENEVIEVE GALLOWAY",
    "referringProviderName": "GWENDA HUNTER"
  }
}
```

**SDK Code**

```python Pathology Claim
import requests

url = "https://test-api.rebateright.com.au/PatientClaimLodgementAdvice"

payload = {
    "patientClaimInteractive": {
        "accountPaidInd": "Y",
        "authorisationDate": "2026-04-13",
        "claimant": {
            "identity": {
                "dateOfBirth": "2009-02-08",
                "familyName": "FLETCHER",
                "givenName": "Clint"
            },
            "medicare": {
                "memberNumber": "4951525561",
                "memberRefNumber": "3"
            }
        },
        "medicalEvent": [
            {
                "id": "01",
                "medicalEventDate": "2025-09-01",
                "service": [
                    {
                        "chargeAmount": "2505",
                        "id": "1001",
                        "itemNumber": "65120",
                        "scpId": "00001"
                    }
                ]
            }
        ],
        "patient": {
            "identity": {
                "dateOfBirth": "2009-02-08",
                "familyName": "FLETCHER",
                "givenName": "Clint"
            },
            "medicare": {
                "memberNumber": "4951525561",
                "memberRefNumber": "3"
            }
        },
        "referral": {
            "issueDate": "2026-01-01",
            "provider": { "providerNumber": "2447781L" },
            "typeCode": "P"
        },
        "serviceProvider": { "providerNumber": "2446081F" },
        "submissionAuthorityInd": "Y"
    },
    "status": "MEDICARE_PENDED",
    "claimAssessment": {
        "claimId": "MDE0000028112516495485",
        "medicalEvent": [
            {
                "eventDate": "2025-09-01",
                "id": "01",
                "service": [
                    {
                        "assessmentCode": "",
                        "chargeAmount": "2505",
                        "id": "1001",
                        "itemNumber": "65120"
                    }
                ]
            }
        ]
    },
    "statementDetails": {
        "locationName": "<locationName>",
        "locationAddress": "<locationAddress>",
        "servicingProviderName": "GENEVIEVE GALLOWAY",
        "referringProviderName": "GWENDA HUNTER"
    }
}
headers = {
    "x-minor-id": "<minorId>",
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Pathology Claim
const url = 'https://test-api.rebateright.com.au/PatientClaimLodgementAdvice';
const options = {
  method: 'POST',
  headers: {
    'x-minor-id': '<minorId>',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: '{"patientClaimInteractive":{"accountPaidInd":"Y","authorisationDate":"2026-04-13","claimant":{"identity":{"dateOfBirth":"2009-02-08","familyName":"FLETCHER","givenName":"Clint"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"3"}},"medicalEvent":[{"id":"01","medicalEventDate":"2025-09-01","service":[{"chargeAmount":"2505","id":"1001","itemNumber":"65120","scpId":"00001"}]}],"patient":{"identity":{"dateOfBirth":"2009-02-08","familyName":"FLETCHER","givenName":"Clint"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"3"}},"referral":{"issueDate":"2026-01-01","provider":{"providerNumber":"2447781L"},"typeCode":"P"},"serviceProvider":{"providerNumber":"2446081F"},"submissionAuthorityInd":"Y"},"status":"MEDICARE_PENDED","claimAssessment":{"claimId":"MDE0000028112516495485","medicalEvent":[{"eventDate":"2025-09-01","id":"01","service":[{"assessmentCode":"","chargeAmount":"2505","id":"1001","itemNumber":"65120"}]}]},"statementDetails":{"locationName":"<locationName>","locationAddress":"<locationAddress>","servicingProviderName":"GENEVIEVE GALLOWAY","referringProviderName":"GWENDA HUNTER"}}'
};

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

```go Pathology Claim
package main

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

func main() {

	url := "https://test-api.rebateright.com.au/PatientClaimLodgementAdvice"

	payload := strings.NewReader("{\n  \"patientClaimInteractive\": {\n    \"accountPaidInd\": \"Y\",\n    \"authorisationDate\": \"2026-04-13\",\n    \"claimant\": {\n      \"identity\": {\n        \"dateOfBirth\": \"2009-02-08\",\n        \"familyName\": \"FLETCHER\",\n        \"givenName\": \"Clint\"\n      },\n      \"medicare\": {\n        \"memberNumber\": \"4951525561\",\n        \"memberRefNumber\": \"3\"\n      }\n    },\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"medicalEventDate\": \"2025-09-01\",\n        \"service\": [\n          {\n            \"chargeAmount\": \"2505\",\n            \"id\": \"1001\",\n            \"itemNumber\": \"65120\",\n            \"scpId\": \"00001\"\n          }\n        ]\n      }\n    ],\n    \"patient\": {\n      \"identity\": {\n        \"dateOfBirth\": \"2009-02-08\",\n        \"familyName\": \"FLETCHER\",\n        \"givenName\": \"Clint\"\n      },\n      \"medicare\": {\n        \"memberNumber\": \"4951525561\",\n        \"memberRefNumber\": \"3\"\n      }\n    },\n    \"referral\": {\n      \"issueDate\": \"2026-01-01\",\n      \"provider\": {\n        \"providerNumber\": \"2447781L\"\n      },\n      \"typeCode\": \"P\"\n    },\n    \"serviceProvider\": {\n      \"providerNumber\": \"2446081F\"\n    },\n    \"submissionAuthorityInd\": \"Y\"\n  },\n  \"status\": \"MEDICARE_PENDED\",\n  \"claimAssessment\": {\n    \"claimId\": \"MDE0000028112516495485\",\n    \"medicalEvent\": [\n      {\n        \"eventDate\": \"2025-09-01\",\n        \"id\": \"01\",\n        \"service\": [\n          {\n            \"assessmentCode\": \"\",\n            \"chargeAmount\": \"2505\",\n            \"id\": \"1001\",\n            \"itemNumber\": \"65120\"\n          }\n        ]\n      }\n    ]\n  },\n  \"statementDetails\": {\n    \"locationName\": \"<locationName>\",\n    \"locationAddress\": \"<locationAddress>\",\n    \"servicingProviderName\": \"GENEVIEVE GALLOWAY\",\n    \"referringProviderName\": \"GWENDA HUNTER\"\n  }\n}")

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

	req.Header.Add("x-minor-id", "<minorId>")
	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 Pathology Claim
require 'uri'
require 'net/http'

url = URI("https://test-api.rebateright.com.au/PatientClaimLodgementAdvice")

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

request = Net::HTTP::Post.new(url)
request["x-minor-id"] = '<minorId>'
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"patientClaimInteractive\": {\n    \"accountPaidInd\": \"Y\",\n    \"authorisationDate\": \"2026-04-13\",\n    \"claimant\": {\n      \"identity\": {\n        \"dateOfBirth\": \"2009-02-08\",\n        \"familyName\": \"FLETCHER\",\n        \"givenName\": \"Clint\"\n      },\n      \"medicare\": {\n        \"memberNumber\": \"4951525561\",\n        \"memberRefNumber\": \"3\"\n      }\n    },\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"medicalEventDate\": \"2025-09-01\",\n        \"service\": [\n          {\n            \"chargeAmount\": \"2505\",\n            \"id\": \"1001\",\n            \"itemNumber\": \"65120\",\n            \"scpId\": \"00001\"\n          }\n        ]\n      }\n    ],\n    \"patient\": {\n      \"identity\": {\n        \"dateOfBirth\": \"2009-02-08\",\n        \"familyName\": \"FLETCHER\",\n        \"givenName\": \"Clint\"\n      },\n      \"medicare\": {\n        \"memberNumber\": \"4951525561\",\n        \"memberRefNumber\": \"3\"\n      }\n    },\n    \"referral\": {\n      \"issueDate\": \"2026-01-01\",\n      \"provider\": {\n        \"providerNumber\": \"2447781L\"\n      },\n      \"typeCode\": \"P\"\n    },\n    \"serviceProvider\": {\n      \"providerNumber\": \"2446081F\"\n    },\n    \"submissionAuthorityInd\": \"Y\"\n  },\n  \"status\": \"MEDICARE_PENDED\",\n  \"claimAssessment\": {\n    \"claimId\": \"MDE0000028112516495485\",\n    \"medicalEvent\": [\n      {\n        \"eventDate\": \"2025-09-01\",\n        \"id\": \"01\",\n        \"service\": [\n          {\n            \"assessmentCode\": \"\",\n            \"chargeAmount\": \"2505\",\n            \"id\": \"1001\",\n            \"itemNumber\": \"65120\"\n          }\n        ]\n      }\n    ]\n  },\n  \"statementDetails\": {\n    \"locationName\": \"<locationName>\",\n    \"locationAddress\": \"<locationAddress>\",\n    \"servicingProviderName\": \"GENEVIEVE GALLOWAY\",\n    \"referringProviderName\": \"GWENDA HUNTER\"\n  }\n}"

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

```java Pathology Claim
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://test-api.rebateright.com.au/PatientClaimLodgementAdvice")
  .header("x-minor-id", "<minorId>")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"patientClaimInteractive\": {\n    \"accountPaidInd\": \"Y\",\n    \"authorisationDate\": \"2026-04-13\",\n    \"claimant\": {\n      \"identity\": {\n        \"dateOfBirth\": \"2009-02-08\",\n        \"familyName\": \"FLETCHER\",\n        \"givenName\": \"Clint\"\n      },\n      \"medicare\": {\n        \"memberNumber\": \"4951525561\",\n        \"memberRefNumber\": \"3\"\n      }\n    },\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"medicalEventDate\": \"2025-09-01\",\n        \"service\": [\n          {\n            \"chargeAmount\": \"2505\",\n            \"id\": \"1001\",\n            \"itemNumber\": \"65120\",\n            \"scpId\": \"00001\"\n          }\n        ]\n      }\n    ],\n    \"patient\": {\n      \"identity\": {\n        \"dateOfBirth\": \"2009-02-08\",\n        \"familyName\": \"FLETCHER\",\n        \"givenName\": \"Clint\"\n      },\n      \"medicare\": {\n        \"memberNumber\": \"4951525561\",\n        \"memberRefNumber\": \"3\"\n      }\n    },\n    \"referral\": {\n      \"issueDate\": \"2026-01-01\",\n      \"provider\": {\n        \"providerNumber\": \"2447781L\"\n      },\n      \"typeCode\": \"P\"\n    },\n    \"serviceProvider\": {\n      \"providerNumber\": \"2446081F\"\n    },\n    \"submissionAuthorityInd\": \"Y\"\n  },\n  \"status\": \"MEDICARE_PENDED\",\n  \"claimAssessment\": {\n    \"claimId\": \"MDE0000028112516495485\",\n    \"medicalEvent\": [\n      {\n        \"eventDate\": \"2025-09-01\",\n        \"id\": \"01\",\n        \"service\": [\n          {\n            \"assessmentCode\": \"\",\n            \"chargeAmount\": \"2505\",\n            \"id\": \"1001\",\n            \"itemNumber\": \"65120\"\n          }\n        ]\n      }\n    ]\n  },\n  \"statementDetails\": {\n    \"locationName\": \"<locationName>\",\n    \"locationAddress\": \"<locationAddress>\",\n    \"servicingProviderName\": \"GENEVIEVE GALLOWAY\",\n    \"referringProviderName\": \"GWENDA HUNTER\"\n  }\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://test-api.rebateright.com.au/PatientClaimLodgementAdvice', [
  'body' => '{
  "patientClaimInteractive": {
    "accountPaidInd": "Y",
    "authorisationDate": "2026-04-13",
    "claimant": {
      "identity": {
        "dateOfBirth": "2009-02-08",
        "familyName": "FLETCHER",
        "givenName": "Clint"
      },
      "medicare": {
        "memberNumber": "4951525561",
        "memberRefNumber": "3"
      }
    },
    "medicalEvent": [
      {
        "id": "01",
        "medicalEventDate": "2025-09-01",
        "service": [
          {
            "chargeAmount": "2505",
            "id": "1001",
            "itemNumber": "65120",
            "scpId": "00001"
          }
        ]
      }
    ],
    "patient": {
      "identity": {
        "dateOfBirth": "2009-02-08",
        "familyName": "FLETCHER",
        "givenName": "Clint"
      },
      "medicare": {
        "memberNumber": "4951525561",
        "memberRefNumber": "3"
      }
    },
    "referral": {
      "issueDate": "2026-01-01",
      "provider": {
        "providerNumber": "2447781L"
      },
      "typeCode": "P"
    },
    "serviceProvider": {
      "providerNumber": "2446081F"
    },
    "submissionAuthorityInd": "Y"
  },
  "status": "MEDICARE_PENDED",
  "claimAssessment": {
    "claimId": "MDE0000028112516495485",
    "medicalEvent": [
      {
        "eventDate": "2025-09-01",
        "id": "01",
        "service": [
          {
            "assessmentCode": "",
            "chargeAmount": "2505",
            "id": "1001",
            "itemNumber": "65120"
          }
        ]
      }
    ]
  },
  "statementDetails": {
    "locationName": "<locationName>",
    "locationAddress": "<locationAddress>",
    "servicingProviderName": "GENEVIEVE GALLOWAY",
    "referringProviderName": "GWENDA HUNTER"
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
    'x-minor-id' => '<minorId>',
  ],
]);

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

```csharp Pathology Claim
using RestSharp;

var client = new RestClient("https://test-api.rebateright.com.au/PatientClaimLodgementAdvice");
var request = new RestRequest(Method.POST);
request.AddHeader("x-minor-id", "<minorId>");
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"patientClaimInteractive\": {\n    \"accountPaidInd\": \"Y\",\n    \"authorisationDate\": \"2026-04-13\",\n    \"claimant\": {\n      \"identity\": {\n        \"dateOfBirth\": \"2009-02-08\",\n        \"familyName\": \"FLETCHER\",\n        \"givenName\": \"Clint\"\n      },\n      \"medicare\": {\n        \"memberNumber\": \"4951525561\",\n        \"memberRefNumber\": \"3\"\n      }\n    },\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"medicalEventDate\": \"2025-09-01\",\n        \"service\": [\n          {\n            \"chargeAmount\": \"2505\",\n            \"id\": \"1001\",\n            \"itemNumber\": \"65120\",\n            \"scpId\": \"00001\"\n          }\n        ]\n      }\n    ],\n    \"patient\": {\n      \"identity\": {\n        \"dateOfBirth\": \"2009-02-08\",\n        \"familyName\": \"FLETCHER\",\n        \"givenName\": \"Clint\"\n      },\n      \"medicare\": {\n        \"memberNumber\": \"4951525561\",\n        \"memberRefNumber\": \"3\"\n      }\n    },\n    \"referral\": {\n      \"issueDate\": \"2026-01-01\",\n      \"provider\": {\n        \"providerNumber\": \"2447781L\"\n      },\n      \"typeCode\": \"P\"\n    },\n    \"serviceProvider\": {\n      \"providerNumber\": \"2446081F\"\n    },\n    \"submissionAuthorityInd\": \"Y\"\n  },\n  \"status\": \"MEDICARE_PENDED\",\n  \"claimAssessment\": {\n    \"claimId\": \"MDE0000028112516495485\",\n    \"medicalEvent\": [\n      {\n        \"eventDate\": \"2025-09-01\",\n        \"id\": \"01\",\n        \"service\": [\n          {\n            \"assessmentCode\": \"\",\n            \"chargeAmount\": \"2505\",\n            \"id\": \"1001\",\n            \"itemNumber\": \"65120\"\n          }\n        ]\n      }\n    ]\n  },\n  \"statementDetails\": {\n    \"locationName\": \"<locationName>\",\n    \"locationAddress\": \"<locationAddress>\",\n    \"servicingProviderName\": \"GENEVIEVE GALLOWAY\",\n    \"referringProviderName\": \"GWENDA HUNTER\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Pathology Claim
import Foundation

let headers = [
  "x-minor-id": "<minorId>",
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "patientClaimInteractive": [
    "accountPaidInd": "Y",
    "authorisationDate": "2026-04-13",
    "claimant": [
      "identity": [
        "dateOfBirth": "2009-02-08",
        "familyName": "FLETCHER",
        "givenName": "Clint"
      ],
      "medicare": [
        "memberNumber": "4951525561",
        "memberRefNumber": "3"
      ]
    ],
    "medicalEvent": [
      [
        "id": "01",
        "medicalEventDate": "2025-09-01",
        "service": [
          [
            "chargeAmount": "2505",
            "id": "1001",
            "itemNumber": "65120",
            "scpId": "00001"
          ]
        ]
      ]
    ],
    "patient": [
      "identity": [
        "dateOfBirth": "2009-02-08",
        "familyName": "FLETCHER",
        "givenName": "Clint"
      ],
      "medicare": [
        "memberNumber": "4951525561",
        "memberRefNumber": "3"
      ]
    ],
    "referral": [
      "issueDate": "2026-01-01",
      "provider": ["providerNumber": "2447781L"],
      "typeCode": "P"
    ],
    "serviceProvider": ["providerNumber": "2446081F"],
    "submissionAuthorityInd": "Y"
  ],
  "status": "MEDICARE_PENDED",
  "claimAssessment": [
    "claimId": "MDE0000028112516495485",
    "medicalEvent": [
      [
        "eventDate": "2025-09-01",
        "id": "01",
        "service": [
          [
            "assessmentCode": "",
            "chargeAmount": "2505",
            "id": "1001",
            "itemNumber": "65120"
          ]
        ]
      ]
    ]
  ],
  "statementDetails": [
    "locationName": "<locationName>",
    "locationAddress": "<locationAddress>",
    "servicingProviderName": "GENEVIEVE GALLOWAY",
    "referringProviderName": "GWENDA HUNTER"
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://test-api.rebateright.com.au/PatientClaimLodgementAdvice")! 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()
```

### In-Hospital Claim

**Request**

```json
{
  "patientClaimInteractive": {
    "accountPaidInd": "N",
    "authorisationDate": "2026-04-13",
    "claimant": {
      "identity": {
        "dateOfBirth": "1986-12-18",
        "familyName": "FLETCHER",
        "givenName": "Edmond"
      },
      "medicare": {
        "memberNumber": "4951525561",
        "memberRefNumber": "2"
      }
    },
    "medicalEvent": [
      {
        "id": "01",
        "medicalEventDate": "2026-04-01",
        "service": [
          {
            "chargeAmount": "25000",
            "facilityId": "9988770W",
            "hospitalInd": "Y",
            "id": "1001",
            "itemNumber": "104"
          }
        ]
      }
    ],
    "patient": {
      "identity": {
        "dateOfBirth": "1986-12-18",
        "familyName": "FLETCHER",
        "givenName": "Edmond"
      },
      "medicare": {
        "memberNumber": "4951525561",
        "memberRefNumber": "2"
      }
    },
    "referralOverrideCode": "H",
    "serviceProvider": {
      "providerNumber": "2447781L"
    },
    "submissionAuthorityInd": "Y"
  },
  "status": "MEDICARE_PENDED",
  "claimAssessment": {
    "claimId": "MDE0000004042619464403",
    "medicalEvent": [
      {
        "eventDate": "2026-04-01",
        "id": "01",
        "service": [
          {
            "chargeAmount": "25000",
            "id": "1001",
            "itemNumber": "104"
          }
        ]
      }
    ]
  },
  "statementDetails": {
    "locationName": "<locationName>",
    "locationAddress": "<locationAddress>",
    "servicingProviderName": "GWENDA HUNTER",
    "hospitalName": "<hospitalName>"
  }
}
```

**SDK Code**

```python In-Hospital Claim
import requests

url = "https://test-api.rebateright.com.au/PatientClaimLodgementAdvice"

payload = {
    "patientClaimInteractive": {
        "accountPaidInd": "N",
        "authorisationDate": "2026-04-13",
        "claimant": {
            "identity": {
                "dateOfBirth": "1986-12-18",
                "familyName": "FLETCHER",
                "givenName": "Edmond"
            },
            "medicare": {
                "memberNumber": "4951525561",
                "memberRefNumber": "2"
            }
        },
        "medicalEvent": [
            {
                "id": "01",
                "medicalEventDate": "2026-04-01",
                "service": [
                    {
                        "chargeAmount": "25000",
                        "facilityId": "9988770W",
                        "hospitalInd": "Y",
                        "id": "1001",
                        "itemNumber": "104"
                    }
                ]
            }
        ],
        "patient": {
            "identity": {
                "dateOfBirth": "1986-12-18",
                "familyName": "FLETCHER",
                "givenName": "Edmond"
            },
            "medicare": {
                "memberNumber": "4951525561",
                "memberRefNumber": "2"
            }
        },
        "referralOverrideCode": "H",
        "serviceProvider": { "providerNumber": "2447781L" },
        "submissionAuthorityInd": "Y"
    },
    "status": "MEDICARE_PENDED",
    "claimAssessment": {
        "claimId": "MDE0000004042619464403",
        "medicalEvent": [
            {
                "eventDate": "2026-04-01",
                "id": "01",
                "service": [
                    {
                        "chargeAmount": "25000",
                        "id": "1001",
                        "itemNumber": "104"
                    }
                ]
            }
        ]
    },
    "statementDetails": {
        "locationName": "<locationName>",
        "locationAddress": "<locationAddress>",
        "servicingProviderName": "GWENDA HUNTER",
        "hospitalName": "<hospitalName>"
    }
}
headers = {
    "x-minor-id": "<minorId>",
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript In-Hospital Claim
const url = 'https://test-api.rebateright.com.au/PatientClaimLodgementAdvice';
const options = {
  method: 'POST',
  headers: {
    'x-minor-id': '<minorId>',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: '{"patientClaimInteractive":{"accountPaidInd":"N","authorisationDate":"2026-04-13","claimant":{"identity":{"dateOfBirth":"1986-12-18","familyName":"FLETCHER","givenName":"Edmond"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"2"}},"medicalEvent":[{"id":"01","medicalEventDate":"2026-04-01","service":[{"chargeAmount":"25000","facilityId":"9988770W","hospitalInd":"Y","id":"1001","itemNumber":"104"}]}],"patient":{"identity":{"dateOfBirth":"1986-12-18","familyName":"FLETCHER","givenName":"Edmond"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"2"}},"referralOverrideCode":"H","serviceProvider":{"providerNumber":"2447781L"},"submissionAuthorityInd":"Y"},"status":"MEDICARE_PENDED","claimAssessment":{"claimId":"MDE0000004042619464403","medicalEvent":[{"eventDate":"2026-04-01","id":"01","service":[{"chargeAmount":"25000","id":"1001","itemNumber":"104"}]}]},"statementDetails":{"locationName":"<locationName>","locationAddress":"<locationAddress>","servicingProviderName":"GWENDA HUNTER","hospitalName":"<hospitalName>"}}'
};

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

```go In-Hospital Claim
package main

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

func main() {

	url := "https://test-api.rebateright.com.au/PatientClaimLodgementAdvice"

	payload := strings.NewReader("{\n  \"patientClaimInteractive\": {\n    \"accountPaidInd\": \"N\",\n    \"authorisationDate\": \"2026-04-13\",\n    \"claimant\": {\n      \"identity\": {\n        \"dateOfBirth\": \"1986-12-18\",\n        \"familyName\": \"FLETCHER\",\n        \"givenName\": \"Edmond\"\n      },\n      \"medicare\": {\n        \"memberNumber\": \"4951525561\",\n        \"memberRefNumber\": \"2\"\n      }\n    },\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"medicalEventDate\": \"2026-04-01\",\n        \"service\": [\n          {\n            \"chargeAmount\": \"25000\",\n            \"facilityId\": \"9988770W\",\n            \"hospitalInd\": \"Y\",\n            \"id\": \"1001\",\n            \"itemNumber\": \"104\"\n          }\n        ]\n      }\n    ],\n    \"patient\": {\n      \"identity\": {\n        \"dateOfBirth\": \"1986-12-18\",\n        \"familyName\": \"FLETCHER\",\n        \"givenName\": \"Edmond\"\n      },\n      \"medicare\": {\n        \"memberNumber\": \"4951525561\",\n        \"memberRefNumber\": \"2\"\n      }\n    },\n    \"referralOverrideCode\": \"H\",\n    \"serviceProvider\": {\n      \"providerNumber\": \"2447781L\"\n    },\n    \"submissionAuthorityInd\": \"Y\"\n  },\n  \"status\": \"MEDICARE_PENDED\",\n  \"claimAssessment\": {\n    \"claimId\": \"MDE0000004042619464403\",\n    \"medicalEvent\": [\n      {\n        \"eventDate\": \"2026-04-01\",\n        \"id\": \"01\",\n        \"service\": [\n          {\n            \"chargeAmount\": \"25000\",\n            \"id\": \"1001\",\n            \"itemNumber\": \"104\"\n          }\n        ]\n      }\n    ]\n  },\n  \"statementDetails\": {\n    \"locationName\": \"<locationName>\",\n    \"locationAddress\": \"<locationAddress>\",\n    \"servicingProviderName\": \"GWENDA HUNTER\",\n    \"hospitalName\": \"<hospitalName>\"\n  }\n}")

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

	req.Header.Add("x-minor-id", "<minorId>")
	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 In-Hospital Claim
require 'uri'
require 'net/http'

url = URI("https://test-api.rebateright.com.au/PatientClaimLodgementAdvice")

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

request = Net::HTTP::Post.new(url)
request["x-minor-id"] = '<minorId>'
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"patientClaimInteractive\": {\n    \"accountPaidInd\": \"N\",\n    \"authorisationDate\": \"2026-04-13\",\n    \"claimant\": {\n      \"identity\": {\n        \"dateOfBirth\": \"1986-12-18\",\n        \"familyName\": \"FLETCHER\",\n        \"givenName\": \"Edmond\"\n      },\n      \"medicare\": {\n        \"memberNumber\": \"4951525561\",\n        \"memberRefNumber\": \"2\"\n      }\n    },\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"medicalEventDate\": \"2026-04-01\",\n        \"service\": [\n          {\n            \"chargeAmount\": \"25000\",\n            \"facilityId\": \"9988770W\",\n            \"hospitalInd\": \"Y\",\n            \"id\": \"1001\",\n            \"itemNumber\": \"104\"\n          }\n        ]\n      }\n    ],\n    \"patient\": {\n      \"identity\": {\n        \"dateOfBirth\": \"1986-12-18\",\n        \"familyName\": \"FLETCHER\",\n        \"givenName\": \"Edmond\"\n      },\n      \"medicare\": {\n        \"memberNumber\": \"4951525561\",\n        \"memberRefNumber\": \"2\"\n      }\n    },\n    \"referralOverrideCode\": \"H\",\n    \"serviceProvider\": {\n      \"providerNumber\": \"2447781L\"\n    },\n    \"submissionAuthorityInd\": \"Y\"\n  },\n  \"status\": \"MEDICARE_PENDED\",\n  \"claimAssessment\": {\n    \"claimId\": \"MDE0000004042619464403\",\n    \"medicalEvent\": [\n      {\n        \"eventDate\": \"2026-04-01\",\n        \"id\": \"01\",\n        \"service\": [\n          {\n            \"chargeAmount\": \"25000\",\n            \"id\": \"1001\",\n            \"itemNumber\": \"104\"\n          }\n        ]\n      }\n    ]\n  },\n  \"statementDetails\": {\n    \"locationName\": \"<locationName>\",\n    \"locationAddress\": \"<locationAddress>\",\n    \"servicingProviderName\": \"GWENDA HUNTER\",\n    \"hospitalName\": \"<hospitalName>\"\n  }\n}"

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

```java In-Hospital Claim
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://test-api.rebateright.com.au/PatientClaimLodgementAdvice")
  .header("x-minor-id", "<minorId>")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"patientClaimInteractive\": {\n    \"accountPaidInd\": \"N\",\n    \"authorisationDate\": \"2026-04-13\",\n    \"claimant\": {\n      \"identity\": {\n        \"dateOfBirth\": \"1986-12-18\",\n        \"familyName\": \"FLETCHER\",\n        \"givenName\": \"Edmond\"\n      },\n      \"medicare\": {\n        \"memberNumber\": \"4951525561\",\n        \"memberRefNumber\": \"2\"\n      }\n    },\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"medicalEventDate\": \"2026-04-01\",\n        \"service\": [\n          {\n            \"chargeAmount\": \"25000\",\n            \"facilityId\": \"9988770W\",\n            \"hospitalInd\": \"Y\",\n            \"id\": \"1001\",\n            \"itemNumber\": \"104\"\n          }\n        ]\n      }\n    ],\n    \"patient\": {\n      \"identity\": {\n        \"dateOfBirth\": \"1986-12-18\",\n        \"familyName\": \"FLETCHER\",\n        \"givenName\": \"Edmond\"\n      },\n      \"medicare\": {\n        \"memberNumber\": \"4951525561\",\n        \"memberRefNumber\": \"2\"\n      }\n    },\n    \"referralOverrideCode\": \"H\",\n    \"serviceProvider\": {\n      \"providerNumber\": \"2447781L\"\n    },\n    \"submissionAuthorityInd\": \"Y\"\n  },\n  \"status\": \"MEDICARE_PENDED\",\n  \"claimAssessment\": {\n    \"claimId\": \"MDE0000004042619464403\",\n    \"medicalEvent\": [\n      {\n        \"eventDate\": \"2026-04-01\",\n        \"id\": \"01\",\n        \"service\": [\n          {\n            \"chargeAmount\": \"25000\",\n            \"id\": \"1001\",\n            \"itemNumber\": \"104\"\n          }\n        ]\n      }\n    ]\n  },\n  \"statementDetails\": {\n    \"locationName\": \"<locationName>\",\n    \"locationAddress\": \"<locationAddress>\",\n    \"servicingProviderName\": \"GWENDA HUNTER\",\n    \"hospitalName\": \"<hospitalName>\"\n  }\n}")
  .asString();
```

```php In-Hospital Claim
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://test-api.rebateright.com.au/PatientClaimLodgementAdvice', [
  'body' => '{
  "patientClaimInteractive": {
    "accountPaidInd": "N",
    "authorisationDate": "2026-04-13",
    "claimant": {
      "identity": {
        "dateOfBirth": "1986-12-18",
        "familyName": "FLETCHER",
        "givenName": "Edmond"
      },
      "medicare": {
        "memberNumber": "4951525561",
        "memberRefNumber": "2"
      }
    },
    "medicalEvent": [
      {
        "id": "01",
        "medicalEventDate": "2026-04-01",
        "service": [
          {
            "chargeAmount": "25000",
            "facilityId": "9988770W",
            "hospitalInd": "Y",
            "id": "1001",
            "itemNumber": "104"
          }
        ]
      }
    ],
    "patient": {
      "identity": {
        "dateOfBirth": "1986-12-18",
        "familyName": "FLETCHER",
        "givenName": "Edmond"
      },
      "medicare": {
        "memberNumber": "4951525561",
        "memberRefNumber": "2"
      }
    },
    "referralOverrideCode": "H",
    "serviceProvider": {
      "providerNumber": "2447781L"
    },
    "submissionAuthorityInd": "Y"
  },
  "status": "MEDICARE_PENDED",
  "claimAssessment": {
    "claimId": "MDE0000004042619464403",
    "medicalEvent": [
      {
        "eventDate": "2026-04-01",
        "id": "01",
        "service": [
          {
            "chargeAmount": "25000",
            "id": "1001",
            "itemNumber": "104"
          }
        ]
      }
    ]
  },
  "statementDetails": {
    "locationName": "<locationName>",
    "locationAddress": "<locationAddress>",
    "servicingProviderName": "GWENDA HUNTER",
    "hospitalName": "<hospitalName>"
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
    'x-minor-id' => '<minorId>',
  ],
]);

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

```csharp In-Hospital Claim
using RestSharp;

var client = new RestClient("https://test-api.rebateright.com.au/PatientClaimLodgementAdvice");
var request = new RestRequest(Method.POST);
request.AddHeader("x-minor-id", "<minorId>");
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"patientClaimInteractive\": {\n    \"accountPaidInd\": \"N\",\n    \"authorisationDate\": \"2026-04-13\",\n    \"claimant\": {\n      \"identity\": {\n        \"dateOfBirth\": \"1986-12-18\",\n        \"familyName\": \"FLETCHER\",\n        \"givenName\": \"Edmond\"\n      },\n      \"medicare\": {\n        \"memberNumber\": \"4951525561\",\n        \"memberRefNumber\": \"2\"\n      }\n    },\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"medicalEventDate\": \"2026-04-01\",\n        \"service\": [\n          {\n            \"chargeAmount\": \"25000\",\n            \"facilityId\": \"9988770W\",\n            \"hospitalInd\": \"Y\",\n            \"id\": \"1001\",\n            \"itemNumber\": \"104\"\n          }\n        ]\n      }\n    ],\n    \"patient\": {\n      \"identity\": {\n        \"dateOfBirth\": \"1986-12-18\",\n        \"familyName\": \"FLETCHER\",\n        \"givenName\": \"Edmond\"\n      },\n      \"medicare\": {\n        \"memberNumber\": \"4951525561\",\n        \"memberRefNumber\": \"2\"\n      }\n    },\n    \"referralOverrideCode\": \"H\",\n    \"serviceProvider\": {\n      \"providerNumber\": \"2447781L\"\n    },\n    \"submissionAuthorityInd\": \"Y\"\n  },\n  \"status\": \"MEDICARE_PENDED\",\n  \"claimAssessment\": {\n    \"claimId\": \"MDE0000004042619464403\",\n    \"medicalEvent\": [\n      {\n        \"eventDate\": \"2026-04-01\",\n        \"id\": \"01\",\n        \"service\": [\n          {\n            \"chargeAmount\": \"25000\",\n            \"id\": \"1001\",\n            \"itemNumber\": \"104\"\n          }\n        ]\n      }\n    ]\n  },\n  \"statementDetails\": {\n    \"locationName\": \"<locationName>\",\n    \"locationAddress\": \"<locationAddress>\",\n    \"servicingProviderName\": \"GWENDA HUNTER\",\n    \"hospitalName\": \"<hospitalName>\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift In-Hospital Claim
import Foundation

let headers = [
  "x-minor-id": "<minorId>",
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "patientClaimInteractive": [
    "accountPaidInd": "N",
    "authorisationDate": "2026-04-13",
    "claimant": [
      "identity": [
        "dateOfBirth": "1986-12-18",
        "familyName": "FLETCHER",
        "givenName": "Edmond"
      ],
      "medicare": [
        "memberNumber": "4951525561",
        "memberRefNumber": "2"
      ]
    ],
    "medicalEvent": [
      [
        "id": "01",
        "medicalEventDate": "2026-04-01",
        "service": [
          [
            "chargeAmount": "25000",
            "facilityId": "9988770W",
            "hospitalInd": "Y",
            "id": "1001",
            "itemNumber": "104"
          ]
        ]
      ]
    ],
    "patient": [
      "identity": [
        "dateOfBirth": "1986-12-18",
        "familyName": "FLETCHER",
        "givenName": "Edmond"
      ],
      "medicare": [
        "memberNumber": "4951525561",
        "memberRefNumber": "2"
      ]
    ],
    "referralOverrideCode": "H",
    "serviceProvider": ["providerNumber": "2447781L"],
    "submissionAuthorityInd": "Y"
  ],
  "status": "MEDICARE_PENDED",
  "claimAssessment": [
    "claimId": "MDE0000004042619464403",
    "medicalEvent": [
      [
        "eventDate": "2026-04-01",
        "id": "01",
        "service": [
          [
            "chargeAmount": "25000",
            "id": "1001",
            "itemNumber": "104"
          ]
        ]
      ]
    ]
  ],
  "statementDetails": [
    "locationName": "<locationName>",
    "locationAddress": "<locationAddress>",
    "servicingProviderName": "GWENDA HUNTER",
    "hospitalName": "<hospitalName>"
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://test-api.rebateright.com.au/PatientClaimLodgementAdvice")! 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()
```