*** title: RebateRight API Documentation subtitle: Secure, compliant, and streamlined integration with Medicare, AIR, and MBS slug: / --------------------- 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. The RebateRight API provides everything your software system needs to integrate with **Medicare**, the **Australian Immunisation Register (AIR)**, and **MBS Item Search** — handling the complexity of government healthcare systems so you don't have to. Patient verification, eligibility checks, and claiming — all through a single, consistent API. Access the Australian Immunisation Register for vaccination records across all patient types. Query the complete catalogue of \~6,000 MBS items with descriptions, rebate values, and rules. *** ## Getting Started In the RebateRight app, open [**First-time setup**](https://app.rebateright.com.au/start) and work through activation. You will finish with an **API key** and **Minor ID** (and any Services Australia steps your products require). If you only use the **web app**, Connection Settings stores those values — you do not send HTTP headers yourself. Pick the path that fits your team: No coding required. Log in to the RebateRight app, add your Minor ID and API key in Connection Settings, and explore the features straight away. Building a custom integration? Connect your system directly to RebateRight's API using the [API Reference](/api-reference). *** ## Environments Two environments are available. Use **test** while you build, validate, and demo with non-live patient data. Switch to **production** when you are ready to go live. **Host** `api.rebateright.com.au`
**Data** Live Medicare, DVA, and AIR — real patients and real providers.
**Cost** Billed per your agreement for API usage in this environment.
**Typical use** Go-live, pilots with real patients, production workflows.
**Host** `test-api.rebateright.com.au`
**Data** Prepared test patients and providers: [Integration test data](/test-data).
**Cost** Free API usage in this environment — not metered or invoiced.
**Typical use** Development, QA, integration tests, and test demos.
*** ## Explore the Documentation Understand how your application interacts with RebateRight and the external services it connects to. Learn about our zero data persistence architecture, Australian data sovereignty, and compliance certifications. Required for Claiming and AIR endpoints. Step-by-step guide to registering with Services Australia. How RebateRight authenticates with Medicare and government services on your behalf. Overview of RebateRight's integration with the Australian Immunisation Register. Common errors and how to resolve them, from authentication issues to Medicare claim validation. *** ## AI-Ready Documentation Every page is structured in clean Markdown — feed any page, or the entire docs, directly into Claude, ChatGPT, Cursor, or your CLI tools to get AI-generated code, request bodies, and integration logic tailored to your stack. Use the **Ask AI** button in the search bar to ask plain English questions and get instant answers about endpoints, schemas, and error codes. Share any page URL with your AI assistant, or import the OpenAPI spec into your IDE for intelligent autocomplete and code generation. Point your AI pipelines at a single, always-current file: * [`/llms-full.txt`](https://docs.rebateright.com.au/llms-full.txt) — full content * [`/llms.txt`](https://docs.rebateright.com.au/llms.txt) — table of contents URL never changes. Content updates with every release. *** Our team is here to help with any questions, issues, or feedback about your integration. Email us at [support@rebateright.com.au](mailto:support@rebateright.com.au) and we'll get back to you promptly. Participating health professionals may utilise the services and information provided, including personal information, only in accordance with the *Privacy Act 1988*, *Health Insurance Act 1973*, *Australian Immunisation Register Act 2015* and other relevant legislation, State or Territory legislation, Policy and Guidelines. *** title: API Reference subtitle: Explore every endpoint — run live requests and inspect real responses slug: api-reference --------------------- 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. Select any endpoint from the sidebar to explore its parameters, request body, response schema, and real examples. Open an endpoint, adjust the payload if you need to, then **Send** — the response you see is a real call to the API. Each endpoint has real request and response examples saved from our test environment. Use the **dropdown** in the response panel to switch between scenarios. Use the language selector in the right panel to get a ready-to-use code snippet in your preferred language. Use the **Ask AI** button in the search bar to ask plain English questions and get instant answers about endpoints, schemas, and error codes. ## Required headers and hosts Every HTTP request to the API must include your credentials obtained during the first-time setup: | Header | Value | | ------------ | ----------------------------- | | `x-api-key` | Your API key from RebateRight | | `x-minor-id` | Your Minor ID | ## Finding examples Open an endpoint → look at the **right-hand panel**: | Panel section | What you'll find | | ------------- | ------------------------------------------------------------ | | Top | Pre-filled request body with a real sample payload | | Bottom | Response schema with a **dropdown** to switch named examples | Examples on key endpoints include scenarios like *Success*, *New Medicare Card*, *Incorrect Given Name*, *Ineligible*, and more — covering both happy path and error cases. 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. # Get MBS Item GET https://api.rebateright.com.au/MedicareItems/{itemNumber} This endpoint retrieves detailed information about a specific MBS item using its item number. #### 🎨 **How It Works** - Sources data from MBS and enriches it with RebateRight details. - Includes **MBS notes** and additional insights including the **limitation period**, specifying how often an item can be claimed within a given timeframe (e.g., **not more than three times in a 12-month period**). If the item number is unknown, the API returns **404** with a plain-text body — see the **`404`** example. Reference: https://docs.rebateright.com.au/api-reference/mbs/get-mbs-item ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /MedicareItems/{itemNumber}: get: operationId: get-mbs-item summary: Get MBS Item description: >- This endpoint retrieves detailed information about a specific MBS item using its item number. #### 🎨 **How It Works** - Sources data from MBS and enriches it with RebateRight details. - Includes **MBS notes** and additional insights including the **limitation period**, specifying how often an item can be claimed within a given timeframe (e.g., **not more than three times in a 12-month period**). If the item number is unknown, the API returns **404** with a plain-text body — see the **`404`** example. tags: - subpackage_mbs parameters: - name: itemNumber in: path required: true schema: type: string - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/MBS_Get MBS Item_Response_200' '404': description: > No MBS item exists for the supplied `itemNumber`. **Wire format:** `Content-Type: text/plain` (UTF-8). The body is not JSON — it is the raw text shown in the example below (captured from `GET /MedicareItems/1` on the local RebateRight environment). OpenAPI lists this under `application/json` with `schema: string` so the API explorer can display an example; interpret it as the verbatim plain-text body. content: application/json: schema: type: string servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: MBS_Get MBS Item_Response_200: type: object properties: Group: type: string Category: type: string SubGroup: type: - string - 'null' DerivedFee: description: Any type ItemNumber: type: string BenefitType: type: string Description: type: string ScheduleFee: type: string ItemStartDate: type: string format: date EligibleAgeRange: type: - string - 'null' EligiblePatientSex: description: Any type ReferralRequirements: type: - string - 'null' ScheduleFeeStartDate: type: string format: date ClaimHistoryLimitation: type: - string - 'null' required: - Group - Category - ItemNumber - BenefitType - Description - ScheduleFee - ItemStartDate - ScheduleFeeStartDate title: MBS_Get MBS Item_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 MRI Scan Item import requests url = "https://api.rebateright.com.au/MedicareItems/63507" headers = {"x-api-key": ""} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript MRI Scan Item const url = 'https://api.rebateright.com.au/MedicareItems/63507'; const options = {method: 'GET', headers: {'x-api-key': ''}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go MRI Scan Item package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/MedicareItems/63507" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby MRI Scan Item require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/MedicareItems/63507") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["x-api-key"] = '' response = http.request(request) puts response.read_body ``` ```java MRI Scan Item import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.rebateright.com.au/MedicareItems/63507") .header("x-api-key", "") .asString(); ``` ```php MRI Scan Item request('GET', 'https://api.rebateright.com.au/MedicareItems/63507', [ 'headers' => [ 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp MRI Scan Item using RestSharp; var client = new RestClient("https://api.rebateright.com.au/MedicareItems/63507"); var request = new RestRequest(Method.GET); request.AddHeader("x-api-key", ""); IRestResponse response = client.Execute(request); ``` ```swift MRI Scan Item import Foundation let headers = ["x-api-key": ""] let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/MedicareItems/63507")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers 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 GP Consultation Item import requests url = "https://api.rebateright.com.au/MedicareItems/63507" headers = {"x-api-key": ""} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript GP Consultation Item const url = 'https://api.rebateright.com.au/MedicareItems/63507'; const options = {method: 'GET', headers: {'x-api-key': ''}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go GP Consultation Item package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/MedicareItems/63507" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby GP Consultation Item require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/MedicareItems/63507") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["x-api-key"] = '' response = http.request(request) puts response.read_body ``` ```java GP Consultation Item import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.rebateright.com.au/MedicareItems/63507") .header("x-api-key", "") .asString(); ``` ```php GP Consultation Item request('GET', 'https://api.rebateright.com.au/MedicareItems/63507', [ 'headers' => [ 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp GP Consultation Item using RestSharp; var client = new RestClient("https://api.rebateright.com.au/MedicareItems/63507"); var request = new RestRequest(Method.GET); request.AddHeader("x-api-key", ""); IRestResponse response = client.Execute(request); ``` ```swift GP Consultation Item import Foundation let headers = ["x-api-key": ""] let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/MedicareItems/63507")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers 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() ``` 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. # Get All MBS Items GET https://api.rebateright.com.au/MedicareItems This endpoint retrieves the list of all ~6,000 MBS items. #### 🎨 **How It Works** - Sources data from MBS and enriches it with RebateRight details. - Each item includes **MBS notes** and additional insights including the **limitation period**, specifying how often an item can be claimed within a given timeframe (e.g., **twice in a 12-month period**). > 🔍 **Sample only** — the example below shows 3 items. The live API returns the full MBS catalogue (~6,000 items), with `ItemsCount` reflecting the real total. Reference: https://docs.rebateright.com.au/api-reference/mbs/get-all-mbs-items ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /MedicareItems: get: operationId: get-all-mbs-items summary: Get All MBS Items description: > This endpoint retrieves the list of all ~6,000 MBS items. #### 🎨 **How It Works** - Sources data from MBS and enriches it with RebateRight details. - Each item includes **MBS notes** and additional insights including the **limitation period**, specifying how often an item can be claimed within a given timeframe (e.g., **twice in a 12-month period**). > 🔍 **Sample only** — the example below shows 3 items. The live API returns the full MBS catalogue (~6,000 items), with `ItemsCount` reflecting the real total. tags: - subpackage_mbs parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/MBS_Get All MBS Items_Response_200' servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: MedicareItemsGetResponsesContentApplicationJsonSchemaMedicareItemsItems: type: object properties: Group: type: string Category: type: string SubGroup: type: string ItemNumber: type: string BenefitType: type: string Description: type: string ScheduleFee: type: string ScheduleFeeStartDate: type: string format: date DerivedFee: type: string ItemStartDate: type: string format: date required: - Group - Category - ItemNumber - BenefitType - Description - ItemStartDate title: MedicareItemsGetResponsesContentApplicationJsonSchemaMedicareItemsItems MBS_Get All MBS Items_Response_200: type: object properties: ItemsCount: type: integer MedicareItems: type: array items: $ref: >- #/components/schemas/MedicareItemsGetResponsesContentApplicationJsonSchemaMedicareItemsItems required: - ItemsCount - MedicareItems title: MBS_Get All MBS Items_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 MBS_Get All MBS Items_example import requests url = "https://api.rebateright.com.au/MedicareItems" headers = {"x-api-key": ""} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript MBS_Get All MBS Items_example const url = 'https://api.rebateright.com.au/MedicareItems'; const options = {method: 'GET', headers: {'x-api-key': ''}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go MBS_Get All MBS Items_example package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/MedicareItems" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby MBS_Get All MBS Items_example require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/MedicareItems") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["x-api-key"] = '' response = http.request(request) puts response.read_body ``` ```java MBS_Get All MBS Items_example import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.rebateright.com.au/MedicareItems") .header("x-api-key", "") .asString(); ``` ```php MBS_Get All MBS Items_example request('GET', 'https://api.rebateright.com.au/MedicareItems', [ 'headers' => [ 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp MBS_Get All MBS Items_example using RestSharp; var client = new RestClient("https://api.rebateright.com.au/MedicareItems"); var request = new RestRequest(Method.GET); request.AddHeader("x-api-key", ""); IRestResponse response = client.Execute(request); ``` ```swift MBS_Get All MBS Items_example import Foundation let headers = ["x-api-key": ""] let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/MedicareItems")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers 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() ``` 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. # Medicare Patient Verification POST https://api.rebateright.com.au/VerifyPatient Content-Type: application/json This endpoint receives patient details and verifies patient information with Medicare. ### 🎨 How It Works - First RebateRight validates the inputs for expected format and required information. - Then it Uses Medicare Patient Verification Check service behind the scenes to provide the results. - The response may include correct data if there is a mismatch. ### 🔍 Medicare Verification Process #### 🪪 Medicare Card Number If the Medicare card number is incorrect, verification fails. Medicare does not return corrected information. **Response** > The card number and/or patient details submitted did not match Medicare checks. Please verify the details and resubmit with additional information if available. #### 🎂 Date of Birth If the date of birth is the only incorrect field, Medicare will indicate that the DOB is incorrect, but does not return the correct value. **Response** > Patient Verification has been accepted however patient details were not an exact match. Please check patient Date of Birth before claiming. If other fields are also incorrect, verification fails and no corrections are provided. **Response** > The card number and/or patient details submitted did not match Medicare checks. Please verify the details and resubmit with additional information if available. #### 🔢 Medicare Reference Number If this is the only incorrect field, Medicare returns the correct reference number to help you correct it. **Response** > Patient Verification has been accepted however patient details were not an exact match. Please check patient Individual Reference Number (IRN) before claiming. Correct Medicare Reference Number: 3. If other fields are also incorrect, verification fails and no corrections are provided. **Response** > The card number and/or patient details submitted did not match Medicare checks. Please verify the details and resubmit with additional information if available. #### 🧑 Given Name Medicare validates the **first five characters of the patient’s given name**. If these match Medicare records, the request can still be accepted even if the full given name differs. **Example:** Submitted: **ELIZA** Medicare record: **ELIZABETH** This will be accepted. If the given name is the only incorrect field, Medicare returns the correct given name to assist with updating records. **Response** > Patient Verification has been accepted however patient details were not an exact match. Please check patient Given Name before claiming. Correct Given Name: CLINT. If other fields are also incorrect, verification fails and no corrections are provided. **Response** > The card number and/or patient details submitted did not match Medicare checks. Please verify the details and resubmit with additional information if available. #### 👪 Family Name & Sex These fields are optional. If one or both of them are incorrect, verification still succeeds. Medicare ignores mismatches in these fields and does not report or correct them. **Response** > "Patient is eligible to claim for Medicare with details provided." #### 🆕 New Medicare Card Issued if a new Medicare card has been issued for the patient, Medicare provides the correct Medicare Number, Reference Number, and Given Name. **Response** > A new Medicare card has been issued. Please confirm your records with the patient and if required update for any future claims. Correct Medicare Number: 6951393352. Correct Medicare Reference Number: 2. Correct Given Name: SAM." #### 👤 Patients with a Single Name For patients with only one name, submit: - `PatientFamilyName`: the patient's single name (e.g. `MINJARRA`) - `PatientGivenName`: `ONLYNAME` Reference: https://docs.rebateright.com.au/api-reference/medicare-eligibility/medicare-patient-verification ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /VerifyPatient: post: operationId: medicare-patient-verification summary: Medicare Patient Verification description: >- This endpoint receives patient details and verifies patient information with Medicare. ### 🎨 How It Works - First RebateRight validates the inputs for expected format and required information. - Then it Uses Medicare Patient Verification Check service behind the scenes to provide the results. - The response may include correct data if there is a mismatch. ### 🔍 Medicare Verification Process #### 🪪 Medicare Card Number If the Medicare card number is incorrect, verification fails. Medicare does not return corrected information. **Response** > The card number and/or patient details submitted did not match Medicare checks. Please verify the details and resubmit with additional information if available. #### 🎂 Date of Birth If the date of birth is the only incorrect field, Medicare will indicate that the DOB is incorrect, but does not return the correct value. **Response** > Patient Verification has been accepted however patient details were not an exact match. Please check patient Date of Birth before claiming. If other fields are also incorrect, verification fails and no corrections are provided. **Response** > The card number and/or patient details submitted did not match Medicare checks. Please verify the details and resubmit with additional information if available. #### 🔢 Medicare Reference Number If this is the only incorrect field, Medicare returns the correct reference number to help you correct it. **Response** > Patient Verification has been accepted however patient details were not an exact match. Please check patient Individual Reference Number (IRN) before claiming. Correct Medicare Reference Number: 3. If other fields are also incorrect, verification fails and no corrections are provided. **Response** > The card number and/or patient details submitted did not match Medicare checks. Please verify the details and resubmit with additional information if available. #### 🧑 Given Name Medicare validates the **first five characters of the patient’s given name**. If these match Medicare records, the request can still be accepted even if the full given name differs. **Example:** Submitted: **ELIZA** Medicare record: **ELIZABETH** This will be accepted. If the given name is the only incorrect field, Medicare returns the correct given name to assist with updating records. **Response** > Patient Verification has been accepted however patient details were not an exact match. Please check patient Given Name before claiming. Correct Given Name: CLINT. If other fields are also incorrect, verification fails and no corrections are provided. **Response** > The card number and/or patient details submitted did not match Medicare checks. Please verify the details and resubmit with additional information if available. #### 👪 Family Name & Sex These fields are optional. If one or both of them are incorrect, verification still succeeds. Medicare ignores mismatches in these fields and does not report or correct them. **Response** > "Patient is eligible to claim for Medicare with details provided." #### 🆕 New Medicare Card Issued if a new Medicare card has been issued for the patient, Medicare provides the correct Medicare Number, Reference Number, and Given Name. **Response** > A new Medicare card has been issued. Please confirm your records with the patient and if required update for any future claims. Correct Medicare Number: 6951393352. Correct Medicare Reference Number: 2. Correct Given Name: SAM." #### 👤 Patients with a Single Name For patients with only one name, submit: - `PatientFamilyName`: the patient's single name (e.g. `MINJARRA`) - `PatientGivenName`: `ONLYNAME` tags: - subpackage_medicareEligibility parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: >- #/components/schemas/Medicare Eligibility_Medicare Patient Verification_Response_200 '400': description: Validation failure content: application/json: schema: $ref: '#/components/schemas/PostVerifypatientRequestBadRequestError' requestBody: content: application/json: schema: type: object properties: PatientSex: type: string PatientGivenName: type: string PatientFamilyName: type: string PatientDateOfBirth: type: string format: date PatientMedicareNumber: type: string PatientMedicareRefNumber: type: string required: - PatientSex - PatientGivenName - PatientFamilyName - PatientDateOfBirth - PatientMedicareNumber - PatientMedicareRefNumber servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: Medicare Eligibility_Medicare Patient Verification_Response_200: type: object properties: Reason: type: string Verified: type: - boolean - 'null' CorrectSex: type: - string - 'null' CorrectGivenName: type: - string - 'null' CorrectFamilyName: type: - string - 'null' CorrectDateOfBirth: type: - string - 'null' CorrectMedicareNumber: type: - string - 'null' CorrectMedicareReferenceNumber: type: - string - 'null' required: - Reason - Verified title: Medicare Eligibility_Medicare Patient Verification_Response_200 PostVerifypatientRequestBadRequestError: type: object properties: Reason: type: string Verified: type: - boolean - 'null' CorrectSex: type: - string - 'null' CorrectGivenName: type: - string - 'null' CorrectFamilyName: type: - string - 'null' CorrectDateOfBirth: type: - string - 'null' CorrectMedicareNumber: type: - string - 'null' CorrectMedicareReferenceNumber: type: - string - 'null' required: - Reason - Verified title: PostVerifypatientRequestBadRequestError 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/VerifyPatient" payload = { "PatientSex": "1", "PatientGivenName": "Edmond", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "1986-12-18", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Success const url = 'https://api.rebateright.com.au/VerifyPatient'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"PatientSex":"1","PatientGivenName":"Edmond","PatientFamilyName":"FLETCHER","PatientDateOfBirth":"1986-12-18","PatientMedicareNumber":"4951525561","PatientMedicareRefNumber":"2"}' }; 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/VerifyPatient" payload := strings.NewReader("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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/VerifyPatient") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}" response = http.request(request) puts response.read_body ``` ```java Success import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/VerifyPatient") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}") .asString(); ``` ```php Success request('POST', 'https://api.rebateright.com.au/VerifyPatient', [ 'body' => '{ "PatientSex": "1", "PatientGivenName": "Edmond", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "1986-12-18", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Success using RestSharp; var client = new RestClient("https://api.rebateright.com.au/VerifyPatient"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Success import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "PatientSex": "1", "PatientGivenName": "Edmond", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "1986-12-18", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/VerifyPatient")! 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 Only Name import requests url = "https://api.rebateright.com.au/VerifyPatient" payload = { "PatientSex": "1", "PatientGivenName": "ONLYNAME", "PatientFamilyName": "Devo", "PatientDateOfBirth": "1980-01-01", "PatientMedicareNumber": "2297460337", "PatientMedicareRefNumber": "1" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Only Name const url = 'https://api.rebateright.com.au/VerifyPatient'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"PatientSex":"1","PatientGivenName":"ONLYNAME","PatientFamilyName":"Devo","PatientDateOfBirth":"1980-01-01","PatientMedicareNumber":"2297460337","PatientMedicareRefNumber":"1"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Only Name package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/VerifyPatient" payload := strings.NewReader("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"ONLYNAME\",\n \"PatientFamilyName\": \"Devo\",\n \"PatientDateOfBirth\": \"1980-01-01\",\n \"PatientMedicareNumber\": \"2297460337\",\n \"PatientMedicareRefNumber\": \"1\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Only Name require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/VerifyPatient") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"ONLYNAME\",\n \"PatientFamilyName\": \"Devo\",\n \"PatientDateOfBirth\": \"1980-01-01\",\n \"PatientMedicareNumber\": \"2297460337\",\n \"PatientMedicareRefNumber\": \"1\"\n}" response = http.request(request) puts response.read_body ``` ```java Only Name import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/VerifyPatient") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"ONLYNAME\",\n \"PatientFamilyName\": \"Devo\",\n \"PatientDateOfBirth\": \"1980-01-01\",\n \"PatientMedicareNumber\": \"2297460337\",\n \"PatientMedicareRefNumber\": \"1\"\n}") .asString(); ``` ```php Only Name request('POST', 'https://api.rebateright.com.au/VerifyPatient', [ 'body' => '{ "PatientSex": "1", "PatientGivenName": "ONLYNAME", "PatientFamilyName": "Devo", "PatientDateOfBirth": "1980-01-01", "PatientMedicareNumber": "2297460337", "PatientMedicareRefNumber": "1" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Only Name using RestSharp; var client = new RestClient("https://api.rebateright.com.au/VerifyPatient"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"ONLYNAME\",\n \"PatientFamilyName\": \"Devo\",\n \"PatientDateOfBirth\": \"1980-01-01\",\n \"PatientMedicareNumber\": \"2297460337\",\n \"PatientMedicareRefNumber\": \"1\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Only Name import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "PatientSex": "1", "PatientGivenName": "ONLYNAME", "PatientFamilyName": "Devo", "PatientDateOfBirth": "1980-01-01", "PatientMedicareNumber": "2297460337", "PatientMedicareRefNumber": "1" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/VerifyPatient")! 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 Deceased Patient import requests url = "https://api.rebateright.com.au/VerifyPatient" payload = { "PatientSex": "1", "PatientGivenName": "Sad", "PatientFamilyName": "Jones", "PatientDateOfBirth": "1964-09-15", "PatientMedicareNumber": "2296510128", "PatientMedicareRefNumber": "4" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Deceased Patient const url = 'https://api.rebateright.com.au/VerifyPatient'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"PatientSex":"1","PatientGivenName":"Sad","PatientFamilyName":"Jones","PatientDateOfBirth":"1964-09-15","PatientMedicareNumber":"2296510128","PatientMedicareRefNumber":"4"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Deceased Patient package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/VerifyPatient" payload := strings.NewReader("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Sad\",\n \"PatientFamilyName\": \"Jones\",\n \"PatientDateOfBirth\": \"1964-09-15\",\n \"PatientMedicareNumber\": \"2296510128\",\n \"PatientMedicareRefNumber\": \"4\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Deceased Patient require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/VerifyPatient") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Sad\",\n \"PatientFamilyName\": \"Jones\",\n \"PatientDateOfBirth\": \"1964-09-15\",\n \"PatientMedicareNumber\": \"2296510128\",\n \"PatientMedicareRefNumber\": \"4\"\n}" response = http.request(request) puts response.read_body ``` ```java Deceased Patient import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/VerifyPatient") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Sad\",\n \"PatientFamilyName\": \"Jones\",\n \"PatientDateOfBirth\": \"1964-09-15\",\n \"PatientMedicareNumber\": \"2296510128\",\n \"PatientMedicareRefNumber\": \"4\"\n}") .asString(); ``` ```php Deceased Patient request('POST', 'https://api.rebateright.com.au/VerifyPatient', [ 'body' => '{ "PatientSex": "1", "PatientGivenName": "Sad", "PatientFamilyName": "Jones", "PatientDateOfBirth": "1964-09-15", "PatientMedicareNumber": "2296510128", "PatientMedicareRefNumber": "4" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Deceased Patient using RestSharp; var client = new RestClient("https://api.rebateright.com.au/VerifyPatient"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Sad\",\n \"PatientFamilyName\": \"Jones\",\n \"PatientDateOfBirth\": \"1964-09-15\",\n \"PatientMedicareNumber\": \"2296510128\",\n \"PatientMedicareRefNumber\": \"4\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Deceased Patient import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "PatientSex": "1", "PatientGivenName": "Sad", "PatientFamilyName": "Jones", "PatientDateOfBirth": "1964-09-15", "PatientMedicareNumber": "2296510128", "PatientMedicareRefNumber": "4" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/VerifyPatient")! 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 New Medicare Card import requests url = "https://api.rebateright.com.au/VerifyPatient" payload = { "PatientSex": "2", "PatientGivenName": "Sam", "PatientFamilyName": "Harris", "PatientDateOfBirth": "2000-09-12", "PatientMedicareNumber": "6951393261", "PatientMedicareRefNumber": "3" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript New Medicare Card const url = 'https://api.rebateright.com.au/VerifyPatient'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"PatientSex":"2","PatientGivenName":"Sam","PatientFamilyName":"Harris","PatientDateOfBirth":"2000-09-12","PatientMedicareNumber":"6951393261","PatientMedicareRefNumber":"3"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go New Medicare Card package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/VerifyPatient" payload := strings.NewReader("{\n \"PatientSex\": \"2\",\n \"PatientGivenName\": \"Sam\",\n \"PatientFamilyName\": \"Harris\",\n \"PatientDateOfBirth\": \"2000-09-12\",\n \"PatientMedicareNumber\": \"6951393261\",\n \"PatientMedicareRefNumber\": \"3\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 New Medicare Card require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/VerifyPatient") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"PatientSex\": \"2\",\n \"PatientGivenName\": \"Sam\",\n \"PatientFamilyName\": \"Harris\",\n \"PatientDateOfBirth\": \"2000-09-12\",\n \"PatientMedicareNumber\": \"6951393261\",\n \"PatientMedicareRefNumber\": \"3\"\n}" response = http.request(request) puts response.read_body ``` ```java New Medicare Card import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/VerifyPatient") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"PatientSex\": \"2\",\n \"PatientGivenName\": \"Sam\",\n \"PatientFamilyName\": \"Harris\",\n \"PatientDateOfBirth\": \"2000-09-12\",\n \"PatientMedicareNumber\": \"6951393261\",\n \"PatientMedicareRefNumber\": \"3\"\n}") .asString(); ``` ```php New Medicare Card request('POST', 'https://api.rebateright.com.au/VerifyPatient', [ 'body' => '{ "PatientSex": "2", "PatientGivenName": "Sam", "PatientFamilyName": "Harris", "PatientDateOfBirth": "2000-09-12", "PatientMedicareNumber": "6951393261", "PatientMedicareRefNumber": "3" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp New Medicare Card using RestSharp; var client = new RestClient("https://api.rebateright.com.au/VerifyPatient"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"PatientSex\": \"2\",\n \"PatientGivenName\": \"Sam\",\n \"PatientFamilyName\": \"Harris\",\n \"PatientDateOfBirth\": \"2000-09-12\",\n \"PatientMedicareNumber\": \"6951393261\",\n \"PatientMedicareRefNumber\": \"3\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift New Medicare Card import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "PatientSex": "2", "PatientGivenName": "Sam", "PatientFamilyName": "Harris", "PatientDateOfBirth": "2000-09-12", "PatientMedicareNumber": "6951393261", "PatientMedicareRefNumber": "3" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/VerifyPatient")! 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 Incorrect Given Name import requests url = "https://api.rebateright.com.au/VerifyPatient" payload = { "PatientSex": "1", "PatientGivenName": "PETER", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "2009-02-08", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "3" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Incorrect Given Name const url = 'https://api.rebateright.com.au/VerifyPatient'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"PatientSex":"1","PatientGivenName":"PETER","PatientFamilyName":"FLETCHER","PatientDateOfBirth":"2009-02-08","PatientMedicareNumber":"4951525561","PatientMedicareRefNumber":"3"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Incorrect Given Name package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/VerifyPatient" payload := strings.NewReader("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"PETER\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"3\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Incorrect Given Name require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/VerifyPatient") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"PETER\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"3\"\n}" response = http.request(request) puts response.read_body ``` ```java Incorrect Given Name import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/VerifyPatient") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"PETER\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"3\"\n}") .asString(); ``` ```php Incorrect Given Name request('POST', 'https://api.rebateright.com.au/VerifyPatient', [ 'body' => '{ "PatientSex": "1", "PatientGivenName": "PETER", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "2009-02-08", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "3" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Incorrect Given Name using RestSharp; var client = new RestClient("https://api.rebateright.com.au/VerifyPatient"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"PETER\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"3\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Incorrect Given Name import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "PatientSex": "1", "PatientGivenName": "PETER", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "2009-02-08", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "3" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/VerifyPatient")! 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 Incorrect Reference Number import requests url = "https://api.rebateright.com.au/VerifyPatient" payload = { "PatientSex": "1", "PatientGivenName": "Clint", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "2009-02-08", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "1" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Incorrect Reference Number const url = 'https://api.rebateright.com.au/VerifyPatient'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"PatientSex":"1","PatientGivenName":"Clint","PatientFamilyName":"FLETCHER","PatientDateOfBirth":"2009-02-08","PatientMedicareNumber":"4951525561","PatientMedicareRefNumber":"1"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Incorrect Reference Number package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/VerifyPatient" payload := strings.NewReader("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Clint\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"1\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Incorrect Reference Number require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/VerifyPatient") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Clint\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"1\"\n}" response = http.request(request) puts response.read_body ``` ```java Incorrect Reference Number import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/VerifyPatient") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Clint\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"1\"\n}") .asString(); ``` ```php Incorrect Reference Number request('POST', 'https://api.rebateright.com.au/VerifyPatient', [ 'body' => '{ "PatientSex": "1", "PatientGivenName": "Clint", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "2009-02-08", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "1" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Incorrect Reference Number using RestSharp; var client = new RestClient("https://api.rebateright.com.au/VerifyPatient"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Clint\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"1\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Incorrect Reference Number import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "PatientSex": "1", "PatientGivenName": "Clint", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "2009-02-08", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "1" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/VerifyPatient")! 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 Incorrect Date of Birth import requests url = "https://api.rebateright.com.au/VerifyPatient" payload = { "PatientSex": "1", "PatientGivenName": "Edmond", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "1990-01-01", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Incorrect Date of Birth const url = 'https://api.rebateright.com.au/VerifyPatient'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"PatientSex":"1","PatientGivenName":"Edmond","PatientFamilyName":"FLETCHER","PatientDateOfBirth":"1990-01-01","PatientMedicareNumber":"4951525561","PatientMedicareRefNumber":"2"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Incorrect Date of Birth package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/VerifyPatient" payload := strings.NewReader("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"1990-01-01\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Incorrect Date of Birth require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/VerifyPatient") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"1990-01-01\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}" response = http.request(request) puts response.read_body ``` ```java Incorrect Date of Birth import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/VerifyPatient") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"1990-01-01\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}") .asString(); ``` ```php Incorrect Date of Birth request('POST', 'https://api.rebateright.com.au/VerifyPatient', [ 'body' => '{ "PatientSex": "1", "PatientGivenName": "Edmond", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "1990-01-01", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Incorrect Date of Birth using RestSharp; var client = new RestClient("https://api.rebateright.com.au/VerifyPatient"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"1990-01-01\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Incorrect Date of Birth import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "PatientSex": "1", "PatientGivenName": "Edmond", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "1990-01-01", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/VerifyPatient")! 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 Incorrect Medicare Number import requests url = "https://api.rebateright.com.au/VerifyPatient" payload = { "PatientSex": "1", "PatientGivenName": "John", "PatientFamilyName": "Doe", "PatientDateOfBirth": "1979-09-13", "PatientMedicareNumber": "2398125261", "PatientMedicareRefNumber": "1" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Incorrect Medicare Number const url = 'https://api.rebateright.com.au/VerifyPatient'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"PatientSex":"1","PatientGivenName":"John","PatientFamilyName":"Doe","PatientDateOfBirth":"1979-09-13","PatientMedicareNumber":"2398125261","PatientMedicareRefNumber":"1"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Incorrect Medicare Number package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/VerifyPatient" payload := strings.NewReader("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"John\",\n \"PatientFamilyName\": \"Doe\",\n \"PatientDateOfBirth\": \"1979-09-13\",\n \"PatientMedicareNumber\": \"2398125261\",\n \"PatientMedicareRefNumber\": \"1\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Incorrect Medicare Number require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/VerifyPatient") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"John\",\n \"PatientFamilyName\": \"Doe\",\n \"PatientDateOfBirth\": \"1979-09-13\",\n \"PatientMedicareNumber\": \"2398125261\",\n \"PatientMedicareRefNumber\": \"1\"\n}" response = http.request(request) puts response.read_body ``` ```java Incorrect Medicare Number import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/VerifyPatient") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"John\",\n \"PatientFamilyName\": \"Doe\",\n \"PatientDateOfBirth\": \"1979-09-13\",\n \"PatientMedicareNumber\": \"2398125261\",\n \"PatientMedicareRefNumber\": \"1\"\n}") .asString(); ``` ```php Incorrect Medicare Number request('POST', 'https://api.rebateright.com.au/VerifyPatient', [ 'body' => '{ "PatientSex": "1", "PatientGivenName": "John", "PatientFamilyName": "Doe", "PatientDateOfBirth": "1979-09-13", "PatientMedicareNumber": "2398125261", "PatientMedicareRefNumber": "1" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Incorrect Medicare Number using RestSharp; var client = new RestClient("https://api.rebateright.com.au/VerifyPatient"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"John\",\n \"PatientFamilyName\": \"Doe\",\n \"PatientDateOfBirth\": \"1979-09-13\",\n \"PatientMedicareNumber\": \"2398125261\",\n \"PatientMedicareRefNumber\": \"1\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Incorrect Medicare Number import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "PatientSex": "1", "PatientGivenName": "John", "PatientFamilyName": "Doe", "PatientDateOfBirth": "1979-09-13", "PatientMedicareNumber": "2398125261", "PatientMedicareRefNumber": "1" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/VerifyPatient")! 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 Incorrect Gender (Accepted) import requests url = "https://api.rebateright.com.au/VerifyPatient" payload = { "PatientSex": "2", "PatientGivenName": "Edmond", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "1986-12-18", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Incorrect Gender (Accepted) const url = 'https://api.rebateright.com.au/VerifyPatient'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"PatientSex":"2","PatientGivenName":"Edmond","PatientFamilyName":"FLETCHER","PatientDateOfBirth":"1986-12-18","PatientMedicareNumber":"4951525561","PatientMedicareRefNumber":"2"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Incorrect Gender (Accepted) package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/VerifyPatient" payload := strings.NewReader("{\n \"PatientSex\": \"2\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Incorrect Gender (Accepted) require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/VerifyPatient") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"PatientSex\": \"2\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}" response = http.request(request) puts response.read_body ``` ```java Incorrect Gender (Accepted) import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/VerifyPatient") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"PatientSex\": \"2\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}") .asString(); ``` ```php Incorrect Gender (Accepted) request('POST', 'https://api.rebateright.com.au/VerifyPatient', [ 'body' => '{ "PatientSex": "2", "PatientGivenName": "Edmond", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "1986-12-18", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Incorrect Gender (Accepted) using RestSharp; var client = new RestClient("https://api.rebateright.com.au/VerifyPatient"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"PatientSex\": \"2\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Incorrect Gender (Accepted) import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "PatientSex": "2", "PatientGivenName": "Edmond", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "1986-12-18", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/VerifyPatient")! 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 Incorrect Gender and Given Name import requests url = "https://api.rebateright.com.au/VerifyPatient" payload = { "PatientSex": "2", "PatientGivenName": "PETER", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "2009-02-08", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "3" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Incorrect Gender and Given Name const url = 'https://api.rebateright.com.au/VerifyPatient'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"PatientSex":"2","PatientGivenName":"PETER","PatientFamilyName":"FLETCHER","PatientDateOfBirth":"2009-02-08","PatientMedicareNumber":"4951525561","PatientMedicareRefNumber":"3"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Incorrect Gender and Given Name package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/VerifyPatient" payload := strings.NewReader("{\n \"PatientSex\": \"2\",\n \"PatientGivenName\": \"PETER\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"3\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Incorrect Gender and Given Name require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/VerifyPatient") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"PatientSex\": \"2\",\n \"PatientGivenName\": \"PETER\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"3\"\n}" response = http.request(request) puts response.read_body ``` ```java Incorrect Gender and Given Name import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/VerifyPatient") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"PatientSex\": \"2\",\n \"PatientGivenName\": \"PETER\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"3\"\n}") .asString(); ``` ```php Incorrect Gender and Given Name request('POST', 'https://api.rebateright.com.au/VerifyPatient', [ 'body' => '{ "PatientSex": "2", "PatientGivenName": "PETER", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "2009-02-08", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "3" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Incorrect Gender and Given Name using RestSharp; var client = new RestClient("https://api.rebateright.com.au/VerifyPatient"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"PatientSex\": \"2\",\n \"PatientGivenName\": \"PETER\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"3\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Incorrect Gender and Given Name import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "PatientSex": "2", "PatientGivenName": "PETER", "PatientFamilyName": "FLETCHER", "PatientDateOfBirth": "2009-02-08", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "3" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/VerifyPatient")! 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 Incorrect Given and Family Name import requests url = "https://api.rebateright.com.au/VerifyPatient" payload = { "PatientSex": "1", "PatientGivenName": "PETER", "PatientFamilyName": "SMITH", "PatientDateOfBirth": "2009-02-08", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "3" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Incorrect Given and Family Name const url = 'https://api.rebateright.com.au/VerifyPatient'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"PatientSex":"1","PatientGivenName":"PETER","PatientFamilyName":"SMITH","PatientDateOfBirth":"2009-02-08","PatientMedicareNumber":"4951525561","PatientMedicareRefNumber":"3"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Incorrect Given and Family Name package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/VerifyPatient" payload := strings.NewReader("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"PETER\",\n \"PatientFamilyName\": \"SMITH\",\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"3\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Incorrect Given and Family Name require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/VerifyPatient") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"PETER\",\n \"PatientFamilyName\": \"SMITH\",\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"3\"\n}" response = http.request(request) puts response.read_body ``` ```java Incorrect Given and Family Name import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/VerifyPatient") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"PETER\",\n \"PatientFamilyName\": \"SMITH\",\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"3\"\n}") .asString(); ``` ```php Incorrect Given and Family Name request('POST', 'https://api.rebateright.com.au/VerifyPatient', [ 'body' => '{ "PatientSex": "1", "PatientGivenName": "PETER", "PatientFamilyName": "SMITH", "PatientDateOfBirth": "2009-02-08", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "3" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Incorrect Given and Family Name using RestSharp; var client = new RestClient("https://api.rebateright.com.au/VerifyPatient"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"PETER\",\n \"PatientFamilyName\": \"SMITH\",\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"3\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Incorrect Given and Family Name import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "PatientSex": "1", "PatientGivenName": "PETER", "PatientFamilyName": "SMITH", "PatientDateOfBirth": "2009-02-08", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "3" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/VerifyPatient")! 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 Incorrect Family Name (Accepted) import requests url = "https://api.rebateright.com.au/VerifyPatient" payload = { "PatientSex": "1", "PatientGivenName": "Edmond", "PatientFamilyName": "SMITH", "PatientDateOfBirth": "1986-12-18", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Incorrect Family Name (Accepted) const url = 'https://api.rebateright.com.au/VerifyPatient'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"PatientSex":"1","PatientGivenName":"Edmond","PatientFamilyName":"SMITH","PatientDateOfBirth":"1986-12-18","PatientMedicareNumber":"4951525561","PatientMedicareRefNumber":"2"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Incorrect Family Name (Accepted) package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/VerifyPatient" payload := strings.NewReader("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"SMITH\",\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Incorrect Family Name (Accepted) require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/VerifyPatient") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"SMITH\",\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}" response = http.request(request) puts response.read_body ``` ```java Incorrect Family Name (Accepted) import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/VerifyPatient") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"SMITH\",\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}") .asString(); ``` ```php Incorrect Family Name (Accepted) request('POST', 'https://api.rebateright.com.au/VerifyPatient', [ 'body' => '{ "PatientSex": "1", "PatientGivenName": "Edmond", "PatientFamilyName": "SMITH", "PatientDateOfBirth": "1986-12-18", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Incorrect Family Name (Accepted) using RestSharp; var client = new RestClient("https://api.rebateright.com.au/VerifyPatient"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"PatientSex\": \"1\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"SMITH\",\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Incorrect Family Name (Accepted) import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "PatientSex": "1", "PatientGivenName": "Edmond", "PatientFamilyName": "SMITH", "PatientDateOfBirth": "1986-12-18", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/VerifyPatient")! 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 Incorrect Gender and Family Name (Accepted) import requests url = "https://api.rebateright.com.au/VerifyPatient" payload = { "PatientSex": "2", "PatientGivenName": "Edmond", "PatientFamilyName": "SMITH", "PatientDateOfBirth": "1986-12-18", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Incorrect Gender and Family Name (Accepted) const url = 'https://api.rebateright.com.au/VerifyPatient'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"PatientSex":"2","PatientGivenName":"Edmond","PatientFamilyName":"SMITH","PatientDateOfBirth":"1986-12-18","PatientMedicareNumber":"4951525561","PatientMedicareRefNumber":"2"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Incorrect Gender and Family Name (Accepted) package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/VerifyPatient" payload := strings.NewReader("{\n \"PatientSex\": \"2\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"SMITH\",\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Incorrect Gender and Family Name (Accepted) require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/VerifyPatient") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"PatientSex\": \"2\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"SMITH\",\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}" response = http.request(request) puts response.read_body ``` ```java Incorrect Gender and Family Name (Accepted) import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/VerifyPatient") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"PatientSex\": \"2\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"SMITH\",\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}") .asString(); ``` ```php Incorrect Gender and Family Name (Accepted) request('POST', 'https://api.rebateright.com.au/VerifyPatient', [ 'body' => '{ "PatientSex": "2", "PatientGivenName": "Edmond", "PatientFamilyName": "SMITH", "PatientDateOfBirth": "1986-12-18", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Incorrect Gender and Family Name (Accepted) using RestSharp; var client = new RestClient("https://api.rebateright.com.au/VerifyPatient"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"PatientSex\": \"2\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientFamilyName\": \"SMITH\",\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Incorrect Gender and Family Name (Accepted) import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "PatientSex": "2", "PatientGivenName": "Edmond", "PatientFamilyName": "SMITH", "PatientDateOfBirth": "1986-12-18", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/VerifyPatient")! 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() ``` 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. # Eligibility Check POST https://api.rebateright.com.au/CalculateRebate Content-Type: application/json This endpoint receives patient details and Medicare items. It verifies patient information with Medicare and calculates rebate amounts. #### 🎨 **How It Works** - Uses **Medicare Patient Verification**, **Medicare Eligibility Check**, and **RebateRight Rules Engine** services behind the scenes. - The response includes enriched data, combining RebateRight insights and MBS item details. - Returns the rebate amount Medicare will pay for a specific item for a given patient. The **reason** for the benfit amount is also included in the response. - If no rebate is payable, the response includes the **reason** why (e.g., limitations, ineligibility). In summary, this endpoint performs multiple checks and provides a detailed breakdown of Medicare rebate eligibility and the reasons behind the rebate amount. Reference: https://docs.rebateright.com.au/api-reference/medicare-eligibility/eligibility-check ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /CalculateRebate: post: operationId: eligibility-check summary: Eligibility Check description: >- This endpoint receives patient details and Medicare items. It verifies patient information with Medicare and calculates rebate amounts. #### 🎨 **How It Works** - Uses **Medicare Patient Verification**, **Medicare Eligibility Check**, and **RebateRight Rules Engine** services behind the scenes. - The response includes enriched data, combining RebateRight insights and MBS item details. - Returns the rebate amount Medicare will pay for a specific item for a given patient. The **reason** for the benfit amount is also included in the response. - If no rebate is payable, the response includes the **reason** why (e.g., limitations, ineligibility). In summary, this endpoint performs multiple checks and provides a detailed breakdown of Medicare rebate eligibility and the reasons behind the rebate amount. tags: - subpackage_medicareEligibility parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: >- #/components/schemas/Medicare Eligibility_Eligibility Check_Response_200 requestBody: content: application/json: schema: type: object properties: DateOfService: type: string format: date InHospitalTreatment: type: boolean BulkBilled: type: boolean PatientDateOfBirth: type: string format: date PatientFamilyName: type: string PatientGivenName: type: string PatientSex: type: string PatientMedicareNumber: type: string PatientMedicareRefNumber: type: string ReferrerProviderNumber: type: string ServicingProviderNumber: type: string PrincipalProviderNumber: type: string MedicareItems: type: array items: $ref: >- #/components/schemas/CalculateRebatePostRequestBodyContentApplicationJsonSchemaMedicareItemsItems required: - InHospitalTreatment - PatientDateOfBirth - PatientFamilyName - PatientGivenName - PatientSex - PatientMedicareNumber - PatientMedicareRefNumber - ServicingProviderNumber - PrincipalProviderNumber - MedicareItems servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: CalculateRebatePostRequestBodyContentApplicationJsonSchemaMedicareItemsItems: type: object properties: ItemNumber: type: string required: - ItemNumber title: >- CalculateRebatePostRequestBodyContentApplicationJsonSchemaMedicareItemsItems CalculateRebatePostResponsesContentApplicationJsonSchemaPatientVerification: type: object properties: Verified: type: boolean Reason: type: string CorrectSex: type: - string - 'null' CorrectGivenName: type: - string - 'null' CorrectFamilyName: type: - string - 'null' CorrectDateOfBirth: type: - string - 'null' CorrectMedicareNumber: type: - string - 'null' CorrectMedicareReferenceNumber: type: - string - 'null' required: - Verified - Reason title: >- CalculateRebatePostResponsesContentApplicationJsonSchemaPatientVerification CalculateRebatePostResponsesContentApplicationJsonSchemaRebatesItems: type: object properties: ItemNumber: type: string IsEligible: type: - boolean - 'null' Reason: type: string Benefit: type: string ItemScheduleFee: type: - string - 'null' required: - ItemNumber - IsEligible - Reason - Benefit - ItemScheduleFee title: CalculateRebatePostResponsesContentApplicationJsonSchemaRebatesItems Medicare Eligibility_Eligibility Check_Response_200: type: object properties: PatientVerification: oneOf: - $ref: >- #/components/schemas/CalculateRebatePostResponsesContentApplicationJsonSchemaPatientVerification - type: 'null' Rebates: type: array items: $ref: >- #/components/schemas/CalculateRebatePostResponsesContentApplicationJsonSchemaRebatesItems Reason: type: string required: - PatientVerification - Rebates - Reason title: Medicare Eligibility_Eligibility Check_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/CalculateRebate" payload = { "InHospitalTreatment": False, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [{ "ItemNumber": "3" }, { "ItemNumber": "123" }] } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Success const url = 'https://api.rebateright.com.au/CalculateRebate'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"InHospitalTreatment":false,"PatientDateOfBirth":"1986-12-18","PatientFamilyName":"FLETCHER","PatientGivenName":"Edmond","PatientSex":"1","PatientMedicareNumber":"4951525561","PatientMedicareRefNumber":"2","ServicingProviderNumber":"2447781L","PrincipalProviderNumber":"2447781L","MedicareItems":[{"ItemNumber":"3"},{"ItemNumber":"123"}]}' }; 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/CalculateRebate" payload := strings.NewReader("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"3\"\n },\n {\n \"ItemNumber\": \"123\"\n }\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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/CalculateRebate") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"3\"\n },\n {\n \"ItemNumber\": \"123\"\n }\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 response = Unirest.post("https://api.rebateright.com.au/CalculateRebate") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"3\"\n },\n {\n \"ItemNumber\": \"123\"\n }\n ]\n}") .asString(); ``` ```php Success request('POST', 'https://api.rebateright.com.au/CalculateRebate', [ 'body' => '{ "InHospitalTreatment": false, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [ { "ItemNumber": "3" }, { "ItemNumber": "123" } ] }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Success using RestSharp; var client = new RestClient("https://api.rebateright.com.au/CalculateRebate"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"3\"\n },\n {\n \"ItemNumber\": \"123\"\n }\n ]\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Success import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "InHospitalTreatment": false, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [["ItemNumber": "3"], ["ItemNumber": "123"]] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/CalculateRebate")! 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 Age Verification import requests url = "https://api.rebateright.com.au/CalculateRebate" payload = { "InHospitalTreatment": False, "PatientDateOfBirth": "2012-09-20", "PatientFamilyName": "Smith", "PatientGivenName": "Lyndall", "PatientSex": "2", "PatientMedicareNumber": "2951386025", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [{ "ItemNumber": "145" }] } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Age Verification const url = 'https://api.rebateright.com.au/CalculateRebate'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"InHospitalTreatment":false,"PatientDateOfBirth":"2012-09-20","PatientFamilyName":"Smith","PatientGivenName":"Lyndall","PatientSex":"2","PatientMedicareNumber":"2951386025","PatientMedicareRefNumber":"2","ServicingProviderNumber":"2447781L","PrincipalProviderNumber":"2447781L","MedicareItems":[{"ItemNumber":"145"}]}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Age Verification package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/CalculateRebate" payload := strings.NewReader("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"2012-09-20\",\n \"PatientFamilyName\": \"Smith\",\n \"PatientGivenName\": \"Lyndall\",\n \"PatientSex\": \"2\",\n \"PatientMedicareNumber\": \"2951386025\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"145\"\n }\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Age Verification require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/CalculateRebate") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"2012-09-20\",\n \"PatientFamilyName\": \"Smith\",\n \"PatientGivenName\": \"Lyndall\",\n \"PatientSex\": \"2\",\n \"PatientMedicareNumber\": \"2951386025\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"145\"\n }\n ]\n}" response = http.request(request) puts response.read_body ``` ```java Age Verification import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/CalculateRebate") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"2012-09-20\",\n \"PatientFamilyName\": \"Smith\",\n \"PatientGivenName\": \"Lyndall\",\n \"PatientSex\": \"2\",\n \"PatientMedicareNumber\": \"2951386025\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"145\"\n }\n ]\n}") .asString(); ``` ```php Age Verification request('POST', 'https://api.rebateright.com.au/CalculateRebate', [ 'body' => '{ "InHospitalTreatment": false, "PatientDateOfBirth": "2012-09-20", "PatientFamilyName": "Smith", "PatientGivenName": "Lyndall", "PatientSex": "2", "PatientMedicareNumber": "2951386025", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [ { "ItemNumber": "145" } ] }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Age Verification using RestSharp; var client = new RestClient("https://api.rebateright.com.au/CalculateRebate"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"2012-09-20\",\n \"PatientFamilyName\": \"Smith\",\n \"PatientGivenName\": \"Lyndall\",\n \"PatientSex\": \"2\",\n \"PatientMedicareNumber\": \"2951386025\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"145\"\n }\n ]\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Age Verification import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "InHospitalTreatment": false, "PatientDateOfBirth": "2012-09-20", "PatientFamilyName": "Smith", "PatientGivenName": "Lyndall", "PatientSex": "2", "PatientMedicareNumber": "2951386025", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [["ItemNumber": "145"]] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/CalculateRebate")! 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 Missing Referrer import requests url = "https://api.rebateright.com.au/CalculateRebate" payload = { "InHospitalTreatment": False, "PatientDateOfBirth": "1940-06-17", "PatientFamilyName": "Smith", "PatientGivenName": "Henry", "PatientSex": "1", "PatientMedicareNumber": "2951386025", "PatientMedicareRefNumber": "1", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [{ "ItemNumber": "145" }] } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Missing Referrer const url = 'https://api.rebateright.com.au/CalculateRebate'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"InHospitalTreatment":false,"PatientDateOfBirth":"1940-06-17","PatientFamilyName":"Smith","PatientGivenName":"Henry","PatientSex":"1","PatientMedicareNumber":"2951386025","PatientMedicareRefNumber":"1","ServicingProviderNumber":"2447781L","PrincipalProviderNumber":"2447781L","MedicareItems":[{"ItemNumber":"145"}]}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Missing Referrer package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/CalculateRebate" payload := strings.NewReader("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1940-06-17\",\n \"PatientFamilyName\": \"Smith\",\n \"PatientGivenName\": \"Henry\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"2951386025\",\n \"PatientMedicareRefNumber\": \"1\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"145\"\n }\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Missing Referrer require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/CalculateRebate") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1940-06-17\",\n \"PatientFamilyName\": \"Smith\",\n \"PatientGivenName\": \"Henry\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"2951386025\",\n \"PatientMedicareRefNumber\": \"1\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"145\"\n }\n ]\n}" response = http.request(request) puts response.read_body ``` ```java Missing Referrer import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/CalculateRebate") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1940-06-17\",\n \"PatientFamilyName\": \"Smith\",\n \"PatientGivenName\": \"Henry\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"2951386025\",\n \"PatientMedicareRefNumber\": \"1\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"145\"\n }\n ]\n}") .asString(); ``` ```php Missing Referrer request('POST', 'https://api.rebateright.com.au/CalculateRebate', [ 'body' => '{ "InHospitalTreatment": false, "PatientDateOfBirth": "1940-06-17", "PatientFamilyName": "Smith", "PatientGivenName": "Henry", "PatientSex": "1", "PatientMedicareNumber": "2951386025", "PatientMedicareRefNumber": "1", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [ { "ItemNumber": "145" } ] }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Missing Referrer using RestSharp; var client = new RestClient("https://api.rebateright.com.au/CalculateRebate"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1940-06-17\",\n \"PatientFamilyName\": \"Smith\",\n \"PatientGivenName\": \"Henry\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"2951386025\",\n \"PatientMedicareRefNumber\": \"1\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"145\"\n }\n ]\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Missing Referrer import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "InHospitalTreatment": false, "PatientDateOfBirth": "1940-06-17", "PatientFamilyName": "Smith", "PatientGivenName": "Henry", "PatientSex": "1", "PatientMedicareNumber": "2951386025", "PatientMedicareRefNumber": "1", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [["ItemNumber": "145"]] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/CalculateRebate")! 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 Coning Rule import requests url = "https://api.rebateright.com.au/CalculateRebate" payload = { "InHospitalTreatment": False, "PatientDateOfBirth": "1993-08-14", "PatientFamilyName": "NASH", "PatientGivenName": "Hazel", "PatientSex": "2", "PatientMedicareNumber": "2954536421", "PatientMedicareRefNumber": "1", "ServicingProviderNumber": "2446081F", "PrincipalProviderNumber": "2446081F", "MedicareItems": [{ "ItemNumber": "72846" }, { "ItemNumber": "65070" }, { "ItemNumber": "66503" }, { "ItemNumber": "66500" }], "ReferrerProviderNumber": "2054781W" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Coning Rule const url = 'https://api.rebateright.com.au/CalculateRebate'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"InHospitalTreatment":false,"PatientDateOfBirth":"1993-08-14","PatientFamilyName":"NASH","PatientGivenName":"Hazel","PatientSex":"2","PatientMedicareNumber":"2954536421","PatientMedicareRefNumber":"1","ServicingProviderNumber":"2446081F","PrincipalProviderNumber":"2446081F","MedicareItems":[{"ItemNumber":"72846"},{"ItemNumber":"65070"},{"ItemNumber":"66503"},{"ItemNumber":"66500"}],"ReferrerProviderNumber":"2054781W"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Coning Rule package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/CalculateRebate" payload := strings.NewReader("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1993-08-14\",\n \"PatientFamilyName\": \"NASH\",\n \"PatientGivenName\": \"Hazel\",\n \"PatientSex\": \"2\",\n \"PatientMedicareNumber\": \"2954536421\",\n \"PatientMedicareRefNumber\": \"1\",\n \"ServicingProviderNumber\": \"2446081F\",\n \"PrincipalProviderNumber\": \"2446081F\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"72846\"\n },\n {\n \"ItemNumber\": \"65070\"\n },\n {\n \"ItemNumber\": \"66503\"\n },\n {\n \"ItemNumber\": \"66500\"\n }\n ],\n \"ReferrerProviderNumber\": \"2054781W\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Coning Rule require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/CalculateRebate") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1993-08-14\",\n \"PatientFamilyName\": \"NASH\",\n \"PatientGivenName\": \"Hazel\",\n \"PatientSex\": \"2\",\n \"PatientMedicareNumber\": \"2954536421\",\n \"PatientMedicareRefNumber\": \"1\",\n \"ServicingProviderNumber\": \"2446081F\",\n \"PrincipalProviderNumber\": \"2446081F\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"72846\"\n },\n {\n \"ItemNumber\": \"65070\"\n },\n {\n \"ItemNumber\": \"66503\"\n },\n {\n \"ItemNumber\": \"66500\"\n }\n ],\n \"ReferrerProviderNumber\": \"2054781W\"\n}" response = http.request(request) puts response.read_body ``` ```java Coning Rule import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/CalculateRebate") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1993-08-14\",\n \"PatientFamilyName\": \"NASH\",\n \"PatientGivenName\": \"Hazel\",\n \"PatientSex\": \"2\",\n \"PatientMedicareNumber\": \"2954536421\",\n \"PatientMedicareRefNumber\": \"1\",\n \"ServicingProviderNumber\": \"2446081F\",\n \"PrincipalProviderNumber\": \"2446081F\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"72846\"\n },\n {\n \"ItemNumber\": \"65070\"\n },\n {\n \"ItemNumber\": \"66503\"\n },\n {\n \"ItemNumber\": \"66500\"\n }\n ],\n \"ReferrerProviderNumber\": \"2054781W\"\n}") .asString(); ``` ```php Coning Rule request('POST', 'https://api.rebateright.com.au/CalculateRebate', [ 'body' => '{ "InHospitalTreatment": false, "PatientDateOfBirth": "1993-08-14", "PatientFamilyName": "NASH", "PatientGivenName": "Hazel", "PatientSex": "2", "PatientMedicareNumber": "2954536421", "PatientMedicareRefNumber": "1", "ServicingProviderNumber": "2446081F", "PrincipalProviderNumber": "2446081F", "MedicareItems": [ { "ItemNumber": "72846" }, { "ItemNumber": "65070" }, { "ItemNumber": "66503" }, { "ItemNumber": "66500" } ], "ReferrerProviderNumber": "2054781W" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Coning Rule using RestSharp; var client = new RestClient("https://api.rebateright.com.au/CalculateRebate"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1993-08-14\",\n \"PatientFamilyName\": \"NASH\",\n \"PatientGivenName\": \"Hazel\",\n \"PatientSex\": \"2\",\n \"PatientMedicareNumber\": \"2954536421\",\n \"PatientMedicareRefNumber\": \"1\",\n \"ServicingProviderNumber\": \"2446081F\",\n \"PrincipalProviderNumber\": \"2446081F\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"72846\"\n },\n {\n \"ItemNumber\": \"65070\"\n },\n {\n \"ItemNumber\": \"66503\"\n },\n {\n \"ItemNumber\": \"66500\"\n }\n ],\n \"ReferrerProviderNumber\": \"2054781W\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Coning Rule import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "InHospitalTreatment": false, "PatientDateOfBirth": "1993-08-14", "PatientFamilyName": "NASH", "PatientGivenName": "Hazel", "PatientSex": "2", "PatientMedicareNumber": "2954536421", "PatientMedicareRefNumber": "1", "ServicingProviderNumber": "2446081F", "PrincipalProviderNumber": "2446081F", "MedicareItems": [["ItemNumber": "72846"], ["ItemNumber": "65070"], ["ItemNumber": "66503"], ["ItemNumber": "66500"]], "ReferrerProviderNumber": "2054781W" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/CalculateRebate")! 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 Incorrect Given Name import requests url = "https://api.rebateright.com.au/CalculateRebate" payload = { "InHospitalTreatment": False, "PatientDateOfBirth": "2009-02-08", "PatientFamilyName": "FLETCHER", "PatientGivenName": "PETER", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "3", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [{ "ItemNumber": "82118" }] } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Incorrect Given Name const url = 'https://api.rebateright.com.au/CalculateRebate'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"InHospitalTreatment":false,"PatientDateOfBirth":"2009-02-08","PatientFamilyName":"FLETCHER","PatientGivenName":"PETER","PatientSex":"1","PatientMedicareNumber":"4951525561","PatientMedicareRefNumber":"3","ServicingProviderNumber":"2447781L","PrincipalProviderNumber":"2447781L","MedicareItems":[{"ItemNumber":"82118"}]}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Incorrect Given Name package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/CalculateRebate" payload := strings.NewReader("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"PETER\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"3\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"82118\"\n }\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Incorrect Given Name require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/CalculateRebate") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"PETER\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"3\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"82118\"\n }\n ]\n}" response = http.request(request) puts response.read_body ``` ```java Incorrect Given Name import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/CalculateRebate") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"PETER\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"3\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"82118\"\n }\n ]\n}") .asString(); ``` ```php Incorrect Given Name request('POST', 'https://api.rebateright.com.au/CalculateRebate', [ 'body' => '{ "InHospitalTreatment": false, "PatientDateOfBirth": "2009-02-08", "PatientFamilyName": "FLETCHER", "PatientGivenName": "PETER", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "3", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [ { "ItemNumber": "82118" } ] }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Incorrect Given Name using RestSharp; var client = new RestClient("https://api.rebateright.com.au/CalculateRebate"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"2009-02-08\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"PETER\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"3\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"82118\"\n }\n ]\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Incorrect Given Name import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "InHospitalTreatment": false, "PatientDateOfBirth": "2009-02-08", "PatientFamilyName": "FLETCHER", "PatientGivenName": "PETER", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "3", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [["ItemNumber": "82118"]] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/CalculateRebate")! 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 Male Item import requests url = "https://api.rebateright.com.au/CalculateRebate" payload = { "InHospitalTreatment": False, "PatientDateOfBirth": "1993-08-14", "PatientFamilyName": "NASH", "PatientGivenName": "Hazel", "PatientSex": "2", "PatientMedicareNumber": "2954536421", "PatientMedicareRefNumber": "1", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [{ "ItemNumber": "73452" }] } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Male Item const url = 'https://api.rebateright.com.au/CalculateRebate'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"InHospitalTreatment":false,"PatientDateOfBirth":"1993-08-14","PatientFamilyName":"NASH","PatientGivenName":"Hazel","PatientSex":"2","PatientMedicareNumber":"2954536421","PatientMedicareRefNumber":"1","ServicingProviderNumber":"2447781L","PrincipalProviderNumber":"2447781L","MedicareItems":[{"ItemNumber":"73452"}]}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Male Item package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/CalculateRebate" payload := strings.NewReader("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1993-08-14\",\n \"PatientFamilyName\": \"NASH\",\n \"PatientGivenName\": \"Hazel\",\n \"PatientSex\": \"2\",\n \"PatientMedicareNumber\": \"2954536421\",\n \"PatientMedicareRefNumber\": \"1\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"73452\"\n }\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Male Item require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/CalculateRebate") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1993-08-14\",\n \"PatientFamilyName\": \"NASH\",\n \"PatientGivenName\": \"Hazel\",\n \"PatientSex\": \"2\",\n \"PatientMedicareNumber\": \"2954536421\",\n \"PatientMedicareRefNumber\": \"1\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"73452\"\n }\n ]\n}" response = http.request(request) puts response.read_body ``` ```java Male Item import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/CalculateRebate") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1993-08-14\",\n \"PatientFamilyName\": \"NASH\",\n \"PatientGivenName\": \"Hazel\",\n \"PatientSex\": \"2\",\n \"PatientMedicareNumber\": \"2954536421\",\n \"PatientMedicareRefNumber\": \"1\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"73452\"\n }\n ]\n}") .asString(); ``` ```php Male Item request('POST', 'https://api.rebateright.com.au/CalculateRebate', [ 'body' => '{ "InHospitalTreatment": false, "PatientDateOfBirth": "1993-08-14", "PatientFamilyName": "NASH", "PatientGivenName": "Hazel", "PatientSex": "2", "PatientMedicareNumber": "2954536421", "PatientMedicareRefNumber": "1", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [ { "ItemNumber": "73452" } ] }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Male Item using RestSharp; var client = new RestClient("https://api.rebateright.com.au/CalculateRebate"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1993-08-14\",\n \"PatientFamilyName\": \"NASH\",\n \"PatientGivenName\": \"Hazel\",\n \"PatientSex\": \"2\",\n \"PatientMedicareNumber\": \"2954536421\",\n \"PatientMedicareRefNumber\": \"1\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"73452\"\n }\n ]\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Male Item import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "InHospitalTreatment": false, "PatientDateOfBirth": "1993-08-14", "PatientFamilyName": "NASH", "PatientGivenName": "Hazel", "PatientSex": "2", "PatientMedicareNumber": "2954536421", "PatientMedicareRefNumber": "1", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [["ItemNumber": "73452"]] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/CalculateRebate")! 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 Female Item import requests url = "https://api.rebateright.com.au/CalculateRebate" payload = { "InHospitalTreatment": False, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [{ "ItemNumber": "73451" }] } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Female Item const url = 'https://api.rebateright.com.au/CalculateRebate'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"InHospitalTreatment":false,"PatientDateOfBirth":"1986-12-18","PatientFamilyName":"FLETCHER","PatientGivenName":"Edmond","PatientSex":"1","PatientMedicareNumber":"4951525561","PatientMedicareRefNumber":"2","ServicingProviderNumber":"2447781L","PrincipalProviderNumber":"2447781L","MedicareItems":[{"ItemNumber":"73451"}]}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Female Item package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/CalculateRebate" payload := strings.NewReader("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"73451\"\n }\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Female Item require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/CalculateRebate") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"73451\"\n }\n ]\n}" response = http.request(request) puts response.read_body ``` ```java Female Item import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/CalculateRebate") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"73451\"\n }\n ]\n}") .asString(); ``` ```php Female Item request('POST', 'https://api.rebateright.com.au/CalculateRebate', [ 'body' => '{ "InHospitalTreatment": false, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [ { "ItemNumber": "73451" } ] }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Female Item using RestSharp; var client = new RestClient("https://api.rebateright.com.au/CalculateRebate"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"73451\"\n }\n ]\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Female Item import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "InHospitalTreatment": false, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [["ItemNumber": "73451"]] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/CalculateRebate")! 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 Practice Closed import requests url = "https://api.rebateright.com.au/CalculateRebate" payload = { "InHospitalTreatment": False, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [{ "ItemNumber": "104" }], "ReferrerProviderNumber": "272476MB" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Practice Closed const url = 'https://api.rebateright.com.au/CalculateRebate'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"InHospitalTreatment":false,"PatientDateOfBirth":"1986-12-18","PatientFamilyName":"FLETCHER","PatientGivenName":"Edmond","PatientSex":"1","PatientMedicareNumber":"4951525561","PatientMedicareRefNumber":"2","ServicingProviderNumber":"2447781L","PrincipalProviderNumber":"2447781L","MedicareItems":[{"ItemNumber":"104"}],"ReferrerProviderNumber":"272476MB"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Practice Closed package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/CalculateRebate" payload := strings.NewReader("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"104\"\n }\n ],\n \"ReferrerProviderNumber\": \"272476MB\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Practice Closed require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/CalculateRebate") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"104\"\n }\n ],\n \"ReferrerProviderNumber\": \"272476MB\"\n}" response = http.request(request) puts response.read_body ``` ```java Practice Closed import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/CalculateRebate") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"104\"\n }\n ],\n \"ReferrerProviderNumber\": \"272476MB\"\n}") .asString(); ``` ```php Practice Closed request('POST', 'https://api.rebateright.com.au/CalculateRebate', [ 'body' => '{ "InHospitalTreatment": false, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [ { "ItemNumber": "104" } ], "ReferrerProviderNumber": "272476MB" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Practice Closed using RestSharp; var client = new RestClient("https://api.rebateright.com.au/CalculateRebate"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"104\"\n }\n ],\n \"ReferrerProviderNumber\": \"272476MB\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Practice Closed import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "InHospitalTreatment": false, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [["ItemNumber": "104"]], "ReferrerProviderNumber": "272476MB" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/CalculateRebate")! 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 Referrer Not Eligible import requests url = "https://api.rebateright.com.au/CalculateRebate" payload = { "InHospitalTreatment": False, "PatientDateOfBirth": "1993-08-14", "PatientFamilyName": "NASH", "PatientGivenName": "Hazel", "PatientSex": "2", "PatientMedicareNumber": "2954536421", "PatientMedicareRefNumber": "1", "ServicingProviderNumber": "2447791K", "PrincipalProviderNumber": "2447781L", "MedicareItems": [{ "ItemNumber": "55712" }], "ReferrerProviderNumber": "2121331W" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Referrer Not Eligible const url = 'https://api.rebateright.com.au/CalculateRebate'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"InHospitalTreatment":false,"PatientDateOfBirth":"1993-08-14","PatientFamilyName":"NASH","PatientGivenName":"Hazel","PatientSex":"2","PatientMedicareNumber":"2954536421","PatientMedicareRefNumber":"1","ServicingProviderNumber":"2447791K","PrincipalProviderNumber":"2447781L","MedicareItems":[{"ItemNumber":"55712"}],"ReferrerProviderNumber":"2121331W"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Referrer Not Eligible package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/CalculateRebate" payload := strings.NewReader("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1993-08-14\",\n \"PatientFamilyName\": \"NASH\",\n \"PatientGivenName\": \"Hazel\",\n \"PatientSex\": \"2\",\n \"PatientMedicareNumber\": \"2954536421\",\n \"PatientMedicareRefNumber\": \"1\",\n \"ServicingProviderNumber\": \"2447791K\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"55712\"\n }\n ],\n \"ReferrerProviderNumber\": \"2121331W\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Referrer Not Eligible require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/CalculateRebate") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1993-08-14\",\n \"PatientFamilyName\": \"NASH\",\n \"PatientGivenName\": \"Hazel\",\n \"PatientSex\": \"2\",\n \"PatientMedicareNumber\": \"2954536421\",\n \"PatientMedicareRefNumber\": \"1\",\n \"ServicingProviderNumber\": \"2447791K\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"55712\"\n }\n ],\n \"ReferrerProviderNumber\": \"2121331W\"\n}" response = http.request(request) puts response.read_body ``` ```java Referrer Not Eligible import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/CalculateRebate") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1993-08-14\",\n \"PatientFamilyName\": \"NASH\",\n \"PatientGivenName\": \"Hazel\",\n \"PatientSex\": \"2\",\n \"PatientMedicareNumber\": \"2954536421\",\n \"PatientMedicareRefNumber\": \"1\",\n \"ServicingProviderNumber\": \"2447791K\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"55712\"\n }\n ],\n \"ReferrerProviderNumber\": \"2121331W\"\n}") .asString(); ``` ```php Referrer Not Eligible request('POST', 'https://api.rebateright.com.au/CalculateRebate', [ 'body' => '{ "InHospitalTreatment": false, "PatientDateOfBirth": "1993-08-14", "PatientFamilyName": "NASH", "PatientGivenName": "Hazel", "PatientSex": "2", "PatientMedicareNumber": "2954536421", "PatientMedicareRefNumber": "1", "ServicingProviderNumber": "2447791K", "PrincipalProviderNumber": "2447781L", "MedicareItems": [ { "ItemNumber": "55712" } ], "ReferrerProviderNumber": "2121331W" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Referrer Not Eligible using RestSharp; var client = new RestClient("https://api.rebateright.com.au/CalculateRebate"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1993-08-14\",\n \"PatientFamilyName\": \"NASH\",\n \"PatientGivenName\": \"Hazel\",\n \"PatientSex\": \"2\",\n \"PatientMedicareNumber\": \"2954536421\",\n \"PatientMedicareRefNumber\": \"1\",\n \"ServicingProviderNumber\": \"2447791K\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"55712\"\n }\n ],\n \"ReferrerProviderNumber\": \"2121331W\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Referrer Not Eligible import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "InHospitalTreatment": false, "PatientDateOfBirth": "1993-08-14", "PatientFamilyName": "NASH", "PatientGivenName": "Hazel", "PatientSex": "2", "PatientMedicareNumber": "2954536421", "PatientMedicareRefNumber": "1", "ServicingProviderNumber": "2447791K", "PrincipalProviderNumber": "2447781L", "MedicareItems": [["ItemNumber": "55712"]], "ReferrerProviderNumber": "2121331W" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/CalculateRebate")! 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 Same Day Item Restrictions import requests url = "https://api.rebateright.com.au/CalculateRebate" payload = { "InHospitalTreatment": True, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [{ "ItemNumber": "55703" }, { "ItemNumber": "55704" }], "BulkBilled": True } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Same Day Item Restrictions const url = 'https://api.rebateright.com.au/CalculateRebate'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"InHospitalTreatment":true,"PatientDateOfBirth":"1986-12-18","PatientFamilyName":"FLETCHER","PatientGivenName":"Edmond","PatientSex":"1","PatientMedicareNumber":"4951525561","PatientMedicareRefNumber":"2","ServicingProviderNumber":"2447781L","PrincipalProviderNumber":"2447781L","MedicareItems":[{"ItemNumber":"55703"},{"ItemNumber":"55704"}],"BulkBilled":true}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Same Day Item Restrictions package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/CalculateRebate" payload := strings.NewReader("{\n \"InHospitalTreatment\": true,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"55703\"\n },\n {\n \"ItemNumber\": \"55704\"\n }\n ],\n \"BulkBilled\": true\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Same Day Item Restrictions require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/CalculateRebate") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"InHospitalTreatment\": true,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"55703\"\n },\n {\n \"ItemNumber\": \"55704\"\n }\n ],\n \"BulkBilled\": true\n}" response = http.request(request) puts response.read_body ``` ```java Same Day Item Restrictions import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/CalculateRebate") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"InHospitalTreatment\": true,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"55703\"\n },\n {\n \"ItemNumber\": \"55704\"\n }\n ],\n \"BulkBilled\": true\n}") .asString(); ``` ```php Same Day Item Restrictions request('POST', 'https://api.rebateright.com.au/CalculateRebate', [ 'body' => '{ "InHospitalTreatment": true, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [ { "ItemNumber": "55703" }, { "ItemNumber": "55704" } ], "BulkBilled": true }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Same Day Item Restrictions using RestSharp; var client = new RestClient("https://api.rebateright.com.au/CalculateRebate"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"InHospitalTreatment\": true,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"55703\"\n },\n {\n \"ItemNumber\": \"55704\"\n }\n ],\n \"BulkBilled\": true\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Same Day Item Restrictions import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "InHospitalTreatment": true, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [["ItemNumber": "55703"], ["ItemNumber": "55704"]], "BulkBilled": true ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/CalculateRebate")! 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 Item Does Not Exist import requests url = "https://api.rebateright.com.au/CalculateRebate" payload = { "InHospitalTreatment": False, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [{ "ItemNumber": "1" }] } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Item Does Not Exist const url = 'https://api.rebateright.com.au/CalculateRebate'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"InHospitalTreatment":false,"PatientDateOfBirth":"1986-12-18","PatientFamilyName":"FLETCHER","PatientGivenName":"Edmond","PatientSex":"1","PatientMedicareNumber":"4951525561","PatientMedicareRefNumber":"2","ServicingProviderNumber":"2447781L","PrincipalProviderNumber":"2447781L","MedicareItems":[{"ItemNumber":"1"}]}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Item Does Not Exist package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/CalculateRebate" payload := strings.NewReader("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"1\"\n }\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Item Does Not Exist require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/CalculateRebate") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"1\"\n }\n ]\n}" response = http.request(request) puts response.read_body ``` ```java Item Does Not Exist import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/CalculateRebate") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"1\"\n }\n ]\n}") .asString(); ``` ```php Item Does Not Exist request('POST', 'https://api.rebateright.com.au/CalculateRebate', [ 'body' => '{ "InHospitalTreatment": false, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [ { "ItemNumber": "1" } ] }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Item Does Not Exist using RestSharp; var client = new RestClient("https://api.rebateright.com.au/CalculateRebate"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"1\"\n }\n ]\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Item Does Not Exist import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "InHospitalTreatment": false, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [["ItemNumber": "1"]] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/CalculateRebate")! 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 Max Claim Limit import requests url = "https://api.rebateright.com.au/CalculateRebate" payload = { "InHospitalTreatment": False, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [{ "ItemNumber": "104" }], "ReferrerProviderNumber": "2447791K" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Max Claim Limit const url = 'https://api.rebateright.com.au/CalculateRebate'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"InHospitalTreatment":false,"PatientDateOfBirth":"1986-12-18","PatientFamilyName":"FLETCHER","PatientGivenName":"Edmond","PatientSex":"1","PatientMedicareNumber":"4951525561","PatientMedicareRefNumber":"2","ServicingProviderNumber":"2447781L","PrincipalProviderNumber":"2447781L","MedicareItems":[{"ItemNumber":"104"}],"ReferrerProviderNumber":"2447791K"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Max Claim Limit package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/CalculateRebate" payload := strings.NewReader("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"104\"\n }\n ],\n \"ReferrerProviderNumber\": \"2447791K\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Max Claim Limit require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/CalculateRebate") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"104\"\n }\n ],\n \"ReferrerProviderNumber\": \"2447791K\"\n}" response = http.request(request) puts response.read_body ``` ```java Max Claim Limit import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/CalculateRebate") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"104\"\n }\n ],\n \"ReferrerProviderNumber\": \"2447791K\"\n}") .asString(); ``` ```php Max Claim Limit request('POST', 'https://api.rebateright.com.au/CalculateRebate', [ 'body' => '{ "InHospitalTreatment": false, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [ { "ItemNumber": "104" } ], "ReferrerProviderNumber": "2447791K" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Max Claim Limit using RestSharp; var client = new RestClient("https://api.rebateright.com.au/CalculateRebate"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"InHospitalTreatment\": false,\n \"PatientDateOfBirth\": \"1986-12-18\",\n \"PatientFamilyName\": \"FLETCHER\",\n \"PatientGivenName\": \"Edmond\",\n \"PatientSex\": \"1\",\n \"PatientMedicareNumber\": \"4951525561\",\n \"PatientMedicareRefNumber\": \"2\",\n \"ServicingProviderNumber\": \"2447781L\",\n \"PrincipalProviderNumber\": \"2447781L\",\n \"MedicareItems\": [\n {\n \"ItemNumber\": \"104\"\n }\n ],\n \"ReferrerProviderNumber\": \"2447791K\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Max Claim Limit import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "InHospitalTreatment": false, "PatientDateOfBirth": "1986-12-18", "PatientFamilyName": "FLETCHER", "PatientGivenName": "Edmond", "PatientSex": "1", "PatientMedicareNumber": "4951525561", "PatientMedicareRefNumber": "2", "ServicingProviderNumber": "2447781L", "PrincipalProviderNumber": "2447781L", "MedicareItems": [["ItemNumber": "104"]], "ReferrerProviderNumber": "2447791K" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/CalculateRebate")! 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() ``` 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. # Bulk Bill Claim — General POST https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/v1 Content-Type: application/json ## General services claim Submit a bulk bill claim for general (out-of-hospital) Medicare services. Use `serviceTypeCode: O`. A claim may contain up to 80 medical events, each with up to 14 services. Referral details, referral override code, and self deemed code must not be set on general service claims. `medicalEventDate` must not be more than 1 year before submission. Reference: https://docs.rebateright.com.au/api-reference/medicare-claiming/bulk-bill-claim/bulk-bill-claim-general ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /Medicare/bulkbillstoreforward/general/v1: post: operationId: bulk-bill-claim-general summary: Bulk Bill Claim — General description: >- ## General services claim Submit a bulk bill claim for general (out-of-hospital) Medicare services. Use `serviceTypeCode: O`. A claim may contain up to 80 medical events, each with up to 14 services. Referral details, referral override code, and self deemed code must not be set on general service claims. `medicalEventDate` must not be more than 1 year before submission. tags: - subpackage_medicareClaiming.subpackage_medicareClaiming/bulkBillClaim parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: >- #/components/schemas/Medicare Claiming_Bulk Bill Claim_Bulk Bill Claim — General_Response_200 '400': description: >- Validation or business-rule failure; body includes `serviceMessage` entries and `correlationId`. content: application/json: schema: $ref: >- #/components/schemas/PostMedicareBulkbillstoreforwardGeneralV1RequestBadRequestError requestBody: content: application/json: schema: type: object properties: correlationId: type: string description: >- Optional. Supply a unique transaction ID in the format `urn:uuid:{MinorId}{16 hex chars}` (33 characters total, e.g. `urn:uuid:MDE00000a1b2c3d4e5f6a7b8`). If the same `correlationId` is submitted twice, the second request is rejected with error `9777`. If omitted, RebateRight generates one automatically. claim: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaim required: - claim servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider: type: object properties: providerNumber: type: string required: - providerNumber title: >- MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity: type: object properties: givenName: type: string familyName: type: string dateOfBirth: type: string format: date required: - givenName - familyName - dateOfBirth title: >- MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare: type: object properties: memberNumber: type: string memberRefNumber: type: string required: - memberNumber - memberRefNumber title: >- MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient: type: object properties: identity: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity medicare: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare required: - identity - medicare title: >- MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems: type: object properties: id: type: string itemNumber: type: string chargeAmount: type: string aftercareOverrideInd: type: string duplicateServiceOverrideInd: type: string multipleProcedureOverrideInd: type: string numberOfPatientsSeen: type: string restrictiveOverrideCode: type: string text: type: string required: - id - itemNumber - chargeAmount title: >- MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems: type: object properties: id: type: string authorisationDate: type: string format: date createDateTime: type: string format: date-time medicalEventDate: type: string format: date description: >- Date the service was rendered. Must not be more than 1 year before submission. medicalEventTime: type: string submissionAuthorityInd: type: string description: >- Must be `Y`. Confirms that the Medicare benefit has been assigned by the patient through pre-assignment or post-assignment. Must be displayed to the user to enable claim submission. patient: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient service: type: array items: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems required: - id - authorisationDate - createDateTime - medicalEventDate - submissionAuthorityInd - patient - service title: >- MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaim: type: object properties: serviceTypeCode: type: string description: Must be `O` for general out-of-hospital services. serviceProvider: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider medicalEvent: type: array items: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems required: - serviceTypeCode - serviceProvider - medicalEvent title: >- MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaim Medicare Claiming_Bulk Bill Claim_Bulk Bill Claim — General_Response_200: type: object properties: claimId: type: string description: >- Claim identifier assigned by Medicare. Format is a letter prefix, 4 digits, and a `@` suffix (e.g. `F3848@`). status: type: string description: Always `SUCCESS` on a successful submission. correlationId: type: string description: Unique identifier for the request, for support tracing. required: - claimId - status - correlationId title: Medicare Claiming_Bulk Bill Claim_Bulk Bill Claim — General_Response_200 MedicareBulkbillstoreforwardGeneralV1PostResponsesContentApplicationJsonSchemaServiceMessageItems: type: object properties: code: type: string description: Medicare error code. severity: type: string reason: type: string description: Human-readable error message. required: - code - severity - reason title: >- MedicareBulkbillstoreforwardGeneralV1PostResponsesContentApplicationJsonSchemaServiceMessageItems PostMedicareBulkbillstoreforwardGeneralV1RequestBadRequestError: type: object properties: highestSeverity: type: string description: Highest severity level across all messages. E.g. `Error`. serviceMessage: type: array items: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardGeneralV1PostResponsesContentApplicationJsonSchemaServiceMessageItems correlationId: type: string required: - highestSeverity - serviceMessage - correlationId title: PostMedicareBulkbillstoreforwardGeneralV1RequestBadRequestError 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/Medicare/bulkbillstoreforward/general/v1" payload = { "claim": { "serviceTypeCode": "O", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2025-09-16", "createDateTime": "2025-09-16T10:30:00+10:00", "medicalEventDate": "2025-09-16", "submissionAuthorityInd": "Y", "patient": { "identity": { "givenName": "Edmond", "familyName": "FLETCHER", "dateOfBirth": "1986-12-18" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "2" } }, "service": [ { "id": "0001", "itemNumber": "23", "chargeAmount": "15000", "aftercareOverrideInd": "Y" } ] } ] } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Success const url = 'https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"claim":{"serviceTypeCode":"O","serviceProvider":{"providerNumber":"2447781L"},"medicalEvent":[{"id":"01","authorisationDate":"2025-09-16","createDateTime":"2025-09-16T10:30:00+10:00","medicalEventDate":"2025-09-16","submissionAuthorityInd":"Y","patient":{"identity":{"givenName":"Edmond","familyName":"FLETCHER","dateOfBirth":"1986-12-18"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"2"}},"service":[{"id":"0001","itemNumber":"23","chargeAmount":"15000","aftercareOverrideInd":"Y"}]}]}}' }; 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/Medicare/bulkbillstoreforward/general/v1" payload := strings.NewReader("{\n \"claim\": {\n \"serviceTypeCode\": \"O\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2025-09-16\",\n \"createDateTime\": \"2025-09-16T10:30:00+10:00\",\n \"medicalEventDate\": \"2025-09-16\",\n \"submissionAuthorityInd\": \"Y\",\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Edmond\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"1986-12-18\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"2\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15000\",\n \"aftercareOverrideInd\": \"Y\"\n }\n ]\n }\n ]\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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/Medicare/bulkbillstoreforward/general/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"claim\": {\n \"serviceTypeCode\": \"O\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2025-09-16\",\n \"createDateTime\": \"2025-09-16T10:30:00+10:00\",\n \"medicalEventDate\": \"2025-09-16\",\n \"submissionAuthorityInd\": \"Y\",\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Edmond\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"1986-12-18\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"2\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15000\",\n \"aftercareOverrideInd\": \"Y\"\n }\n ]\n }\n ]\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 response = Unirest.post("https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"claim\": {\n \"serviceTypeCode\": \"O\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2025-09-16\",\n \"createDateTime\": \"2025-09-16T10:30:00+10:00\",\n \"medicalEventDate\": \"2025-09-16\",\n \"submissionAuthorityInd\": \"Y\",\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Edmond\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"1986-12-18\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"2\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15000\",\n \"aftercareOverrideInd\": \"Y\"\n }\n ]\n }\n ]\n }\n}") .asString(); ``` ```php Success request('POST', 'https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/v1', [ 'body' => '{ "claim": { "serviceTypeCode": "O", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2025-09-16", "createDateTime": "2025-09-16T10:30:00+10:00", "medicalEventDate": "2025-09-16", "submissionAuthorityInd": "Y", "patient": { "identity": { "givenName": "Edmond", "familyName": "FLETCHER", "dateOfBirth": "1986-12-18" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "2" } }, "service": [ { "id": "0001", "itemNumber": "23", "chargeAmount": "15000", "aftercareOverrideInd": "Y" } ] } ] } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Success using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"claim\": {\n \"serviceTypeCode\": \"O\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2025-09-16\",\n \"createDateTime\": \"2025-09-16T10:30:00+10:00\",\n \"medicalEventDate\": \"2025-09-16\",\n \"submissionAuthorityInd\": \"Y\",\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Edmond\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"1986-12-18\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"2\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15000\",\n \"aftercareOverrideInd\": \"Y\"\n }\n ]\n }\n ]\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Success import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["claim": [ "serviceTypeCode": "O", "serviceProvider": ["providerNumber": "2447781L"], "medicalEvent": [ [ "id": "01", "authorisationDate": "2025-09-16", "createDateTime": "2025-09-16T10:30:00+10:00", "medicalEventDate": "2025-09-16", "submissionAuthorityInd": "Y", "patient": [ "identity": [ "givenName": "Edmond", "familyName": "FLETCHER", "dateOfBirth": "1986-12-18" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "2" ] ], "service": [ [ "id": "0001", "itemNumber": "23", "chargeAmount": "15000", "aftercareOverrideInd": "Y" ] ] ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/v1")! 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() ``` 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. # Bulk Bill Claim — Specialist POST https://api.rebateright.com.au/Medicare/bulkbillstoreforward/specialist/v1 Content-Type: application/json ## Specialist services claim Submit a bulk bill claim for specialist, allied health, or diagnostic imaging services. Use `serviceTypeCode: S`. A claim may contain up to 80 medical events, each with up to 14 services. Specialists may mix referral and diagnostic imaging request services in the same medical event; pathology requests must be submitted separately. Each medical event must satisfy one of the following referral conditions or an error will be returned: - A referral is set with `referral.typeCode` of `S` (specialist/allied health) or `D` (diagnostic imaging) - `referralOverrideCode` is set to `H` (hospital), `L` (lost), `E` (emergency), or `N` (not required) - `selfDeemedCode` is set to `SD` or `SS` on at least one service `medicalEventDate` must not be more than 1 year before submission. Reference: https://docs.rebateright.com.au/api-reference/medicare-claiming/bulk-bill-claim/bulk-bill-claim-specialist ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /Medicare/bulkbillstoreforward/specialist/v1: post: operationId: bulk-bill-claim-specialist summary: Bulk Bill Claim — Specialist description: >- ## Specialist services claim Submit a bulk bill claim for specialist, allied health, or diagnostic imaging services. Use `serviceTypeCode: S`. A claim may contain up to 80 medical events, each with up to 14 services. Specialists may mix referral and diagnostic imaging request services in the same medical event; pathology requests must be submitted separately. Each medical event must satisfy one of the following referral conditions or an error will be returned: - A referral is set with `referral.typeCode` of `S` (specialist/allied health) or `D` (diagnostic imaging) - `referralOverrideCode` is set to `H` (hospital), `L` (lost), `E` (emergency), or `N` (not required) - `selfDeemedCode` is set to `SD` or `SS` on at least one service `medicalEventDate` must not be more than 1 year before submission. tags: - subpackage_medicareClaiming.subpackage_medicareClaiming/bulkBillClaim parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: >- #/components/schemas/Medicare Claiming_Bulk Bill Claim_Bulk Bill Claim — Specialist_Response_200 '400': description: >- Validation or business-rule failure; body includes `serviceMessage` entries and `correlationId`. content: application/json: schema: $ref: >- #/components/schemas/PostMedicareBulkbillstoreforwardSpecialistV1RequestBadRequestError requestBody: content: application/json: schema: type: object properties: correlationId: type: string description: >- Optional. Supply a unique transaction ID in the format `urn:uuid:{MinorId}{16 hex chars}` (33 characters total, e.g. `urn:uuid:MDE00000a1b2c3d4e5f6a7b8`). If the same `correlationId` is submitted twice, the second request is rejected with error `9777`. If omitted, RebateRight generates one automatically. claim: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaim required: - claim servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider: type: object properties: providerNumber: type: string required: - providerNumber title: >- MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralProvider: type: object properties: providerNumber: type: string required: - providerNumber title: >- MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralProvider MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferral: type: object properties: issueDate: type: string format: date typeCode: type: string description: '`S` for specialist/allied health, `D` for diagnostic imaging.' periodCode: type: string provider: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralProvider required: - issueDate - typeCode - periodCode - provider title: >- MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferral MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity: type: object properties: givenName: type: string familyName: type: string dateOfBirth: type: string format: date required: - givenName - familyName - dateOfBirth title: >- MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare: type: object properties: memberNumber: type: string memberRefNumber: type: string required: - memberNumber - memberRefNumber title: >- MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient: type: object properties: identity: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity medicare: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare required: - identity - medicare title: >- MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems: type: object properties: id: type: string itemNumber: type: string chargeAmount: type: string text: type: string selfDeemedCode: type: string description: >- `SD` or `SS`. Use instead of `referral` when self-deeming the service. aftercareOverrideInd: type: string duplicateServiceOverrideInd: type: string multipleProcedureOverrideInd: type: string numberOfPatientsSeen: type: string restrictiveOverrideCode: type: string timeDuration: type: string lspNumber: type: string required: - id - itemNumber - chargeAmount - text title: >- MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems: type: object properties: id: type: string authorisationDate: type: string format: date createDateTime: type: string format: date-time medicalEventDate: type: string format: date description: >- Date the service was rendered. Must not be more than 1 year before submission. medicalEventTime: type: string submissionAuthorityInd: type: string description: >- Must be `Y`. Confirms that the Medicare benefit has been assigned by the patient through pre-assignment or post-assignment. Must be displayed to the user to enable claim submission. referralOverrideCode: type: string description: >- `H` (hospital), `L` (lost), `E` (emergency), or `N` (not required). Use instead of `referral` when no referral document exists. referral: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferral patient: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient service: type: array items: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems required: - id - authorisationDate - createDateTime - medicalEventDate - medicalEventTime - submissionAuthorityInd - referral - patient - service title: >- MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaim: type: object properties: serviceTypeCode: type: string description: >- Must be `S` for specialist, allied health, or diagnostic imaging services. serviceProvider: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider medicalEvent: type: array items: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems required: - serviceTypeCode - serviceProvider - medicalEvent title: >- MedicareBulkbillstoreforwardSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaim Medicare Claiming_Bulk Bill Claim_Bulk Bill Claim — Specialist_Response_200: type: object properties: claimId: type: string description: >- Claim identifier assigned by Medicare. Format is a letter prefix, 4 digits, and a `@` suffix (e.g. `F3849@`). status: type: string description: Always `SUCCESS` on a successful submission. correlationId: type: string description: Unique identifier for the request, for support tracing. required: - claimId - status - correlationId title: >- Medicare Claiming_Bulk Bill Claim_Bulk Bill Claim — Specialist_Response_200 MedicareBulkbillstoreforwardSpecialistV1PostResponsesContentApplicationJsonSchemaServiceMessageItems: type: object properties: code: type: string description: Medicare error code. severity: type: string reason: type: string description: Human-readable error message. required: - code - severity - reason title: >- MedicareBulkbillstoreforwardSpecialistV1PostResponsesContentApplicationJsonSchemaServiceMessageItems PostMedicareBulkbillstoreforwardSpecialistV1RequestBadRequestError: type: object properties: highestSeverity: type: string description: Highest severity level across all messages. E.g. `Error`. serviceMessage: type: array items: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardSpecialistV1PostResponsesContentApplicationJsonSchemaServiceMessageItems correlationId: type: string required: - highestSeverity - serviceMessage - correlationId title: PostMedicareBulkbillstoreforwardSpecialistV1RequestBadRequestError 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/Medicare/bulkbillstoreforward/specialist/v1" payload = { "claim": { "serviceTypeCode": "S", "serviceProvider": { "providerNumber": "2447791K" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2025-09-16", "createDateTime": "2025-09-16T08:30:00+10:00", "medicalEventDate": "2025-09-16", "medicalEventTime": "08:30:00+10:00", "submissionAuthorityInd": "Y", "referral": { "issueDate": "2025-08-01", "typeCode": "S", "periodCode": "S", "provider": { "providerNumber": "2054781W" } }, "patient": { "identity": { "givenName": "Edmond", "familyName": "FLETCHER", "dateOfBirth": "1986-12-18" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "2" } }, "service": [ { "id": "0001", "itemNumber": "104", "chargeAmount": "15075", "text": "Specialist Consultation" } ] } ] } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Success const url = 'https://api.rebateright.com.au/Medicare/bulkbillstoreforward/specialist/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"claim":{"serviceTypeCode":"S","serviceProvider":{"providerNumber":"2447791K"},"medicalEvent":[{"id":"01","authorisationDate":"2025-09-16","createDateTime":"2025-09-16T08:30:00+10:00","medicalEventDate":"2025-09-16","medicalEventTime":"08:30:00+10:00","submissionAuthorityInd":"Y","referral":{"issueDate":"2025-08-01","typeCode":"S","periodCode":"S","provider":{"providerNumber":"2054781W"}},"patient":{"identity":{"givenName":"Edmond","familyName":"FLETCHER","dateOfBirth":"1986-12-18"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"2"}},"service":[{"id":"0001","itemNumber":"104","chargeAmount":"15075","text":"Specialist Consultation"}]}]}}' }; 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/Medicare/bulkbillstoreforward/specialist/v1" payload := strings.NewReader("{\n \"claim\": {\n \"serviceTypeCode\": \"S\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447791K\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2025-09-16\",\n \"createDateTime\": \"2025-09-16T08:30:00+10:00\",\n \"medicalEventDate\": \"2025-09-16\",\n \"medicalEventTime\": \"08:30:00+10:00\",\n \"submissionAuthorityInd\": \"Y\",\n \"referral\": {\n \"issueDate\": \"2025-08-01\",\n \"typeCode\": \"S\",\n \"periodCode\": \"S\",\n \"provider\": {\n \"providerNumber\": \"2054781W\"\n }\n },\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Edmond\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"1986-12-18\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"2\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"104\",\n \"chargeAmount\": \"15075\",\n \"text\": \"Specialist Consultation\"\n }\n ]\n }\n ]\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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/Medicare/bulkbillstoreforward/specialist/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"claim\": {\n \"serviceTypeCode\": \"S\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447791K\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2025-09-16\",\n \"createDateTime\": \"2025-09-16T08:30:00+10:00\",\n \"medicalEventDate\": \"2025-09-16\",\n \"medicalEventTime\": \"08:30:00+10:00\",\n \"submissionAuthorityInd\": \"Y\",\n \"referral\": {\n \"issueDate\": \"2025-08-01\",\n \"typeCode\": \"S\",\n \"periodCode\": \"S\",\n \"provider\": {\n \"providerNumber\": \"2054781W\"\n }\n },\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Edmond\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"1986-12-18\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"2\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"104\",\n \"chargeAmount\": \"15075\",\n \"text\": \"Specialist Consultation\"\n }\n ]\n }\n ]\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 response = Unirest.post("https://api.rebateright.com.au/Medicare/bulkbillstoreforward/specialist/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"claim\": {\n \"serviceTypeCode\": \"S\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447791K\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2025-09-16\",\n \"createDateTime\": \"2025-09-16T08:30:00+10:00\",\n \"medicalEventDate\": \"2025-09-16\",\n \"medicalEventTime\": \"08:30:00+10:00\",\n \"submissionAuthorityInd\": \"Y\",\n \"referral\": {\n \"issueDate\": \"2025-08-01\",\n \"typeCode\": \"S\",\n \"periodCode\": \"S\",\n \"provider\": {\n \"providerNumber\": \"2054781W\"\n }\n },\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Edmond\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"1986-12-18\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"2\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"104\",\n \"chargeAmount\": \"15075\",\n \"text\": \"Specialist Consultation\"\n }\n ]\n }\n ]\n }\n}") .asString(); ``` ```php Success request('POST', 'https://api.rebateright.com.au/Medicare/bulkbillstoreforward/specialist/v1', [ 'body' => '{ "claim": { "serviceTypeCode": "S", "serviceProvider": { "providerNumber": "2447791K" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2025-09-16", "createDateTime": "2025-09-16T08:30:00+10:00", "medicalEventDate": "2025-09-16", "medicalEventTime": "08:30:00+10:00", "submissionAuthorityInd": "Y", "referral": { "issueDate": "2025-08-01", "typeCode": "S", "periodCode": "S", "provider": { "providerNumber": "2054781W" } }, "patient": { "identity": { "givenName": "Edmond", "familyName": "FLETCHER", "dateOfBirth": "1986-12-18" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "2" } }, "service": [ { "id": "0001", "itemNumber": "104", "chargeAmount": "15075", "text": "Specialist Consultation" } ] } ] } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Success using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/bulkbillstoreforward/specialist/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"claim\": {\n \"serviceTypeCode\": \"S\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447791K\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2025-09-16\",\n \"createDateTime\": \"2025-09-16T08:30:00+10:00\",\n \"medicalEventDate\": \"2025-09-16\",\n \"medicalEventTime\": \"08:30:00+10:00\",\n \"submissionAuthorityInd\": \"Y\",\n \"referral\": {\n \"issueDate\": \"2025-08-01\",\n \"typeCode\": \"S\",\n \"periodCode\": \"S\",\n \"provider\": {\n \"providerNumber\": \"2054781W\"\n }\n },\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Edmond\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"1986-12-18\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"2\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"104\",\n \"chargeAmount\": \"15075\",\n \"text\": \"Specialist Consultation\"\n }\n ]\n }\n ]\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Success import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["claim": [ "serviceTypeCode": "S", "serviceProvider": ["providerNumber": "2447791K"], "medicalEvent": [ [ "id": "01", "authorisationDate": "2025-09-16", "createDateTime": "2025-09-16T08:30:00+10:00", "medicalEventDate": "2025-09-16", "medicalEventTime": "08:30:00+10:00", "submissionAuthorityInd": "Y", "referral": [ "issueDate": "2025-08-01", "typeCode": "S", "periodCode": "S", "provider": ["providerNumber": "2054781W"] ], "patient": [ "identity": [ "givenName": "Edmond", "familyName": "FLETCHER", "dateOfBirth": "1986-12-18" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "2" ] ], "service": [ [ "id": "0001", "itemNumber": "104", "chargeAmount": "15075", "text": "Specialist Consultation" ] ] ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/bulkbillstoreforward/specialist/v1")! 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() ``` 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. # Bulk Bill Claim — Pathology POST https://api.rebateright.com.au/Medicare/bulkbillstoreforward/pathology/v1 Content-Type: application/json ## Pathology services claim Submit a bulk bill claim for pathology services. Use `serviceTypeCode: P`. A claim may contain up to 80 medical events, each with up to 14 services. Each medical event must satisfy one of the following referral conditions or an error will be returned: - A pathology referral is set with `referral.typeCode: P` - `referralOverrideCode` is set to `N` (not required) - `selfDeemedCode` is set to `SD` on at least one service (SS is not permitted for pathology) `medicalEventDate` must not be more than 1 year before submission. Reference: https://docs.rebateright.com.au/api-reference/medicare-claiming/bulk-bill-claim/bulk-bill-claim-pathology ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /Medicare/bulkbillstoreforward/pathology/v1: post: operationId: bulk-bill-claim-pathology summary: Bulk Bill Claim — Pathology description: >- ## Pathology services claim Submit a bulk bill claim for pathology services. Use `serviceTypeCode: P`. A claim may contain up to 80 medical events, each with up to 14 services. Each medical event must satisfy one of the following referral conditions or an error will be returned: - A pathology referral is set with `referral.typeCode: P` - `referralOverrideCode` is set to `N` (not required) - `selfDeemedCode` is set to `SD` on at least one service (SS is not permitted for pathology) `medicalEventDate` must not be more than 1 year before submission. tags: - subpackage_medicareClaiming.subpackage_medicareClaiming/bulkBillClaim parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: >- #/components/schemas/Medicare Claiming_Bulk Bill Claim_Bulk Bill Claim — Pathology_Response_200 '400': description: >- Validation or business-rule failure; body includes `serviceMessage` entries and `correlationId`. content: application/json: schema: $ref: >- #/components/schemas/PostMedicareBulkbillstoreforwardPathologyV1RequestBadRequestError requestBody: content: application/json: schema: type: object properties: correlationId: type: string description: >- Optional. Supply a unique transaction ID in the format `urn:uuid:{MinorId}{16 hex chars}` (33 characters total, e.g. `urn:uuid:MDE00000a1b2c3d4e5f6a7b8`). If the same `correlationId` is submitted twice, the second request is rejected with error `9777`. If omitted, RebateRight generates one automatically. claim: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaim required: - claim servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider: type: object properties: providerNumber: type: string required: - providerNumber title: >- MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralProvider: type: object properties: providerNumber: type: string required: - providerNumber title: >- MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralProvider MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferral: type: object properties: issueDate: type: string format: date typeCode: type: string description: Must be `P` for pathology referrals. provider: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralProvider required: - issueDate - typeCode - provider title: >- MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferral MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity: type: object properties: givenName: type: string familyName: type: string dateOfBirth: type: string format: date required: - givenName - familyName - dateOfBirth title: >- MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare: type: object properties: memberNumber: type: string memberRefNumber: type: string required: - memberNumber - memberRefNumber title: >- MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient: type: object properties: identity: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity medicare: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare required: - identity - medicare title: >- MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems: type: object properties: id: type: string itemNumber: type: string chargeAmount: type: string collectionDateTime: type: string format: date-time accessionDateTime: type: string format: date-time description: >- Must not be after `medicalEventDate` and `medicalEventTime` (if supplied). scpId: type: string description: SCP (Specimen Collection Point) identifier. rule3ExemptInd: type: string description: >- Set to `Y` to claim Rule 3 exemption. Requires `medicalEventTime` to be set. s4b3ExemptInd: type: string selfDeemedCode: type: string description: >- Set to `SD` to self-deem the service. `SS` is not permitted for pathology. lspNumber: type: string timeDuration: type: string aftercareOverrideInd: type: string duplicateServiceOverrideInd: type: string multipleProcedureOverrideInd: type: string numberOfPatientsSeen: type: string restrictiveOverrideCode: type: string text: type: string required: - id - itemNumber - chargeAmount title: >- MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems: type: object properties: id: type: string authorisationDate: type: string format: date createDateTime: type: string format: date-time medicalEventDate: type: string format: date description: >- Date the service was rendered. Must not be more than 1 year before submission. medicalEventTime: type: string description: >- Required when `rule3ExemptInd` is set to `Y` on any service in the event. submissionAuthorityInd: type: string description: >- Must be `Y`. Confirms that the Medicare benefit has been assigned by the patient through pre-assignment or post-assignment. Must be displayed to the user to enable claim submission. referralOverrideCode: type: string description: Set to `N` if no referral is required. referral: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferral patient: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient service: type: array items: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems required: - id - authorisationDate - createDateTime - medicalEventDate - submissionAuthorityInd - patient - service title: >- MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaim: type: object properties: serviceTypeCode: type: string description: Must be `P` for pathology services. facilityId: type: string description: Required when `hospitalInd` is `Y`. hospitalInd: type: string description: Set to `Y` for in-hospital pathology services. serviceProvider: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider medicalEvent: type: array items: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems required: - serviceTypeCode - serviceProvider - medicalEvent title: >- MedicareBulkbillstoreforwardPathologyV1PostRequestBodyContentApplicationJsonSchemaClaim Medicare Claiming_Bulk Bill Claim_Bulk Bill Claim — Pathology_Response_200: type: object properties: claimId: type: string description: >- Claim identifier assigned by Medicare. Format is a letter prefix, 4 digits, and a `@` suffix (e.g. `F3850@`). status: type: string description: Always `SUCCESS` on a successful submission. correlationId: type: string description: Unique identifier for the request, for support tracing. required: - claimId - status - correlationId title: >- Medicare Claiming_Bulk Bill Claim_Bulk Bill Claim — Pathology_Response_200 MedicareBulkbillstoreforwardPathologyV1PostResponsesContentApplicationJsonSchemaServiceMessageItems: type: object properties: code: type: string description: Medicare error code. severity: type: string reason: type: string description: Human-readable error message. required: - code - severity - reason title: >- MedicareBulkbillstoreforwardPathologyV1PostResponsesContentApplicationJsonSchemaServiceMessageItems PostMedicareBulkbillstoreforwardPathologyV1RequestBadRequestError: type: object properties: highestSeverity: type: string description: Highest severity level across all messages. E.g. `Error`. serviceMessage: type: array items: $ref: >- #/components/schemas/MedicareBulkbillstoreforwardPathologyV1PostResponsesContentApplicationJsonSchemaServiceMessageItems correlationId: type: string required: - highestSeverity - serviceMessage - correlationId title: PostMedicareBulkbillstoreforwardPathologyV1RequestBadRequestError 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/Medicare/bulkbillstoreforward/pathology/v1" payload = { "claim": { "serviceTypeCode": "P", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2025-09-16", "createDateTime": "2025-09-17T08:30:00+10:00", "medicalEventDate": "2025-09-16", "submissionAuthorityInd": "Y", "patient": { "identity": { "givenName": "Edmond", "familyName": "FLETCHER", "dateOfBirth": "1986-12-18" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "2" } }, "service": [ { "id": "0001", "itemNumber": "65120", "chargeAmount": "15075", "collectionDateTime": "2025-09-16T07:00:00+10:00", "accessionDateTime": "2025-09-16T07:00:00+10:00", "scpId": "00001", "rule3ExemptInd": "Y" } ], "medicalEventTime": "07:00:00+10:00", "referral": { "issueDate": "2025-08-01", "typeCode": "P", "provider": { "providerNumber": "2447791K" } } } ] } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Success const url = 'https://api.rebateright.com.au/Medicare/bulkbillstoreforward/pathology/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"claim":{"serviceTypeCode":"P","serviceProvider":{"providerNumber":"2447781L"},"medicalEvent":[{"id":"01","authorisationDate":"2025-09-16","createDateTime":"2025-09-17T08:30:00+10:00","medicalEventDate":"2025-09-16","submissionAuthorityInd":"Y","patient":{"identity":{"givenName":"Edmond","familyName":"FLETCHER","dateOfBirth":"1986-12-18"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"2"}},"service":[{"id":"0001","itemNumber":"65120","chargeAmount":"15075","collectionDateTime":"2025-09-16T07:00:00+10:00","accessionDateTime":"2025-09-16T07:00:00+10:00","scpId":"00001","rule3ExemptInd":"Y"}],"medicalEventTime":"07:00:00+10:00","referral":{"issueDate":"2025-08-01","typeCode":"P","provider":{"providerNumber":"2447791K"}}}]}}' }; 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/Medicare/bulkbillstoreforward/pathology/v1" payload := strings.NewReader("{\n \"claim\": {\n \"serviceTypeCode\": \"P\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2025-09-16\",\n \"createDateTime\": \"2025-09-17T08:30:00+10:00\",\n \"medicalEventDate\": \"2025-09-16\",\n \"submissionAuthorityInd\": \"Y\",\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Edmond\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"1986-12-18\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"2\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"65120\",\n \"chargeAmount\": \"15075\",\n \"collectionDateTime\": \"2025-09-16T07:00:00+10:00\",\n \"accessionDateTime\": \"2025-09-16T07:00:00+10:00\",\n \"scpId\": \"00001\",\n \"rule3ExemptInd\": \"Y\"\n }\n ],\n \"medicalEventTime\": \"07:00:00+10:00\",\n \"referral\": {\n \"issueDate\": \"2025-08-01\",\n \"typeCode\": \"P\",\n \"provider\": {\n \"providerNumber\": \"2447791K\"\n }\n }\n }\n ]\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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/Medicare/bulkbillstoreforward/pathology/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"claim\": {\n \"serviceTypeCode\": \"P\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2025-09-16\",\n \"createDateTime\": \"2025-09-17T08:30:00+10:00\",\n \"medicalEventDate\": \"2025-09-16\",\n \"submissionAuthorityInd\": \"Y\",\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Edmond\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"1986-12-18\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"2\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"65120\",\n \"chargeAmount\": \"15075\",\n \"collectionDateTime\": \"2025-09-16T07:00:00+10:00\",\n \"accessionDateTime\": \"2025-09-16T07:00:00+10:00\",\n \"scpId\": \"00001\",\n \"rule3ExemptInd\": \"Y\"\n }\n ],\n \"medicalEventTime\": \"07:00:00+10:00\",\n \"referral\": {\n \"issueDate\": \"2025-08-01\",\n \"typeCode\": \"P\",\n \"provider\": {\n \"providerNumber\": \"2447791K\"\n }\n }\n }\n ]\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 response = Unirest.post("https://api.rebateright.com.au/Medicare/bulkbillstoreforward/pathology/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"claim\": {\n \"serviceTypeCode\": \"P\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2025-09-16\",\n \"createDateTime\": \"2025-09-17T08:30:00+10:00\",\n \"medicalEventDate\": \"2025-09-16\",\n \"submissionAuthorityInd\": \"Y\",\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Edmond\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"1986-12-18\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"2\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"65120\",\n \"chargeAmount\": \"15075\",\n \"collectionDateTime\": \"2025-09-16T07:00:00+10:00\",\n \"accessionDateTime\": \"2025-09-16T07:00:00+10:00\",\n \"scpId\": \"00001\",\n \"rule3ExemptInd\": \"Y\"\n }\n ],\n \"medicalEventTime\": \"07:00:00+10:00\",\n \"referral\": {\n \"issueDate\": \"2025-08-01\",\n \"typeCode\": \"P\",\n \"provider\": {\n \"providerNumber\": \"2447791K\"\n }\n }\n }\n ]\n }\n}") .asString(); ``` ```php Success request('POST', 'https://api.rebateright.com.au/Medicare/bulkbillstoreforward/pathology/v1', [ 'body' => '{ "claim": { "serviceTypeCode": "P", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2025-09-16", "createDateTime": "2025-09-17T08:30:00+10:00", "medicalEventDate": "2025-09-16", "submissionAuthorityInd": "Y", "patient": { "identity": { "givenName": "Edmond", "familyName": "FLETCHER", "dateOfBirth": "1986-12-18" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "2" } }, "service": [ { "id": "0001", "itemNumber": "65120", "chargeAmount": "15075", "collectionDateTime": "2025-09-16T07:00:00+10:00", "accessionDateTime": "2025-09-16T07:00:00+10:00", "scpId": "00001", "rule3ExemptInd": "Y" } ], "medicalEventTime": "07:00:00+10:00", "referral": { "issueDate": "2025-08-01", "typeCode": "P", "provider": { "providerNumber": "2447791K" } } } ] } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Success using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/bulkbillstoreforward/pathology/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"claim\": {\n \"serviceTypeCode\": \"P\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2025-09-16\",\n \"createDateTime\": \"2025-09-17T08:30:00+10:00\",\n \"medicalEventDate\": \"2025-09-16\",\n \"submissionAuthorityInd\": \"Y\",\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Edmond\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"1986-12-18\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"2\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"65120\",\n \"chargeAmount\": \"15075\",\n \"collectionDateTime\": \"2025-09-16T07:00:00+10:00\",\n \"accessionDateTime\": \"2025-09-16T07:00:00+10:00\",\n \"scpId\": \"00001\",\n \"rule3ExemptInd\": \"Y\"\n }\n ],\n \"medicalEventTime\": \"07:00:00+10:00\",\n \"referral\": {\n \"issueDate\": \"2025-08-01\",\n \"typeCode\": \"P\",\n \"provider\": {\n \"providerNumber\": \"2447791K\"\n }\n }\n }\n ]\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Success import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["claim": [ "serviceTypeCode": "P", "serviceProvider": ["providerNumber": "2447781L"], "medicalEvent": [ [ "id": "01", "authorisationDate": "2025-09-16", "createDateTime": "2025-09-17T08:30:00+10:00", "medicalEventDate": "2025-09-16", "submissionAuthorityInd": "Y", "patient": [ "identity": [ "givenName": "Edmond", "familyName": "FLETCHER", "dateOfBirth": "1986-12-18" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "2" ] ], "service": [ [ "id": "0001", "itemNumber": "65120", "chargeAmount": "15075", "collectionDateTime": "2025-09-16T07:00:00+10:00", "accessionDateTime": "2025-09-16T07:00:00+10:00", "scpId": "00001", "rule3ExemptInd": "Y" ] ], "medicalEventTime": "07:00:00+10:00", "referral": [ "issueDate": "2025-08-01", "typeCode": "P", "provider": ["providerNumber": "2447791K"] ] ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/bulkbillstoreforward/pathology/v1")! 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() ``` 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. # Bulk Bill Payment Report POST https://api.rebateright.com.au/Medicare/bulkbillpaymentreport/v1 Content-Type: application/json Retrieve a payment report for a bulk bill claim, providing payment information including the deposited amount, bank account details, and the list of claims covered by the payment run. This report is available for six months after its initial generation and can be retrieved in real time as many times as required. The report can only be requested by the same transmitting location that submitted the claim. ## 📑 Request Fields #### 🔸correlationId The correlationId from the original Bulk Bill claim.
#### 🔸payeeProvider.providerNumber Details of the health professional to whom the Medicare benefit is to be paid, as submitted in the original claim transmission. - Must be filled with leading zeros if the provider number is greater than 2 characters but less than 8 characters
## 📑 Response Fields ### 🔸status Indicates the status of the report being requested. - **Valid values:** - `COMPLETE` - `REPORT_NOT_AVAILABLE` - `REPORT_NOT_READY` - `REPORT_NOT_FOUND` - `REPORT_EXPIRED` When `status = COMPLETE`, the following values may be returned:
#### 🔸paymentRun.runDate The date on which the agency is requesting the RBA to make the payment.
#### 🔸paymentRun.runNumber A unique identifier for the payment run.
#### 🔸paymentInfo.depositAmount The total amount of Medicare benefit to be deposited into the payee provider's account for the claims detailed in the payment run. - **Format:** Numeric cents (e.g., $1.00 → `100`)
#### 🔸paymentInfo.accountInfo.accountName The payee provider's financial institution account name.
#### 🔸paymentInfo.accountInfo.accountNumber The payee provider's financial institution account number. - **Note:** Only the last 4 digits are returned and prefixed with asterisks, e.g., `\\\*1234`.
#### 🔸paymentInfo.accountInfo.bsbCode The branch identifier (BSB) for where the payee provider's account is held.
#### 🔸claimSummary.benefit The total amount of Medicare benefit paid for all services in the claim. - **Format:** Numeric cents (e.g., $1.00 → `100`)
#### 🔸claimSummary.chargeAmount The total amount charged for all services in the claim. - **Format:** Numeric cents (e.g., $1.00 → `100`)
#### 🔸claimSummary.claimId The unique identifier that is generated by Medicare for the original Bulk Bill claim.
#### 🔸claimSummary.lodgementDate The date when Medicare received the original claim.
#### 🔸claimSummary.transactionId The unique identifier of the claim request maintained throughout the life of a claim. Reference: https://docs.rebateright.com.au/api-reference/medicare-claiming/bulk-bill-claim/bulk-bill-payment-report ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /Medicare/bulkbillpaymentreport/v1: post: operationId: bulk-bill-payment-report summary: Bulk Bill Payment Report description: >- Retrieve a payment report for a bulk bill claim, providing payment information including the deposited amount, bank account details, and the list of claims covered by the payment run. This report is available for six months after its initial generation and can be retrieved in real time as many times as required. The report can only be requested by the same transmitting location that submitted the claim. ## 📑 Request Fields #### 🔸correlationId The correlationId from the original Bulk Bill claim.
#### 🔸payeeProvider.providerNumber Details of the health professional to whom the Medicare benefit is to be paid, as submitted in the original claim transmission. - Must be filled with leading zeros if the provider number is greater than 2 characters but less than 8 characters
## 📑 Response Fields ### 🔸status Indicates the status of the report being requested. - **Valid values:** - `COMPLETE` - `REPORT_NOT_AVAILABLE` - `REPORT_NOT_READY` - `REPORT_NOT_FOUND` - `REPORT_EXPIRED` When `status = COMPLETE`, the following values may be returned:
#### 🔸paymentRun.runDate The date on which the agency is requesting the RBA to make the payment.
#### 🔸paymentRun.runNumber A unique identifier for the payment run.
#### 🔸paymentInfo.depositAmount The total amount of Medicare benefit to be deposited into the payee provider's account for the claims detailed in the payment run. - **Format:** Numeric cents (e.g., $1.00 → `100`)
#### 🔸paymentInfo.accountInfo.accountName The payee provider's financial institution account name.
#### 🔸paymentInfo.accountInfo.accountNumber The payee provider's financial institution account number. - **Note:** Only the last 4 digits are returned and prefixed with asterisks, e.g., `\\\*1234`.
#### 🔸paymentInfo.accountInfo.bsbCode The branch identifier (BSB) for where the payee provider's account is held.
#### 🔸claimSummary.benefit The total amount of Medicare benefit paid for all services in the claim. - **Format:** Numeric cents (e.g., $1.00 → `100`)
#### 🔸claimSummary.chargeAmount The total amount charged for all services in the claim. - **Format:** Numeric cents (e.g., $1.00 → `100`)
#### 🔸claimSummary.claimId The unique identifier that is generated by Medicare for the original Bulk Bill claim.
#### 🔸claimSummary.lodgementDate The date when Medicare received the original claim.
#### 🔸claimSummary.transactionId The unique identifier of the claim request maintained throughout the life of a claim. tags: - subpackage_medicareClaiming.subpackage_medicareClaiming/bulkBillClaim parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: >- #/components/schemas/Medicare Claiming_Bulk Bill Claim_Bulk Bill Payment Report_Response_200 requestBody: content: application/json: schema: type: object properties: correlationId: type: string description: >- The `correlationId` from the original Bulk Bill claim submission. payeeProvider: $ref: >- #/components/schemas/MedicareBulkbillpaymentreportV1PostRequestBodyContentApplicationJsonSchemaPayeeProvider required: - correlationId - payeeProvider servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: MedicareBulkbillpaymentreportV1PostRequestBodyContentApplicationJsonSchemaPayeeProvider: type: object properties: providerNumber: type: string description: >- Must be filled with leading zeros if greater than 2 characters but less than 8 characters. required: - providerNumber title: >- MedicareBulkbillpaymentreportV1PostRequestBodyContentApplicationJsonSchemaPayeeProvider Medicare Claiming_Bulk Bill Claim_Bulk Bill Payment Report_Response_200: type: object properties: status: type: string correlationId: type: string required: - status - correlationId title: Medicare Claiming_Bulk Bill Claim_Bulk Bill Payment Report_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 Complete import requests url = "https://api.rebateright.com.au/Medicare/bulkbillpaymentreport/v1" payload = { "correlationId": "urn:uuid:MDE00000a081f297cf7741ad", "payeeProvider": { "providerNumber": "2447781L" } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Complete const url = 'https://api.rebateright.com.au/Medicare/bulkbillpaymentreport/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"correlationId":"urn:uuid:MDE00000a081f297cf7741ad","payeeProvider":{"providerNumber":"2447781L"}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Complete package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/bulkbillpaymentreport/v1" payload := strings.NewReader("{\n \"correlationId\": \"urn:uuid:MDE00000a081f297cf7741ad\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Complete require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/bulkbillpaymentreport/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"correlationId\": \"urn:uuid:MDE00000a081f297cf7741ad\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}" response = http.request(request) puts response.read_body ``` ```java Complete import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/bulkbillpaymentreport/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"correlationId\": \"urn:uuid:MDE00000a081f297cf7741ad\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") .asString(); ``` ```php Complete request('POST', 'https://api.rebateright.com.au/Medicare/bulkbillpaymentreport/v1', [ 'body' => '{ "correlationId": "urn:uuid:MDE00000a081f297cf7741ad", "payeeProvider": { "providerNumber": "2447781L" } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Complete using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/bulkbillpaymentreport/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"correlationId\": \"urn:uuid:MDE00000a081f297cf7741ad\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Complete import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "correlationId": "urn:uuid:MDE00000a081f297cf7741ad", "payeeProvider": ["providerNumber": "2447781L"] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/bulkbillpaymentreport/v1")! 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 Report Not Ready import requests url = "https://api.rebateright.com.au/Medicare/bulkbillpaymentreport/v1" payload = { "correlationId": "urn:uuid:MDE000009bb6cd1c92674e1c", "payeeProvider": { "providerNumber": "2447781L" } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Report Not Ready const url = 'https://api.rebateright.com.au/Medicare/bulkbillpaymentreport/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"correlationId":"urn:uuid:MDE000009bb6cd1c92674e1c","payeeProvider":{"providerNumber":"2447781L"}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Report Not Ready package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/bulkbillpaymentreport/v1" payload := strings.NewReader("{\n \"correlationId\": \"urn:uuid:MDE000009bb6cd1c92674e1c\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Report Not Ready require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/bulkbillpaymentreport/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"correlationId\": \"urn:uuid:MDE000009bb6cd1c92674e1c\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}" response = http.request(request) puts response.read_body ``` ```java Report Not Ready import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/bulkbillpaymentreport/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"correlationId\": \"urn:uuid:MDE000009bb6cd1c92674e1c\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") .asString(); ``` ```php Report Not Ready request('POST', 'https://api.rebateright.com.au/Medicare/bulkbillpaymentreport/v1', [ 'body' => '{ "correlationId": "urn:uuid:MDE000009bb6cd1c92674e1c", "payeeProvider": { "providerNumber": "2447781L" } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Report Not Ready using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/bulkbillpaymentreport/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"correlationId\": \"urn:uuid:MDE000009bb6cd1c92674e1c\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Report Not Ready import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "correlationId": "urn:uuid:MDE000009bb6cd1c92674e1c", "payeeProvider": ["providerNumber": "2447781L"] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/bulkbillpaymentreport/v1")! 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() ``` 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. # Bulk Bill Processing Report POST https://api.rebateright.com.au/Medicare/bulkbillprocessingreport/v1 Content-Type: application/json Retrieve a processing report for a bulk bill claim, detailing processing information (including changes and exception situations) for each medical event and associated service within the original claim. This report is available for six months after its initial generation and can be retrieved in real time as many times as required. The report can only be requested by the same transmitting location that submitted the claim. ## 📑 Request Fields #### 🔸correlationId The correlationId from the original Bulk Bill claim.
#### 🔸payeeProvider.providerNumber Details of the health professional to whom the Medicare benefit is to be paid, as submitted in the original claim transmission. - Must be filled with leading zeros if the provider number is greater than 2 characters but less than 8 characters
## 📑 Response Fields ### 🔸status Indicates the status of the report being requested. - **Valid values:** - `COMPLETE` - `REPORT_NOT_READY` - `REPORT_NOT_FOUND` - `REPORT_EXPIRED` When `status = COMPLETE`, the following objects/values may be returned:
#### 🔸claimAssessment.benefitPaid The total amount of Medicare benefit paid for all services in the claim, returned in cents. - **Format:** Numeric cents (e.g., $1.00 → `100`)
#### 🔸claimAssessment.chargeAmount The total amount charged for all services in the claim, returned in cents. - **Format:** Numeric cents (e.g., $1.00 → `100`)
#### 🔸claimAssessment.claimId A unique identifier generated by the practice management software for DBS claims, or by the agency for BBSW claims.
### medicalEvent up to 80 per claim #### 🔸medicalEvent.eventDate The date of service applicable to the medical event, as submitted in the original Bulk Bill claim.
#### 🔸medicalEvent.id An identifier used to define the occurrence of the medical event.
#### 🔸medicalEvent.patient.status.code A code which identifies the problem with the Medicare card details supplied.
#### 🔸medicalEvent.patient.status.text Text explaining the patient status code. Provides additional information to assist with service assessment and can be used to suggest changes to the Medicare patient record. - **Values:** - `8023` = Patient identification amended - `8024` = Patient Medicare Issue number changed - `8025` = Patient Medicare Number changed - `8026` = Patient card used will expire shortly - `8027` = Patient card expired. Future services may be rejected - `8028` = Old Medicare issue number for patient. Future services may be rejected
#### 🔸medicalEvent.patient.currentMembership.memberNumber The patient's Medicare Card Number as recorded with Medicare at the time of the claim. #### 🔸medicalEvent.patient.currentMembership.memberRefNumber The patient's Medicare Reference Number (IRN) as recorded with Medicare in the original claim.
#### 🔸medicalEvent.patient.currentMember.familyName The patient's family name as identified or corrected at the time of assessment.
#### 🔸medicalEvent.patient.currentMember.givenName The patient's first given name as recorded with Medicare.
### medicalEvent.service up to 14 per medical event #### 🔸medicalEvent.service.assessmentCode Medicare assessment result explanation code (Medicare Reason Code).
#### 🔸medicalEvent.service.benefitPaid The amount of benefit assessed as payable for the service, returned in cents. - **Format:** Numeric cents (e.g., $1.00 → `100`)
#### 🔸medicalEvent.service.chargeAmount The amount charged for the service in cents, as submitted in the original claim. - **Format:** Numeric cents (e.g., $1.00 → `100`)
#### 🔸medicalEvent.service.id Unique identifier used to define the occurrence of the service within the claim.
#### 🔸medicalEvent.service.itemNumber The MBS item number against which the Medicare benefit was assessed.
#### 🔸medicalEvent.service.numberOfPatientsSeen The number of patients seen for the service in a group attendance scenario. - **Valid values:** `1–99`
#### 🔸serviceProvider.providerNumber Service provider. Reference: https://docs.rebateright.com.au/api-reference/medicare-claiming/bulk-bill-claim/bulk-bill-processing-report ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /Medicare/bulkbillprocessingreport/v1: post: operationId: bulk-bill-processing-report summary: Bulk Bill Processing Report description: >- Retrieve a processing report for a bulk bill claim, detailing processing information (including changes and exception situations) for each medical event and associated service within the original claim. This report is available for six months after its initial generation and can be retrieved in real time as many times as required. The report can only be requested by the same transmitting location that submitted the claim. ## 📑 Request Fields #### 🔸correlationId The correlationId from the original Bulk Bill claim.
#### 🔸payeeProvider.providerNumber Details of the health professional to whom the Medicare benefit is to be paid, as submitted in the original claim transmission. - Must be filled with leading zeros if the provider number is greater than 2 characters but less than 8 characters
## 📑 Response Fields ### 🔸status Indicates the status of the report being requested. - **Valid values:** - `COMPLETE` - `REPORT_NOT_READY` - `REPORT_NOT_FOUND` - `REPORT_EXPIRED` When `status = COMPLETE`, the following objects/values may be returned:
#### 🔸claimAssessment.benefitPaid The total amount of Medicare benefit paid for all services in the claim, returned in cents. - **Format:** Numeric cents (e.g., $1.00 → `100`)
#### 🔸claimAssessment.chargeAmount The total amount charged for all services in the claim, returned in cents. - **Format:** Numeric cents (e.g., $1.00 → `100`)
#### 🔸claimAssessment.claimId A unique identifier generated by the practice management software for DBS claims, or by the agency for BBSW claims.
### medicalEvent up to 80 per claim #### 🔸medicalEvent.eventDate The date of service applicable to the medical event, as submitted in the original Bulk Bill claim.
#### 🔸medicalEvent.id An identifier used to define the occurrence of the medical event.
#### 🔸medicalEvent.patient.status.code A code which identifies the problem with the Medicare card details supplied.
#### 🔸medicalEvent.patient.status.text Text explaining the patient status code. Provides additional information to assist with service assessment and can be used to suggest changes to the Medicare patient record. - **Values:** - `8023` = Patient identification amended - `8024` = Patient Medicare Issue number changed - `8025` = Patient Medicare Number changed - `8026` = Patient card used will expire shortly - `8027` = Patient card expired. Future services may be rejected - `8028` = Old Medicare issue number for patient. Future services may be rejected
#### 🔸medicalEvent.patient.currentMembership.memberNumber The patient's Medicare Card Number as recorded with Medicare at the time of the claim. #### 🔸medicalEvent.patient.currentMembership.memberRefNumber The patient's Medicare Reference Number (IRN) as recorded with Medicare in the original claim.
#### 🔸medicalEvent.patient.currentMember.familyName The patient's family name as identified or corrected at the time of assessment.
#### 🔸medicalEvent.patient.currentMember.givenName The patient's first given name as recorded with Medicare.
### medicalEvent.service up to 14 per medical event #### 🔸medicalEvent.service.assessmentCode Medicare assessment result explanation code (Medicare Reason Code).
#### 🔸medicalEvent.service.benefitPaid The amount of benefit assessed as payable for the service, returned in cents. - **Format:** Numeric cents (e.g., $1.00 → `100`)
#### 🔸medicalEvent.service.chargeAmount The amount charged for the service in cents, as submitted in the original claim. - **Format:** Numeric cents (e.g., $1.00 → `100`)
#### 🔸medicalEvent.service.id Unique identifier used to define the occurrence of the service within the claim.
#### 🔸medicalEvent.service.itemNumber The MBS item number against which the Medicare benefit was assessed.
#### 🔸medicalEvent.service.numberOfPatientsSeen The number of patients seen for the service in a group attendance scenario. - **Valid values:** `1–99`
#### 🔸serviceProvider.providerNumber Service provider. tags: - subpackage_medicareClaiming.subpackage_medicareClaiming/bulkBillClaim parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: >- #/components/schemas/Medicare Claiming_Bulk Bill Claim_Bulk Bill Processing Report_Response_200 requestBody: content: application/json: schema: type: object properties: correlationId: type: string description: >- The `correlationId` from the original Bulk Bill claim submission. payeeProvider: $ref: >- #/components/schemas/MedicareBulkbillprocessingreportV1PostRequestBodyContentApplicationJsonSchemaPayeeProvider required: - correlationId - payeeProvider servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: MedicareBulkbillprocessingreportV1PostRequestBodyContentApplicationJsonSchemaPayeeProvider: type: object properties: providerNumber: type: string description: >- Must be filled with leading zeros if greater than 2 characters but less than 8 characters. required: - providerNumber title: >- MedicareBulkbillprocessingreportV1PostRequestBodyContentApplicationJsonSchemaPayeeProvider Medicare Claiming_Bulk Bill Claim_Bulk Bill Processing Report_Response_200: type: object properties: status: type: string correlationId: type: string required: - status - correlationId title: >- Medicare Claiming_Bulk Bill Claim_Bulk Bill Processing Report_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 Complete import requests url = "https://api.rebateright.com.au/Medicare/bulkbillprocessingreport/v1" payload = { "correlationId": "urn:uuid:MDE00000ee97ff9fd17d4afc", "payeeProvider": { "providerNumber": "2447781L" } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Complete const url = 'https://api.rebateright.com.au/Medicare/bulkbillprocessingreport/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"correlationId":"urn:uuid:MDE00000ee97ff9fd17d4afc","payeeProvider":{"providerNumber":"2447781L"}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Complete package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/bulkbillprocessingreport/v1" payload := strings.NewReader("{\n \"correlationId\": \"urn:uuid:MDE00000ee97ff9fd17d4afc\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Complete require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/bulkbillprocessingreport/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"correlationId\": \"urn:uuid:MDE00000ee97ff9fd17d4afc\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}" response = http.request(request) puts response.read_body ``` ```java Complete import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/bulkbillprocessingreport/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"correlationId\": \"urn:uuid:MDE00000ee97ff9fd17d4afc\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") .asString(); ``` ```php Complete request('POST', 'https://api.rebateright.com.au/Medicare/bulkbillprocessingreport/v1', [ 'body' => '{ "correlationId": "urn:uuid:MDE00000ee97ff9fd17d4afc", "payeeProvider": { "providerNumber": "2447781L" } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Complete using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/bulkbillprocessingreport/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"correlationId\": \"urn:uuid:MDE00000ee97ff9fd17d4afc\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Complete import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "correlationId": "urn:uuid:MDE00000ee97ff9fd17d4afc", "payeeProvider": ["providerNumber": "2447781L"] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/bulkbillprocessingreport/v1")! 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 Report Not Ready import requests url = "https://api.rebateright.com.au/Medicare/bulkbillprocessingreport/v1" payload = { "correlationId": "urn:uuid:MDE000009bb6cd1c92674e1c", "payeeProvider": { "providerNumber": "2447781L" } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Report Not Ready const url = 'https://api.rebateright.com.au/Medicare/bulkbillprocessingreport/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"correlationId":"urn:uuid:MDE000009bb6cd1c92674e1c","payeeProvider":{"providerNumber":"2447781L"}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Report Not Ready package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/bulkbillprocessingreport/v1" payload := strings.NewReader("{\n \"correlationId\": \"urn:uuid:MDE000009bb6cd1c92674e1c\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Report Not Ready require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/bulkbillprocessingreport/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"correlationId\": \"urn:uuid:MDE000009bb6cd1c92674e1c\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}" response = http.request(request) puts response.read_body ``` ```java Report Not Ready import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/bulkbillprocessingreport/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"correlationId\": \"urn:uuid:MDE000009bb6cd1c92674e1c\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") .asString(); ``` ```php Report Not Ready request('POST', 'https://api.rebateright.com.au/Medicare/bulkbillprocessingreport/v1', [ 'body' => '{ "correlationId": "urn:uuid:MDE000009bb6cd1c92674e1c", "payeeProvider": { "providerNumber": "2447781L" } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Report Not Ready using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/bulkbillprocessingreport/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"correlationId\": \"urn:uuid:MDE000009bb6cd1c92674e1c\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Report Not Ready import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "correlationId": "urn:uuid:MDE000009bb6cd1c92674e1c", "payeeProvider": ["providerNumber": "2447781L"] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/bulkbillprocessingreport/v1")! 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() ``` 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. # Assignment of Benefit (PDF) POST https://api.rebateright.com.au/AoB Content-Type: application/json Returns **`application/pdf`**: a printable Medicare bulk bill **Assignment of Benefit** agreement, generated from your bulk bill claim payload. ### Post-assignment only The PDF always records **Assignment type: Post assignment**. RebateRight does **not** generate pre-assignment AoB PDFs through this endpoint. ### Format A minimal online-claiming layout aligned with **Services Australia** requirements for Medicare online claiming bulk bill assignment. The PDF uses the online title **MEDICARE - ONLINE CLAIMING BULK BILL ASSIGNMENT OF BENEFIT AGREEMENT**. This is **not** the **DB4** (Bulk Bill Assignment Advice) paper form used in traditional workflows. Depending on your process and pathology/request rules, you may still need to issue a DB4-style printed record — see current Services Australia bulk bill claiming guidance. ### PDF contents For each medical event: patient name; assignment details (date, post-assignment flag, whether the assignor is the patient); servicing professional; MBS items with the date column appropriate to the service stream (date of service, specimen collection, or imaging procedure); a **Statement of Assignor's Agreement** using the standard Services Australia text for general, pathology, or diagnostic imaging streams; and a signature line for the patient or assignor. ### Regulatory context From **1 July 2026**, patient consent software must support assignment of benefit, including pre- and post-assignment where applicable. Use this PDF to produce a clear post-assignment agreement record. Retain and present records as required by Services Australia and your clinical governance. Reference: https://docs.rebateright.com.au/api-reference/medicare-claiming/bulk-bill-claim/assignment-of-benefit-pdf ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /AoB: post: operationId: assignment-of-benefit-pdf summary: Assignment of Benefit (PDF) description: > Returns **`application/pdf`**: a printable Medicare bulk bill **Assignment of Benefit** agreement, generated from your bulk bill claim payload. ### Post-assignment only The PDF always records **Assignment type: Post assignment**. RebateRight does **not** generate pre-assignment AoB PDFs through this endpoint. ### Format A minimal online-claiming layout aligned with **Services Australia** requirements for Medicare online claiming bulk bill assignment. The PDF uses the online title **MEDICARE - ONLINE CLAIMING BULK BILL ASSIGNMENT OF BENEFIT AGREEMENT**. This is **not** the **DB4** (Bulk Bill Assignment Advice) paper form used in traditional workflows. Depending on your process and pathology/request rules, you may still need to issue a DB4-style printed record — see current Services Australia bulk bill claiming guidance. ### PDF contents For each medical event: patient name; assignment details (date, post-assignment flag, whether the assignor is the patient); servicing professional; MBS items with the date column appropriate to the service stream (date of service, specimen collection, or imaging procedure); a **Statement of Assignor's Agreement** using the standard Services Australia text for general, pathology, or diagnostic imaging streams; and a signature line for the patient or assignor. ### Regulatory context From **1 July 2026**, patient consent software must support assignment of benefit, including pre- and post-assignment where applicable. Use this PDF to produce a clear post-assignment agreement record. Retain and present records as required by Services Australia and your clinical governance. tags: - subpackage_medicareClaiming.subpackage_medicareClaiming/bulkBillClaim parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: >- PDF bytes — **Medicare online** bulk bill Assignment of Benefit (post-assignment), aligned with Services Australia BBSW expectations. content: application/octet-stream: schema: type: string format: binary '400': description: >- Validation or business-rule failure; body includes `serviceMessage` entries and `correlationId`. content: application/json: schema: $ref: '#/components/schemas/PostAobRequestBadRequestError' requestBody: content: application/json: schema: type: object properties: correlationId: type: string description: >- Optional. Supply a unique transaction ID in the format `urn:uuid:{MinorId}{16 hex chars}` (33 characters total, e.g. `urn:uuid:MDE00000a1b2c3d4e5f6a7b8`). If the same `correlationId` is submitted twice, the second request is rejected with error `9777`. If omitted, RebateRight generates one automatically. claim: $ref: >- #/components/schemas/AoBPostRequestBodyContentApplicationJsonSchemaClaim required: - claim servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: AoBPostRequestBodyContentApplicationJsonSchemaClaimServiceProvider: type: object properties: providerNumber: type: string required: - providerNumber title: AoBPostRequestBodyContentApplicationJsonSchemaClaimServiceProvider AoBPostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity: type: object properties: givenName: type: string familyName: type: string dateOfBirth: type: string format: date required: - givenName - familyName - dateOfBirth title: >- AoBPostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity AoBPostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare: type: object properties: memberNumber: type: string memberRefNumber: type: string required: - memberNumber - memberRefNumber title: >- AoBPostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare AoBPostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient: type: object properties: identity: $ref: >- #/components/schemas/AoBPostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity medicare: $ref: >- #/components/schemas/AoBPostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare required: - identity - medicare title: >- AoBPostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient AoBPostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems: type: object properties: id: type: string itemNumber: type: string chargeAmount: type: string aftercareOverrideInd: type: string required: - id - itemNumber - chargeAmount - aftercareOverrideInd title: >- AoBPostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems AoBPostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems: type: object properties: id: type: string authorisationDate: type: string format: date createDateTime: type: string format: date-time medicalEventDate: type: string format: date submissionAuthorityInd: type: string description: Must be `Y`. patient: $ref: >- #/components/schemas/AoBPostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient service: type: array items: $ref: >- #/components/schemas/AoBPostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems required: - id - authorisationDate - createDateTime - medicalEventDate - submissionAuthorityInd - patient - service title: AoBPostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems AoBPostRequestBodyContentApplicationJsonSchemaClaim: type: object properties: serviceTypeCode: type: string description: >- Service type code matching the associated bulk bill claim (`O`, `S`, or `P`). serviceProvider: $ref: >- #/components/schemas/AoBPostRequestBodyContentApplicationJsonSchemaClaimServiceProvider medicalEvent: type: array items: $ref: >- #/components/schemas/AoBPostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems required: - serviceTypeCode - serviceProvider - medicalEvent title: AoBPostRequestBodyContentApplicationJsonSchemaClaim AoBPostResponsesContentApplicationJsonSchemaServiceMessageItems: type: object properties: code: type: string description: Medicare error code. severity: type: string reason: type: string description: Human-readable error message. required: - code - severity - reason title: AoBPostResponsesContentApplicationJsonSchemaServiceMessageItems PostAobRequestBadRequestError: type: object properties: highestSeverity: type: string description: Highest severity level across all messages. E.g. `Error`. serviceMessage: type: array items: $ref: >- #/components/schemas/AoBPostResponsesContentApplicationJsonSchemaServiceMessageItems correlationId: type: string required: - highestSeverity - serviceMessage - correlationId title: PostAobRequestBadRequestError securitySchemes: apiKeyAuth: type: apiKey in: header name: x-api-key minorId: type: apiKey in: header name: x-minor-id ``` ## SDK Code Examples ```python import requests url = "https://api.rebateright.com.au/AoB" payload = { "claim": { "serviceTypeCode": "O", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2025-09-16", "createDateTime": "2025-09-16T10:30:00+10:00", "medicalEventDate": "2025-09-16", "submissionAuthorityInd": "Y", "patient": { "identity": { "givenName": "Edmond", "familyName": "FLETCHER", "dateOfBirth": "1986-12-18" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "2" } }, "service": [ { "id": "0001", "itemNumber": "23", "chargeAmount": "15000", "aftercareOverrideInd": "Y" } ] } ] } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.rebateright.com.au/AoB'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"claim":{"serviceTypeCode":"O","serviceProvider":{"providerNumber":"2447781L"},"medicalEvent":[{"id":"01","authorisationDate":"2025-09-16","createDateTime":"2025-09-16T10:30:00+10:00","medicalEventDate":"2025-09-16","submissionAuthorityInd":"Y","patient":{"identity":{"givenName":"Edmond","familyName":"FLETCHER","dateOfBirth":"1986-12-18"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"2"}},"service":[{"id":"0001","itemNumber":"23","chargeAmount":"15000","aftercareOverrideInd":"Y"}]}]}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/AoB" payload := strings.NewReader("{\n \"claim\": {\n \"serviceTypeCode\": \"O\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2025-09-16\",\n \"createDateTime\": \"2025-09-16T10:30:00+10:00\",\n \"medicalEventDate\": \"2025-09-16\",\n \"submissionAuthorityInd\": \"Y\",\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Edmond\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"1986-12-18\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"2\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15000\",\n \"aftercareOverrideInd\": \"Y\"\n }\n ]\n }\n ]\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/AoB") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"claim\": {\n \"serviceTypeCode\": \"O\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2025-09-16\",\n \"createDateTime\": \"2025-09-16T10:30:00+10:00\",\n \"medicalEventDate\": \"2025-09-16\",\n \"submissionAuthorityInd\": \"Y\",\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Edmond\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"1986-12-18\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"2\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15000\",\n \"aftercareOverrideInd\": \"Y\"\n }\n ]\n }\n ]\n }\n}" response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/AoB") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"claim\": {\n \"serviceTypeCode\": \"O\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2025-09-16\",\n \"createDateTime\": \"2025-09-16T10:30:00+10:00\",\n \"medicalEventDate\": \"2025-09-16\",\n \"submissionAuthorityInd\": \"Y\",\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Edmond\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"1986-12-18\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"2\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15000\",\n \"aftercareOverrideInd\": \"Y\"\n }\n ]\n }\n ]\n }\n}") .asString(); ``` ```php request('POST', 'https://api.rebateright.com.au/AoB', [ 'body' => '{ "claim": { "serviceTypeCode": "O", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2025-09-16", "createDateTime": "2025-09-16T10:30:00+10:00", "medicalEventDate": "2025-09-16", "submissionAuthorityInd": "Y", "patient": { "identity": { "givenName": "Edmond", "familyName": "FLETCHER", "dateOfBirth": "1986-12-18" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "2" } }, "service": [ { "id": "0001", "itemNumber": "23", "chargeAmount": "15000", "aftercareOverrideInd": "Y" } ] } ] } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.rebateright.com.au/AoB"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"claim\": {\n \"serviceTypeCode\": \"O\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2025-09-16\",\n \"createDateTime\": \"2025-09-16T10:30:00+10:00\",\n \"medicalEventDate\": \"2025-09-16\",\n \"submissionAuthorityInd\": \"Y\",\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Edmond\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"1986-12-18\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"2\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15000\",\n \"aftercareOverrideInd\": \"Y\"\n }\n ]\n }\n ]\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["claim": [ "serviceTypeCode": "O", "serviceProvider": ["providerNumber": "2447781L"], "medicalEvent": [ [ "id": "01", "authorisationDate": "2025-09-16", "createDateTime": "2025-09-16T10:30:00+10:00", "medicalEventDate": "2025-09-16", "submissionAuthorityInd": "Y", "patient": [ "identity": [ "givenName": "Edmond", "familyName": "FLETCHER", "dateOfBirth": "1986-12-18" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "2" ] ], "service": [ [ "id": "0001", "itemNumber": "23", "chargeAmount": "15000", "aftercareOverrideInd": "Y" ] ] ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/AoB")! 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() ``` 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. # Interactive Patient Claim — General POST https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1 Content-Type: application/json The **general** interactive patient claim endpoint submits a Medicare patient claim for professional services that do not require a referral or request. The claimant authorises the submission and receives the Medicare benefit; the patient received the service. They may be the same person. Field rules and response shapes are defined on the **request body**, **`200`**, and **`400`** JSON schemas for this operation. Shared component definitions are in **`components.schemas`** at the bottom of this file (`PciwPatientClaimInteractiveRequestBody`, `PciwPatientClaimInteractiveSuccessResponse`, `PciwMedicareServiceMessageError`) and are reused by the specialist and pathology paths. Reference: https://docs.rebateright.com.au/api-reference/medicare-claiming/interactive-patient-claims/interactive-patient-claim-general ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /Medicare/patientclaiminteractive/general/v1: post: operationId: interactive-patient-claim-general summary: Interactive Patient Claim — General description: > The **general** interactive patient claim endpoint submits a Medicare patient claim for professional services that do not require a referral or request. The claimant authorises the submission and receives the Medicare benefit; the patient received the service. They may be the same person. Field rules and response shapes are defined on the **request body**, **`200`**, and **`400`** JSON schemas for this operation. Shared component definitions are in **`components.schemas`** at the bottom of this file (`PciwPatientClaimInteractiveRequestBody`, `PciwPatientClaimInteractiveSuccessResponse`, `PciwMedicareServiceMessageError`) and are reused by the specialist and pathology paths. tags: - >- subpackage_medicareClaiming.subpackage_medicareClaiming/interactivePatientClaims parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: Claim submitted successfully. content: application/json: schema: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponse '400': description: >- Validation failure — body includes `serviceMessage` entries and `correlationId`. content: application/json: schema: $ref: '#/components/schemas/PciwMedicareServiceMessageError' requestBody: content: application/json: schema: $ref: '#/components/schemas/PciwPatientClaimInteractiveRequestBody' servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveServiceProvider: type: object properties: providerNumber: type: string required: - providerNumber title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveServiceProvider PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePayeeProvider: type: object properties: providerNumber: type: string required: - providerNumber description: >- Optional. The provider to whom the Medicare benefit is paid, if different from the servicing provider. title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePayeeProvider PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientIdentity: type: object properties: givenName: type: string familyName: type: string dateOfBirth: type: string format: date required: - givenName - familyName - dateOfBirth title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientIdentity PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientMedicare: type: object properties: memberNumber: type: string memberRefNumber: type: string required: - memberNumber - memberRefNumber title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientMedicare PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatient: type: object properties: identity: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientIdentity medicare: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientMedicare required: - identity - medicare title: PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatient PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantIdentity: type: object properties: givenName: type: string familyName: type: string dateOfBirth: type: string format: date title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantIdentity PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantMedicare: type: object properties: memberNumber: type: string memberRefNumber: type: string title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantMedicare PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantEftDetails: type: object properties: accountName: type: string accountNumber: type: string bsbCode: type: string title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantEftDetails PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantResidentialAddress: type: object properties: addressLineOne: type: string addressLineTwo: type: string locality: type: string postcode: type: string title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantResidentialAddress PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantContactDetails: type: object properties: name: type: string phoneNumber: type: string emailAddress: type: string title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantContactDetails PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimant: type: object properties: identity: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantIdentity medicare: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantMedicare eftDetails: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantEftDetails residentialAddress: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantResidentialAddress contactDetails: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantContactDetails description: >- Optional. Include when the claimant differs from the patient, or to supply bank or address details. title: PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimant PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItemsServiceItems: type: object properties: id: type: string itemNumber: type: string chargeAmount: type: string hospitalInd: type: string facilityId: type: string patientContribAmount: type: string numberOfPatientsSeen: type: string aftercareOverrideInd: type: string duplicateServiceOverrideInd: type: string multipleProcedureOverrideInd: type: string restrictiveOverrideCode: type: string timeDuration: type: string text: type: string fieldQuantity: type: string lspNumber: type: string rule3ExemptInd: type: string s4b3ExemptInd: type: string required: - id - itemNumber - chargeAmount title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItemsServiceItems PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItems: type: object properties: id: type: string medicalEventDate: type: string format: date medicalEventTime: type: string service: type: array items: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItemsServiceItems required: - id - medicalEventDate - service title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItems PciwPatientClaimInteractiveRequestBodyPatientClaimInteractive: type: object properties: accountPaidInd: type: string description: '`Y` if the account has been paid in full, `N` if not paid.' authorisationDate: type: string format: date description: Date the claim was authorised. Must not be in the future. submissionAuthorityInd: type: string description: >- Must be `Y`. Confirms the claimant has authorised the practice to submit on their behalf. accountReferenceId: type: string description: >- Optional. A reference used by the submitter to identify the claim. 1–9 alphanumeric characters. serviceProvider: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveServiceProvider payeeProvider: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePayeeProvider description: >- Optional. The provider to whom the Medicare benefit is paid, if different from the servicing provider. patient: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatient claimant: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimant description: >- Optional. Include when the claimant differs from the patient, or to supply bank or address details. medicalEvent: type: array items: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItems required: - accountPaidInd - authorisationDate - submissionAuthorityInd - serviceProvider - patient - medicalEvent title: PciwPatientClaimInteractiveRequestBodyPatientClaimInteractive PciwPatientClaimInteractiveRequestBody: type: object properties: correlationId: type: string description: >- Optional. Supply a unique transaction ID in the format `urn:uuid:{MinorId}{16 hex chars}`. If omitted, RebateRight generates one automatically. patientClaimInteractive: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractive required: - patientClaimInteractive title: PciwPatientClaimInteractiveRequestBody PciwPatientClaimInteractiveSuccessResponseClaimAssessmentError: type: object properties: code: type: integer text: type: string title: PciwPatientClaimInteractiveSuccessResponseClaimAssessmentError PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimantCurrentMembership: type: object properties: memberNumber: type: string memberRefNumber: type: string title: >- PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimantCurrentMembership PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimant: type: object properties: currentMembership: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimantCurrentMembership title: PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimant PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatientCurrentMembership: type: object properties: memberNumber: type: string memberRefNumber: type: string title: >- PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatientCurrentMembership PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatient: type: object properties: currentMembership: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatientCurrentMembership title: PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatient PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItemsError: type: object properties: code: type: integer text: type: string title: >- PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItemsError PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItems: type: object properties: id: type: string itemNumber: type: string chargeAmount: type: string assessmentCode: type: string benefitPaid: type: string numberOfPatientsSeen: type: string error: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItemsError required: - id - itemNumber - chargeAmount title: >- PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItems PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItems: type: object properties: id: type: string eventDate: type: string format: date service: type: array items: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItems required: - id - eventDate - service title: >- PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItems PciwPatientClaimInteractiveSuccessResponseClaimAssessment: type: object properties: claimId: type: string error: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentError claimant: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimant patient: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatient medicalEvent: type: array items: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItems required: - claimId title: PciwPatientClaimInteractiveSuccessResponseClaimAssessment PciwPatientClaimInteractiveSuccessResponse: type: object properties: status: type: string correlationId: type: string claimAssessment: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessment required: - status - correlationId - claimAssessment title: PciwPatientClaimInteractiveSuccessResponse PciwMedicareServiceMessageErrorServiceMessageItems: type: object properties: code: type: string description: Medicare error code. severity: type: string description: Severity for this message (e.g. `Error`). reason: type: string description: Human-readable explanation. required: - code - severity - reason title: PciwMedicareServiceMessageErrorServiceMessageItems PciwMedicareServiceMessageError: type: object properties: highestSeverity: type: string description: Highest severity across all messages (typically `Error`). correlationId: type: string description: Echo of the request `correlationId` for tracing. serviceMessage: type: array items: $ref: >- #/components/schemas/PciwMedicareServiceMessageErrorServiceMessageItems description: One or more Medicare validation or business-rule messages. required: - highestSeverity - correlationId - serviceMessage title: PciwMedicareServiceMessageError securitySchemes: apiKeyAuth: type: apiKey in: header name: x-api-key minorId: type: apiKey in: header name: x-minor-id ``` ## SDK Code Examples ```python Claim Assessed import requests url = "https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1" payload = { "patientClaimInteractive": { "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2447781L" }, "patient": { "identity": { "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } }, "medicalEvent": [ { "id": "01", "medicalEventDate": "2026-04-13", "service": [ { "id": "0001", "itemNumber": "23", "chargeAmount": "15075" } ] } ], "claimant": { "identity": { "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } } } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Claim Assessed const url = 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"patientClaimInteractive":{"accountPaidInd":"Y","authorisationDate":"2026-04-13","submissionAuthorityInd":"Y","serviceProvider":{"providerNumber":"2447781L"},"patient":{"identity":{"givenName":"Clint","familyName":"FLETCHER","dateOfBirth":"2009-02-08"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"3"}},"medicalEvent":[{"id":"01","medicalEventDate":"2026-04-13","service":[{"id":"0001","itemNumber":"23","chargeAmount":"15075"}]}],"claimant":{"identity":{"givenName":"Clint","familyName":"FLETCHER","dateOfBirth":"2009-02-08"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"3"}}}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Claim Assessed package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1" payload := strings.NewReader("{\n \"patientClaimInteractive\": {\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\",\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15075\"\n }\n ]\n }\n ],\n \"claimant\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n }\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Claim Assessed require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"patientClaimInteractive\": {\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\",\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15075\"\n }\n ]\n }\n ],\n \"claimant\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n }\n }\n}" response = http.request(request) puts response.read_body ``` ```java Claim Assessed import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"patientClaimInteractive\": {\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\",\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15075\"\n }\n ]\n }\n ],\n \"claimant\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n }\n }\n}") .asString(); ``` ```php Claim Assessed request('POST', 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1', [ 'body' => '{ "patientClaimInteractive": { "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2447781L" }, "patient": { "identity": { "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } }, "medicalEvent": [ { "id": "01", "medicalEventDate": "2026-04-13", "service": [ { "id": "0001", "itemNumber": "23", "chargeAmount": "15075" } ] } ], "claimant": { "identity": { "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } } } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Claim Assessed using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"patientClaimInteractive\": {\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\",\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15075\"\n }\n ]\n }\n ],\n \"claimant\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n }\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Claim Assessed import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["patientClaimInteractive": [ "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": ["providerNumber": "2447781L"], "patient": [ "identity": [ "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "3" ] ], "medicalEvent": [ [ "id": "01", "medicalEventDate": "2026-04-13", "service": [ [ "id": "0001", "itemNumber": "23", "chargeAmount": "15075" ] ] ] ], "claimant": [ "identity": [ "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "3" ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1")! 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 Pendable - Duplicate Service import requests url = "https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1" payload = { "patientClaimInteractive": { "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2447781L" }, "patient": { "identity": { "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } }, "medicalEvent": [ { "id": "01", "medicalEventDate": "2026-04-13", "service": [ { "id": "0001", "itemNumber": "23", "chargeAmount": "15075" } ] } ], "claimant": { "identity": { "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } } } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Pendable - Duplicate Service const url = 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"patientClaimInteractive":{"accountPaidInd":"Y","authorisationDate":"2026-04-13","submissionAuthorityInd":"Y","serviceProvider":{"providerNumber":"2447781L"},"patient":{"identity":{"givenName":"Clint","familyName":"FLETCHER","dateOfBirth":"2009-02-08"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"3"}},"medicalEvent":[{"id":"01","medicalEventDate":"2026-04-13","service":[{"id":"0001","itemNumber":"23","chargeAmount":"15075"}]}],"claimant":{"identity":{"givenName":"Clint","familyName":"FLETCHER","dateOfBirth":"2009-02-08"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"3"}}}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Pendable - Duplicate Service package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1" payload := strings.NewReader("{\n \"patientClaimInteractive\": {\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\",\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15075\"\n }\n ]\n }\n ],\n \"claimant\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n }\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Pendable - Duplicate Service require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"patientClaimInteractive\": {\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\",\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15075\"\n }\n ]\n }\n ],\n \"claimant\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n }\n }\n}" response = http.request(request) puts response.read_body ``` ```java Pendable - Duplicate Service import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"patientClaimInteractive\": {\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\",\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15075\"\n }\n ]\n }\n ],\n \"claimant\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n }\n }\n}") .asString(); ``` ```php Pendable - Duplicate Service request('POST', 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1', [ 'body' => '{ "patientClaimInteractive": { "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2447781L" }, "patient": { "identity": { "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } }, "medicalEvent": [ { "id": "01", "medicalEventDate": "2026-04-13", "service": [ { "id": "0001", "itemNumber": "23", "chargeAmount": "15075" } ] } ], "claimant": { "identity": { "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } } } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Pendable - Duplicate Service using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"patientClaimInteractive\": {\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\",\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15075\"\n }\n ]\n }\n ],\n \"claimant\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n }\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Pendable - Duplicate Service import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["patientClaimInteractive": [ "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": ["providerNumber": "2447781L"], "patient": [ "identity": [ "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "3" ] ], "medicalEvent": [ [ "id": "01", "medicalEventDate": "2026-04-13", "service": [ [ "id": "0001", "itemNumber": "23", "chargeAmount": "15075" ] ] ] ], "claimant": [ "identity": [ "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "3" ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1")! 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 Pended import requests url = "https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1" payload = { "patientClaimInteractive": { "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2447781L" }, "patient": { "identity": { "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } }, "medicalEvent": [ { "id": "01", "medicalEventDate": "2026-04-13", "service": [ { "id": "0001", "itemNumber": "23", "chargeAmount": "15075" } ] } ], "claimant": { "identity": { "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } } }, "correlationId": "urn:uuid:MDE00000b896820b03e348a5" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Pended const url = 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"patientClaimInteractive":{"accountPaidInd":"Y","authorisationDate":"2026-04-13","submissionAuthorityInd":"Y","serviceProvider":{"providerNumber":"2447781L"},"patient":{"identity":{"givenName":"Clint","familyName":"FLETCHER","dateOfBirth":"2009-02-08"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"3"}},"medicalEvent":[{"id":"01","medicalEventDate":"2026-04-13","service":[{"id":"0001","itemNumber":"23","chargeAmount":"15075"}]}],"claimant":{"identity":{"givenName":"Clint","familyName":"FLETCHER","dateOfBirth":"2009-02-08"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"3"}}},"correlationId":"urn:uuid:MDE00000b896820b03e348a5"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Pended package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1" payload := strings.NewReader("{\n \"patientClaimInteractive\": {\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\",\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15075\"\n }\n ]\n }\n ],\n \"claimant\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n }\n },\n \"correlationId\": \"urn:uuid:MDE00000b896820b03e348a5\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Pended require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"patientClaimInteractive\": {\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\",\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15075\"\n }\n ]\n }\n ],\n \"claimant\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n }\n },\n \"correlationId\": \"urn:uuid:MDE00000b896820b03e348a5\"\n}" response = http.request(request) puts response.read_body ``` ```java Pended import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"patientClaimInteractive\": {\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\",\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15075\"\n }\n ]\n }\n ],\n \"claimant\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n }\n },\n \"correlationId\": \"urn:uuid:MDE00000b896820b03e348a5\"\n}") .asString(); ``` ```php Pended request('POST', 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1', [ 'body' => '{ "patientClaimInteractive": { "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2447781L" }, "patient": { "identity": { "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } }, "medicalEvent": [ { "id": "01", "medicalEventDate": "2026-04-13", "service": [ { "id": "0001", "itemNumber": "23", "chargeAmount": "15075" } ] } ], "claimant": { "identity": { "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } } }, "correlationId": "urn:uuid:MDE00000b896820b03e348a5" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Pended using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"patientClaimInteractive\": {\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\",\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"15075\"\n }\n ]\n }\n ],\n \"claimant\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\",\n \"dateOfBirth\": \"2009-02-08\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n }\n },\n \"correlationId\": \"urn:uuid:MDE00000b896820b03e348a5\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Pended import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "patientClaimInteractive": [ "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": ["providerNumber": "2447781L"], "patient": [ "identity": [ "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "3" ] ], "medicalEvent": [ [ "id": "01", "medicalEventDate": "2026-04-13", "service": [ [ "id": "0001", "itemNumber": "23", "chargeAmount": "15075" ] ] ] ], "claimant": [ "identity": [ "givenName": "Clint", "familyName": "FLETCHER", "dateOfBirth": "2009-02-08" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "3" ] ] ], "correlationId": "urn:uuid:MDE00000b896820b03e348a5" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/patientclaiminteractive/general/v1")! 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() ``` 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. # Interactive Patient Claim — Specialist POST https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1 Content-Type: application/json The **specialist** interactive patient claim endpoint submits a Medicare patient claim for specialist or diagnostic imaging services. One of the following must hold, otherwise Medicare rejects the claim: - `referral.typeCode` is `D` (diagnostic imaging) or `S` (specialist), or - `referralOverrideCode` is `H`, `L`, `E`, or `N`, or - at least one service has `selfDeemedCode` `SD` or `SS`. **Request** and successful **`200`** payloads reuse the same schemas as the **general** endpoint in **`components.schemas`** in this file (`PciwPatientClaimInteractiveRequestBody`, `PciwPatientClaimInteractiveSuccessResponse`). Specialist-only fields are the second branch of the request `allOf` below (hospital / facility / LSP on services are already defined on the general request schema). **`400`** uses `PciwMedicareServiceMessageError`. Reference: https://docs.rebateright.com.au/api-reference/medicare-claiming/interactive-patient-claims/interactive-patient-claim-specialist ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /Medicare/patientclaiminteractive/specialist/v1: post: operationId: interactive-patient-claim-specialist summary: Interactive Patient Claim — Specialist description: > The **specialist** interactive patient claim endpoint submits a Medicare patient claim for specialist or diagnostic imaging services. One of the following must hold, otherwise Medicare rejects the claim: - `referral.typeCode` is `D` (diagnostic imaging) or `S` (specialist), or - `referralOverrideCode` is `H`, `L`, `E`, or `N`, or - at least one service has `selfDeemedCode` `SD` or `SS`. **Request** and successful **`200`** payloads reuse the same schemas as the **general** endpoint in **`components.schemas`** in this file (`PciwPatientClaimInteractiveRequestBody`, `PciwPatientClaimInteractiveSuccessResponse`). Specialist-only fields are the second branch of the request `allOf` below (hospital / facility / LSP on services are already defined on the general request schema). **`400`** uses `PciwMedicareServiceMessageError`. tags: - >- subpackage_medicareClaiming.subpackage_medicareClaiming/interactivePatientClaims parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponse '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/PciwMedicareServiceMessageError' requestBody: content: application/json: schema: type: object properties: correlationId: type: string description: >- Optional. Supply a unique transaction ID in the format `urn:uuid:{MinorId}{16 hex chars}`. If omitted, RebateRight generates one automatically. patientClaimInteractive: $ref: >- #/components/schemas/MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractive required: - patientClaimInteractive servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveServiceProvider: type: object properties: providerNumber: type: string required: - providerNumber title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveServiceProvider PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePayeeProvider: type: object properties: providerNumber: type: string required: - providerNumber description: >- Optional. The provider to whom the Medicare benefit is paid, if different from the servicing provider. title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePayeeProvider PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientIdentity: type: object properties: givenName: type: string familyName: type: string dateOfBirth: type: string format: date required: - givenName - familyName - dateOfBirth title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientIdentity PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientMedicare: type: object properties: memberNumber: type: string memberRefNumber: type: string required: - memberNumber - memberRefNumber title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientMedicare PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatient: type: object properties: identity: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientIdentity medicare: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientMedicare required: - identity - medicare title: PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatient PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantIdentity: type: object properties: givenName: type: string familyName: type: string dateOfBirth: type: string format: date title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantIdentity PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantMedicare: type: object properties: memberNumber: type: string memberRefNumber: type: string title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantMedicare PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantEftDetails: type: object properties: accountName: type: string accountNumber: type: string bsbCode: type: string title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantEftDetails PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantResidentialAddress: type: object properties: addressLineOne: type: string addressLineTwo: type: string locality: type: string postcode: type: string title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantResidentialAddress PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantContactDetails: type: object properties: name: type: string phoneNumber: type: string emailAddress: type: string title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantContactDetails PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimant: type: object properties: identity: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantIdentity medicare: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantMedicare eftDetails: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantEftDetails residentialAddress: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantResidentialAddress contactDetails: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantContactDetails description: >- Optional. Include when the claimant differs from the patient, or to supply bank or address details. title: PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimant PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItemsServiceItems: type: object properties: id: type: string itemNumber: type: string chargeAmount: type: string hospitalInd: type: string facilityId: type: string patientContribAmount: type: string numberOfPatientsSeen: type: string aftercareOverrideInd: type: string duplicateServiceOverrideInd: type: string multipleProcedureOverrideInd: type: string restrictiveOverrideCode: type: string timeDuration: type: string text: type: string fieldQuantity: type: string lspNumber: type: string rule3ExemptInd: type: string s4b3ExemptInd: type: string required: - id - itemNumber - chargeAmount title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItemsServiceItems PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItems: type: object properties: id: type: string medicalEventDate: type: string format: date medicalEventTime: type: string service: type: array items: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItemsServiceItems required: - id - medicalEventDate - service title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItems PciwPatientClaimInteractiveRequestBodyPatientClaimInteractive: type: object properties: accountPaidInd: type: string description: '`Y` if the account has been paid in full, `N` if not paid.' authorisationDate: type: string format: date description: Date the claim was authorised. Must not be in the future. submissionAuthorityInd: type: string description: >- Must be `Y`. Confirms the claimant has authorised the practice to submit on their behalf. accountReferenceId: type: string description: >- Optional. A reference used by the submitter to identify the claim. 1–9 alphanumeric characters. serviceProvider: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveServiceProvider payeeProvider: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePayeeProvider description: >- Optional. The provider to whom the Medicare benefit is paid, if different from the servicing provider. patient: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatient claimant: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimant description: >- Optional. Include when the claimant differs from the patient, or to supply bank or address details. medicalEvent: type: array items: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItems required: - accountPaidInd - authorisationDate - submissionAuthorityInd - serviceProvider - patient - medicalEvent title: PciwPatientClaimInteractiveRequestBodyPatientClaimInteractive MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralProvider: type: object properties: providerNumber: type: string description: >- Referring or requesting provider number; must differ from the servicing provider. required: - providerNumber title: >- MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralProvider MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralTypeCode: type: string enum: - D - S description: | Referral / request type (exactly one value per referral): | Code | Meaning | |------|---------| | D | Diagnostic imaging request | | S | Specialist or allied health referral | title: >- MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralTypeCode MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralPeriodCode: type: string enum: - S - 'N' - I description: | Required when **typeCode** is **S**. Referral period type: | Code | Meaning | |------|---------| | S | Standard period | | N | Non-standard — you must also send **period** (months) | | I | Indefinite | title: >- MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralPeriodCode MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferral: type: object properties: provider: $ref: >- #/components/schemas/MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralProvider issueDate: type: string format: date description: Referral issue date; not in the future or before patient DOB. typeCode: $ref: >- #/components/schemas/MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralTypeCode description: | Referral / request type (exactly one value per referral): | Code | Meaning | |------|---------| | D | Diagnostic imaging request | | S | Specialist or allied health referral | periodCode: $ref: >- #/components/schemas/MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralPeriodCode description: | Required when **typeCode** is **S**. Referral period type: | Code | Meaning | |------|---------| | S | Standard period | | N | Non-standard — you must also send **period** (months) | | I | Indefinite | period: type: string description: >- Required when **periodCode** is **N** — number of months allowed (1–98). description: > Specialist or diagnostic imaging referral. Mutually exclusive with **referralOverrideCode** when you are sending an override instead of a referral object. title: >- MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferral MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralOverrideCode: type: string enum: - H - L - E - 'N' description: > Use when there is no standard referral. Cannot be combined with a **referral** object in the same request. | Code | Meaning | |------|---------| | H | Hospital | | L | Lost referral | | E | Emergency | | N | Not required | title: >- MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralOverrideCode MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveMedicalEventItemsServiceItemsSelfDeemedCode: type: string enum: - SD - SS description: | Self-deemed or substituted service (when rules allow): | Code | Meaning | |------|---------| | SD | Self-deemed | | SS | Substituted service | title: >- MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveMedicalEventItemsServiceItemsSelfDeemedCode MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveMedicalEventItemsServiceItems: type: object properties: selfDeemedCode: $ref: >- #/components/schemas/MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveMedicalEventItemsServiceItemsSelfDeemedCode description: | Self-deemed or substituted service (when rules allow): | Code | Meaning | |------|---------| | SD | Self-deemed | | SS | Substituted service | title: >- MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveMedicalEventItemsServiceItems MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveMedicalEventItems: type: object properties: service: type: array items: $ref: >- #/components/schemas/MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveMedicalEventItemsServiceItems title: >- MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveMedicalEventItems MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractive: type: object properties: referral: $ref: >- #/components/schemas/MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferral description: > Specialist or diagnostic imaging referral. Mutually exclusive with **referralOverrideCode** when you are sending an override instead of a referral object. referralOverrideCode: $ref: >- #/components/schemas/MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralOverrideCode description: > Use when there is no standard referral. Cannot be combined with a **referral** object in the same request. | Code | Meaning | |------|---------| | H | Hospital | | L | Lost referral | | E | Emergency | | N | Not required | medicalEvent: type: array items: $ref: >- #/components/schemas/MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveMedicalEventItems required: - medicalEvent title: >- MedicarePatientclaiminteractiveSpecialistV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractive PciwPatientClaimInteractiveSuccessResponseClaimAssessmentError: type: object properties: code: type: integer text: type: string title: PciwPatientClaimInteractiveSuccessResponseClaimAssessmentError PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimantCurrentMembership: type: object properties: memberNumber: type: string memberRefNumber: type: string title: >- PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimantCurrentMembership PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimant: type: object properties: currentMembership: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimantCurrentMembership title: PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimant PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatientCurrentMembership: type: object properties: memberNumber: type: string memberRefNumber: type: string title: >- PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatientCurrentMembership PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatient: type: object properties: currentMembership: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatientCurrentMembership title: PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatient PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItemsError: type: object properties: code: type: integer text: type: string title: >- PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItemsError PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItems: type: object properties: id: type: string itemNumber: type: string chargeAmount: type: string assessmentCode: type: string benefitPaid: type: string numberOfPatientsSeen: type: string error: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItemsError required: - id - itemNumber - chargeAmount title: >- PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItems PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItems: type: object properties: id: type: string eventDate: type: string format: date service: type: array items: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItems required: - id - eventDate - service title: >- PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItems PciwPatientClaimInteractiveSuccessResponseClaimAssessment: type: object properties: claimId: type: string error: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentError claimant: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimant patient: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatient medicalEvent: type: array items: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItems required: - claimId title: PciwPatientClaimInteractiveSuccessResponseClaimAssessment PciwPatientClaimInteractiveSuccessResponse: type: object properties: status: type: string correlationId: type: string claimAssessment: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessment required: - status - correlationId - claimAssessment title: PciwPatientClaimInteractiveSuccessResponse PciwMedicareServiceMessageErrorServiceMessageItems: type: object properties: code: type: string description: Medicare error code. severity: type: string description: Severity for this message (e.g. `Error`). reason: type: string description: Human-readable explanation. required: - code - severity - reason title: PciwMedicareServiceMessageErrorServiceMessageItems PciwMedicareServiceMessageError: type: object properties: highestSeverity: type: string description: Highest severity across all messages (typically `Error`). correlationId: type: string description: Echo of the request `correlationId` for tracing. serviceMessage: type: array items: $ref: >- #/components/schemas/PciwMedicareServiceMessageErrorServiceMessageItems description: One or more Medicare validation or business-rule messages. required: - highestSeverity - correlationId - serviceMessage title: PciwMedicareServiceMessageError securitySchemes: apiKeyAuth: type: apiKey in: header name: x-api-key minorId: type: apiKey in: header name: x-minor-id ``` ## SDK Code Examples ```python Pended import requests url = "https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1" payload = { "patientClaimInteractive": { "medicalEvent": [ { "service": [ { "id": "1001", "itemNumber": "104", "chargeAmount": "25000" } ], "id": "01", "medicalEventDate": "2026-04-01" } ], "referralOverrideCode": "H", "accountPaidInd": "N", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2447781L" }, "patient": { "identity": { "dateOfBirth": "1986-12-18", "familyName": "FLETCHER", "givenName": "Edmond" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "2" } }, "claimant": { "identity": { "dateOfBirth": "1986-12-18", "familyName": "FLETCHER", "givenName": "Edmond" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "2" } } } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Pended const url = 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"patientClaimInteractive":{"medicalEvent":[{"service":[{"id":"1001","itemNumber":"104","chargeAmount":"25000"}],"id":"01","medicalEventDate":"2026-04-01"}],"referralOverrideCode":"H","accountPaidInd":"N","authorisationDate":"2026-04-13","submissionAuthorityInd":"Y","serviceProvider":{"providerNumber":"2447781L"},"patient":{"identity":{"dateOfBirth":"1986-12-18","familyName":"FLETCHER","givenName":"Edmond"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"2"}},"claimant":{"identity":{"dateOfBirth":"1986-12-18","familyName":"FLETCHER","givenName":"Edmond"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"2"}}}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Pended package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1" payload := strings.NewReader("{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"104\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-01\"\n }\n ],\n \"referralOverrideCode\": \"H\",\n \"accountPaidInd\": \"N\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\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 \"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 }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Pended require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"104\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-01\"\n }\n ],\n \"referralOverrideCode\": \"H\",\n \"accountPaidInd\": \"N\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\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 \"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 }\n}" response = http.request(request) puts response.read_body ``` ```java Pended import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"104\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-01\"\n }\n ],\n \"referralOverrideCode\": \"H\",\n \"accountPaidInd\": \"N\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\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 \"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 }\n}") .asString(); ``` ```php Pended request('POST', 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1', [ 'body' => '{ "patientClaimInteractive": { "medicalEvent": [ { "service": [ { "id": "1001", "itemNumber": "104", "chargeAmount": "25000" } ], "id": "01", "medicalEventDate": "2026-04-01" } ], "referralOverrideCode": "H", "accountPaidInd": "N", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2447781L" }, "patient": { "identity": { "dateOfBirth": "1986-12-18", "familyName": "FLETCHER", "givenName": "Edmond" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "2" } }, "claimant": { "identity": { "dateOfBirth": "1986-12-18", "familyName": "FLETCHER", "givenName": "Edmond" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "2" } } } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Pended using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"104\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-01\"\n }\n ],\n \"referralOverrideCode\": \"H\",\n \"accountPaidInd\": \"N\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\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 \"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 }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Pended import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["patientClaimInteractive": [ "medicalEvent": [ [ "service": [ [ "id": "1001", "itemNumber": "104", "chargeAmount": "25000" ] ], "id": "01", "medicalEventDate": "2026-04-01" ] ], "referralOverrideCode": "H", "accountPaidInd": "N", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": ["providerNumber": "2447781L"], "patient": [ "identity": [ "dateOfBirth": "1986-12-18", "familyName": "FLETCHER", "givenName": "Edmond" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "2" ] ], "claimant": [ "identity": [ "dateOfBirth": "1986-12-18", "familyName": "FLETCHER", "givenName": "Edmond" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "2" ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1")! 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 Assessed - Update Bank Details import requests url = "https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1" payload = { "patientClaimInteractive": { "medicalEvent": [ { "service": [ { "id": "1001", "itemNumber": "104", "chargeAmount": "25000" } ], "id": "01", "medicalEventDate": "2026-04-13" } ], "referral": { "provider": { "providerNumber": "2447791K" }, "issueDate": "2026-01-01", "typeCode": "S", "periodCode": "S" }, "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2447781L" }, "patient": { "identity": { "dateOfBirth": "1993-08-14", "familyName": "NASH", "givenName": "Hazel" }, "medicare": { "memberNumber": "2954536421", "memberRefNumber": "1" } }, "claimant": { "identity": { "dateOfBirth": "1993-08-14", "familyName": "NASH", "givenName": "Hazel" }, "medicare": { "memberNumber": "2954536421", "memberRefNumber": "1" } } } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Assessed - Update Bank Details const url = 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"patientClaimInteractive":{"medicalEvent":[{"service":[{"id":"1001","itemNumber":"104","chargeAmount":"25000"}],"id":"01","medicalEventDate":"2026-04-13"}],"referral":{"provider":{"providerNumber":"2447791K"},"issueDate":"2026-01-01","typeCode":"S","periodCode":"S"},"accountPaidInd":"Y","authorisationDate":"2026-04-13","submissionAuthorityInd":"Y","serviceProvider":{"providerNumber":"2447781L"},"patient":{"identity":{"dateOfBirth":"1993-08-14","familyName":"NASH","givenName":"Hazel"},"medicare":{"memberNumber":"2954536421","memberRefNumber":"1"}},"claimant":{"identity":{"dateOfBirth":"1993-08-14","familyName":"NASH","givenName":"Hazel"},"medicare":{"memberNumber":"2954536421","memberRefNumber":"1"}}}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Assessed - Update Bank Details package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1" payload := strings.NewReader("{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"104\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\"\n }\n ],\n \"referral\": {\n \"provider\": {\n \"providerNumber\": \"2447791K\"\n },\n \"issueDate\": \"2026-01-01\",\n \"typeCode\": \"S\",\n \"periodCode\": \"S\"\n },\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1993-08-14\",\n \"familyName\": \"NASH\",\n \"givenName\": \"Hazel\"\n },\n \"medicare\": {\n \"memberNumber\": \"2954536421\",\n \"memberRefNumber\": \"1\"\n }\n },\n \"claimant\": {\n \"identity\": {\n \"dateOfBirth\": \"1993-08-14\",\n \"familyName\": \"NASH\",\n \"givenName\": \"Hazel\"\n },\n \"medicare\": {\n \"memberNumber\": \"2954536421\",\n \"memberRefNumber\": \"1\"\n }\n }\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Assessed - Update Bank Details require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"104\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\"\n }\n ],\n \"referral\": {\n \"provider\": {\n \"providerNumber\": \"2447791K\"\n },\n \"issueDate\": \"2026-01-01\",\n \"typeCode\": \"S\",\n \"periodCode\": \"S\"\n },\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1993-08-14\",\n \"familyName\": \"NASH\",\n \"givenName\": \"Hazel\"\n },\n \"medicare\": {\n \"memberNumber\": \"2954536421\",\n \"memberRefNumber\": \"1\"\n }\n },\n \"claimant\": {\n \"identity\": {\n \"dateOfBirth\": \"1993-08-14\",\n \"familyName\": \"NASH\",\n \"givenName\": \"Hazel\"\n },\n \"medicare\": {\n \"memberNumber\": \"2954536421\",\n \"memberRefNumber\": \"1\"\n }\n }\n }\n}" response = http.request(request) puts response.read_body ``` ```java Assessed - Update Bank Details import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"104\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\"\n }\n ],\n \"referral\": {\n \"provider\": {\n \"providerNumber\": \"2447791K\"\n },\n \"issueDate\": \"2026-01-01\",\n \"typeCode\": \"S\",\n \"periodCode\": \"S\"\n },\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1993-08-14\",\n \"familyName\": \"NASH\",\n \"givenName\": \"Hazel\"\n },\n \"medicare\": {\n \"memberNumber\": \"2954536421\",\n \"memberRefNumber\": \"1\"\n }\n },\n \"claimant\": {\n \"identity\": {\n \"dateOfBirth\": \"1993-08-14\",\n \"familyName\": \"NASH\",\n \"givenName\": \"Hazel\"\n },\n \"medicare\": {\n \"memberNumber\": \"2954536421\",\n \"memberRefNumber\": \"1\"\n }\n }\n }\n}") .asString(); ``` ```php Assessed - Update Bank Details request('POST', 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1', [ 'body' => '{ "patientClaimInteractive": { "medicalEvent": [ { "service": [ { "id": "1001", "itemNumber": "104", "chargeAmount": "25000" } ], "id": "01", "medicalEventDate": "2026-04-13" } ], "referral": { "provider": { "providerNumber": "2447791K" }, "issueDate": "2026-01-01", "typeCode": "S", "periodCode": "S" }, "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2447781L" }, "patient": { "identity": { "dateOfBirth": "1993-08-14", "familyName": "NASH", "givenName": "Hazel" }, "medicare": { "memberNumber": "2954536421", "memberRefNumber": "1" } }, "claimant": { "identity": { "dateOfBirth": "1993-08-14", "familyName": "NASH", "givenName": "Hazel" }, "medicare": { "memberNumber": "2954536421", "memberRefNumber": "1" } } } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Assessed - Update Bank Details using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"104\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\"\n }\n ],\n \"referral\": {\n \"provider\": {\n \"providerNumber\": \"2447791K\"\n },\n \"issueDate\": \"2026-01-01\",\n \"typeCode\": \"S\",\n \"periodCode\": \"S\"\n },\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1993-08-14\",\n \"familyName\": \"NASH\",\n \"givenName\": \"Hazel\"\n },\n \"medicare\": {\n \"memberNumber\": \"2954536421\",\n \"memberRefNumber\": \"1\"\n }\n },\n \"claimant\": {\n \"identity\": {\n \"dateOfBirth\": \"1993-08-14\",\n \"familyName\": \"NASH\",\n \"givenName\": \"Hazel\"\n },\n \"medicare\": {\n \"memberNumber\": \"2954536421\",\n \"memberRefNumber\": \"1\"\n }\n }\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Assessed - Update Bank Details import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["patientClaimInteractive": [ "medicalEvent": [ [ "service": [ [ "id": "1001", "itemNumber": "104", "chargeAmount": "25000" ] ], "id": "01", "medicalEventDate": "2026-04-13" ] ], "referral": [ "provider": ["providerNumber": "2447791K"], "issueDate": "2026-01-01", "typeCode": "S", "periodCode": "S" ], "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": ["providerNumber": "2447781L"], "patient": [ "identity": [ "dateOfBirth": "1993-08-14", "familyName": "NASH", "givenName": "Hazel" ], "medicare": [ "memberNumber": "2954536421", "memberRefNumber": "1" ] ], "claimant": [ "identity": [ "dateOfBirth": "1993-08-14", "familyName": "NASH", "givenName": "Hazel" ], "medicare": [ "memberNumber": "2954536421", "memberRefNumber": "1" ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1")! 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 Rejected - Card Mismatch import requests url = "https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1" payload = { "patientClaimInteractive": { "medicalEvent": [ { "service": [ { "id": "1001", "itemNumber": "23", "chargeAmount": "25000" } ], "id": "01", "medicalEventDate": "2025-08-20" } ], "referralOverrideCode": "H", "accountPaidInd": "Y", "authorisationDate": "2025-08-20", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2447781L" }, "patient": { "identity": { "dateOfBirth": "1982-02-28", "familyName": "FLETCHER", "givenName": "Ricky" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "1" } }, "claimant": { "identity": { "dateOfBirth": "1982-02-28", "familyName": "FLETCHER", "givenName": "Ricky" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "1" } } } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Rejected - Card Mismatch const url = 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"patientClaimInteractive":{"medicalEvent":[{"service":[{"id":"1001","itemNumber":"23","chargeAmount":"25000"}],"id":"01","medicalEventDate":"2025-08-20"}],"referralOverrideCode":"H","accountPaidInd":"Y","authorisationDate":"2025-08-20","submissionAuthorityInd":"Y","serviceProvider":{"providerNumber":"2447781L"},"patient":{"identity":{"dateOfBirth":"1982-02-28","familyName":"FLETCHER","givenName":"Ricky"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"1"}},"claimant":{"identity":{"dateOfBirth":"1982-02-28","familyName":"FLETCHER","givenName":"Ricky"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"1"}}}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Rejected - Card Mismatch package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1" payload := strings.NewReader("{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2025-08-20\"\n }\n ],\n \"referralOverrideCode\": \"H\",\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2025-08-20\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1982-02-28\",\n \"familyName\": \"FLETCHER\",\n \"givenName\": \"Ricky\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"1\"\n }\n },\n \"claimant\": {\n \"identity\": {\n \"dateOfBirth\": \"1982-02-28\",\n \"familyName\": \"FLETCHER\",\n \"givenName\": \"Ricky\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"1\"\n }\n }\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Rejected - Card Mismatch require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2025-08-20\"\n }\n ],\n \"referralOverrideCode\": \"H\",\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2025-08-20\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1982-02-28\",\n \"familyName\": \"FLETCHER\",\n \"givenName\": \"Ricky\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"1\"\n }\n },\n \"claimant\": {\n \"identity\": {\n \"dateOfBirth\": \"1982-02-28\",\n \"familyName\": \"FLETCHER\",\n \"givenName\": \"Ricky\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"1\"\n }\n }\n }\n}" response = http.request(request) puts response.read_body ``` ```java Rejected - Card Mismatch import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2025-08-20\"\n }\n ],\n \"referralOverrideCode\": \"H\",\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2025-08-20\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1982-02-28\",\n \"familyName\": \"FLETCHER\",\n \"givenName\": \"Ricky\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"1\"\n }\n },\n \"claimant\": {\n \"identity\": {\n \"dateOfBirth\": \"1982-02-28\",\n \"familyName\": \"FLETCHER\",\n \"givenName\": \"Ricky\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"1\"\n }\n }\n }\n}") .asString(); ``` ```php Rejected - Card Mismatch request('POST', 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1', [ 'body' => '{ "patientClaimInteractive": { "medicalEvent": [ { "service": [ { "id": "1001", "itemNumber": "23", "chargeAmount": "25000" } ], "id": "01", "medicalEventDate": "2025-08-20" } ], "referralOverrideCode": "H", "accountPaidInd": "Y", "authorisationDate": "2025-08-20", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2447781L" }, "patient": { "identity": { "dateOfBirth": "1982-02-28", "familyName": "FLETCHER", "givenName": "Ricky" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "1" } }, "claimant": { "identity": { "dateOfBirth": "1982-02-28", "familyName": "FLETCHER", "givenName": "Ricky" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "1" } } } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Rejected - Card Mismatch using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2025-08-20\"\n }\n ],\n \"referralOverrideCode\": \"H\",\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2025-08-20\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1982-02-28\",\n \"familyName\": \"FLETCHER\",\n \"givenName\": \"Ricky\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"1\"\n }\n },\n \"claimant\": {\n \"identity\": {\n \"dateOfBirth\": \"1982-02-28\",\n \"familyName\": \"FLETCHER\",\n \"givenName\": \"Ricky\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"1\"\n }\n }\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Rejected - Card Mismatch import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["patientClaimInteractive": [ "medicalEvent": [ [ "service": [ [ "id": "1001", "itemNumber": "23", "chargeAmount": "25000" ] ], "id": "01", "medicalEventDate": "2025-08-20" ] ], "referralOverrideCode": "H", "accountPaidInd": "Y", "authorisationDate": "2025-08-20", "submissionAuthorityInd": "Y", "serviceProvider": ["providerNumber": "2447781L"], "patient": [ "identity": [ "dateOfBirth": "1982-02-28", "familyName": "FLETCHER", "givenName": "Ricky" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "1" ] ], "claimant": [ "identity": [ "dateOfBirth": "1982-02-28", "familyName": "FLETCHER", "givenName": "Ricky" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "1" ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/patientclaiminteractive/specialist/v1")! 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() ``` 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. # Interactive Patient Claim — Pathology POST https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1 Content-Type: application/json The **pathology** interactive patient claim endpoint submits a Medicare patient claim for pathology services. One of the following must hold, otherwise Medicare rejects the claim: - `referral.typeCode = P` (pathology request), or - `referralOverrideCode = N` (not required), or - `selfDeemedCode = SD` on at least one service and no service uses `SS`. **Request** and successful **`200`** payloads reuse the same schemas as the **general** endpoint in **`components.schemas`** in this file (`PciwPatientClaimInteractiveRequestBody`, `PciwPatientClaimInteractiveSuccessResponse`). Pathology-only fields are the second branch of the request `allOf` below. **`400`** uses `PciwMedicareServiceMessageError`. Reference: https://docs.rebateright.com.au/api-reference/medicare-claiming/interactive-patient-claims/interactive-patient-claim-pathology ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /Medicare/patientclaiminteractive/pathology/v1: post: operationId: interactive-patient-claim-pathology summary: Interactive Patient Claim — Pathology description: > The **pathology** interactive patient claim endpoint submits a Medicare patient claim for pathology services. One of the following must hold, otherwise Medicare rejects the claim: - `referral.typeCode = P` (pathology request), or - `referralOverrideCode = N` (not required), or - `selfDeemedCode = SD` on at least one service and no service uses `SS`. **Request** and successful **`200`** payloads reuse the same schemas as the **general** endpoint in **`components.schemas`** in this file (`PciwPatientClaimInteractiveRequestBody`, `PciwPatientClaimInteractiveSuccessResponse`). Pathology-only fields are the second branch of the request `allOf` below. **`400`** uses `PciwMedicareServiceMessageError`. tags: - >- subpackage_medicareClaiming.subpackage_medicareClaiming/interactivePatientClaims parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponse '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/PciwMedicareServiceMessageError' requestBody: content: application/json: schema: type: object properties: correlationId: type: string description: >- Optional. Supply a unique transaction ID in the format `urn:uuid:{MinorId}{16 hex chars}`. If omitted, RebateRight generates one automatically. patientClaimInteractive: $ref: >- #/components/schemas/MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractive required: - patientClaimInteractive servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveServiceProvider: type: object properties: providerNumber: type: string required: - providerNumber title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveServiceProvider PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePayeeProvider: type: object properties: providerNumber: type: string required: - providerNumber description: >- Optional. The provider to whom the Medicare benefit is paid, if different from the servicing provider. title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePayeeProvider PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientIdentity: type: object properties: givenName: type: string familyName: type: string dateOfBirth: type: string format: date required: - givenName - familyName - dateOfBirth title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientIdentity PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientMedicare: type: object properties: memberNumber: type: string memberRefNumber: type: string required: - memberNumber - memberRefNumber title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientMedicare PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatient: type: object properties: identity: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientIdentity medicare: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatientMedicare required: - identity - medicare title: PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatient PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantIdentity: type: object properties: givenName: type: string familyName: type: string dateOfBirth: type: string format: date title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantIdentity PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantMedicare: type: object properties: memberNumber: type: string memberRefNumber: type: string title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantMedicare PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantEftDetails: type: object properties: accountName: type: string accountNumber: type: string bsbCode: type: string title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantEftDetails PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantResidentialAddress: type: object properties: addressLineOne: type: string addressLineTwo: type: string locality: type: string postcode: type: string title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantResidentialAddress PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantContactDetails: type: object properties: name: type: string phoneNumber: type: string emailAddress: type: string title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantContactDetails PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimant: type: object properties: identity: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantIdentity medicare: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantMedicare eftDetails: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantEftDetails residentialAddress: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantResidentialAddress contactDetails: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimantContactDetails description: >- Optional. Include when the claimant differs from the patient, or to supply bank or address details. title: PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimant PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItemsServiceItems: type: object properties: id: type: string itemNumber: type: string chargeAmount: type: string hospitalInd: type: string facilityId: type: string patientContribAmount: type: string numberOfPatientsSeen: type: string aftercareOverrideInd: type: string duplicateServiceOverrideInd: type: string multipleProcedureOverrideInd: type: string restrictiveOverrideCode: type: string timeDuration: type: string text: type: string fieldQuantity: type: string lspNumber: type: string rule3ExemptInd: type: string s4b3ExemptInd: type: string required: - id - itemNumber - chargeAmount title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItemsServiceItems PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItems: type: object properties: id: type: string medicalEventDate: type: string format: date medicalEventTime: type: string service: type: array items: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItemsServiceItems required: - id - medicalEventDate - service title: >- PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItems PciwPatientClaimInteractiveRequestBodyPatientClaimInteractive: type: object properties: accountPaidInd: type: string description: '`Y` if the account has been paid in full, `N` if not paid.' authorisationDate: type: string format: date description: Date the claim was authorised. Must not be in the future. submissionAuthorityInd: type: string description: >- Must be `Y`. Confirms the claimant has authorised the practice to submit on their behalf. accountReferenceId: type: string description: >- Optional. A reference used by the submitter to identify the claim. 1–9 alphanumeric characters. serviceProvider: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveServiceProvider payeeProvider: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePayeeProvider description: >- Optional. The provider to whom the Medicare benefit is paid, if different from the servicing provider. patient: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractivePatient claimant: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveClaimant description: >- Optional. Include when the claimant differs from the patient, or to supply bank or address details. medicalEvent: type: array items: $ref: >- #/components/schemas/PciwPatientClaimInteractiveRequestBodyPatientClaimInteractiveMedicalEventItems required: - accountPaidInd - authorisationDate - submissionAuthorityInd - serviceProvider - patient - medicalEvent title: PciwPatientClaimInteractiveRequestBodyPatientClaimInteractive MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralProvider: type: object properties: providerNumber: type: string description: Requesting provider Medicare number. required: - providerNumber title: >- MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralProvider MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralTypeCode: type: string enum: - P description: | Request type for pathology (must be **P**): | Code | Meaning | |------|---------| | P | Pathology request | title: >- MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralTypeCode MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferral: type: object properties: provider: $ref: >- #/components/schemas/MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralProvider issueDate: type: string format: date description: >- Request issue date; must not be in the future or before the patient date of birth. typeCode: $ref: >- #/components/schemas/MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralTypeCode description: | Request type for pathology (must be **P**): | Code | Meaning | |------|---------| | P | Pathology request | description: > Pathology request. Mutually exclusive with **referralOverrideCode** when you are using an override instead of a referral object. title: >- MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferral MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralOverrideCode: type: string enum: - 'N' description: > Use **N** when a pathology referral is not required. Cannot be combined with a **referral** object in the same request. | Code | Meaning | |------|---------| | N | Not required | title: >- MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralOverrideCode MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveMedicalEventItemsServiceItems: type: object properties: scpId: type: string description: Specialist Collection Point ID for pathology services. selfDeemedCode: type: string description: > Pathology self-deeming (when rules allow). **SS** is not valid for pathology on this endpoint. | Code | Meaning | |------|---------| | SD | Self-deemed additional tests | collectionDateTime: type: string description: Date and time the specimen was collected. accessionDateTime: type: string description: Date and time the specimen was accessioned. title: >- MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveMedicalEventItemsServiceItems MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveMedicalEventItems: type: object properties: service: type: array items: $ref: >- #/components/schemas/MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveMedicalEventItemsServiceItems title: >- MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveMedicalEventItems MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractive: type: object properties: referral: $ref: >- #/components/schemas/MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferral description: > Pathology request. Mutually exclusive with **referralOverrideCode** when you are using an override instead of a referral object. referralOverrideCode: $ref: >- #/components/schemas/MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveReferralOverrideCode description: > Use **N** when a pathology referral is not required. Cannot be combined with a **referral** object in the same request. | Code | Meaning | |------|---------| | N | Not required | medicalEvent: type: array items: $ref: >- #/components/schemas/MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractiveMedicalEventItems required: - medicalEvent title: >- MedicarePatientclaiminteractivePathologyV1PostRequestBodyContentApplicationJsonSchemaPatientClaimInteractive PciwPatientClaimInteractiveSuccessResponseClaimAssessmentError: type: object properties: code: type: integer text: type: string title: PciwPatientClaimInteractiveSuccessResponseClaimAssessmentError PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimantCurrentMembership: type: object properties: memberNumber: type: string memberRefNumber: type: string title: >- PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimantCurrentMembership PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimant: type: object properties: currentMembership: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimantCurrentMembership title: PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimant PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatientCurrentMembership: type: object properties: memberNumber: type: string memberRefNumber: type: string title: >- PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatientCurrentMembership PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatient: type: object properties: currentMembership: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatientCurrentMembership title: PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatient PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItemsError: type: object properties: code: type: integer text: type: string title: >- PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItemsError PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItems: type: object properties: id: type: string itemNumber: type: string chargeAmount: type: string assessmentCode: type: string benefitPaid: type: string numberOfPatientsSeen: type: string error: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItemsError required: - id - itemNumber - chargeAmount title: >- PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItems PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItems: type: object properties: id: type: string eventDate: type: string format: date service: type: array items: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItemsServiceItems required: - id - eventDate - service title: >- PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItems PciwPatientClaimInteractiveSuccessResponseClaimAssessment: type: object properties: claimId: type: string error: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentError claimant: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentClaimant patient: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentPatient medicalEvent: type: array items: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessmentMedicalEventItems required: - claimId title: PciwPatientClaimInteractiveSuccessResponseClaimAssessment PciwPatientClaimInteractiveSuccessResponse: type: object properties: status: type: string correlationId: type: string claimAssessment: $ref: >- #/components/schemas/PciwPatientClaimInteractiveSuccessResponseClaimAssessment required: - status - correlationId - claimAssessment title: PciwPatientClaimInteractiveSuccessResponse PciwMedicareServiceMessageErrorServiceMessageItems: type: object properties: code: type: string description: Medicare error code. severity: type: string description: Severity for this message (e.g. `Error`). reason: type: string description: Human-readable explanation. required: - code - severity - reason title: PciwMedicareServiceMessageErrorServiceMessageItems PciwMedicareServiceMessageError: type: object properties: highestSeverity: type: string description: Highest severity across all messages (typically `Error`). correlationId: type: string description: Echo of the request `correlationId` for tracing. serviceMessage: type: array items: $ref: >- #/components/schemas/PciwMedicareServiceMessageErrorServiceMessageItems description: One or more Medicare validation or business-rule messages. required: - highestSeverity - correlationId - serviceMessage title: PciwMedicareServiceMessageError securitySchemes: apiKeyAuth: type: apiKey in: header name: x-api-key minorId: type: apiKey in: header name: x-minor-id ``` ## SDK Code Examples ```python Claim Assessed import requests url = "https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1" payload = { "patientClaimInteractive": { "medicalEvent": [ { "service": [ { "scpId": "00001", "id": "1001", "itemNumber": "65120", "chargeAmount": "2505" } ], "id": "01", "medicalEventDate": "2026-04-13" } ], "referral": { "provider": { "providerNumber": "2447781L" }, "issueDate": "2026-01-01", "typeCode": "P" }, "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2446081F" }, "patient": { "identity": { "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } }, "claimant": { "identity": { "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } } } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Claim Assessed const url = 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"patientClaimInteractive":{"medicalEvent":[{"service":[{"scpId":"00001","id":"1001","itemNumber":"65120","chargeAmount":"2505"}],"id":"01","medicalEventDate":"2026-04-13"}],"referral":{"provider":{"providerNumber":"2447781L"},"issueDate":"2026-01-01","typeCode":"P"},"accountPaidInd":"Y","authorisationDate":"2026-04-13","submissionAuthorityInd":"Y","serviceProvider":{"providerNumber":"2446081F"},"patient":{"identity":{"dateOfBirth":"2009-02-08","familyName":"FLETCHER","givenName":"Clint"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"3"}},"claimant":{"identity":{"dateOfBirth":"2009-02-08","familyName":"FLETCHER","givenName":"Clint"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"3"}}}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Claim Assessed package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1" payload := strings.NewReader("{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"scpId\": \"00001\",\n \"id\": \"1001\",\n \"itemNumber\": \"65120\",\n \"chargeAmount\": \"2505\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\"\n }\n ],\n \"referral\": {\n \"provider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"issueDate\": \"2026-01-01\",\n \"typeCode\": \"P\"\n },\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2446081F\"\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 \"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 }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Claim Assessed require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"scpId\": \"00001\",\n \"id\": \"1001\",\n \"itemNumber\": \"65120\",\n \"chargeAmount\": \"2505\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\"\n }\n ],\n \"referral\": {\n \"provider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"issueDate\": \"2026-01-01\",\n \"typeCode\": \"P\"\n },\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2446081F\"\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 \"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 }\n}" response = http.request(request) puts response.read_body ``` ```java Claim Assessed import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"scpId\": \"00001\",\n \"id\": \"1001\",\n \"itemNumber\": \"65120\",\n \"chargeAmount\": \"2505\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\"\n }\n ],\n \"referral\": {\n \"provider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"issueDate\": \"2026-01-01\",\n \"typeCode\": \"P\"\n },\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2446081F\"\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 \"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 }\n}") .asString(); ``` ```php Claim Assessed request('POST', 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1', [ 'body' => '{ "patientClaimInteractive": { "medicalEvent": [ { "service": [ { "scpId": "00001", "id": "1001", "itemNumber": "65120", "chargeAmount": "2505" } ], "id": "01", "medicalEventDate": "2026-04-13" } ], "referral": { "provider": { "providerNumber": "2447781L" }, "issueDate": "2026-01-01", "typeCode": "P" }, "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2446081F" }, "patient": { "identity": { "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } }, "claimant": { "identity": { "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } } } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Claim Assessed using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"scpId\": \"00001\",\n \"id\": \"1001\",\n \"itemNumber\": \"65120\",\n \"chargeAmount\": \"2505\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2026-04-13\"\n }\n ],\n \"referral\": {\n \"provider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"issueDate\": \"2026-01-01\",\n \"typeCode\": \"P\"\n },\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2446081F\"\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 \"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 }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Claim Assessed import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["patientClaimInteractive": [ "medicalEvent": [ [ "service": [ [ "scpId": "00001", "id": "1001", "itemNumber": "65120", "chargeAmount": "2505" ] ], "id": "01", "medicalEventDate": "2026-04-13" ] ], "referral": [ "provider": ["providerNumber": "2447781L"], "issueDate": "2026-01-01", "typeCode": "P" ], "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": ["providerNumber": "2446081F"], "patient": [ "identity": [ "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "3" ] ], "claimant": [ "identity": [ "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "3" ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1")! 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 Pended import requests url = "https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1" payload = { "correlationId": "urn:uuid:MDE0000040eb793b5d174d50", "patientClaimInteractive": { "medicalEvent": [ { "service": [ { "scpId": "00001", "id": "1001", "itemNumber": "65120", "chargeAmount": "2505" } ], "id": "01", "medicalEventDate": "2025-09-01" } ], "referral": { "provider": { "providerNumber": "2447781L" }, "issueDate": "2026-01-01", "typeCode": "P" }, "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2446081F" }, "patient": { "identity": { "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } }, "claimant": { "identity": { "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } } } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Pended const url = 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"correlationId":"urn:uuid:MDE0000040eb793b5d174d50","patientClaimInteractive":{"medicalEvent":[{"service":[{"scpId":"00001","id":"1001","itemNumber":"65120","chargeAmount":"2505"}],"id":"01","medicalEventDate":"2025-09-01"}],"referral":{"provider":{"providerNumber":"2447781L"},"issueDate":"2026-01-01","typeCode":"P"},"accountPaidInd":"Y","authorisationDate":"2026-04-13","submissionAuthorityInd":"Y","serviceProvider":{"providerNumber":"2446081F"},"patient":{"identity":{"dateOfBirth":"2009-02-08","familyName":"FLETCHER","givenName":"Clint"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"3"}},"claimant":{"identity":{"dateOfBirth":"2009-02-08","familyName":"FLETCHER","givenName":"Clint"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"3"}}}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Pended package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1" payload := strings.NewReader("{\n \"correlationId\": \"urn:uuid:MDE0000040eb793b5d174d50\",\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"scpId\": \"00001\",\n \"id\": \"1001\",\n \"itemNumber\": \"65120\",\n \"chargeAmount\": \"2505\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2025-09-01\"\n }\n ],\n \"referral\": {\n \"provider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"issueDate\": \"2026-01-01\",\n \"typeCode\": \"P\"\n },\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2446081F\"\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 \"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 }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Pended require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"correlationId\": \"urn:uuid:MDE0000040eb793b5d174d50\",\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"scpId\": \"00001\",\n \"id\": \"1001\",\n \"itemNumber\": \"65120\",\n \"chargeAmount\": \"2505\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2025-09-01\"\n }\n ],\n \"referral\": {\n \"provider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"issueDate\": \"2026-01-01\",\n \"typeCode\": \"P\"\n },\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2446081F\"\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 \"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 }\n}" response = http.request(request) puts response.read_body ``` ```java Pended import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"correlationId\": \"urn:uuid:MDE0000040eb793b5d174d50\",\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"scpId\": \"00001\",\n \"id\": \"1001\",\n \"itemNumber\": \"65120\",\n \"chargeAmount\": \"2505\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2025-09-01\"\n }\n ],\n \"referral\": {\n \"provider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"issueDate\": \"2026-01-01\",\n \"typeCode\": \"P\"\n },\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2446081F\"\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 \"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 }\n}") .asString(); ``` ```php Pended request('POST', 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1', [ 'body' => '{ "correlationId": "urn:uuid:MDE0000040eb793b5d174d50", "patientClaimInteractive": { "medicalEvent": [ { "service": [ { "scpId": "00001", "id": "1001", "itemNumber": "65120", "chargeAmount": "2505" } ], "id": "01", "medicalEventDate": "2025-09-01" } ], "referral": { "provider": { "providerNumber": "2447781L" }, "issueDate": "2026-01-01", "typeCode": "P" }, "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2446081F" }, "patient": { "identity": { "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } }, "claimant": { "identity": { "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } } } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Pended using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"correlationId\": \"urn:uuid:MDE0000040eb793b5d174d50\",\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"scpId\": \"00001\",\n \"id\": \"1001\",\n \"itemNumber\": \"65120\",\n \"chargeAmount\": \"2505\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2025-09-01\"\n }\n ],\n \"referral\": {\n \"provider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"issueDate\": \"2026-01-01\",\n \"typeCode\": \"P\"\n },\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2446081F\"\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 \"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 }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Pended import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "correlationId": "urn:uuid:MDE0000040eb793b5d174d50", "patientClaimInteractive": [ "medicalEvent": [ [ "service": [ [ "scpId": "00001", "id": "1001", "itemNumber": "65120", "chargeAmount": "2505" ] ], "id": "01", "medicalEventDate": "2025-09-01" ] ], "referral": [ "provider": ["providerNumber": "2447781L"], "issueDate": "2026-01-01", "typeCode": "P" ], "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": ["providerNumber": "2446081F"], "patient": [ "identity": [ "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "3" ] ], "claimant": [ "identity": [ "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "3" ] ] ] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1")! 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 Pendable - Already Paid import requests url = "https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1" payload = { "patientClaimInteractive": { "medicalEvent": [ { "service": [ { "id": "1001", "itemNumber": "3", "chargeAmount": "25000" } ], "id": "01", "medicalEventDate": "2025-08-20" } ], "referralOverrideCode": "N", "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2446081F" }, "patient": { "identity": { "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } }, "claimant": { "identity": { "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } } } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Pendable - Already Paid const url = 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"patientClaimInteractive":{"medicalEvent":[{"service":[{"id":"1001","itemNumber":"3","chargeAmount":"25000"}],"id":"01","medicalEventDate":"2025-08-20"}],"referralOverrideCode":"N","accountPaidInd":"Y","authorisationDate":"2026-04-13","submissionAuthorityInd":"Y","serviceProvider":{"providerNumber":"2446081F"},"patient":{"identity":{"dateOfBirth":"2009-02-08","familyName":"FLETCHER","givenName":"Clint"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"3"}},"claimant":{"identity":{"dateOfBirth":"2009-02-08","familyName":"FLETCHER","givenName":"Clint"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"3"}}}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Pendable - Already Paid package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1" payload := strings.NewReader("{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"3\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2025-08-20\"\n }\n ],\n \"referralOverrideCode\": \"N\",\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2446081F\"\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 \"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 }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Pendable - Already Paid require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"3\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2025-08-20\"\n }\n ],\n \"referralOverrideCode\": \"N\",\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2446081F\"\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 \"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 }\n}" response = http.request(request) puts response.read_body ``` ```java Pendable - Already Paid import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"3\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2025-08-20\"\n }\n ],\n \"referralOverrideCode\": \"N\",\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2446081F\"\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 \"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 }\n}") .asString(); ``` ```php Pendable - Already Paid request('POST', 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1', [ 'body' => '{ "patientClaimInteractive": { "medicalEvent": [ { "service": [ { "id": "1001", "itemNumber": "3", "chargeAmount": "25000" } ], "id": "01", "medicalEventDate": "2025-08-20" } ], "referralOverrideCode": "N", "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2446081F" }, "patient": { "identity": { "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } }, "claimant": { "identity": { "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } } } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Pendable - Already Paid using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"3\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2025-08-20\"\n }\n ],\n \"referralOverrideCode\": \"N\",\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2446081F\"\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 \"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 }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Pendable - Already Paid import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["patientClaimInteractive": [ "medicalEvent": [ [ "service": [ [ "id": "1001", "itemNumber": "3", "chargeAmount": "25000" ] ], "id": "01", "medicalEventDate": "2025-08-20" ] ], "referralOverrideCode": "N", "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": ["providerNumber": "2446081F"], "patient": [ "identity": [ "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "3" ] ], "claimant": [ "identity": [ "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "3" ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1")! 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 Rejected - Unknown Item import requests url = "https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1" payload = { "patientClaimInteractive": { "medicalEvent": [ { "service": [ { "id": "1001", "itemNumber": "5", "chargeAmount": "25000" } ], "id": "01", "medicalEventDate": "2025-08-20" } ], "referralOverrideCode": "N", "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2446081F" }, "patient": { "identity": { "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } }, "claimant": { "identity": { "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } } } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Rejected - Unknown Item const url = 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"patientClaimInteractive":{"medicalEvent":[{"service":[{"id":"1001","itemNumber":"5","chargeAmount":"25000"}],"id":"01","medicalEventDate":"2025-08-20"}],"referralOverrideCode":"N","accountPaidInd":"Y","authorisationDate":"2026-04-13","submissionAuthorityInd":"Y","serviceProvider":{"providerNumber":"2446081F"},"patient":{"identity":{"dateOfBirth":"2009-02-08","familyName":"FLETCHER","givenName":"Clint"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"3"}},"claimant":{"identity":{"dateOfBirth":"2009-02-08","familyName":"FLETCHER","givenName":"Clint"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"3"}}}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Rejected - Unknown Item package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1" payload := strings.NewReader("{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"5\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2025-08-20\"\n }\n ],\n \"referralOverrideCode\": \"N\",\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2446081F\"\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 \"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 }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Rejected - Unknown Item require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"5\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2025-08-20\"\n }\n ],\n \"referralOverrideCode\": \"N\",\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2446081F\"\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 \"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 }\n}" response = http.request(request) puts response.read_body ``` ```java Rejected - Unknown Item import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"5\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2025-08-20\"\n }\n ],\n \"referralOverrideCode\": \"N\",\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2446081F\"\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 \"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 }\n}") .asString(); ``` ```php Rejected - Unknown Item request('POST', 'https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1', [ 'body' => '{ "patientClaimInteractive": { "medicalEvent": [ { "service": [ { "id": "1001", "itemNumber": "5", "chargeAmount": "25000" } ], "id": "01", "medicalEventDate": "2025-08-20" } ], "referralOverrideCode": "N", "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": { "providerNumber": "2446081F" }, "patient": { "identity": { "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } }, "claimant": { "identity": { "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } } } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Rejected - Unknown Item using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"patientClaimInteractive\": {\n \"medicalEvent\": [\n {\n \"service\": [\n {\n \"id\": \"1001\",\n \"itemNumber\": \"5\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"id\": \"01\",\n \"medicalEventDate\": \"2025-08-20\"\n }\n ],\n \"referralOverrideCode\": \"N\",\n \"accountPaidInd\": \"Y\",\n \"authorisationDate\": \"2026-04-13\",\n \"submissionAuthorityInd\": \"Y\",\n \"serviceProvider\": {\n \"providerNumber\": \"2446081F\"\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 \"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 }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Rejected - Unknown Item import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["patientClaimInteractive": [ "medicalEvent": [ [ "service": [ [ "id": "1001", "itemNumber": "5", "chargeAmount": "25000" ] ], "id": "01", "medicalEventDate": "2025-08-20" ] ], "referralOverrideCode": "N", "accountPaidInd": "Y", "authorisationDate": "2026-04-13", "submissionAuthorityInd": "Y", "serviceProvider": ["providerNumber": "2446081F"], "patient": [ "identity": [ "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "3" ] ], "claimant": [ "identity": [ "dateOfBirth": "2009-02-08", "familyName": "FLETCHER", "givenName": "Clint" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "3" ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/patientclaiminteractive/pathology/v1")! 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() ``` 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. # Same Day Delete POST https://api.rebateright.com.au/Medicare/samedaydelete/v1 Content-Type: application/json Same Day Delete lets a practice **withdraw an interactive patient claim** that was sent **earlier the same calendar day**. Medicare only allows the delete when the original claim was **accepted and assessed** (final status **`MEDICARE_ASSESSED`**). **Matching the original submission:** use the **same transaction correlation**, **location context**, and **patient details** as the claim you are withdrawing, sent through this API. **Headers and registration:** use the same Medicare claiming header pattern as your other interactive patient claims (including `dhs-correlationId` and `dhs-auditId`, which Medicare uses in its business rules). Your organisation must have suitable **PRODA** access and a **Notice of Intent (NOI)** that covers interactive claiming **and** same-day delete. **Messages from Medicare:** when you surface errors to end users, show **`serviceMessage[].reason`** **exactly as returned** — do not shorten, paraphrase, or “improve” the wording. Field rules, lengths, formats, and examples are on the **request body**, **`200`**, and **`400`** schemas below. Reference: https://docs.rebateright.com.au/api-reference/medicare-claiming/interactive-patient-claims/same-day-delete ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /Medicare/samedaydelete/v1: post: operationId: same-day-delete summary: Same Day Delete description: > Same Day Delete lets a practice **withdraw an interactive patient claim** that was sent **earlier the same calendar day**. Medicare only allows the delete when the original claim was **accepted and assessed** (final status **`MEDICARE_ASSESSED`**). **Matching the original submission:** use the **same transaction correlation**, **location context**, and **patient details** as the claim you are withdrawing, sent through this API. **Headers and registration:** use the same Medicare claiming header pattern as your other interactive patient claims (including `dhs-correlationId` and `dhs-auditId`, which Medicare uses in its business rules). Your organisation must have suitable **PRODA** access and a **Notice of Intent (NOI)** that covers interactive claiming **and** same-day delete. **Messages from Medicare:** when you surface errors to end users, show **`serviceMessage[].reason`** **exactly as returned** — do not shorten, paraphrase, or “improve” the wording. Field rules, lengths, formats, and examples are on the **request body**, **`200`**, and **`400`** schemas below. tags: - >- subpackage_medicareClaiming.subpackage_medicareClaiming/interactivePatientClaims parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: >- OK — delete accepted. When Medicare removes the claim, **status** is **`SUCCESS`**. content: application/json: schema: $ref: >- #/components/schemas/Medicare Claiming_Interactive patient claims_Same Day Delete_Response_200 '400': description: >- YAML / schema validation or Medicare business-rule failure (`serviceMessage` + `correlationId`). content: application/json: schema: $ref: >- #/components/schemas/PostMedicareSamedaydeleteV1RequestBadRequestError requestBody: description: > Body for a same-day delete. It identifies the **original claim’s transaction** and supplies the **patient** and **reasonCode** Medicare uses to validate the delete. Medicare ties the delete to the original claim using **`dhs-correlationId`** (transaction correlation) and **`dhs-auditId`** (location / audit context), together with the values in this JSON. content: application/json: schema: type: object properties: correlationId: type: string description: > Correlation / transaction id for the **original** interactive claim to delete. It must refer to a claim Medicare can match **for the same calendar day** and **same location** as this delete request. If nothing matches, Medicare often returns **`9775`** (see the **`400`** response — `serviceMessage[].code`). sameDayDelete: $ref: >- #/components/schemas/MedicareSamedaydeleteV1PostRequestBodyContentApplicationJsonSchemaSameDayDelete description: > Patient identity and Medicare card details must match the **original** claim. **reasonCode** is required. required: - correlationId - sameDayDelete servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: MedicareSamedaydeleteV1PostRequestBodyContentApplicationJsonSchemaSameDayDeletePatientIdentity: type: object properties: givenName: type: string description: > Patient first given name (1–40 characters). If the patient has **only one legal name**, put that name in **familyName** and set **givenName** to the literal **`Onlyname`** (this exact spelling is required by Medicare for single-name patients). Allowed characters: letters A–Z / a–z, digits 0–9, space, apostrophe `'`, hyphen `-`; at least one letter or digit; no leading/trailing spaces around apostrophes, hyphens, or other spaces. familyName: type: string description: > Patient family name (1–40 characters). Single-name rule: use **`Onlyname`** in **givenName** as above. Same character and spacing rules as **givenName**. required: - givenName - familyName description: Legal name fields — lengths and character rules below. title: >- MedicareSamedaydeleteV1PostRequestBodyContentApplicationJsonSchemaSameDayDeletePatientIdentity MedicareSamedaydeleteV1PostRequestBodyContentApplicationJsonSchemaSameDayDeletePatientMedicare: type: object properties: memberNumber: type: string description: > 10-digit Medicare card number. The first nine digits must satisfy Medicare’s **check digit** rules for card numbers. The **10th** digit is the **card issue number** printed on the card and must be **1–9** — it must **not** be `0`. memberRefNumber: type: string description: > **Individual Reference Number (IRN)** on the card — exactly **one** digit, **1–9**, never **`0`**. required: - memberNumber - memberRefNumber description: Medicare card on the original claim (must match). title: >- MedicareSamedaydeleteV1PostRequestBodyContentApplicationJsonSchemaSameDayDeletePatientMedicare MedicareSamedaydeleteV1PostRequestBodyContentApplicationJsonSchemaSameDayDeletePatient: type: object properties: identity: $ref: >- #/components/schemas/MedicareSamedaydeleteV1PostRequestBodyContentApplicationJsonSchemaSameDayDeletePatientIdentity description: Legal name fields — lengths and character rules below. medicare: $ref: >- #/components/schemas/MedicareSamedaydeleteV1PostRequestBodyContentApplicationJsonSchemaSameDayDeletePatientMedicare description: Medicare card on the original claim (must match). required: - identity - medicare description: Patient on the original claim (must match what was transmitted). title: >- MedicareSamedaydeleteV1PostRequestBodyContentApplicationJsonSchemaSameDayDeletePatient MedicareSamedaydeleteV1PostRequestBodyContentApplicationJsonSchemaSameDayDeleteReasonCode: type: string enum: - '001' - '002' - '003' - '004' - '005' - '006' - '007' description: > Required three-digit reason code. Medicare only accepts the values below; anything else typically returns **`9202`** with a message that lists the allowed codes. | Code | Meaning | |---|---| | `001` | Incorrect patient selection | | `002` | Incorrect provider details | | `003` | Incorrect date of service | | `004` | Incorrect item number claimed | | `005` | Omitted text on original claim | | `006` | Incorrect payment type (paid / unpaid) | | `007` | Other | title: >- MedicareSamedaydeleteV1PostRequestBodyContentApplicationJsonSchemaSameDayDeleteReasonCode MedicareSamedaydeleteV1PostRequestBodyContentApplicationJsonSchemaSameDayDelete: type: object properties: patient: $ref: >- #/components/schemas/MedicareSamedaydeleteV1PostRequestBodyContentApplicationJsonSchemaSameDayDeletePatient description: Patient on the original claim (must match what was transmitted). reasonCode: $ref: >- #/components/schemas/MedicareSamedaydeleteV1PostRequestBodyContentApplicationJsonSchemaSameDayDeleteReasonCode description: > Required three-digit reason code. Medicare only accepts the values below; anything else typically returns **`9202`** with a message that lists the allowed codes. | Code | Meaning | |---|---| | `001` | Incorrect patient selection | | `002` | Incorrect provider details | | `003` | Incorrect date of service | | `004` | Incorrect item number claimed | | `005` | Omitted text on original claim | | `006` | Incorrect payment type (paid / unpaid) | | `007` | Other | required: - patient - reasonCode description: > Patient identity and Medicare card details must match the **original** claim. **reasonCode** is required. title: >- MedicareSamedaydeleteV1PostRequestBodyContentApplicationJsonSchemaSameDayDelete MedicareSamedaydeleteV1PostResponsesContentApplicationJsonSchemaStatus: type: string enum: - SUCCESS description: > Outcome when Medicare **accepts** the same-day delete. | Value | Meaning | |---|---| | `SUCCESS` | Same-day delete processed; the claim is removed at Medicare. | title: MedicareSamedaydeleteV1PostResponsesContentApplicationJsonSchemaStatus Medicare Claiming_Interactive patient claims_Same Day Delete_Response_200: type: object properties: status: $ref: >- #/components/schemas/MedicareSamedaydeleteV1PostResponsesContentApplicationJsonSchemaStatus description: > Outcome when Medicare **accepts** the same-day delete. | Value | Meaning | |---|---| | `SUCCESS` | Same-day delete processed; the claim is removed at Medicare. | correlationId: type: string description: > Optional echo of the request correlation id for support tracing — not always returned. required: - status description: > On success, Medicare returns at least **`status`**. **`correlationId`** may also be present for tracing, depending on the path the response took — treat it as **optional** when present. title: >- Medicare Claiming_Interactive patient claims_Same Day Delete_Response_200 MedicareSamedaydeleteV1PostResponsesContentApplicationJsonSchemaServiceMessageItems: type: object properties: code: type: string description: > Medicare **code** (string in JSON). You will often see the values below for same-day delete; many other codes exist for validation, connectivity, and internal errors. | Code | Typical situation | |---|---| | `9202` | Field, format, or business-rule rejection (wrong reason code, name, Medicare number, IRN, etc.). **Many** different `reason` strings use this same code. | | `9775` | **Correlation id not found** — no claim matches the id you sent, or the claim is not eligible for same-day delete (wrong day, location, status, and similar). | | `9646` | Example: Medicare **could not locate** the claim for delete. | | `9647` | Example: claim **already deleted**. | **Other codes:** always persist **`code`**, **`reason`**, and **`severity`** together and handle unknown codes gracefully — Medicare does not publish a single fixed list in this API reference. reason: type: string description: >- Human-readable text from Medicare — show **unchanged** when displaying errors to end users. severity: type: string description: Severity for this message (e.g. `Error`). required: - code - reason - severity title: >- MedicareSamedaydeleteV1PostResponsesContentApplicationJsonSchemaServiceMessageItems PostMedicareSamedaydeleteV1RequestBadRequestError: type: object properties: highestSeverity: type: string description: Highest severity across all messages (typically `Error`). correlationId: type: string description: >- Echo of the request correlation id when supplied; may be generated for this call when omitted upstream. serviceMessage: type: array items: $ref: >- #/components/schemas/MedicareSamedaydeleteV1PostResponsesContentApplicationJsonSchemaServiceMessageItems description: One or more Medicare validation or business-rule messages. required: - highestSeverity - correlationId - serviceMessage description: > Standard Medicare **`serviceMessage`** envelope (same shape as interactive patient claim errors). **`code`** is Medicare’s machine-facing code; **`reason`** is the human-readable text — when you show errors to users, display **`reason`** **verbatim** (do not reword). title: PostMedicareSamedaydeleteV1RequestBadRequestError 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/Medicare/samedaydelete/v1" payload = { "correlationId": "urn:uuid:MDE00000ba81c42faf654e8b", "sameDayDelete": { "patient": { "identity": { "givenName": "Clint", "familyName": "FLETCHER" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } }, "reasonCode": "001" } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Success const url = 'https://api.rebateright.com.au/Medicare/samedaydelete/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"correlationId":"urn:uuid:MDE00000ba81c42faf654e8b","sameDayDelete":{"patient":{"identity":{"givenName":"Clint","familyName":"FLETCHER"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"3"}},"reasonCode":"001"}}' }; 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/Medicare/samedaydelete/v1" payload := strings.NewReader("{\n \"correlationId\": \"urn:uuid:MDE00000ba81c42faf654e8b\",\n \"sameDayDelete\": {\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n },\n \"reasonCode\": \"001\"\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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/Medicare/samedaydelete/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"correlationId\": \"urn:uuid:MDE00000ba81c42faf654e8b\",\n \"sameDayDelete\": {\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n },\n \"reasonCode\": \"001\"\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 response = Unirest.post("https://api.rebateright.com.au/Medicare/samedaydelete/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"correlationId\": \"urn:uuid:MDE00000ba81c42faf654e8b\",\n \"sameDayDelete\": {\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n },\n \"reasonCode\": \"001\"\n }\n}") .asString(); ``` ```php Success request('POST', 'https://api.rebateright.com.au/Medicare/samedaydelete/v1', [ 'body' => '{ "correlationId": "urn:uuid:MDE00000ba81c42faf654e8b", "sameDayDelete": { "patient": { "identity": { "givenName": "Clint", "familyName": "FLETCHER" }, "medicare": { "memberNumber": "4951525561", "memberRefNumber": "3" } }, "reasonCode": "001" } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Success using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/samedaydelete/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"correlationId\": \"urn:uuid:MDE00000ba81c42faf654e8b\",\n \"sameDayDelete\": {\n \"patient\": {\n \"identity\": {\n \"givenName\": \"Clint\",\n \"familyName\": \"FLETCHER\"\n },\n \"medicare\": {\n \"memberNumber\": \"4951525561\",\n \"memberRefNumber\": \"3\"\n }\n },\n \"reasonCode\": \"001\"\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Success import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "correlationId": "urn:uuid:MDE00000ba81c42faf654e8b", "sameDayDelete": [ "patient": [ "identity": [ "givenName": "Clint", "familyName": "FLETCHER" ], "medicare": [ "memberNumber": "4951525561", "memberRefNumber": "3" ] ], "reasonCode": "001" ] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/samedaydelete/v1")! 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() ``` 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. # Veteran Verification POST https://api.rebateright.com.au/Medicare/veteranverification/v1 Content-Type: application/json > 🚧 **Coming Soon** — This endpoint is not yet available. > RebateRight is completing DVA certification. Availability will be announced when certification is complete. Verify a patient's DVA veteran status in real time. One patient per request. Two verification types are supported: - **PVP** — submit personal details only (name, DOB, sex). DVA returns the veteran's file number and card type. - **PVV** — include `veteranMembership.veteranNumber` to verify against a known DVA file number. #### Entitlement Codes | Code | Card Type | |---|---| | `PTEC` | Gold Card | | `STEC` | White Card | | `RPBC` | Orange Card | | `PCC` | Pensioner Concession Card | | `CSHC` | Commonwealth Seniors Healthcare Card | | `NIL` | Card type cannot be determined — advise patient to contact DVA | #### Status Codes | Code | Meaning | |---|---| | `0` | Patient is known to DVA with details provided | | `8005` | Verification completed but patient details were not an exact match | | `9650` | Veteran file number and/or patient details did not match DVA records | | `9202` | Field-level validation failure — see `serviceMessage` for detail | Reference: https://docs.rebateright.com.au/api-reference/dva/veteran-verification ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /Medicare/veteranverification/v1: post: operationId: veteran-verification summary: Veteran Verification description: > > 🚧 **Coming Soon** — This endpoint is not yet available. > RebateRight is completing DVA certification. Availability will be announced when certification is complete. Verify a patient's DVA veteran status in real time. One patient per request. Two verification types are supported: - **PVP** — submit personal details only (name, DOB, sex). DVA returns the veteran's file number and card type. - **PVV** — include `veteranMembership.veteranNumber` to verify against a known DVA file number. #### Entitlement Codes | Code | Card Type | |---|---| | `PTEC` | Gold Card | | `STEC` | White Card | | `RPBC` | Orange Card | | `PCC` | Pensioner Concession Card | | `CSHC` | Commonwealth Seniors Healthcare Card | | `NIL` | Card type cannot be determined — advise patient to contact DVA | #### Status Codes | Code | Meaning | |---|---| | `0` | Patient is known to DVA with details provided | | `8005` | Verification completed but patient details were not an exact match | | `9650` | Veteran file number and/or patient details did not match DVA records | | `9202` | Field-level validation failure — see `serviceMessage` for detail | tags: - subpackage_dva parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DVA_Veteran Verification_Response_200' '400': description: >- Validation failure — body includes `serviceMessage` entries and `correlationId`. content: application/json: schema: $ref: >- #/components/schemas/PostMedicareVeteranverificationV1RequestBadRequestError requestBody: content: application/json: schema: type: object properties: patient: $ref: >- #/components/schemas/MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatient required: - patient servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentitySex: type: string enum: - '1' - '2' - '9' description: | Patient sex (Services Australia coding). | Code | Meaning | |------|---------| | 1 | Male | | 2 | Female | | 9 | Not stated | title: >- MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentitySex MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentity: type: object properties: dateOfBirth: type: string format: date description: Cannot be a future date or more than 130 years in the past. familyName: type: string description: Alphanumeric only, 1–40 characters. givenName: type: string description: Alphanumeric only, 1–40 characters. sex: $ref: >- #/components/schemas/MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentitySex description: | Patient sex (Services Australia coding). | Code | Meaning | |------|---------| | 1 | Male | | 2 | Female | | 9 | Not stated | secondInitial: type: string description: Patient's second name initial. required: - dateOfBirth - familyName - givenName - sex title: >- MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentity MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientResidentialAddress: type: object properties: locality: type: string description: >- Suburb or town name. Alphanumeric only, 1–40 characters. Do not include the state code. postcode: type: string description: 4-digit postcode. Must not be `0000`. required: - locality - postcode description: Optional. If provided, both fields are required. title: >- MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientResidentialAddress MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientVeteranMembership: type: object properties: veteranNumber: type: string description: >- DVA file number. War code followed by numeric digits, no spaces (e.g. `NX901667`). description: Include to perform a PVV verification against a known DVA file number. title: >- MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientVeteranMembership MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatient: type: object properties: identity: $ref: >- #/components/schemas/MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentity residentialAddress: $ref: >- #/components/schemas/MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientResidentialAddress description: Optional. If provided, both fields are required. veteranMembership: $ref: >- #/components/schemas/MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientVeteranMembership description: >- Include to perform a PVV verification against a known DVA file number. required: - identity title: >- MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatient MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusCurrentMembership: type: object properties: veteranNumber: type: string description: DVA file number. Present in PVP responses. entitlementCode: type: string description: DVA card type code. title: >- MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusCurrentMembership MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusCurrentMember: type: object properties: familyName: type: string description: Name as known to DVA. givenName: type: string description: Name as known to DVA. description: Present when status code is `8005`. title: >- MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusCurrentMember MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusStatus: type: object properties: code: type: integer text: type: string title: >- MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusStatus MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatus: type: object properties: currentMembership: $ref: >- #/components/schemas/MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusCurrentMembership currentMember: $ref: >- #/components/schemas/MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusCurrentMember description: Present when status code is `8005`. status: $ref: >- #/components/schemas/MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusStatus title: >- MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatus MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaServiceMessageItems: type: object properties: code: type: string severity: type: string reason: type: string required: - code - severity - reason title: >- MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaServiceMessageItems DVA_Veteran Verification_Response_200: type: object properties: correlationId: type: string veteranStatus: $ref: >- #/components/schemas/MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatus highestSeverity: type: string description: Present on validation errors. serviceMessage: type: array items: $ref: >- #/components/schemas/MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaServiceMessageItems description: Present on validation errors. title: DVA_Veteran Verification_Response_200 PostMedicareVeteranverificationV1RequestBadRequestError: type: object properties: highestSeverity: type: string correlationId: type: string serviceMessage: type: array items: $ref: >- #/components/schemas/MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaServiceMessageItems required: - highestSeverity - correlationId - serviceMessage title: PostMedicareVeteranverificationV1RequestBadRequestError securitySchemes: apiKeyAuth: type: apiKey in: header name: x-api-key minorId: type: apiKey in: header name: x-minor-id ``` ## SDK Code Examples ```python PVP Match import requests url = "https://api.rebateright.com.au/Medicare/veteranverification/v1" payload = { "patient": { "identity": { "dateOfBirth": "1958-09-27", "familyName": "IAN", "givenName": "JANET", "sex": "2" }, "residentialAddress": { "locality": "YARRALUMLA", "postcode": "2600" } } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript PVP Match const url = 'https://api.rebateright.com.au/Medicare/veteranverification/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"patient":{"identity":{"dateOfBirth":"1958-09-27","familyName":"IAN","givenName":"JANET","sex":"2"},"residentialAddress":{"locality":"YARRALUMLA","postcode":"2600"}}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go PVP Match package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/veteranverification/v1" payload := strings.NewReader("{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"residentialAddress\": {\n \"locality\": \"YARRALUMLA\",\n \"postcode\": \"2600\"\n }\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 PVP Match require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/veteranverification/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"residentialAddress\": {\n \"locality\": \"YARRALUMLA\",\n \"postcode\": \"2600\"\n }\n }\n}" response = http.request(request) puts response.read_body ``` ```java PVP Match import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/veteranverification/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"residentialAddress\": {\n \"locality\": \"YARRALUMLA\",\n \"postcode\": \"2600\"\n }\n }\n}") .asString(); ``` ```php PVP Match request('POST', 'https://api.rebateright.com.au/Medicare/veteranverification/v1', [ 'body' => '{ "patient": { "identity": { "dateOfBirth": "1958-09-27", "familyName": "IAN", "givenName": "JANET", "sex": "2" }, "residentialAddress": { "locality": "YARRALUMLA", "postcode": "2600" } } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp PVP Match using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/veteranverification/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"residentialAddress\": {\n \"locality\": \"YARRALUMLA\",\n \"postcode\": \"2600\"\n }\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift PVP Match import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["patient": [ "identity": [ "dateOfBirth": "1958-09-27", "familyName": "IAN", "givenName": "JANET", "sex": "2" ], "residentialAddress": [ "locality": "YARRALUMLA", "postcode": "2600" ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/veteranverification/v1")! 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 PVV Match import requests url = "https://api.rebateright.com.au/Medicare/veteranverification/v1" payload = { "patient": { "identity": { "dateOfBirth": "1958-09-27", "familyName": "IAN", "givenName": "JANET", "sex": "2" }, "veteranMembership": { "veteranNumber": "NX901667" } } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript PVV Match const url = 'https://api.rebateright.com.au/Medicare/veteranverification/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"patient":{"identity":{"dateOfBirth":"1958-09-27","familyName":"IAN","givenName":"JANET","sex":"2"},"veteranMembership":{"veteranNumber":"NX901667"}}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go PVV Match package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/veteranverification/v1" payload := strings.NewReader("{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 PVV Match require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/veteranverification/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n }\n}" response = http.request(request) puts response.read_body ``` ```java PVV Match import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/veteranverification/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n }\n}") .asString(); ``` ```php PVV Match request('POST', 'https://api.rebateright.com.au/Medicare/veteranverification/v1', [ 'body' => '{ "patient": { "identity": { "dateOfBirth": "1958-09-27", "familyName": "IAN", "givenName": "JANET", "sex": "2" }, "veteranMembership": { "veteranNumber": "NX901667" } } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp PVV Match using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/veteranverification/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift PVV Match import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["patient": [ "identity": [ "dateOfBirth": "1958-09-27", "familyName": "IAN", "givenName": "JANET", "sex": "2" ], "veteranMembership": ["veteranNumber": "NX901667"] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/veteranverification/v1")! 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 Partial Match import requests url = "https://api.rebateright.com.au/Medicare/veteranverification/v1" payload = { "patient": { "identity": { "dateOfBirth": "1958-09-27", "familyName": "WRONG", "givenName": "NAME", "sex": "2" }, "veteranMembership": { "veteranNumber": "NX901667" } } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Partial Match const url = 'https://api.rebateright.com.au/Medicare/veteranverification/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"patient":{"identity":{"dateOfBirth":"1958-09-27","familyName":"WRONG","givenName":"NAME","sex":"2"},"veteranMembership":{"veteranNumber":"NX901667"}}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Partial Match package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/veteranverification/v1" payload := strings.NewReader("{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"WRONG\",\n \"givenName\": \"NAME\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Partial Match require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/veteranverification/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"WRONG\",\n \"givenName\": \"NAME\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n }\n}" response = http.request(request) puts response.read_body ``` ```java Partial Match import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/veteranverification/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"WRONG\",\n \"givenName\": \"NAME\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n }\n}") .asString(); ``` ```php Partial Match request('POST', 'https://api.rebateright.com.au/Medicare/veteranverification/v1', [ 'body' => '{ "patient": { "identity": { "dateOfBirth": "1958-09-27", "familyName": "WRONG", "givenName": "NAME", "sex": "2" }, "veteranMembership": { "veteranNumber": "NX901667" } } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Partial Match using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/veteranverification/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"WRONG\",\n \"givenName\": \"NAME\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Partial Match import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["patient": [ "identity": [ "dateOfBirth": "1958-09-27", "familyName": "WRONG", "givenName": "NAME", "sex": "2" ], "veteranMembership": ["veteranNumber": "NX901667"] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/veteranverification/v1")! 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 No Match import requests url = "https://api.rebateright.com.au/Medicare/veteranverification/v1" payload = { "patient": { "identity": { "dateOfBirth": "1958-09-27", "familyName": "UNKNOWN", "givenName": "PERSON", "sex": "2" }, "veteranMembership": { "veteranNumber": "NX999999" } } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript No Match const url = 'https://api.rebateright.com.au/Medicare/veteranverification/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"patient":{"identity":{"dateOfBirth":"1958-09-27","familyName":"UNKNOWN","givenName":"PERSON","sex":"2"},"veteranMembership":{"veteranNumber":"NX999999"}}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go No Match package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/veteranverification/v1" payload := strings.NewReader("{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"UNKNOWN\",\n \"givenName\": \"PERSON\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX999999\"\n }\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 No Match require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/veteranverification/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"UNKNOWN\",\n \"givenName\": \"PERSON\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX999999\"\n }\n }\n}" response = http.request(request) puts response.read_body ``` ```java No Match import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/veteranverification/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"UNKNOWN\",\n \"givenName\": \"PERSON\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX999999\"\n }\n }\n}") .asString(); ``` ```php No Match request('POST', 'https://api.rebateright.com.au/Medicare/veteranverification/v1', [ 'body' => '{ "patient": { "identity": { "dateOfBirth": "1958-09-27", "familyName": "UNKNOWN", "givenName": "PERSON", "sex": "2" }, "veteranMembership": { "veteranNumber": "NX999999" } } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp No Match using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/veteranverification/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"UNKNOWN\",\n \"givenName\": \"PERSON\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX999999\"\n }\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift No Match import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["patient": [ "identity": [ "dateOfBirth": "1958-09-27", "familyName": "UNKNOWN", "givenName": "PERSON", "sex": "2" ], "veteranMembership": ["veteranNumber": "NX999999"] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/veteranverification/v1")! 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() ``` 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. # DVA Claim — General POST https://api.rebateright.com.au/Medicare/dvaclaim/general/v1 Content-Type: application/json > 🚧 **Coming Soon** — This endpoint is not yet available. > RebateRight is completing DVA certification. Availability will be announced when certification is complete. Submit a DVA general medical claim on behalf of a health professional. One claim per request, containing up to 80 medical events, each with up to 14 services. Use this endpoint for general (non-specialist, non-pathology) DVA medical services. Set `serviceTypeCode` to `O`. #### Accepted Disability Every medical event must include an `acceptedDisability` block indicating the condition treated. Set `ind` to `Y` for White Card holders; `code` is free text describing the condition. #### Patient Identification DVA patients are identified by their DVA file number (`veteranNumber`) along with name, DOB, and sex. If DVA's records differ from what was submitted, the correct details are returned in the processing report. #### Claim ID On success, Services Australia returns a unique `claimId` in the format `A0001@` (alpha prefix + 4 numerics + `@` suffix). The prefix indicates out-of-hospital or non-pathology services. #### Status Codes | Code | Meaning | |---|---| | `9202` | Field-level validation failure — see `serviceMessage` for detail | | `9006` | Provider not authorised for this function | | `9777` | Duplicate transaction ID — resubmit with a unique transaction ID | | `3004` | Daily claim limit of 2,500 reached for this payee provider and location | Reference: https://docs.rebateright.com.au/api-reference/dva/dva-claim-general ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /Medicare/dvaclaim/general/v1: post: operationId: dva-claim-general summary: DVA Claim — General description: > > 🚧 **Coming Soon** — This endpoint is not yet available. > RebateRight is completing DVA certification. Availability will be announced when certification is complete. Submit a DVA general medical claim on behalf of a health professional. One claim per request, containing up to 80 medical events, each with up to 14 services. Use this endpoint for general (non-specialist, non-pathology) DVA medical services. Set `serviceTypeCode` to `O`. #### Accepted Disability Every medical event must include an `acceptedDisability` block indicating the condition treated. Set `ind` to `Y` for White Card holders; `code` is free text describing the condition. #### Patient Identification DVA patients are identified by their DVA file number (`veteranNumber`) along with name, DOB, and sex. If DVA's records differ from what was submitted, the correct details are returned in the processing report. #### Claim ID On success, Services Australia returns a unique `claimId` in the format `A0001@` (alpha prefix + 4 numerics + `@` suffix). The prefix indicates out-of-hospital or non-pathology services. #### Status Codes | Code | Meaning | |---|---| | `9202` | Field-level validation failure — see `serviceMessage` for detail | | `9006` | Provider not authorised for this function | | `9777` | Duplicate transaction ID — resubmit with a unique transaction ID | | `3004` | Daily claim limit of 2,500 reached for this payee provider and location | tags: - subpackage_dva parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DVA_DVA Claim — General_Response_200' '400': description: >- Validation or business-rule failure; body includes `serviceMessage` entries and `correlationId`. content: application/json: schema: $ref: >- #/components/schemas/PostMedicareDvaclaimGeneralV1RequestBadRequestError requestBody: content: application/json: schema: type: object properties: correlationId: type: string description: >- Optional. Supply a unique transaction ID in the format `urn:uuid:{MinorId}{16 hex chars}` (33 characters total, e.g. `urn:uuid:MDE00000a1b2c3d4e5f6a7b8`). If the same `correlationId` is submitted twice, the second request is rejected with error `9777`. If omitted, RebateRight generates one automatically. claim: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaim required: - claim servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimServiceTypeCode: type: string enum: - O description: > Use **O** for general (non-specialist, non-pathology) DVA medical claims. | Code | Meaning | |------|---------| | O | General (out-of-hospital) services | title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimServiceTypeCode MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider: type: object properties: providerNumber: type: string description: >- Provider number of the practitioner who rendered the service. 6-digit stem + 1 location character + 1 check digit (e.g. `2447781L`). required: - providerNumber title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimPayeeProvider: type: object properties: providerNumber: type: string description: 6-digit stem + 1 location character + 1 check digit. description: >- Optional. The provider to whom the benefit will be paid, if different from the servicing provider. Must have a different provider stem (first 6 characters). title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimPayeeProvider MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralOverrideCode: type: string enum: - E - H - L - 'N' description: > Optional. Use when a service that normally needs a referral was provided without a **referral** object. Do not set together with **referral**. | Code | Meaning | |------|---------| | E | Emergency | | H | Hospital — also requires **facilityId** and **treatmentLocationCode** **H** | | L | Lost referral | | N | Not required | title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralOverrideCode MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsSubmissionAuthorityInd: type: string enum: - 'Y' description: > Must be **Y** — confirms the claim was authorised for submission by the provider. | Code | Meaning | |------|---------| | Y | Authorised for submission | title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsSubmissionAuthorityInd MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsTreatmentLocationCode: type: string enum: - V - H - R description: > Where the service was provided. | Code | Meaning | |------|---------| | V | Home visit (residential care, community health centre, or hostel) | | H | Hospital | | R | Rooms | title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsTreatmentLocationCode MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisabilityInd: type: string enum: - 'Y' description: | Must be **Y** — service is for a condition covered by a **White Card**. | Code | Meaning | |------|---------| | Y | White Card condition | title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisabilityInd MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisability: type: object properties: ind: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisabilityInd description: > Must be **Y** — service is for a condition covered by a **White Card**. | Code | Meaning | |------|---------| | Y | White Card condition | code: type: string description: >- Description of the condition treated. Alphanumeric and special characters (`: ; , . -`) allowed. First character must be alpha or numeric. 1–100 characters. required: - ind - code title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisability MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentitySex: type: string enum: - '1' - '2' - '3' - '9' description: | Patient sex (Services Australia coding). | Code | Meaning | |------|---------| | 1 | Male | | 2 | Female | | 3 | Other | | 9 | Not stated | title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentitySex MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity: type: object properties: dateOfBirth: type: string format: date description: >- Must not be in the future, more than 130 years in the past, or after `medicalEventDate`. familyName: type: string description: >- 1–40 characters. Alpha, numeric, spaces, apostrophes and hyphens only. If the patient has only one name, supply it here and use `*Onlyname*` in `givenName`. givenName: type: string description: >- 1–40 characters. Alpha, numeric, spaces, apostrophes and hyphens only. Use `*Onlyname*` if the patient has only one name. sex: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentitySex description: | Patient sex (Services Australia coding). | Code | Meaning | |------|---------| | 1 | Male | | 2 | Female | | 3 | Other | | 9 | Not stated | required: - dateOfBirth - familyName - givenName - sex title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientResidentialAddress: type: object properties: locality: type: string description: >- Suburb or town. 1–40 characters. Do not include the state code as a separate value. postcode: type: string description: 4-digit postcode. Must not be `0000`. description: Optional. If provided, both `locality` and `postcode` are required. title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientResidentialAddress MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientVeteranMembership: type: object properties: veteranNumber: type: string description: >- DVA file number. State code + war code + numeric digits (e.g. `NX901667`). 3–9 characters total, no spaces within the file number. required: - veteranNumber title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientVeteranMembership MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient: type: object properties: identity: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity residentialAddress: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientResidentialAddress description: Optional. If provided, both `locality` and `postcode` are required. veteranMembership: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientVeteranMembership required: - identity - veteranMembership title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsAftercareOverrideInd: type: string enum: - 'Y' description: | Optional. Set **Y** if the service was not normal aftercare. | Code | Meaning | |------|---------| | Y | Not normal aftercare | title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsAftercareOverrideInd MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsDuplicateServiceOverrideInd: type: string enum: - 'Y' description: > Optional. Set **Y** if multiple same-day services by the same provider should be treated as separate. Requires **medicalEventTime** or **text**. | Code | Meaning | |------|---------| | Y | Treat as separate services | title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsDuplicateServiceOverrideInd MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsMultipleProcedureOverrideInd: type: string enum: - 'Y' description: > Optional. Set **Y** if the multiple services rule should not apply. Requires **text** explaining the reason. | Code | Meaning | |------|---------| | Y | Override multiple-services rule | title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsMultipleProcedureOverrideInd MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsRestrictiveOverrideCode: type: string enum: - SP - NR - NC description: > Optional. Explains why restrictive rules should not apply. Requires **text**. | Code | Meaning | |------|---------| | SP | Separate sites | | NR | Not related | | NC | Not for comparison (bilateral) | title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsRestrictiveOverrideCode MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems: type: object properties: id: type: string description: >- 4-character alphanumeric identifier, unique within the claim (e.g. `0001`, `AC68`). itemNumber: type: string description: >- MBS or DVA item number. 1–5 characters. DVA-specific items are prefixed with at least one alpha character. chargeAmount: type: string description: >- Charge in cents. Minimum `100` ($1.00). Required unless `distanceKilometres` is set. accountReferenceNumber: type: string description: >- Optional. Invoice or medical record reference. 1–8 alphanumeric characters, no spaces. aftercareOverrideInd: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsAftercareOverrideInd description: | Optional. Set **Y** if the service was not normal aftercare. | Code | Meaning | |------|---------| | Y | Not normal aftercare | distanceKilometres: type: string description: >- Optional. Travelling distance for home, nursing home, or hospital visits. 11–999 km. If set, only `id` and `itemNumber` may also be set on this service; at least one other non-distance service must exist in the medical event. duplicateServiceOverrideInd: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsDuplicateServiceOverrideInd description: > Optional. Set **Y** if multiple same-day services by the same provider should be treated as separate. Requires **medicalEventTime** or **text**. | Code | Meaning | |------|---------| | Y | Treat as separate services | fieldQuantity: type: string description: >- Optional. Number of fields irradiated or 15-minute time blocks. Numeric 1–99. Cannot be set alongside `numberOfPatientsSeen` or `timeDuration`. lspNumber: type: string description: >- Optional. Location Specific Practice Number for diagnostic imaging. Numeric 1–999999. All services in a medical event must share the same LSPN. multipleProcedureOverrideInd: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsMultipleProcedureOverrideInd description: > Optional. Set **Y** if the multiple services rule should not apply. Requires **text** explaining the reason. | Code | Meaning | |------|---------| | Y | Override multiple-services rule | numberOfPatientsSeen: type: string description: >- Optional. Number of patients seen (1–99). Required for group attendance items. Cannot be set alongside `timeDuration` or `fieldQuantity`. restrictiveOverrideCode: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsRestrictiveOverrideCode description: > Optional. Explains why restrictive rules should not apply. Requires **text**. | Code | Meaning | |------|---------| | SP | Separate sites | | NR | Not related | | NC | Not for comparison (bilateral) | text: type: string description: >- Optional. Free text providing additional information to support claim assessment. 1–100 characters. timeDuration: type: string description: >- Optional. Duration of service in minutes. Numeric 001–999. Cannot be set alongside `numberOfPatientsSeen` or `fieldQuantity`. required: - id - itemNumber - chargeAmount title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems: type: object properties: id: type: string description: >- Sequential numeric identifier for this medical event within the claim. Must start at `01` and increment by 1 (e.g. `01`, `02`, `03`). authorisationDate: type: string format: date description: >- Date the claim was authorised. Must not be in the future or before `medicalEventDate`. createDateTime: type: string format: date-time description: >- Date and time the medical event record was created. Must not be in the future or before `medicalEventDate`. Must be a valid Australian timezone offset (e.g. `+10:00`). facilityId: type: string description: >- Optional. Commonwealth Hospital Facility Provider Number. Required when `referralOverrideCode` is `H`. medicalEventDate: type: string format: date description: >- Date the service was rendered. Must not be in the future or more than 2 years in the past. medicalEventTime: type: string description: >- Optional. Time the service was rendered. Must not be in the future. Must be a valid Australian timezone offset. referralOverrideCode: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralOverrideCode description: > Optional. Use when a service that normally needs a referral was provided without a **referral** object. Do not set together with **referral**. | Code | Meaning | |------|---------| | E | Emergency | | H | Hospital — also requires **facilityId** and **treatmentLocationCode** **H** | | L | Lost referral | | N | Not required | submissionAuthorityInd: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsSubmissionAuthorityInd description: > Must be **Y** — confirms the claim was authorised for submission by the provider. | Code | Meaning | |------|---------| | Y | Authorised for submission | treatmentLocationCode: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsTreatmentLocationCode description: > Where the service was provided. | Code | Meaning | |------|---------| | V | Home visit (residential care, community health centre, or hostel) | | H | Hospital | | R | Rooms | acceptedDisability: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisability patient: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient service: type: array items: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems description: >- One or more services within this medical event. Maximum 14 per medical event. required: - id - authorisationDate - createDateTime - medicalEventDate - submissionAuthorityInd - treatmentLocationCode - acceptedDisability - patient - service title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaim: type: object properties: serviceTypeCode: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimServiceTypeCode description: > Use **O** for general (non-specialist, non-pathology) DVA medical claims. | Code | Meaning | |------|---------| | O | General (out-of-hospital) services | serviceProvider: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider payeeProvider: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimPayeeProvider description: >- Optional. The provider to whom the benefit will be paid, if different from the servicing provider. Must have a different provider stem (first 6 characters). medicalEvent: type: array items: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems description: One or more medical events. Maximum 80 per claim. required: - serviceTypeCode - serviceProvider - medicalEvent title: >- MedicareDvaclaimGeneralV1PostRequestBodyContentApplicationJsonSchemaClaim DVA_DVA Claim — General_Response_200: type: object properties: claimId: type: string description: >- Unique claim identifier assigned by Services Australia. Format is a letter prefix + 4 digits + `@` (e.g. `D0742@`). status: type: string description: Always `SUCCESS` on a successful submission. correlationId: type: string title: DVA_DVA Claim — General_Response_200 MedicareDvaclaimGeneralV1PostResponsesContentApplicationJsonSchemaServiceMessageItems: type: object properties: code: type: string severity: type: string reason: type: string title: >- MedicareDvaclaimGeneralV1PostResponsesContentApplicationJsonSchemaServiceMessageItems PostMedicareDvaclaimGeneralV1RequestBadRequestError: type: object properties: highestSeverity: type: string serviceMessage: type: array items: $ref: >- #/components/schemas/MedicareDvaclaimGeneralV1PostResponsesContentApplicationJsonSchemaServiceMessageItems correlationId: type: string required: - highestSeverity - serviceMessage - correlationId title: PostMedicareDvaclaimGeneralV1RequestBadRequestError securitySchemes: apiKeyAuth: type: apiKey in: header name: x-api-key minorId: type: apiKey in: header name: x-minor-id ``` ## SDK Code Examples ```python Rooms import requests url = "https://api.rebateright.com.au/Medicare/dvaclaim/general/v1" payload = { "claim": { "serviceTypeCode": "O", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T10:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "treatmentLocationCode": "R", "acceptedDisability": { "ind": "Y", "code": "OSTEOARTHRITIS" }, "patient": { "identity": { "dateOfBirth": "1958-09-27", "familyName": "IAN", "givenName": "JANET", "sex": "2" }, "veteranMembership": { "veteranNumber": "NX901667" } }, "service": [ { "id": "0001", "itemNumber": "23", "chargeAmount": "10000" } ] } ] } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Rooms const url = 'https://api.rebateright.com.au/Medicare/dvaclaim/general/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"claim":{"serviceTypeCode":"O","serviceProvider":{"providerNumber":"2447781L"},"medicalEvent":[{"id":"01","authorisationDate":"2026-04-09","createDateTime":"2026-04-09T10:00:00+10:00","medicalEventDate":"2026-04-09","submissionAuthorityInd":"Y","treatmentLocationCode":"R","acceptedDisability":{"ind":"Y","code":"OSTEOARTHRITIS"},"patient":{"identity":{"dateOfBirth":"1958-09-27","familyName":"IAN","givenName":"JANET","sex":"2"},"veteranMembership":{"veteranNumber":"NX901667"}},"service":[{"id":"0001","itemNumber":"23","chargeAmount":"10000"}]}]}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Rooms package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/dvaclaim/general/v1" payload := strings.NewReader("{\n \"claim\": {\n \"serviceTypeCode\": \"O\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"treatmentLocationCode\": \"R\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"OSTEOARTHRITIS\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"10000\"\n }\n ]\n }\n ]\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Rooms require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/dvaclaim/general/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"claim\": {\n \"serviceTypeCode\": \"O\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"treatmentLocationCode\": \"R\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"OSTEOARTHRITIS\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"10000\"\n }\n ]\n }\n ]\n }\n}" response = http.request(request) puts response.read_body ``` ```java Rooms import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/dvaclaim/general/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"claim\": {\n \"serviceTypeCode\": \"O\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"treatmentLocationCode\": \"R\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"OSTEOARTHRITIS\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"10000\"\n }\n ]\n }\n ]\n }\n}") .asString(); ``` ```php Rooms request('POST', 'https://api.rebateright.com.au/Medicare/dvaclaim/general/v1', [ 'body' => '{ "claim": { "serviceTypeCode": "O", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T10:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "treatmentLocationCode": "R", "acceptedDisability": { "ind": "Y", "code": "OSTEOARTHRITIS" }, "patient": { "identity": { "dateOfBirth": "1958-09-27", "familyName": "IAN", "givenName": "JANET", "sex": "2" }, "veteranMembership": { "veteranNumber": "NX901667" } }, "service": [ { "id": "0001", "itemNumber": "23", "chargeAmount": "10000" } ] } ] } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Rooms using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/dvaclaim/general/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"claim\": {\n \"serviceTypeCode\": \"O\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"treatmentLocationCode\": \"R\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"OSTEOARTHRITIS\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"23\",\n \"chargeAmount\": \"10000\"\n }\n ]\n }\n ]\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Rooms import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["claim": [ "serviceTypeCode": "O", "serviceProvider": ["providerNumber": "2447781L"], "medicalEvent": [ [ "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T10:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "treatmentLocationCode": "R", "acceptedDisability": [ "ind": "Y", "code": "OSTEOARTHRITIS" ], "patient": [ "identity": [ "dateOfBirth": "1958-09-27", "familyName": "IAN", "givenName": "JANET", "sex": "2" ], "veteranMembership": ["veteranNumber": "NX901667"] ], "service": [ [ "id": "0001", "itemNumber": "23", "chargeAmount": "10000" ] ] ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/dvaclaim/general/v1")! 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 Home Visit import requests url = "https://api.rebateright.com.au/Medicare/dvaclaim/general/v1" payload = { "claim": { "serviceTypeCode": "O", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T11:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "treatmentLocationCode": "V", "acceptedDisability": { "ind": "Y", "code": "HYPERTENSION" }, "patient": { "identity": { "dateOfBirth": "1964-04-21", "familyName": "VICKI", "givenName": "BRUCE", "sex": "1" }, "veteranMembership": { "veteranNumber": "NX901668" } }, "service": [ { "id": "0001", "itemNumber": "30", "chargeAmount": "12000" } ] } ] } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Home Visit const url = 'https://api.rebateright.com.au/Medicare/dvaclaim/general/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"claim":{"serviceTypeCode":"O","serviceProvider":{"providerNumber":"2447781L"},"medicalEvent":[{"id":"01","authorisationDate":"2026-04-09","createDateTime":"2026-04-09T11:00:00+10:00","medicalEventDate":"2026-04-09","submissionAuthorityInd":"Y","treatmentLocationCode":"V","acceptedDisability":{"ind":"Y","code":"HYPERTENSION"},"patient":{"identity":{"dateOfBirth":"1964-04-21","familyName":"VICKI","givenName":"BRUCE","sex":"1"},"veteranMembership":{"veteranNumber":"NX901668"}},"service":[{"id":"0001","itemNumber":"30","chargeAmount":"12000"}]}]}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Home Visit package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/dvaclaim/general/v1" payload := strings.NewReader("{\n \"claim\": {\n \"serviceTypeCode\": \"O\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T11:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"treatmentLocationCode\": \"V\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"HYPERTENSION\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1964-04-21\",\n \"familyName\": \"VICKI\",\n \"givenName\": \"BRUCE\",\n \"sex\": \"1\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901668\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"30\",\n \"chargeAmount\": \"12000\"\n }\n ]\n }\n ]\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Home Visit require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/dvaclaim/general/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"claim\": {\n \"serviceTypeCode\": \"O\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T11:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"treatmentLocationCode\": \"V\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"HYPERTENSION\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1964-04-21\",\n \"familyName\": \"VICKI\",\n \"givenName\": \"BRUCE\",\n \"sex\": \"1\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901668\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"30\",\n \"chargeAmount\": \"12000\"\n }\n ]\n }\n ]\n }\n}" response = http.request(request) puts response.read_body ``` ```java Home Visit import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/dvaclaim/general/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"claim\": {\n \"serviceTypeCode\": \"O\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T11:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"treatmentLocationCode\": \"V\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"HYPERTENSION\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1964-04-21\",\n \"familyName\": \"VICKI\",\n \"givenName\": \"BRUCE\",\n \"sex\": \"1\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901668\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"30\",\n \"chargeAmount\": \"12000\"\n }\n ]\n }\n ]\n }\n}") .asString(); ``` ```php Home Visit request('POST', 'https://api.rebateright.com.au/Medicare/dvaclaim/general/v1', [ 'body' => '{ "claim": { "serviceTypeCode": "O", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T11:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "treatmentLocationCode": "V", "acceptedDisability": { "ind": "Y", "code": "HYPERTENSION" }, "patient": { "identity": { "dateOfBirth": "1964-04-21", "familyName": "VICKI", "givenName": "BRUCE", "sex": "1" }, "veteranMembership": { "veteranNumber": "NX901668" } }, "service": [ { "id": "0001", "itemNumber": "30", "chargeAmount": "12000" } ] } ] } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Home Visit using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/dvaclaim/general/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"claim\": {\n \"serviceTypeCode\": \"O\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T11:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"treatmentLocationCode\": \"V\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"HYPERTENSION\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1964-04-21\",\n \"familyName\": \"VICKI\",\n \"givenName\": \"BRUCE\",\n \"sex\": \"1\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901668\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"30\",\n \"chargeAmount\": \"12000\"\n }\n ]\n }\n ]\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Home Visit import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["claim": [ "serviceTypeCode": "O", "serviceProvider": ["providerNumber": "2447781L"], "medicalEvent": [ [ "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T11:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "treatmentLocationCode": "V", "acceptedDisability": [ "ind": "Y", "code": "HYPERTENSION" ], "patient": [ "identity": [ "dateOfBirth": "1964-04-21", "familyName": "VICKI", "givenName": "BRUCE", "sex": "1" ], "veteranMembership": ["veteranNumber": "NX901668"] ], "service": [ [ "id": "0001", "itemNumber": "30", "chargeAmount": "12000" ] ] ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/dvaclaim/general/v1")! 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() ``` 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. # DVA Claim — Specialist POST https://api.rebateright.com.au/Medicare/dvaclaim/specialist/v1 Content-Type: application/json > 🚧 **Coming Soon** — This endpoint is not yet available. > RebateRight is completing DVA certification. Availability will be announced when certification is complete. Submit a DVA specialist claim. Set `serviceTypeCode` to `S`. #### Referral Requirement Each medical event must satisfy one of: - A specialist or diagnostic imaging referral (`referral` with `typeCode: S` or `D`) - A referral override code of `H`, `L`, `E`, or `N` - A `selfDeemedCode` of `SD` or `SS` on at least one service When `referral.typeCode` is `S`, `referral.periodCode` must also be set. Standard period is 12 months for GPs, 3 months for specialists. #### Hyperbaric Items Claims for hyperbaric items must use `timeDuration` (in conjunction with item start/end times via service `text`) to determine the number of time units (hours) applicable to the service. #### Retained Referral Details Software must retain referral details for a patient to be used for subsequent consultations where needed. #### Claim ID On success, Services Australia returns a `claimId` in the format `A0001@` (alpha prefix + 4 numerics + `@` suffix). #### Status Codes | Code | Meaning | |---|---| | `9202` | Field-level validation failure — see `serviceMessage` for detail | | `9006` | Provider not authorised for this function | | `9777` | Duplicate transaction ID — resubmit with a unique transaction ID | | `3004` | Daily claim limit of 2,500 reached for this payee provider and location | Reference: https://docs.rebateright.com.au/api-reference/dva/dva-claim-specialist ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /Medicare/dvaclaim/specialist/v1: post: operationId: dva-claim-specialist summary: DVA Claim — Specialist description: > > 🚧 **Coming Soon** — This endpoint is not yet available. > RebateRight is completing DVA certification. Availability will be announced when certification is complete. Submit a DVA specialist claim. Set `serviceTypeCode` to `S`. #### Referral Requirement Each medical event must satisfy one of: - A specialist or diagnostic imaging referral (`referral` with `typeCode: S` or `D`) - A referral override code of `H`, `L`, `E`, or `N` - A `selfDeemedCode` of `SD` or `SS` on at least one service When `referral.typeCode` is `S`, `referral.periodCode` must also be set. Standard period is 12 months for GPs, 3 months for specialists. #### Hyperbaric Items Claims for hyperbaric items must use `timeDuration` (in conjunction with item start/end times via service `text`) to determine the number of time units (hours) applicable to the service. #### Retained Referral Details Software must retain referral details for a patient to be used for subsequent consultations where needed. #### Claim ID On success, Services Australia returns a `claimId` in the format `A0001@` (alpha prefix + 4 numerics + `@` suffix). #### Status Codes | Code | Meaning | |---|---| | `9202` | Field-level validation failure — see `serviceMessage` for detail | | `9006` | Provider not authorised for this function | | `9777` | Duplicate transaction ID — resubmit with a unique transaction ID | | `3004` | Daily claim limit of 2,500 reached for this payee provider and location | tags: - subpackage_dva parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DVA_DVA Claim — Specialist_Response_200' '400': description: >- Validation or business-rule failure; body includes `serviceMessage` entries and `correlationId`. content: application/json: schema: $ref: >- #/components/schemas/PostMedicareDvaclaimSpecialistV1RequestBadRequestError requestBody: content: application/json: schema: type: object properties: correlationId: type: string description: >- Optional. Supply a unique transaction ID in the format `urn:uuid:{MinorId}{16 hex chars}` (33 characters total, e.g. `urn:uuid:MDE00000a1b2c3d4e5f6a7b8`). If the same `correlationId` is submitted twice, the second request is rejected with error `9777`. If omitted, RebateRight generates one automatically. claim: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaim required: - claim servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimServiceTypeCode: type: string enum: - S description: | Use **S** for specialist DVA claims. | Code | Meaning | |------|---------| | S | Specialist, allied health, or related services | title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimServiceTypeCode MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimHospitalInd: type: string enum: - 'Y' description: > Optional. Set **Y** if the service was rendered within a hospital facility. | Code | Meaning | |------|---------| | Y | In-hospital | title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimHospitalInd MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider: type: object properties: providerNumber: type: string description: >- Provider number of the practitioner who rendered the service. 6-digit stem + 1 location character + 1 check digit (e.g. `2447781L`). required: - providerNumber title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimPayeeProvider: type: object properties: providerNumber: type: string description: 6-digit stem + 1 location character + 1 check digit. description: >- Optional. The provider to whom the benefit will be paid, if different from the servicing provider. Must have a different provider stem (first 6 characters). title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimPayeeProvider MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralOverrideCode: type: string enum: - E - H - L - 'N' description: > Optional. Use when a specialist service that normally needs a referral was provided without a **referral** object. Do not set together with **referral**. | Code | Meaning | |------|---------| | E | Emergency | | H | Hospital — also requires **facilityId** and **treatmentLocationCode** **H** | | L | Lost referral | | N | Not required | title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralOverrideCode MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsSubmissionAuthorityInd: type: string enum: - 'Y' description: > Must be **Y** — confirms the claim was authorised for submission by the provider. | Code | Meaning | |------|---------| | Y | Authorised for submission | title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsSubmissionAuthorityInd MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsTreatmentLocationCode: type: string enum: - V - H - R description: | Where the service was provided. | Code | Meaning | |------|---------| | V | Home visit | | H | Hospital | | R | Rooms | title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsTreatmentLocationCode MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisabilityInd: type: string enum: - 'Y' description: | Must be **Y** — service is for a condition covered by a **White Card**. | Code | Meaning | |------|---------| | Y | White Card condition | title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisabilityInd MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisability: type: object properties: ind: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisabilityInd description: > Must be **Y** — service is for a condition covered by a **White Card**. | Code | Meaning | |------|---------| | Y | White Card condition | code: type: string description: >- Description of the condition treated. Alphanumeric and special characters (`: ; , . -`) allowed. First character must be alpha or numeric. 1–100 characters. required: - ind - code title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisability MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralPeriodCode: type: string enum: - S - 'N' - I description: > Required when **typeCode** is **S**. Not used when **typeCode** is **D**. | Code | Meaning | |------|---------| | S | Standard period (12 months GP / 3 months specialist) | | N | Non-standard — supply **period** (months) | | I | Indefinite | title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralPeriodCode MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralTypeCode: type: string enum: - S - D description: > Referral or diagnostic imaging request type. | Code | Meaning | |------|---------| | S | Specialist referral | | D | Diagnostic imaging request — do not send **periodCode** or **period** | title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralTypeCode MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralProvider: type: object properties: providerNumber: type: string description: >- Provider number of the referring practitioner. Must differ from both service and payee providers. required: - providerNumber title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralProvider MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferral: type: object properties: issueDate: type: string format: date description: >- Date the referral was issued. Must not be in the future, after `medicalEventDate`, or before patient DOB. period: type: string description: >- Optional. Non-standard referral period in months (1–98). Only set when `periodCode` is `N`. periodCode: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralPeriodCode description: > Required when **typeCode** is **S**. Not used when **typeCode** is **D**. | Code | Meaning | |------|---------| | S | Standard period (12 months GP / 3 months specialist) | | N | Non-standard — supply **period** (months) | | I | Indefinite | typeCode: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralTypeCode description: > Referral or diagnostic imaging request type. | Code | Meaning | |------|---------| | S | Specialist referral | | D | Diagnostic imaging request — do not send **periodCode** or **period** | provider: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralProvider description: >- Referral or diagnostic imaging request details. Required unless `referralOverrideCode` or `selfDeemedCode` is used instead. title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferral MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentitySex: type: string enum: - '1' - '2' - '3' - '9' description: | Patient sex (Services Australia coding). | Code | Meaning | |------|---------| | 1 | Male | | 2 | Female | | 3 | Other | | 9 | Not stated | title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentitySex MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity: type: object properties: dateOfBirth: type: string format: date description: >- Must not be in the future, more than 130 years in the past, or after `medicalEventDate`. familyName: type: string description: >- 1–40 characters. Alpha, numeric, spaces, apostrophes and hyphens only. givenName: type: string description: 1–40 characters. Use `*Onlyname*` if the patient has only one name. sex: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentitySex description: | Patient sex (Services Australia coding). | Code | Meaning | |------|---------| | 1 | Male | | 2 | Female | | 3 | Other | | 9 | Not stated | required: - dateOfBirth - familyName - givenName - sex title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientResidentialAddress: type: object properties: locality: type: string description: >- Suburb or town. 1–40 characters. Do not include the state code as a separate value. postcode: type: string description: 4-digit postcode. Must not be `0000`. description: Optional. If provided, both fields are required. title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientResidentialAddress MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientVeteranMembership: type: object properties: veteranNumber: type: string description: DVA file number (e.g. `NX901667`). 3–9 characters total. required: - veteranNumber title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientVeteranMembership MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient: type: object properties: identity: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity residentialAddress: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientResidentialAddress description: Optional. If provided, both fields are required. veteranMembership: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientVeteranMembership required: - identity - veteranMembership title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsAftercareOverrideInd: type: string enum: - 'Y' description: | Optional. Set **Y** if the service was not normal aftercare. | Code | Meaning | |------|---------| | Y | Not normal aftercare | title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsAftercareOverrideInd MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsDuplicateServiceOverrideInd: type: string enum: - 'Y' description: > Optional. Set **Y** if same-day services by the same provider should be treated as separate. Requires **medicalEventTime** or **text**. | Code | Meaning | |------|---------| | Y | Treat as separate services | title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsDuplicateServiceOverrideInd MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsMultipleProcedureOverrideInd: type: string enum: - 'Y' description: > Optional. Set **Y** if the multiple services rule should not apply. Requires **text** explaining the reason. | Code | Meaning | |------|---------| | Y | Override multiple-services rule | title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsMultipleProcedureOverrideInd MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsRestrictiveOverrideCode: type: string enum: - SP - NR - NC description: > Optional. Explains why restrictive rules should not apply. Requires **text**. | Code | Meaning | |------|---------| | SP | Separate sites | | NR | Not related | | NC | Not for comparison (bilateral) | title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsRestrictiveOverrideCode MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsSelfDeemedCode: type: string enum: - SD - SS description: | Optional. Cannot be set when **referralOverrideCode** is set. | Code | Meaning | |------|---------| | SD | Self deemed — additional service to a valid request | | SS | Substituted service | title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsSelfDeemedCode MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems: type: object properties: id: type: string description: >- 4-character alphanumeric identifier, unique within the claim (e.g. `0001`). itemNumber: type: string description: MBS or DVA item number. 1–5 characters. chargeAmount: type: string description: >- Charge in cents. Minimum `100` ($1.00). Required unless `distanceKilometres` is set. accountReferenceNumber: type: string description: >- Optional. Invoice or medical record reference. 1–8 alphanumeric characters, no spaces. aftercareOverrideInd: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsAftercareOverrideInd description: | Optional. Set **Y** if the service was not normal aftercare. | Code | Meaning | |------|---------| | Y | Not normal aftercare | distanceKilometres: type: string description: >- Optional. Travelling distance for home, nursing home, or hospital visits. 11–999 km. If set, only `id` and `itemNumber` may also be set on this service. duplicateServiceOverrideInd: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsDuplicateServiceOverrideInd description: > Optional. Set **Y** if same-day services by the same provider should be treated as separate. Requires **medicalEventTime** or **text**. | Code | Meaning | |------|---------| | Y | Treat as separate services | fieldQuantity: type: string description: >- Optional. Number of fields irradiated or 15-minute time blocks. Numeric 1–99. Cannot be set alongside `numberOfPatientsSeen` or `timeDuration`. lspNumber: type: string description: >- Optional. Location Specific Practice Number for diagnostic imaging. Numeric 1–999999. All services in a medical event must share the same LSPN. multipleProcedureOverrideInd: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsMultipleProcedureOverrideInd description: > Optional. Set **Y** if the multiple services rule should not apply. Requires **text** explaining the reason. | Code | Meaning | |------|---------| | Y | Override multiple-services rule | numberOfPatientsSeen: type: string description: >- Optional. Number of patients seen for group attendance items (1–99). Cannot be set alongside `timeDuration` or `fieldQuantity`. restrictiveOverrideCode: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsRestrictiveOverrideCode description: > Optional. Explains why restrictive rules should not apply. Requires **text**. | Code | Meaning | |------|---------| | SP | Separate sites | | NR | Not related | | NC | Not for comparison (bilateral) | selfDeemedCode: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsSelfDeemedCode description: | Optional. Cannot be set when **referralOverrideCode** is set. | Code | Meaning | |------|---------| | SD | Self deemed — additional service to a valid request | | SS | Substituted service | text: type: string description: Optional. Free text for additional information. 1–100 characters. timeDuration: type: string description: >- Optional. Duration of service in minutes (001–999). Cannot be set alongside `numberOfPatientsSeen` or `fieldQuantity`. required: - id - itemNumber - chargeAmount title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems: type: object properties: id: type: string description: >- Sequential numeric identifier for this medical event. Must start at `01` and increment by 1. authorisationDate: type: string format: date description: >- Date the claim was authorised. Must not be in the future or before `medicalEventDate`. createDateTime: type: string format: date-time description: >- Date and time the medical event record was created. Must not be in the future or before `medicalEventDate`. Must be a valid Australian timezone offset. facilityId: type: string description: >- Optional. Commonwealth Hospital Facility Provider Number. Required when `referralOverrideCode` is `H`. medicalEventDate: type: string format: date description: >- Date the service was rendered. Must not be in the future or more than 2 years in the past. medicalEventTime: type: string description: >- Optional. Time the service was rendered. Must not be in the future. Must be a valid Australian timezone offset. referralOverrideCode: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralOverrideCode description: > Optional. Use when a specialist service that normally needs a referral was provided without a **referral** object. Do not set together with **referral**. | Code | Meaning | |------|---------| | E | Emergency | | H | Hospital — also requires **facilityId** and **treatmentLocationCode** **H** | | L | Lost referral | | N | Not required | submissionAuthorityInd: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsSubmissionAuthorityInd description: > Must be **Y** — confirms the claim was authorised for submission by the provider. | Code | Meaning | |------|---------| | Y | Authorised for submission | treatmentLocationCode: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsTreatmentLocationCode description: | Where the service was provided. | Code | Meaning | |------|---------| | V | Home visit | | H | Hospital | | R | Rooms | acceptedDisability: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisability referral: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferral description: >- Referral or diagnostic imaging request details. Required unless `referralOverrideCode` or `selfDeemedCode` is used instead. patient: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient service: type: array items: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems description: One or more services. Maximum 14 per medical event. required: - id - authorisationDate - createDateTime - medicalEventDate - submissionAuthorityInd - treatmentLocationCode - acceptedDisability - patient - service title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaim: type: object properties: serviceTypeCode: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimServiceTypeCode description: | Use **S** for specialist DVA claims. | Code | Meaning | |------|---------| | S | Specialist, allied health, or related services | hospitalInd: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimHospitalInd description: > Optional. Set **Y** if the service was rendered within a hospital facility. | Code | Meaning | |------|---------| | Y | In-hospital | serviceProvider: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider payeeProvider: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimPayeeProvider description: >- Optional. The provider to whom the benefit will be paid, if different from the servicing provider. Must have a different provider stem (first 6 characters). medicalEvent: type: array items: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems description: One or more medical events. Maximum 80 per claim. required: - serviceTypeCode - serviceProvider - medicalEvent title: >- MedicareDvaclaimSpecialistV1PostRequestBodyContentApplicationJsonSchemaClaim DVA_DVA Claim — Specialist_Response_200: type: object properties: claimId: type: string description: >- Unique claim identifier assigned by Services Australia (e.g. `D0745@`). status: type: string description: Always `SUCCESS` on a successful submission. correlationId: type: string title: DVA_DVA Claim — Specialist_Response_200 MedicareDvaclaimSpecialistV1PostResponsesContentApplicationJsonSchemaServiceMessageItems: type: object properties: code: type: string severity: type: string reason: type: string title: >- MedicareDvaclaimSpecialistV1PostResponsesContentApplicationJsonSchemaServiceMessageItems PostMedicareDvaclaimSpecialistV1RequestBadRequestError: type: object properties: highestSeverity: type: string serviceMessage: type: array items: $ref: >- #/components/schemas/MedicareDvaclaimSpecialistV1PostResponsesContentApplicationJsonSchemaServiceMessageItems correlationId: type: string required: - highestSeverity - serviceMessage - correlationId title: PostMedicareDvaclaimSpecialistV1RequestBadRequestError securitySchemes: apiKeyAuth: type: apiKey in: header name: x-api-key minorId: type: apiKey in: header name: x-minor-id ``` ## SDK Code Examples ```python Specialist Referral import requests url = "https://api.rebateright.com.au/Medicare/dvaclaim/specialist/v1" payload = { "claim": { "serviceTypeCode": "S", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T10:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "treatmentLocationCode": "R", "acceptedDisability": { "ind": "Y", "code": "OSTEOARTHRITIS" }, "patient": { "identity": { "dateOfBirth": "1958-09-27", "familyName": "IAN", "givenName": "JANET", "sex": "2" }, "veteranMembership": { "veteranNumber": "NX901667" } }, "service": [ { "id": "0001", "itemNumber": "104", "chargeAmount": "25000" } ], "referral": { "issueDate": "2026-01-01", "periodCode": "S", "typeCode": "S", "provider": { "providerNumber": "2447791K" } } } ] } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Specialist Referral const url = 'https://api.rebateright.com.au/Medicare/dvaclaim/specialist/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"claim":{"serviceTypeCode":"S","serviceProvider":{"providerNumber":"2447781L"},"medicalEvent":[{"id":"01","authorisationDate":"2026-04-09","createDateTime":"2026-04-09T10:00:00+10:00","medicalEventDate":"2026-04-09","submissionAuthorityInd":"Y","treatmentLocationCode":"R","acceptedDisability":{"ind":"Y","code":"OSTEOARTHRITIS"},"patient":{"identity":{"dateOfBirth":"1958-09-27","familyName":"IAN","givenName":"JANET","sex":"2"},"veteranMembership":{"veteranNumber":"NX901667"}},"service":[{"id":"0001","itemNumber":"104","chargeAmount":"25000"}],"referral":{"issueDate":"2026-01-01","periodCode":"S","typeCode":"S","provider":{"providerNumber":"2447791K"}}}]}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Specialist Referral package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/dvaclaim/specialist/v1" payload := strings.NewReader("{\n \"claim\": {\n \"serviceTypeCode\": \"S\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"treatmentLocationCode\": \"R\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"OSTEOARTHRITIS\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"104\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"referral\": {\n \"issueDate\": \"2026-01-01\",\n \"periodCode\": \"S\",\n \"typeCode\": \"S\",\n \"provider\": {\n \"providerNumber\": \"2447791K\"\n }\n }\n }\n ]\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Specialist Referral require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/dvaclaim/specialist/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"claim\": {\n \"serviceTypeCode\": \"S\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"treatmentLocationCode\": \"R\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"OSTEOARTHRITIS\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"104\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"referral\": {\n \"issueDate\": \"2026-01-01\",\n \"periodCode\": \"S\",\n \"typeCode\": \"S\",\n \"provider\": {\n \"providerNumber\": \"2447791K\"\n }\n }\n }\n ]\n }\n}" response = http.request(request) puts response.read_body ``` ```java Specialist Referral import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/dvaclaim/specialist/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"claim\": {\n \"serviceTypeCode\": \"S\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"treatmentLocationCode\": \"R\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"OSTEOARTHRITIS\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"104\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"referral\": {\n \"issueDate\": \"2026-01-01\",\n \"periodCode\": \"S\",\n \"typeCode\": \"S\",\n \"provider\": {\n \"providerNumber\": \"2447791K\"\n }\n }\n }\n ]\n }\n}") .asString(); ``` ```php Specialist Referral request('POST', 'https://api.rebateright.com.au/Medicare/dvaclaim/specialist/v1', [ 'body' => '{ "claim": { "serviceTypeCode": "S", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T10:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "treatmentLocationCode": "R", "acceptedDisability": { "ind": "Y", "code": "OSTEOARTHRITIS" }, "patient": { "identity": { "dateOfBirth": "1958-09-27", "familyName": "IAN", "givenName": "JANET", "sex": "2" }, "veteranMembership": { "veteranNumber": "NX901667" } }, "service": [ { "id": "0001", "itemNumber": "104", "chargeAmount": "25000" } ], "referral": { "issueDate": "2026-01-01", "periodCode": "S", "typeCode": "S", "provider": { "providerNumber": "2447791K" } } } ] } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Specialist Referral using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/dvaclaim/specialist/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"claim\": {\n \"serviceTypeCode\": \"S\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"treatmentLocationCode\": \"R\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"OSTEOARTHRITIS\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"104\",\n \"chargeAmount\": \"25000\"\n }\n ],\n \"referral\": {\n \"issueDate\": \"2026-01-01\",\n \"periodCode\": \"S\",\n \"typeCode\": \"S\",\n \"provider\": {\n \"providerNumber\": \"2447791K\"\n }\n }\n }\n ]\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Specialist Referral import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["claim": [ "serviceTypeCode": "S", "serviceProvider": ["providerNumber": "2447781L"], "medicalEvent": [ [ "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T10:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "treatmentLocationCode": "R", "acceptedDisability": [ "ind": "Y", "code": "OSTEOARTHRITIS" ], "patient": [ "identity": [ "dateOfBirth": "1958-09-27", "familyName": "IAN", "givenName": "JANET", "sex": "2" ], "veteranMembership": ["veteranNumber": "NX901667"] ], "service": [ [ "id": "0001", "itemNumber": "104", "chargeAmount": "25000" ] ], "referral": [ "issueDate": "2026-01-01", "periodCode": "S", "typeCode": "S", "provider": ["providerNumber": "2447791K"] ] ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/dvaclaim/specialist/v1")! 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 Diagnostic Imaging import requests url = "https://api.rebateright.com.au/Medicare/dvaclaim/specialist/v1" payload = { "claim": { "serviceTypeCode": "S", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T10:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "treatmentLocationCode": "R", "acceptedDisability": { "ind": "Y", "code": "HYPERTENSION" }, "patient": { "identity": { "dateOfBirth": "1964-02-03", "familyName": "VINCE", "givenName": "SEPPO", "sex": "1" }, "veteranMembership": { "veteranNumber": "NX901670" } }, "service": [ { "id": "0001", "itemNumber": "57000", "chargeAmount": "18000" } ], "referral": { "issueDate": "2026-04-01", "typeCode": "D", "provider": { "providerNumber": "2447791K" } } } ] } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Diagnostic Imaging const url = 'https://api.rebateright.com.au/Medicare/dvaclaim/specialist/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"claim":{"serviceTypeCode":"S","serviceProvider":{"providerNumber":"2447781L"},"medicalEvent":[{"id":"01","authorisationDate":"2026-04-09","createDateTime":"2026-04-09T10:00:00+10:00","medicalEventDate":"2026-04-09","submissionAuthorityInd":"Y","treatmentLocationCode":"R","acceptedDisability":{"ind":"Y","code":"HYPERTENSION"},"patient":{"identity":{"dateOfBirth":"1964-02-03","familyName":"VINCE","givenName":"SEPPO","sex":"1"},"veteranMembership":{"veteranNumber":"NX901670"}},"service":[{"id":"0001","itemNumber":"57000","chargeAmount":"18000"}],"referral":{"issueDate":"2026-04-01","typeCode":"D","provider":{"providerNumber":"2447791K"}}}]}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Diagnostic Imaging package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/dvaclaim/specialist/v1" payload := strings.NewReader("{\n \"claim\": {\n \"serviceTypeCode\": \"S\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"treatmentLocationCode\": \"R\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"HYPERTENSION\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1964-02-03\",\n \"familyName\": \"VINCE\",\n \"givenName\": \"SEPPO\",\n \"sex\": \"1\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901670\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"57000\",\n \"chargeAmount\": \"18000\"\n }\n ],\n \"referral\": {\n \"issueDate\": \"2026-04-01\",\n \"typeCode\": \"D\",\n \"provider\": {\n \"providerNumber\": \"2447791K\"\n }\n }\n }\n ]\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Diagnostic Imaging require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/dvaclaim/specialist/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"claim\": {\n \"serviceTypeCode\": \"S\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"treatmentLocationCode\": \"R\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"HYPERTENSION\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1964-02-03\",\n \"familyName\": \"VINCE\",\n \"givenName\": \"SEPPO\",\n \"sex\": \"1\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901670\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"57000\",\n \"chargeAmount\": \"18000\"\n }\n ],\n \"referral\": {\n \"issueDate\": \"2026-04-01\",\n \"typeCode\": \"D\",\n \"provider\": {\n \"providerNumber\": \"2447791K\"\n }\n }\n }\n ]\n }\n}" response = http.request(request) puts response.read_body ``` ```java Diagnostic Imaging import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/dvaclaim/specialist/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"claim\": {\n \"serviceTypeCode\": \"S\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"treatmentLocationCode\": \"R\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"HYPERTENSION\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1964-02-03\",\n \"familyName\": \"VINCE\",\n \"givenName\": \"SEPPO\",\n \"sex\": \"1\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901670\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"57000\",\n \"chargeAmount\": \"18000\"\n }\n ],\n \"referral\": {\n \"issueDate\": \"2026-04-01\",\n \"typeCode\": \"D\",\n \"provider\": {\n \"providerNumber\": \"2447791K\"\n }\n }\n }\n ]\n }\n}") .asString(); ``` ```php Diagnostic Imaging request('POST', 'https://api.rebateright.com.au/Medicare/dvaclaim/specialist/v1', [ 'body' => '{ "claim": { "serviceTypeCode": "S", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T10:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "treatmentLocationCode": "R", "acceptedDisability": { "ind": "Y", "code": "HYPERTENSION" }, "patient": { "identity": { "dateOfBirth": "1964-02-03", "familyName": "VINCE", "givenName": "SEPPO", "sex": "1" }, "veteranMembership": { "veteranNumber": "NX901670" } }, "service": [ { "id": "0001", "itemNumber": "57000", "chargeAmount": "18000" } ], "referral": { "issueDate": "2026-04-01", "typeCode": "D", "provider": { "providerNumber": "2447791K" } } } ] } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Diagnostic Imaging using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/dvaclaim/specialist/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"claim\": {\n \"serviceTypeCode\": \"S\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"treatmentLocationCode\": \"R\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"HYPERTENSION\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1964-02-03\",\n \"familyName\": \"VINCE\",\n \"givenName\": \"SEPPO\",\n \"sex\": \"1\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901670\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"57000\",\n \"chargeAmount\": \"18000\"\n }\n ],\n \"referral\": {\n \"issueDate\": \"2026-04-01\",\n \"typeCode\": \"D\",\n \"provider\": {\n \"providerNumber\": \"2447791K\"\n }\n }\n }\n ]\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Diagnostic Imaging import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["claim": [ "serviceTypeCode": "S", "serviceProvider": ["providerNumber": "2447781L"], "medicalEvent": [ [ "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T10:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "treatmentLocationCode": "R", "acceptedDisability": [ "ind": "Y", "code": "HYPERTENSION" ], "patient": [ "identity": [ "dateOfBirth": "1964-02-03", "familyName": "VINCE", "givenName": "SEPPO", "sex": "1" ], "veteranMembership": ["veteranNumber": "NX901670"] ], "service": [ [ "id": "0001", "itemNumber": "57000", "chargeAmount": "18000" ] ], "referral": [ "issueDate": "2026-04-01", "typeCode": "D", "provider": ["providerNumber": "2447791K"] ] ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/dvaclaim/specialist/v1")! 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() ``` 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. # DVA Claim — Pathology POST https://api.rebateright.com.au/Medicare/dvaclaim/pathology/v1 Content-Type: application/json > 🚧 **Coming Soon** — This endpoint is not yet available. > RebateRight is completing DVA certification. Availability will be announced when certification is complete. Submit a DVA pathology claim. Set `serviceTypeCode` to `P`. Each pathology service requires a collection date/time (`collectionDateTime`) and accession date/time (`accessionDateTime`). These must both be supplied together and must not be after the medical event date/time. #### Referral Requirement Each medical event must satisfy one of: - A pathology request (`referral` with `typeCode: P`) - `referralOverrideCode: N` (not required) - `selfDeemedCode: SD` on at least one service #### Claim ID On success, pathology claims submitted in hospital return a `claimId` prefixed with `#` (e.g. `#9876@`). Out-of-hospital pathology returns an alpha prefix (e.g. `D0744@`). #### Status Codes | Code | Meaning | |---|---| | `9202` | Field-level validation failure — see `serviceMessage` for detail | | `9006` | Provider not authorised for this function | | `9777` | Duplicate transaction ID — resubmit with a unique transaction ID | | `3004` | Daily claim limit of 2,500 reached for this payee provider and location | Reference: https://docs.rebateright.com.au/api-reference/dva/dva-claim-pathology ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /Medicare/dvaclaim/pathology/v1: post: operationId: dva-claim-pathology summary: DVA Claim — Pathology description: > > 🚧 **Coming Soon** — This endpoint is not yet available. > RebateRight is completing DVA certification. Availability will be announced when certification is complete. Submit a DVA pathology claim. Set `serviceTypeCode` to `P`. Each pathology service requires a collection date/time (`collectionDateTime`) and accession date/time (`accessionDateTime`). These must both be supplied together and must not be after the medical event date/time. #### Referral Requirement Each medical event must satisfy one of: - A pathology request (`referral` with `typeCode: P`) - `referralOverrideCode: N` (not required) - `selfDeemedCode: SD` on at least one service #### Claim ID On success, pathology claims submitted in hospital return a `claimId` prefixed with `#` (e.g. `#9876@`). Out-of-hospital pathology returns an alpha prefix (e.g. `D0744@`). #### Status Codes | Code | Meaning | |---|---| | `9202` | Field-level validation failure — see `serviceMessage` for detail | | `9006` | Provider not authorised for this function | | `9777` | Duplicate transaction ID — resubmit with a unique transaction ID | | `3004` | Daily claim limit of 2,500 reached for this payee provider and location | tags: - subpackage_dva parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DVA_DVA Claim — Pathology_Response_200' '400': description: >- Validation or business-rule failure; body includes `serviceMessage` entries and `correlationId`. content: application/json: schema: $ref: >- #/components/schemas/PostMedicareDvaclaimPathologyV1RequestBadRequestError requestBody: content: application/json: schema: type: object properties: correlationId: type: string description: >- Optional. Supply a unique transaction ID in the format `urn:uuid:{MinorId}{16 hex chars}` (33 characters total, e.g. `urn:uuid:MDE00000a1b2c3d4e5f6a7b8`). If the same `correlationId` is submitted twice, the second request is rejected with error `9777`. If omitted, RebateRight generates one automatically. claim: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaim required: - claim servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimServiceTypeCode: type: string enum: - P description: | Use **P** for pathology DVA claims. | Code | Meaning | |------|---------| | P | Pathology services | title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimServiceTypeCode MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimHospitalInd: type: string enum: - 'Y' description: > Optional. Set **Y** if the service was rendered within a hospital facility. | Code | Meaning | |------|---------| | Y | In-hospital | title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimHospitalInd MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider: type: object properties: providerNumber: type: string description: >- Provider number of the practitioner who rendered the service. 6-digit stem + 1 location character + 1 check digit (e.g. `2447781L`). required: - providerNumber title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimPayeeProvider: type: object properties: providerNumber: type: string description: 6-digit stem + 1 location character + 1 check digit. description: >- Optional. The provider to whom the benefit will be paid, if different from the servicing provider. Must have a different provider stem (first 6 characters). title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimPayeeProvider MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralOverrideCode: type: string enum: - 'N' description: > Use **N** when no pathology referral is supplied. Do not set together with **referral**. | Code | Meaning | |------|---------| | N | Referral not required | title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralOverrideCode MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsSubmissionAuthorityInd: type: string enum: - 'Y' description: > Must be **Y** — confirms the claim was authorised for submission by the provider. | Code | Meaning | |------|---------| | Y | Authorised for submission | title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsSubmissionAuthorityInd MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisabilityInd: type: string enum: - 'Y' description: | Must be **Y** — service is for a condition covered by a **White Card**. | Code | Meaning | |------|---------| | Y | White Card condition | title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisabilityInd MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisability: type: object properties: ind: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisabilityInd description: > Must be **Y** — service is for a condition covered by a **White Card**. | Code | Meaning | |------|---------| | Y | White Card condition | code: type: string description: >- Description of the condition treated. Alphanumeric and special characters (`: ; , . -`) allowed. First character must be alpha or numeric. 1–100 characters. required: - ind - code title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisability MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralTypeCode: type: string enum: - P description: | Must be **P** on the pathology request. | Code | Meaning | |------|---------| | P | Pathology request | title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralTypeCode MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralProvider: type: object properties: providerNumber: type: string description: >- Provider number of the requesting practitioner. Must differ from both service and payee providers. required: - providerNumber title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralProvider MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferral: type: object properties: issueDate: type: string format: date description: >- Date the request was issued. Must not be in the future, after `medicalEventDate`, or before patient DOB. typeCode: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralTypeCode description: | Must be **P** on the pathology request. | Code | Meaning | |------|---------| | P | Pathology request | provider: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralProvider description: >- Pathology request details. Required unless `referralOverrideCode` or `selfDeemedCode` is used instead. title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferral MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentitySex: type: string enum: - '1' - '2' - '3' - '9' description: | Patient sex (Services Australia coding). | Code | Meaning | |------|---------| | 1 | Male | | 2 | Female | | 3 | Other | | 9 | Not stated | title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentitySex MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity: type: object properties: dateOfBirth: type: string format: date description: >- Must not be in the future, more than 130 years in the past, or after `medicalEventDate`. familyName: type: string description: >- 1–40 characters. Alpha, numeric, spaces, apostrophes and hyphens only. givenName: type: string description: >- 1–40 characters. Alpha, numeric, spaces, apostrophes and hyphens only. Use `*Onlyname*` if the patient has only one name. sex: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentitySex description: | Patient sex (Services Australia coding). | Code | Meaning | |------|---------| | 1 | Male | | 2 | Female | | 3 | Other | | 9 | Not stated | required: - dateOfBirth - familyName - givenName - sex title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientResidentialAddress: type: object properties: locality: type: string description: >- Suburb or town. 1–40 characters. Do not include the state code as a separate value. postcode: type: string description: 4-digit postcode. Must not be `0000`. description: Optional. If provided, both fields are required. title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientResidentialAddress MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientVeteranMembership: type: object properties: veteranNumber: type: string description: >- DVA file number (e.g. `NX901667`). 3–9 characters total, no spaces within the file number. description: Optional for pathology claims. title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientVeteranMembership MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient: type: object properties: identity: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity residentialAddress: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientResidentialAddress description: Optional. If provided, both fields are required. veteranMembership: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientVeteranMembership description: Optional for pathology claims. required: - identity title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsSelfDeemedCode: type: string enum: - SD description: > Optional. Self-deemed additional tests by a consultant physician. Cannot be set when **referralOverrideCode** is set. | Code | Meaning | |------|---------| | SD | Self deemed — additional service to a valid request | title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsSelfDeemedCode MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsRule3ExemptInd: type: string enum: - 'Y' description: > Optional. Set **Y** if the service is exempt from MBS Rule 3. Requires **medicalEventTime**. Cannot be set together with **s4b3ExemptInd**. | Code | Meaning | |------|---------| | Y | Rule 3 exempt | title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsRule3ExemptInd MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsS4B3ExemptInd: type: string enum: - 'Y' description: > Optional. Set **Y** if exempt from S4b3 assessing requirements. Requires **hospitalInd** **Y** on the claim and both **collectionDateTime** and **accessionDateTime** on every service in the medical event. Cannot be set together with **rule3ExemptInd**. | Code | Meaning | |------|---------| | Y | S4b3 exempt | title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsS4B3ExemptInd MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems: type: object properties: id: type: string description: >- 4-character alphanumeric identifier, unique within the claim (e.g. `0001`). itemNumber: type: string description: MBS or DVA pathology item number. 1–5 characters. chargeAmount: type: string description: Charge in cents. Minimum `100` ($1.00). collectionDateTime: type: string format: date-time description: >- Date and time the pathology sample was collected. Must not be after `accessionDateTime`, before patient DOB, or before referral issue date. Must be a valid Australian timezone offset. Required together with `accessionDateTime`. accessionDateTime: type: string format: date-time description: >- Date and time the pathology test was performed. Must not be after `medicalEventDate` (or time if supplied) or after `createDateTime`. Must be a valid Australian timezone offset. Required together with `collectionDateTime`. accountReferenceNumber: type: string description: >- Optional. Invoice or medical record reference. 1–8 alphanumeric characters, no spaces. scpId: type: string description: >- Optional. Specimen Collection Point ID. 3–5 alphanumeric characters. Required for pathology claims with a referral or `referralOverrideCode: N` or `selfDeemedCode: SD`. selfDeemedCode: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsSelfDeemedCode description: > Optional. Self-deemed additional tests by a consultant physician. Cannot be set when **referralOverrideCode** is set. | Code | Meaning | |------|---------| | SD | Self deemed — additional service to a valid request | rule3ExemptInd: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsRule3ExemptInd description: > Optional. Set **Y** if the service is exempt from MBS Rule 3. Requires **medicalEventTime**. Cannot be set together with **s4b3ExemptInd**. | Code | Meaning | |------|---------| | Y | Rule 3 exempt | s4b3ExemptInd: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItemsS4B3ExemptInd description: > Optional. Set **Y** if exempt from S4b3 assessing requirements. Requires **hospitalInd** **Y** on the claim and both **collectionDateTime** and **accessionDateTime** on every service in the medical event. Cannot be set together with **rule3ExemptInd**. | Code | Meaning | |------|---------| | Y | S4b3 exempt | text: type: string description: Optional. Free text for additional information. 1–100 characters. required: - id - itemNumber - chargeAmount - collectionDateTime - accessionDateTime title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems: type: object properties: id: type: string description: >- Sequential numeric identifier for this medical event. Must start at `01` and increment by 1. authorisationDate: type: string format: date description: >- Date the claim was authorised. Must not be in the future or before `medicalEventDate`. createDateTime: type: string format: date-time description: >- Date and time the medical event record was created. Must not be in the future or before `medicalEventDate`. Must be a valid Australian timezone offset. medicalEventDate: type: string format: date description: >- Date the service was rendered. Must not be in the future or more than 2 years in the past. medicalEventTime: type: string description: >- Optional. Time the service was rendered. Required when `rule3ExemptInd` is set on any service. referralOverrideCode: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferralOverrideCode description: > Use **N** when no pathology referral is supplied. Do not set together with **referral**. | Code | Meaning | |------|---------| | N | Referral not required | submissionAuthorityInd: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsSubmissionAuthorityInd description: > Must be **Y** — confirms the claim was authorised for submission by the provider. | Code | Meaning | |------|---------| | Y | Authorised for submission | acceptedDisability: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsAcceptedDisability referral: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsReferral description: >- Pathology request details. Required unless `referralOverrideCode` or `selfDeemedCode` is used instead. patient: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient service: type: array items: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems description: >- One or more pathology services. Maximum 14 per medical event. All services in a medical event must share the same LSPN if set. required: - id - authorisationDate - createDateTime - medicalEventDate - submissionAuthorityInd - acceptedDisability - patient - service title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaim: type: object properties: serviceTypeCode: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimServiceTypeCode description: | Use **P** for pathology DVA claims. | Code | Meaning | |------|---------| | P | Pathology services | hospitalInd: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimHospitalInd description: > Optional. Set **Y** if the service was rendered within a hospital facility. | Code | Meaning | |------|---------| | Y | In-hospital | serviceProvider: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider payeeProvider: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimPayeeProvider description: >- Optional. The provider to whom the benefit will be paid, if different from the servicing provider. Must have a different provider stem (first 6 characters). medicalEvent: type: array items: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems description: One or more medical events. Maximum 80 per claim. required: - serviceTypeCode - serviceProvider - medicalEvent title: >- MedicareDvaclaimPathologyV1PostRequestBodyContentApplicationJsonSchemaClaim DVA_DVA Claim — Pathology_Response_200: type: object properties: claimId: type: string description: >- Unique claim identifier. Out-of-hospital pathology uses an alpha prefix (e.g. `D0744@`); in-hospital pathology uses `#` prefix (e.g. `#9876@`). status: type: string description: Always `SUCCESS` on a successful submission. correlationId: type: string title: DVA_DVA Claim — Pathology_Response_200 MedicareDvaclaimPathologyV1PostResponsesContentApplicationJsonSchemaServiceMessageItems: type: object properties: code: type: string severity: type: string reason: type: string title: >- MedicareDvaclaimPathologyV1PostResponsesContentApplicationJsonSchemaServiceMessageItems PostMedicareDvaclaimPathologyV1RequestBadRequestError: type: object properties: highestSeverity: type: string serviceMessage: type: array items: $ref: >- #/components/schemas/MedicareDvaclaimPathologyV1PostResponsesContentApplicationJsonSchemaServiceMessageItems correlationId: type: string required: - highestSeverity - serviceMessage - correlationId title: PostMedicareDvaclaimPathologyV1RequestBadRequestError securitySchemes: apiKeyAuth: type: apiKey in: header name: x-api-key minorId: type: apiKey in: header name: x-minor-id ``` ## SDK Code Examples ```python Referral import requests url = "https://api.rebateright.com.au/Medicare/dvaclaim/pathology/v1" payload = { "claim": { "serviceTypeCode": "P", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T10:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "acceptedDisability": { "ind": "Y", "code": "OSTEOARTHRITIS" }, "patient": { "identity": { "dateOfBirth": "1958-09-27", "familyName": "IAN", "givenName": "JANET", "sex": "2" }, "veteranMembership": { "veteranNumber": "NX901667" } }, "service": [ { "id": "0001", "itemNumber": "65060", "chargeAmount": "5000", "collectionDateTime": "2026-04-09T08:00:00+10:00", "accessionDateTime": "2026-04-09T09:00:00+10:00" } ], "referral": { "issueDate": "2026-01-01", "typeCode": "P", "provider": { "providerNumber": "2054781W" } } } ] } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Referral const url = 'https://api.rebateright.com.au/Medicare/dvaclaim/pathology/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"claim":{"serviceTypeCode":"P","serviceProvider":{"providerNumber":"2447781L"},"medicalEvent":[{"id":"01","authorisationDate":"2026-04-09","createDateTime":"2026-04-09T10:00:00+10:00","medicalEventDate":"2026-04-09","submissionAuthorityInd":"Y","acceptedDisability":{"ind":"Y","code":"OSTEOARTHRITIS"},"patient":{"identity":{"dateOfBirth":"1958-09-27","familyName":"IAN","givenName":"JANET","sex":"2"},"veteranMembership":{"veteranNumber":"NX901667"}},"service":[{"id":"0001","itemNumber":"65060","chargeAmount":"5000","collectionDateTime":"2026-04-09T08:00:00+10:00","accessionDateTime":"2026-04-09T09:00:00+10:00"}],"referral":{"issueDate":"2026-01-01","typeCode":"P","provider":{"providerNumber":"2054781W"}}}]}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Referral package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/dvaclaim/pathology/v1" payload := strings.NewReader("{\n \"claim\": {\n \"serviceTypeCode\": \"P\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"OSTEOARTHRITIS\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"65060\",\n \"chargeAmount\": \"5000\",\n \"collectionDateTime\": \"2026-04-09T08:00:00+10:00\",\n \"accessionDateTime\": \"2026-04-09T09:00:00+10:00\"\n }\n ],\n \"referral\": {\n \"issueDate\": \"2026-01-01\",\n \"typeCode\": \"P\",\n \"provider\": {\n \"providerNumber\": \"2054781W\"\n }\n }\n }\n ]\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Referral require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/dvaclaim/pathology/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"claim\": {\n \"serviceTypeCode\": \"P\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"OSTEOARTHRITIS\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"65060\",\n \"chargeAmount\": \"5000\",\n \"collectionDateTime\": \"2026-04-09T08:00:00+10:00\",\n \"accessionDateTime\": \"2026-04-09T09:00:00+10:00\"\n }\n ],\n \"referral\": {\n \"issueDate\": \"2026-01-01\",\n \"typeCode\": \"P\",\n \"provider\": {\n \"providerNumber\": \"2054781W\"\n }\n }\n }\n ]\n }\n}" response = http.request(request) puts response.read_body ``` ```java Referral import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/dvaclaim/pathology/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"claim\": {\n \"serviceTypeCode\": \"P\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"OSTEOARTHRITIS\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"65060\",\n \"chargeAmount\": \"5000\",\n \"collectionDateTime\": \"2026-04-09T08:00:00+10:00\",\n \"accessionDateTime\": \"2026-04-09T09:00:00+10:00\"\n }\n ],\n \"referral\": {\n \"issueDate\": \"2026-01-01\",\n \"typeCode\": \"P\",\n \"provider\": {\n \"providerNumber\": \"2054781W\"\n }\n }\n }\n ]\n }\n}") .asString(); ``` ```php Referral request('POST', 'https://api.rebateright.com.au/Medicare/dvaclaim/pathology/v1', [ 'body' => '{ "claim": { "serviceTypeCode": "P", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T10:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "acceptedDisability": { "ind": "Y", "code": "OSTEOARTHRITIS" }, "patient": { "identity": { "dateOfBirth": "1958-09-27", "familyName": "IAN", "givenName": "JANET", "sex": "2" }, "veteranMembership": { "veteranNumber": "NX901667" } }, "service": [ { "id": "0001", "itemNumber": "65060", "chargeAmount": "5000", "collectionDateTime": "2026-04-09T08:00:00+10:00", "accessionDateTime": "2026-04-09T09:00:00+10:00" } ], "referral": { "issueDate": "2026-01-01", "typeCode": "P", "provider": { "providerNumber": "2054781W" } } } ] } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Referral using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/dvaclaim/pathology/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"claim\": {\n \"serviceTypeCode\": \"P\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"OSTEOARTHRITIS\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-09-27\",\n \"familyName\": \"IAN\",\n \"givenName\": \"JANET\",\n \"sex\": \"2\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901667\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"65060\",\n \"chargeAmount\": \"5000\",\n \"collectionDateTime\": \"2026-04-09T08:00:00+10:00\",\n \"accessionDateTime\": \"2026-04-09T09:00:00+10:00\"\n }\n ],\n \"referral\": {\n \"issueDate\": \"2026-01-01\",\n \"typeCode\": \"P\",\n \"provider\": {\n \"providerNumber\": \"2054781W\"\n }\n }\n }\n ]\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Referral import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["claim": [ "serviceTypeCode": "P", "serviceProvider": ["providerNumber": "2447781L"], "medicalEvent": [ [ "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T10:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "acceptedDisability": [ "ind": "Y", "code": "OSTEOARTHRITIS" ], "patient": [ "identity": [ "dateOfBirth": "1958-09-27", "familyName": "IAN", "givenName": "JANET", "sex": "2" ], "veteranMembership": ["veteranNumber": "NX901667"] ], "service": [ [ "id": "0001", "itemNumber": "65060", "chargeAmount": "5000", "collectionDateTime": "2026-04-09T08:00:00+10:00", "accessionDateTime": "2026-04-09T09:00:00+10:00" ] ], "referral": [ "issueDate": "2026-01-01", "typeCode": "P", "provider": ["providerNumber": "2054781W"] ] ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/dvaclaim/pathology/v1")! 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 Override Not Required import requests url = "https://api.rebateright.com.au/Medicare/dvaclaim/pathology/v1" payload = { "claim": { "serviceTypeCode": "P", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T10:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "acceptedDisability": { "ind": "Y", "code": "DIABETES" }, "patient": { "identity": { "dateOfBirth": "1965-01-10", "familyName": "ESME", "givenName": "RODERICK", "sex": "1" }, "veteranMembership": { "veteranNumber": "NX901669" } }, "service": [ { "id": "0001", "itemNumber": "65060", "chargeAmount": "8000", "collectionDateTime": "2026-04-09T08:00:00+10:00", "accessionDateTime": "2026-04-09T09:00:00+10:00", "scpId": "00001" } ], "referralOverrideCode": "N" } ] } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Override Not Required const url = 'https://api.rebateright.com.au/Medicare/dvaclaim/pathology/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"claim":{"serviceTypeCode":"P","serviceProvider":{"providerNumber":"2447781L"},"medicalEvent":[{"id":"01","authorisationDate":"2026-04-09","createDateTime":"2026-04-09T10:00:00+10:00","medicalEventDate":"2026-04-09","submissionAuthorityInd":"Y","acceptedDisability":{"ind":"Y","code":"DIABETES"},"patient":{"identity":{"dateOfBirth":"1965-01-10","familyName":"ESME","givenName":"RODERICK","sex":"1"},"veteranMembership":{"veteranNumber":"NX901669"}},"service":[{"id":"0001","itemNumber":"65060","chargeAmount":"8000","collectionDateTime":"2026-04-09T08:00:00+10:00","accessionDateTime":"2026-04-09T09:00:00+10:00","scpId":"00001"}],"referralOverrideCode":"N"}]}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Override Not Required package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/dvaclaim/pathology/v1" payload := strings.NewReader("{\n \"claim\": {\n \"serviceTypeCode\": \"P\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"DIABETES\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1965-01-10\",\n \"familyName\": \"ESME\",\n \"givenName\": \"RODERICK\",\n \"sex\": \"1\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901669\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"65060\",\n \"chargeAmount\": \"8000\",\n \"collectionDateTime\": \"2026-04-09T08:00:00+10:00\",\n \"accessionDateTime\": \"2026-04-09T09:00:00+10:00\",\n \"scpId\": \"00001\"\n }\n ],\n \"referralOverrideCode\": \"N\"\n }\n ]\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Override Not Required require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/dvaclaim/pathology/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"claim\": {\n \"serviceTypeCode\": \"P\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"DIABETES\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1965-01-10\",\n \"familyName\": \"ESME\",\n \"givenName\": \"RODERICK\",\n \"sex\": \"1\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901669\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"65060\",\n \"chargeAmount\": \"8000\",\n \"collectionDateTime\": \"2026-04-09T08:00:00+10:00\",\n \"accessionDateTime\": \"2026-04-09T09:00:00+10:00\",\n \"scpId\": \"00001\"\n }\n ],\n \"referralOverrideCode\": \"N\"\n }\n ]\n }\n}" response = http.request(request) puts response.read_body ``` ```java Override Not Required import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/dvaclaim/pathology/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"claim\": {\n \"serviceTypeCode\": \"P\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"DIABETES\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1965-01-10\",\n \"familyName\": \"ESME\",\n \"givenName\": \"RODERICK\",\n \"sex\": \"1\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901669\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"65060\",\n \"chargeAmount\": \"8000\",\n \"collectionDateTime\": \"2026-04-09T08:00:00+10:00\",\n \"accessionDateTime\": \"2026-04-09T09:00:00+10:00\",\n \"scpId\": \"00001\"\n }\n ],\n \"referralOverrideCode\": \"N\"\n }\n ]\n }\n}") .asString(); ``` ```php Override Not Required request('POST', 'https://api.rebateright.com.au/Medicare/dvaclaim/pathology/v1', [ 'body' => '{ "claim": { "serviceTypeCode": "P", "serviceProvider": { "providerNumber": "2447781L" }, "medicalEvent": [ { "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T10:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "acceptedDisability": { "ind": "Y", "code": "DIABETES" }, "patient": { "identity": { "dateOfBirth": "1965-01-10", "familyName": "ESME", "givenName": "RODERICK", "sex": "1" }, "veteranMembership": { "veteranNumber": "NX901669" } }, "service": [ { "id": "0001", "itemNumber": "65060", "chargeAmount": "8000", "collectionDateTime": "2026-04-09T08:00:00+10:00", "accessionDateTime": "2026-04-09T09:00:00+10:00", "scpId": "00001" } ], "referralOverrideCode": "N" } ] } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Override Not Required using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/dvaclaim/pathology/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"claim\": {\n \"serviceTypeCode\": \"P\",\n \"serviceProvider\": {\n \"providerNumber\": \"2447781L\"\n },\n \"medicalEvent\": [\n {\n \"id\": \"01\",\n \"authorisationDate\": \"2026-04-09\",\n \"createDateTime\": \"2026-04-09T10:00:00+10:00\",\n \"medicalEventDate\": \"2026-04-09\",\n \"submissionAuthorityInd\": \"Y\",\n \"acceptedDisability\": {\n \"ind\": \"Y\",\n \"code\": \"DIABETES\"\n },\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1965-01-10\",\n \"familyName\": \"ESME\",\n \"givenName\": \"RODERICK\",\n \"sex\": \"1\"\n },\n \"veteranMembership\": {\n \"veteranNumber\": \"NX901669\"\n }\n },\n \"service\": [\n {\n \"id\": \"0001\",\n \"itemNumber\": \"65060\",\n \"chargeAmount\": \"8000\",\n \"collectionDateTime\": \"2026-04-09T08:00:00+10:00\",\n \"accessionDateTime\": \"2026-04-09T09:00:00+10:00\",\n \"scpId\": \"00001\"\n }\n ],\n \"referralOverrideCode\": \"N\"\n }\n ]\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Override Not Required import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["claim": [ "serviceTypeCode": "P", "serviceProvider": ["providerNumber": "2447781L"], "medicalEvent": [ [ "id": "01", "authorisationDate": "2026-04-09", "createDateTime": "2026-04-09T10:00:00+10:00", "medicalEventDate": "2026-04-09", "submissionAuthorityInd": "Y", "acceptedDisability": [ "ind": "Y", "code": "DIABETES" ], "patient": [ "identity": [ "dateOfBirth": "1965-01-10", "familyName": "ESME", "givenName": "RODERICK", "sex": "1" ], "veteranMembership": ["veteranNumber": "NX901669"] ], "service": [ [ "id": "0001", "itemNumber": "65060", "chargeAmount": "8000", "collectionDateTime": "2026-04-09T08:00:00+10:00", "accessionDateTime": "2026-04-09T09:00:00+10:00", "scpId": "00001" ] ], "referralOverrideCode": "N" ] ] ]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/dvaclaim/pathology/v1")! 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() ``` 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. # DVA Processing Report POST https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1 Content-Type: application/json > 🚧 **Coming Soon** — This endpoint is not yet available. > RebateRight is completing DVA certification. Availability will be announced when certification is complete. Retrieve a processing report for a **DVA medical claim** submitted through **Medicare**, from the same Minor ID (transmitting location) that submitted the claim. ## 📑 Response — `status` | Value | Meaning | |---|---| | `COMPLETE` | Report is available; `claimAssessment` is populated. | | `REPORT_NOT_READY` | Claim located but assessment / payment is not finalised yet — retry later. | | `REPORT_NOT_FOUND` | No matching claim for this location, provider, and identifiers. | | `REPORT_EXPIRED` | Lodgement is outside the six-month retrieval window. | The report summarises how the claim was assessed: totals at claim level, and per medical event and service (assessment codes, benefit and charge amounts, veteran details as held when assessed). Reports can be retrieved for **six months** from the date the original claim was lodged, as many times as needed. Only the location that submitted the claim may request its report. Malformed requests (for example an invalid `correlationId`) receive **HTTP 400** — see the **`400`** response examples. Reference: https://docs.rebateright.com.au/api-reference/dva/dva-processing-report ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /Medicare/dvaprocessingreport/v1: post: operationId: dva-processing-report summary: DVA Processing Report description: > > 🚧 **Coming Soon** — This endpoint is not yet available. > RebateRight is completing DVA certification. Availability will be announced when certification is complete. Retrieve a processing report for a **DVA medical claim** submitted through **Medicare**, from the same Minor ID (transmitting location) that submitted the claim. ## 📑 Response — `status` | Value | Meaning | |---|---| | `COMPLETE` | Report is available; `claimAssessment` is populated. | | `REPORT_NOT_READY` | Claim located but assessment / payment is not finalised yet — retry later. | | `REPORT_NOT_FOUND` | No matching claim for this location, provider, and identifiers. | | `REPORT_EXPIRED` | Lodgement is outside the six-month retrieval window. | The report summarises how the claim was assessed: totals at claim level, and per medical event and service (assessment codes, benefit and charge amounts, veteran details as held when assessed). Reports can be retrieved for **six months** from the date the original claim was lodged, as many times as needed. Only the location that submitted the claim may request its report. Malformed requests (for example an invalid `correlationId`) receive **HTTP 400** — see the **`400`** response examples. tags: - subpackage_dva parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DVA_DVA Processing Report_Response_200' '400': description: >- Validation or business-rule failure (HTTP 400). The body is either the Medicare `serviceMessage` envelope or a gateway JSON-schema envelope (`code`, `codeType`, `message`); both include `correlationId` for tracing. content: application/json: schema: $ref: >- #/components/schemas/PostMedicareDvaprocessingreportV1RequestBadRequestError requestBody: content: application/json: schema: type: object properties: correlationId: type: string description: >- Transaction identifier from the successful DVA medical claim response; must match exactly what was returned when the claim was accepted. Format is `urn:uuid:` + Minor ID (8 characters) + 16 hexadecimal characters (33 characters total), for example `urn:uuid:MDE0000015181774ceb04e27`. payeeProvider: $ref: >- #/components/schemas/MedicareDvaprocessingreportV1PostRequestBodyContentApplicationJsonSchemaPayeeProvider description: >- Payee provider from the original claim transmission; use the same values as on that claim. required: - correlationId - payeeProvider servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: MedicareDvaprocessingreportV1PostRequestBodyContentApplicationJsonSchemaPayeeProvider: type: object properties: providerNumber: type: string description: >- Payee provider number as transmitted on the original claim. Pad with leading zeros if there are between 3 and 7 characters before the check digit. required: - providerNumber description: >- Payee provider from the original claim transmission; use the same values as on that claim. title: >- MedicareDvaprocessingreportV1PostRequestBodyContentApplicationJsonSchemaPayeeProvider MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaStatus: type: string enum: - COMPLETE - REPORT_NOT_READY - REPORT_NOT_FOUND - REPORT_EXPIRED description: | Outcome of the report request. | Value | Meaning | |-------|---------| | COMPLETE | Report returned with claim assessment data | | REPORT_NOT_READY | Report not ready yet — retry later | | REPORT_NOT_FOUND | Report not found | | REPORT_EXPIRED | Report has expired | title: >- MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaStatus MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentServiceProvider: type: object properties: providerNumber: type: string description: Provider number (stem, location, and check digit). required: - providerNumber description: Servicing provider on the assessed claim. title: >- MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentServiceProvider MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentMedicalEventItemsPatientCurrentMembership: type: object properties: veteranNumber: type: string description: DVA file number. required: - veteranNumber title: >- MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentMedicalEventItemsPatientCurrentMembership MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentMedicalEventItemsPatientCurrentMember: type: object properties: familyName: type: string givenName: type: string required: - familyName - givenName title: >- MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentMedicalEventItemsPatientCurrentMember MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentMedicalEventItemsPatient: type: object properties: currentMembership: $ref: >- #/components/schemas/MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentMedicalEventItemsPatientCurrentMembership currentMember: $ref: >- #/components/schemas/MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentMedicalEventItemsPatientCurrentMember required: - currentMembership - currentMember description: >- Veteran or patient as held when assessed; structure may include further membership fields from Medicare. title: >- MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentMedicalEventItemsPatient MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentMedicalEventItemsServiceItems: type: object properties: id: type: string description: Service line identifier (for example `0001`). itemNumber: type: string description: MBS item number as returned (may be padded). assessmentCode: type: string description: Assessment code for this service line. benefitPaid: type: string description: Benefit for this line, in cents as a string numeric. chargeAmount: type: string description: Charge for this line, in cents as a string numeric. required: - id - itemNumber - assessmentCode - benefitPaid - chargeAmount title: >- MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentMedicalEventItemsServiceItems MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentMedicalEventItems: type: object properties: id: type: string description: Medical event identifier within the claim (for example `01`). eventDate: type: string description: Medical event date (ISO 8601 calendar date). patient: $ref: >- #/components/schemas/MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentMedicalEventItemsPatient description: >- Veteran or patient as held when assessed; structure may include further membership fields from Medicare. service: type: array items: $ref: >- #/components/schemas/MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentMedicalEventItemsServiceItems description: Service lines within this medical event. required: - id - eventDate - patient - service title: >- MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentMedicalEventItems MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessment: type: object properties: claimId: type: string description: Claim identifier as assigned when assessed (for example `D0809@`). benefitPaid: type: string description: Total benefit paid for the claim, in cents as a string numeric. chargeAmount: type: string description: Total charge amount for the claim, in cents as a string numeric. serviceProvider: $ref: >- #/components/schemas/MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentServiceProvider description: Servicing provider on the assessed claim. medicalEvent: type: array items: $ref: >- #/components/schemas/MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessmentMedicalEventItems description: Assessed medical events for the claim. required: - claimId - benefitPaid - chargeAmount - serviceProvider - medicalEvent description: >- Present when `status` is `COMPLETE`. Assessment snapshot for the claim; Medicare may include additional properties beyond those listed. title: >- MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessment DVA_DVA Processing Report_Response_200: type: object properties: status: $ref: >- #/components/schemas/MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaStatus description: | Outcome of the report request. | Value | Meaning | |-------|---------| | COMPLETE | Report returned with claim assessment data | | REPORT_NOT_READY | Report not ready yet — retry later | | REPORT_NOT_FOUND | Report not found | | REPORT_EXPIRED | Report has expired | correlationId: type: string description: Echo of the `correlationId` sent on the request. claimAssessment: $ref: >- #/components/schemas/MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaClaimAssessment description: >- Present when `status` is `COMPLETE`. Assessment snapshot for the claim; Medicare may include additional properties beyond those listed. required: - status - correlationId description: >- Processing report result. Additional properties appear when `status` is `COMPLETE`. title: DVA_DVA Processing Report_Response_200 MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaOneOf0ServiceMessageItems: type: object properties: code: type: string description: Medicare error code. severity: type: string description: Severity for this message (e.g. `Error`). reason: type: string description: Human-readable explanation. required: - code - severity - reason title: >- MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaOneOf0ServiceMessageItems PostMedicareDvaprocessingreportV1RequestBadRequestError0: type: object properties: highestSeverity: type: string description: Highest severity across all messages (typically `Error`). correlationId: type: string description: >- Echo of the `correlationId` sent on the request, for support tracing. serviceMessage: type: array items: $ref: >- #/components/schemas/MedicareDvaprocessingreportV1PostResponsesContentApplicationJsonSchemaOneOf0ServiceMessageItems description: One or more validation or business-rule messages from Medicare. required: - highestSeverity - correlationId - serviceMessage title: PostMedicareDvaprocessingreportV1RequestBadRequestError0 PostMedicareDvaprocessingreportV1RequestBadRequestError1: type: object properties: code: type: integer description: Numeric gateway or request-schema error code. codeType: type: string description: >- Gateway error category (for example `DHSEIN` for JSON schema validation). message: type: string description: Human-readable validation summary. correlationId: type: string description: >- Echo of the `correlationId` sent on the request when supplied; may be generated for this call when omitted upstream. required: - code - codeType - message - correlationId title: PostMedicareDvaprocessingreportV1RequestBadRequestError1 PostMedicareDvaprocessingreportV1RequestBadRequestError: oneOf: - $ref: >- #/components/schemas/PostMedicareDvaprocessingreportV1RequestBadRequestError0 - $ref: >- #/components/schemas/PostMedicareDvaprocessingreportV1RequestBadRequestError1 title: PostMedicareDvaprocessingreportV1RequestBadRequestError securitySchemes: apiKeyAuth: type: apiKey in: header name: x-api-key minorId: type: apiKey in: header name: x-minor-id ``` ## SDK Code Examples ```python Complete import requests url = "https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1" payload = { "correlationId": "urn:uuid:MDE0000015181774ceb04e27", "payeeProvider": { "providerNumber": "2447781L" } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Complete const url = 'https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"correlationId":"urn:uuid:MDE0000015181774ceb04e27","payeeProvider":{"providerNumber":"2447781L"}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Complete package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1" payload := strings.NewReader("{\n \"correlationId\": \"urn:uuid:MDE0000015181774ceb04e27\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Complete require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"correlationId\": \"urn:uuid:MDE0000015181774ceb04e27\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}" response = http.request(request) puts response.read_body ``` ```java Complete import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"correlationId\": \"urn:uuid:MDE0000015181774ceb04e27\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") .asString(); ``` ```php Complete request('POST', 'https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1', [ 'body' => '{ "correlationId": "urn:uuid:MDE0000015181774ceb04e27", "payeeProvider": { "providerNumber": "2447781L" } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Complete using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"correlationId\": \"urn:uuid:MDE0000015181774ceb04e27\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Complete import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "correlationId": "urn:uuid:MDE0000015181774ceb04e27", "payeeProvider": ["providerNumber": "2447781L"] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1")! 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 Report Not Ready import requests url = "https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1" payload = { "correlationId": "urn:uuid:MDE00000ddf66a7ebee84495", "payeeProvider": { "providerNumber": "2447781L" } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Report Not Ready const url = 'https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"correlationId":"urn:uuid:MDE00000ddf66a7ebee84495","payeeProvider":{"providerNumber":"2447781L"}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Report Not Ready package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1" payload := strings.NewReader("{\n \"correlationId\": \"urn:uuid:MDE00000ddf66a7ebee84495\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Report Not Ready require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"correlationId\": \"urn:uuid:MDE00000ddf66a7ebee84495\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}" response = http.request(request) puts response.read_body ``` ```java Report Not Ready import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"correlationId\": \"urn:uuid:MDE00000ddf66a7ebee84495\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") .asString(); ``` ```php Report Not Ready request('POST', 'https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1', [ 'body' => '{ "correlationId": "urn:uuid:MDE00000ddf66a7ebee84495", "payeeProvider": { "providerNumber": "2447781L" } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Report Not Ready using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"correlationId\": \"urn:uuid:MDE00000ddf66a7ebee84495\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Report Not Ready import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "correlationId": "urn:uuid:MDE00000ddf66a7ebee84495", "payeeProvider": ["providerNumber": "2447781L"] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1")! 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 Report Not Found import requests url = "https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1" payload = { "correlationId": "urn:uuid:MDE000009bb6cd1c92674e1c", "payeeProvider": { "providerNumber": "2447781L" } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Report Not Found const url = 'https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"correlationId":"urn:uuid:MDE000009bb6cd1c92674e1c","payeeProvider":{"providerNumber":"2447781L"}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Report Not Found package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1" payload := strings.NewReader("{\n \"correlationId\": \"urn:uuid:MDE000009bb6cd1c92674e1c\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Report Not Found require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"correlationId\": \"urn:uuid:MDE000009bb6cd1c92674e1c\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}" response = http.request(request) puts response.read_body ``` ```java Report Not Found import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"correlationId\": \"urn:uuid:MDE000009bb6cd1c92674e1c\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") .asString(); ``` ```php Report Not Found request('POST', 'https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1', [ 'body' => '{ "correlationId": "urn:uuid:MDE000009bb6cd1c92674e1c", "payeeProvider": { "providerNumber": "2447781L" } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Report Not Found using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"correlationId\": \"urn:uuid:MDE000009bb6cd1c92674e1c\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Report Not Found import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "correlationId": "urn:uuid:MDE000009bb6cd1c92674e1c", "payeeProvider": ["providerNumber": "2447781L"] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/dvaprocessingreport/v1")! 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() ``` 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. # DVA Payment Report POST https://api.rebateright.com.au/Medicare/dvapaymentreport/v1 Content-Type: application/json > 🚧 **Coming Soon** — This endpoint is not yet available. > RebateRight is completing DVA certification. Availability will be announced when certification is complete. Retrieve a **payment report** for a **DVA medical claim** submitted through **Medicare**, from the same Minor ID that submitted the claim. ## 📑 Response — `status` | Value | Meaning | |---|---| | `COMPLETE` | Payment information is available (`paymentRun`, `paymentInfo`, `claimSummary`). | | `REPORT_NOT_AVAILABLE` | Claim is finalised but there is **no payment report** (for example, nil or rejected benefit — nothing to pay). | | `REPORT_NOT_READY` | Claim not yet paid and finalised — retry later. | | `REPORT_NOT_FOUND` | No matching claim for this location and identifiers. | | `REPORT_EXPIRED` | Outside the six-month window. | When a payment run exists, the response includes the **payment run** reference, **bank / EFT mask** details, **deposit amount**, and a **claim summary** listing claims included in that run (not only the claim you asked about). Reports can be retrieved for **six months** from the original claim lodgement date, as often as needed. Only the transmitting location may request the report. Malformed requests (for example an invalid `correlationId`) receive **HTTP 400** — see the **`400`** response examples. Reference: https://docs.rebateright.com.au/api-reference/dva/dva-payment-report ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /Medicare/dvapaymentreport/v1: post: operationId: dva-payment-report summary: DVA Payment Report description: > > 🚧 **Coming Soon** — This endpoint is not yet available. > RebateRight is completing DVA certification. Availability will be announced when certification is complete. Retrieve a **payment report** for a **DVA medical claim** submitted through **Medicare**, from the same Minor ID that submitted the claim. ## 📑 Response — `status` | Value | Meaning | |---|---| | `COMPLETE` | Payment information is available (`paymentRun`, `paymentInfo`, `claimSummary`). | | `REPORT_NOT_AVAILABLE` | Claim is finalised but there is **no payment report** (for example, nil or rejected benefit — nothing to pay). | | `REPORT_NOT_READY` | Claim not yet paid and finalised — retry later. | | `REPORT_NOT_FOUND` | No matching claim for this location and identifiers. | | `REPORT_EXPIRED` | Outside the six-month window. | When a payment run exists, the response includes the **payment run** reference, **bank / EFT mask** details, **deposit amount**, and a **claim summary** listing claims included in that run (not only the claim you asked about). Reports can be retrieved for **six months** from the original claim lodgement date, as often as needed. Only the transmitting location may request the report. Malformed requests (for example an invalid `correlationId`) receive **HTTP 400** — see the **`400`** response examples. tags: - subpackage_dva parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DVA_DVA Payment Report_Response_200' '400': description: >- Validation or business-rule failure (HTTP 400). The body is either the Medicare `serviceMessage` envelope or a gateway JSON-schema envelope (`code`, `codeType`, `message`); both include `correlationId` for tracing. content: application/json: schema: $ref: >- #/components/schemas/PostMedicareDvapaymentreportV1RequestBadRequestError requestBody: content: application/json: schema: type: object properties: correlationId: type: string description: >- Transaction identifier from the successful DVA medical claim response; must match exactly what was returned when the claim was accepted. Format is `urn:uuid:` + Minor ID (8 characters) + 16 hexadecimal characters (33 characters total), for example `urn:uuid:MDE0000015181774ceb04e27`. payeeProvider: $ref: >- #/components/schemas/MedicareDvapaymentreportV1PostRequestBodyContentApplicationJsonSchemaPayeeProvider description: >- Payee provider from the original claim transmission; use the same values as on that claim. required: - correlationId - payeeProvider servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: MedicareDvapaymentreportV1PostRequestBodyContentApplicationJsonSchemaPayeeProvider: type: object properties: providerNumber: type: string description: >- Payee provider number as transmitted on the original claim. Pad with leading zeros if there are between 3 and 7 characters before the check digit. required: - providerNumber description: >- Payee provider from the original claim transmission; use the same values as on that claim. title: >- MedicareDvapaymentreportV1PostRequestBodyContentApplicationJsonSchemaPayeeProvider MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaStatus: type: string enum: - COMPLETE - REPORT_NOT_AVAILABLE - REPORT_NOT_READY - REPORT_NOT_FOUND - REPORT_EXPIRED description: > Outcome of the report request. When **status** is **COMPLETE**, monetary fields on related objects are in cents as string numerics and account numbers are typically masked. | Value | Meaning | |-------|---------| | COMPLETE | Report returned with payment-run data | | REPORT_NOT_AVAILABLE | Report not available | | REPORT_NOT_READY | Report not ready yet — retry later | | REPORT_NOT_FOUND | Report not found | | REPORT_EXPIRED | Report has expired | title: >- MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaStatus MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaPaymentRun: type: object properties: runDate: type: string format: date description: Payment run date (`YYYY-MM-DD`). runNumber: type: string description: Payment run identifier assigned by Medicare for this deposit cycle. required: - runDate - runNumber description: >- Present when `status` is `COMPLETE`. Identifies the payment run that included this claim. title: >- MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaPaymentRun MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaPaymentInfoAccountInfo: type: object properties: accountName: type: string description: Account name on record for the EFT deposit (may be truncated). accountNumber: type: string description: >- Masked account number (for example leading digits replaced with asterisks). bsbCode: type: string description: BSB for the deposit account (often formatted with a hyphen). required: - accountName - accountNumber - bsbCode title: >- MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaPaymentInfoAccountInfo MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaPaymentInfo: type: object properties: accountInfo: $ref: >- #/components/schemas/MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaPaymentInfoAccountInfo depositAmount: type: string description: >- Total deposit for this run in **cents** as a decimal string (matches the benefit total for a single-claim run in simple cases). required: - accountInfo - depositAmount description: >- Present when `status` is `COMPLETE`. Masked bank / EFT details and deposit amount; amounts are in **cents** as decimal strings. title: >- MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaPaymentInfo MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaClaimSummaryItems: type: object properties: benefit: type: string description: >- Medicare benefit paid for this line, in **cents** as a decimal string. chargeAmount: type: string description: Billed charge for this line, in **cents** as a decimal string. claimId: type: string description: >- Claim identifier as returned on the original assessment (format varies by channel). lodgementDate: type: string format: date description: Lodgement date for the claim line (`YYYY-MM-DD`). transactionId: type: string description: >- Transaction / correlation identifier tying this summary row to the transmitted claim. required: - benefit - chargeAmount - claimId - lodgementDate - transactionId title: >- MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaClaimSummaryItems DVA_DVA Payment Report_Response_200: type: object properties: status: $ref: >- #/components/schemas/MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaStatus description: > Outcome of the report request. When **status** is **COMPLETE**, monetary fields on related objects are in cents as string numerics and account numbers are typically masked. | Value | Meaning | |-------|---------| | COMPLETE | Report returned with payment-run data | | REPORT_NOT_AVAILABLE | Report not available | | REPORT_NOT_READY | Report not ready yet — retry later | | REPORT_NOT_FOUND | Report not found | | REPORT_EXPIRED | Report has expired | correlationId: type: string description: Echo of the `correlationId` sent on the request. paymentRun: $ref: >- #/components/schemas/MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaPaymentRun description: >- Present when `status` is `COMPLETE`. Identifies the payment run that included this claim. paymentInfo: $ref: >- #/components/schemas/MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaPaymentInfo description: >- Present when `status` is `COMPLETE`. Masked bank / EFT details and deposit amount; amounts are in **cents** as decimal strings. claimSummary: type: array items: $ref: >- #/components/schemas/MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaClaimSummaryItems description: >- Present when `status` is `COMPLETE`. One row per claim line included in the payment run (not only the claim you queried). required: - status - correlationId description: >- Payment report result. Payment-run fields appear when `status` is `COMPLETE`. title: DVA_DVA Payment Report_Response_200 MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaOneOf0ServiceMessageItems: type: object properties: code: type: string description: Medicare error code. severity: type: string description: Severity for this message (e.g. `Error`). reason: type: string description: Human-readable explanation. required: - code - severity - reason title: >- MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaOneOf0ServiceMessageItems PostMedicareDvapaymentreportV1RequestBadRequestError0: type: object properties: highestSeverity: type: string description: Highest severity across all messages (typically `Error`). correlationId: type: string description: >- Echo of the `correlationId` sent on the request, for support tracing. serviceMessage: type: array items: $ref: >- #/components/schemas/MedicareDvapaymentreportV1PostResponsesContentApplicationJsonSchemaOneOf0ServiceMessageItems description: One or more validation or business-rule messages from Medicare. required: - highestSeverity - correlationId - serviceMessage title: PostMedicareDvapaymentreportV1RequestBadRequestError0 PostMedicareDvapaymentreportV1RequestBadRequestError1: type: object properties: code: type: integer description: Numeric gateway or request-schema error code. codeType: type: string description: >- Gateway error category (for example `DHSEIN` for JSON schema validation). message: type: string description: Human-readable validation summary. correlationId: type: string description: >- Echo of the `correlationId` sent on the request when supplied; may be generated for this call when omitted upstream. required: - code - codeType - message - correlationId title: PostMedicareDvapaymentreportV1RequestBadRequestError1 PostMedicareDvapaymentreportV1RequestBadRequestError: oneOf: - $ref: >- #/components/schemas/PostMedicareDvapaymentreportV1RequestBadRequestError0 - $ref: >- #/components/schemas/PostMedicareDvapaymentreportV1RequestBadRequestError1 title: PostMedicareDvapaymentreportV1RequestBadRequestError securitySchemes: apiKeyAuth: type: apiKey in: header name: x-api-key minorId: type: apiKey in: header name: x-minor-id ``` ## SDK Code Examples ```python Complete import requests url = "https://api.rebateright.com.au/Medicare/dvapaymentreport/v1" payload = { "correlationId": "urn:uuid:MDE000004046485fea934d76", "payeeProvider": { "providerNumber": "2447781L" } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Complete const url = 'https://api.rebateright.com.au/Medicare/dvapaymentreport/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"correlationId":"urn:uuid:MDE000004046485fea934d76","payeeProvider":{"providerNumber":"2447781L"}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Complete package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/dvapaymentreport/v1" payload := strings.NewReader("{\n \"correlationId\": \"urn:uuid:MDE000004046485fea934d76\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Complete require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/dvapaymentreport/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"correlationId\": \"urn:uuid:MDE000004046485fea934d76\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}" response = http.request(request) puts response.read_body ``` ```java Complete import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/dvapaymentreport/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"correlationId\": \"urn:uuid:MDE000004046485fea934d76\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") .asString(); ``` ```php Complete request('POST', 'https://api.rebateright.com.au/Medicare/dvapaymentreport/v1', [ 'body' => '{ "correlationId": "urn:uuid:MDE000004046485fea934d76", "payeeProvider": { "providerNumber": "2447781L" } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Complete using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/dvapaymentreport/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"correlationId\": \"urn:uuid:MDE000004046485fea934d76\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Complete import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "correlationId": "urn:uuid:MDE000004046485fea934d76", "payeeProvider": ["providerNumber": "2447781L"] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/dvapaymentreport/v1")! 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 Report Not Available import requests url = "https://api.rebateright.com.au/Medicare/dvapaymentreport/v1" payload = { "correlationId": "urn:uuid:MDE0000015181774ceb04e27", "payeeProvider": { "providerNumber": "2447781L" } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Report Not Available const url = 'https://api.rebateright.com.au/Medicare/dvapaymentreport/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"correlationId":"urn:uuid:MDE0000015181774ceb04e27","payeeProvider":{"providerNumber":"2447781L"}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Report Not Available package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/dvapaymentreport/v1" payload := strings.NewReader("{\n \"correlationId\": \"urn:uuid:MDE0000015181774ceb04e27\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Report Not Available require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/dvapaymentreport/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"correlationId\": \"urn:uuid:MDE0000015181774ceb04e27\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}" response = http.request(request) puts response.read_body ``` ```java Report Not Available import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/dvapaymentreport/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"correlationId\": \"urn:uuid:MDE0000015181774ceb04e27\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") .asString(); ``` ```php Report Not Available request('POST', 'https://api.rebateright.com.au/Medicare/dvapaymentreport/v1', [ 'body' => '{ "correlationId": "urn:uuid:MDE0000015181774ceb04e27", "payeeProvider": { "providerNumber": "2447781L" } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Report Not Available using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/dvapaymentreport/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"correlationId\": \"urn:uuid:MDE0000015181774ceb04e27\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Report Not Available import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "correlationId": "urn:uuid:MDE0000015181774ceb04e27", "payeeProvider": ["providerNumber": "2447781L"] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/dvapaymentreport/v1")! 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 Report Not Ready import requests url = "https://api.rebateright.com.au/Medicare/dvapaymentreport/v1" payload = { "correlationId": "urn:uuid:MDE00000ddf66a7ebee84495", "payeeProvider": { "providerNumber": "2447781L" } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Report Not Ready const url = 'https://api.rebateright.com.au/Medicare/dvapaymentreport/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"correlationId":"urn:uuid:MDE00000ddf66a7ebee84495","payeeProvider":{"providerNumber":"2447781L"}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Report Not Ready package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/dvapaymentreport/v1" payload := strings.NewReader("{\n \"correlationId\": \"urn:uuid:MDE00000ddf66a7ebee84495\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Report Not Ready require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/dvapaymentreport/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"correlationId\": \"urn:uuid:MDE00000ddf66a7ebee84495\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}" response = http.request(request) puts response.read_body ``` ```java Report Not Ready import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/dvapaymentreport/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"correlationId\": \"urn:uuid:MDE00000ddf66a7ebee84495\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") .asString(); ``` ```php Report Not Ready request('POST', 'https://api.rebateright.com.au/Medicare/dvapaymentreport/v1', [ 'body' => '{ "correlationId": "urn:uuid:MDE00000ddf66a7ebee84495", "payeeProvider": { "providerNumber": "2447781L" } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Report Not Ready using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/dvapaymentreport/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"correlationId\": \"urn:uuid:MDE00000ddf66a7ebee84495\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Report Not Ready import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "correlationId": "urn:uuid:MDE00000ddf66a7ebee84495", "payeeProvider": ["providerNumber": "2447781L"] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/dvapaymentreport/v1")! 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 Report Not Found import requests url = "https://api.rebateright.com.au/Medicare/dvapaymentreport/v1" payload = { "correlationId": "urn:uuid:MDE000009bb6cd1c92674e1c", "payeeProvider": { "providerNumber": "2447781L" } } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Report Not Found const url = 'https://api.rebateright.com.au/Medicare/dvapaymentreport/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"correlationId":"urn:uuid:MDE000009bb6cd1c92674e1c","payeeProvider":{"providerNumber":"2447781L"}}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Report Not Found package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/dvapaymentreport/v1" payload := strings.NewReader("{\n \"correlationId\": \"urn:uuid:MDE000009bb6cd1c92674e1c\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Report Not Found require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/dvapaymentreport/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"correlationId\": \"urn:uuid:MDE000009bb6cd1c92674e1c\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}" response = http.request(request) puts response.read_body ``` ```java Report Not Found import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/dvapaymentreport/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"correlationId\": \"urn:uuid:MDE000009bb6cd1c92674e1c\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}") .asString(); ``` ```php Report Not Found request('POST', 'https://api.rebateright.com.au/Medicare/dvapaymentreport/v1', [ 'body' => '{ "correlationId": "urn:uuid:MDE000009bb6cd1c92674e1c", "payeeProvider": { "providerNumber": "2447781L" } }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Report Not Found using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/dvapaymentreport/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"correlationId\": \"urn:uuid:MDE000009bb6cd1c92674e1c\",\n \"payeeProvider\": {\n \"providerNumber\": \"2447781L\"\n }\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Report Not Found import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "correlationId": "urn:uuid:MDE000009bb6cd1c92674e1c", "payeeProvider": ["providerNumber": "2447781L"] ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/dvapaymentreport/v1")! 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() ``` 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. # Service Voucher D1216S (PDF) POST https://api.rebateright.com.au/DVAVoucher Content-Type: application/json > 🚧 **Coming Soon** — This endpoint is not yet available. > RebateRight is completing DVA certification. Availability will be announced when certification is complete. ## Treatment service voucher Generates a **printable treatment service voucher** for the veteran to keep — a PDF that records the visit and the services. Use it when your workflow needs a paper or saved copy for the patient's own records. This endpoint **does not** lodge a claim and **does not** produce the separate **manual claim cover sheet** used when posting some paper claims. ## Request body Send a **single JSON object** at the root (no `claim` wrapper). Field names match the schema below. Unknown root-level property names are rejected. Optional blocks (`payeeProvider`, `referral`) may be omitted or set to JSON `null`. When `referral` is an object, `issueDate` and `provider` (with `providerNumber` and `providerName`) are required. **`treatmentLocationCode`** must be **`H`** (Hospital), **`R`** (Rooms), or **`V`** (home visit / residential care / community health / hostel). When it is **`H`**, **`facilityProviderNumber`** is required. **`chargeAmountCents`** is a non-negative whole number as a string (e.g. `10000` for $100.00). ## Location on the voucher The **location ID** printed on the voucher is taken from the **`x-minor-id`** request header (the same header as other RebateRight Medicare and DVA endpoints), not from the JSON body. ## Response On success, the response body is **`application/pdf`**. The download is offered as **`DVAVoucher.pdf`**. ## Errors Validation failures return **HTTP 400** with a **plain-text** message describing the problem (not a JSON error envelope). **Technical references:** The PDF follows the approved **D1216S** treatment service voucher layout. Authoritative wording and rules are according to the current specification from Services Australia. Reference: https://docs.rebateright.com.au/api-reference/dva/service-voucher-d-1216-s-pdf ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /DVAVoucher: post: operationId: service-voucher-d-1216-s-pdf summary: Service Voucher D1216S (PDF) description: > > 🚧 **Coming Soon** — This endpoint is not yet available. > RebateRight is completing DVA certification. Availability will be announced when certification is complete. ## Treatment service voucher Generates a **printable treatment service voucher** for the veteran to keep — a PDF that records the visit and the services. Use it when your workflow needs a paper or saved copy for the patient's own records. This endpoint **does not** lodge a claim and **does not** produce the separate **manual claim cover sheet** used when posting some paper claims. ## Request body Send a **single JSON object** at the root (no `claim` wrapper). Field names match the schema below. Unknown root-level property names are rejected. Optional blocks (`payeeProvider`, `referral`) may be omitted or set to JSON `null`. When `referral` is an object, `issueDate` and `provider` (with `providerNumber` and `providerName`) are required. **`treatmentLocationCode`** must be **`H`** (Hospital), **`R`** (Rooms), or **`V`** (home visit / residential care / community health / hostel). When it is **`H`**, **`facilityProviderNumber`** is required. **`chargeAmountCents`** is a non-negative whole number as a string (e.g. `10000` for $100.00). ## Location on the voucher The **location ID** printed on the voucher is taken from the **`x-minor-id`** request header (the same header as other RebateRight Medicare and DVA endpoints), not from the JSON body. ## Response On success, the response body is **`application/pdf`**. The download is offered as **`DVAVoucher.pdf`**. ## Errors Validation failures return **HTTP 400** with a **plain-text** message describing the problem (not a JSON error envelope). **Technical references:** The PDF follows the approved **D1216S** treatment service voucher layout. Authoritative wording and rules are according to the current specification from Services Australia. tags: - subpackage_dva parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: PDF document — treatment service voucher (`DVAVoucher.pdf`). content: application/octet-stream: schema: type: string format: binary requestBody: content: application/json: schema: type: object properties: lspNumber: type: - string - 'null' description: >- Location Specific Practice Number (diagnostic imaging). Omit or `null` when not used. patient: $ref: >- #/components/schemas/DvaVoucherPostRequestBodyContentApplicationJsonSchemaPatient servicingProvider: $ref: >- #/components/schemas/DvaVoucherPostRequestBodyContentApplicationJsonSchemaServicingProvider payeeProvider: oneOf: - $ref: >- #/components/schemas/DvaVoucherPostRequestBodyContentApplicationJsonSchemaPayeeProvider - type: 'null' description: >- Payee when different from the servicing provider; omit or `null` if the same. referral: oneOf: - $ref: >- #/components/schemas/DvaVoucherPostRequestBodyContentApplicationJsonSchemaReferral - type: 'null' description: >- Referral or request details when applicable; omit or `null` if none. accountReferenceNumber: type: string description: >- Account or internal reference for this voucher (e.g. invoice or visit id). treatmentLocationCode: $ref: >- #/components/schemas/DvaVoucherPostRequestBodyContentApplicationJsonSchemaTreatmentLocationCode description: > Where treatment was provided. When **H**, send **facilityProviderNumber**. | Code | Meaning | |------|---------| | H | Hospital | | R | Rooms | | V | Home visit / residential care / community health / hostel | facilityProviderNumber: type: - string - 'null' description: >- Required when `treatmentLocationCode` is `H` (hospital establishment provider number). kilometresTravelled: type: - string - 'null' description: >- Distance in kilometres when a visit charge applies; omit or `null` if not used. conditionTreated: type: - string - 'null' description: >- Condition treated (e.g. for White Card); omit or `null` if not applicable. services: type: array items: $ref: >- #/components/schemas/DvaVoucherPostRequestBodyContentApplicationJsonSchemaServicesItems required: - patient - servicingProvider - accountReferenceNumber - treatmentLocationCode - services servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: DvaVoucherPostRequestBodyContentApplicationJsonSchemaPatient: type: object properties: dvaFileNumber: type: string description: DVA file number (e.g. `NX901667`). givenName: type: string familyName: type: string dateOfBirth: type: string format: date description: ISO date `YYYY-MM-DD`. telephone: type: string residentialAddress: type: string description: Full residential address as a single line. required: - dvaFileNumber - givenName - familyName - dateOfBirth - telephone - residentialAddress title: DvaVoucherPostRequestBodyContentApplicationJsonSchemaPatient DvaVoucherPostRequestBodyContentApplicationJsonSchemaServicingProvider: type: object properties: providerNumber: type: string providerName: type: string required: - providerNumber - providerName title: DvaVoucherPostRequestBodyContentApplicationJsonSchemaServicingProvider DvaVoucherPostRequestBodyContentApplicationJsonSchemaPayeeProvider: type: object properties: providerNumber: type: string providerName: type: string required: - providerNumber - providerName description: >- Payee when different from the servicing provider; omit or `null` if the same. title: DvaVoucherPostRequestBodyContentApplicationJsonSchemaPayeeProvider DvaVoucherPostRequestBodyContentApplicationJsonSchemaReferralProvider: type: object properties: providerNumber: type: string providerName: type: string required: - providerNumber - providerName title: DvaVoucherPostRequestBodyContentApplicationJsonSchemaReferralProvider DvaVoucherPostRequestBodyContentApplicationJsonSchemaReferral: type: object properties: issueDate: type: string format: date periodOrNotes: type: - string - 'null' description: Referral period or other notes. provider: $ref: >- #/components/schemas/DvaVoucherPostRequestBodyContentApplicationJsonSchemaReferralProvider required: - issueDate - provider description: Referral or request details when applicable; omit or `null` if none. title: DvaVoucherPostRequestBodyContentApplicationJsonSchemaReferral DvaVoucherPostRequestBodyContentApplicationJsonSchemaTreatmentLocationCode: type: string enum: - H - R - V description: > Where treatment was provided. When **H**, send **facilityProviderNumber**. | Code | Meaning | |------|---------| | H | Hospital | | R | Rooms | | V | Home visit / residential care / community health / hostel | title: >- DvaVoucherPostRequestBodyContentApplicationJsonSchemaTreatmentLocationCode DvaVoucherPostRequestBodyContentApplicationJsonSchemaServicesItems: type: object properties: dateOfService: type: string format: date itemNumber: type: string description: MBS or DVA item number. chargeAmountCents: type: string description: >- Charge in whole cents as a decimal string (e.g. `10000` for $100.00). associatedText: type: - string - 'null' description: Optional line narrative for the service. required: - dateOfService - itemNumber - chargeAmountCents title: DvaVoucherPostRequestBodyContentApplicationJsonSchemaServicesItems securitySchemes: apiKeyAuth: type: apiKey in: header name: x-api-key minorId: type: apiKey in: header name: x-minor-id ``` ## SDK Code Examples ```python import requests url = "https://api.rebateright.com.au/DVAVoucher" payload = { "patient": { "dvaFileNumber": "NX901667", "givenName": "JANET", "familyName": "IAN", "dateOfBirth": "1958-09-27", "telephone": "0262626111", "residentialAddress": "63 DANUTA ST, YARRALUMLA ACT 2600" }, "servicingProvider": { "providerNumber": "2447781L", "providerName": "GWENDA HUNTER" }, "accountReferenceNumber": "0001", "treatmentLocationCode": "R", "services": [ { "dateOfService": "2026-04-09", "itemNumber": "23", "chargeAmountCents": "10000" } ], "conditionTreated": "OSTEOARTHRITIS" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.rebateright.com.au/DVAVoucher'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"patient":{"dvaFileNumber":"NX901667","givenName":"JANET","familyName":"IAN","dateOfBirth":"1958-09-27","telephone":"0262626111","residentialAddress":"63 DANUTA ST, YARRALUMLA ACT 2600"},"servicingProvider":{"providerNumber":"2447781L","providerName":"GWENDA HUNTER"},"accountReferenceNumber":"0001","treatmentLocationCode":"R","services":[{"dateOfService":"2026-04-09","itemNumber":"23","chargeAmountCents":"10000"}],"conditionTreated":"OSTEOARTHRITIS"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/DVAVoucher" payload := strings.NewReader("{\n \"patient\": {\n \"dvaFileNumber\": \"NX901667\",\n \"givenName\": \"JANET\",\n \"familyName\": \"IAN\",\n \"dateOfBirth\": \"1958-09-27\",\n \"telephone\": \"0262626111\",\n \"residentialAddress\": \"63 DANUTA ST, YARRALUMLA ACT 2600\"\n },\n \"servicingProvider\": {\n \"providerNumber\": \"2447781L\",\n \"providerName\": \"GWENDA HUNTER\"\n },\n \"accountReferenceNumber\": \"0001\",\n \"treatmentLocationCode\": \"R\",\n \"services\": [\n {\n \"dateOfService\": \"2026-04-09\",\n \"itemNumber\": \"23\",\n \"chargeAmountCents\": \"10000\"\n }\n ],\n \"conditionTreated\": \"OSTEOARTHRITIS\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/DVAVoucher") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"patient\": {\n \"dvaFileNumber\": \"NX901667\",\n \"givenName\": \"JANET\",\n \"familyName\": \"IAN\",\n \"dateOfBirth\": \"1958-09-27\",\n \"telephone\": \"0262626111\",\n \"residentialAddress\": \"63 DANUTA ST, YARRALUMLA ACT 2600\"\n },\n \"servicingProvider\": {\n \"providerNumber\": \"2447781L\",\n \"providerName\": \"GWENDA HUNTER\"\n },\n \"accountReferenceNumber\": \"0001\",\n \"treatmentLocationCode\": \"R\",\n \"services\": [\n {\n \"dateOfService\": \"2026-04-09\",\n \"itemNumber\": \"23\",\n \"chargeAmountCents\": \"10000\"\n }\n ],\n \"conditionTreated\": \"OSTEOARTHRITIS\"\n}" response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/DVAVoucher") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"patient\": {\n \"dvaFileNumber\": \"NX901667\",\n \"givenName\": \"JANET\",\n \"familyName\": \"IAN\",\n \"dateOfBirth\": \"1958-09-27\",\n \"telephone\": \"0262626111\",\n \"residentialAddress\": \"63 DANUTA ST, YARRALUMLA ACT 2600\"\n },\n \"servicingProvider\": {\n \"providerNumber\": \"2447781L\",\n \"providerName\": \"GWENDA HUNTER\"\n },\n \"accountReferenceNumber\": \"0001\",\n \"treatmentLocationCode\": \"R\",\n \"services\": [\n {\n \"dateOfService\": \"2026-04-09\",\n \"itemNumber\": \"23\",\n \"chargeAmountCents\": \"10000\"\n }\n ],\n \"conditionTreated\": \"OSTEOARTHRITIS\"\n}") .asString(); ``` ```php request('POST', 'https://api.rebateright.com.au/DVAVoucher', [ 'body' => '{ "patient": { "dvaFileNumber": "NX901667", "givenName": "JANET", "familyName": "IAN", "dateOfBirth": "1958-09-27", "telephone": "0262626111", "residentialAddress": "63 DANUTA ST, YARRALUMLA ACT 2600" }, "servicingProvider": { "providerNumber": "2447781L", "providerName": "GWENDA HUNTER" }, "accountReferenceNumber": "0001", "treatmentLocationCode": "R", "services": [ { "dateOfService": "2026-04-09", "itemNumber": "23", "chargeAmountCents": "10000" } ], "conditionTreated": "OSTEOARTHRITIS" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.rebateright.com.au/DVAVoucher"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"patient\": {\n \"dvaFileNumber\": \"NX901667\",\n \"givenName\": \"JANET\",\n \"familyName\": \"IAN\",\n \"dateOfBirth\": \"1958-09-27\",\n \"telephone\": \"0262626111\",\n \"residentialAddress\": \"63 DANUTA ST, YARRALUMLA ACT 2600\"\n },\n \"servicingProvider\": {\n \"providerNumber\": \"2447781L\",\n \"providerName\": \"GWENDA HUNTER\"\n },\n \"accountReferenceNumber\": \"0001\",\n \"treatmentLocationCode\": \"R\",\n \"services\": [\n {\n \"dateOfService\": \"2026-04-09\",\n \"itemNumber\": \"23\",\n \"chargeAmountCents\": \"10000\"\n }\n ],\n \"conditionTreated\": \"OSTEOARTHRITIS\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "patient": [ "dvaFileNumber": "NX901667", "givenName": "JANET", "familyName": "IAN", "dateOfBirth": "1958-09-27", "telephone": "0262626111", "residentialAddress": "63 DANUTA ST, YARRALUMLA ACT 2600" ], "servicingProvider": [ "providerNumber": "2447781L", "providerName": "GWENDA HUNTER" ], "accountReferenceNumber": "0001", "treatmentLocationCode": "R", "services": [ [ "dateOfService": "2026-04-09", "itemNumber": "23", "chargeAmountCents": "10000" ] ], "conditionTreated": "OSTEOARTHRITIS" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/DVAVoucher")! 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() ``` 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. # Concession Verification POST https://api.rebateright.com.au/Medicare/concessionverification/v1 Content-Type: application/json > 🚧 **Coming Soon** — This endpoint is not yet available. > RebateRight is completing Medicare certification. Availability will be announced when certification is complete. Verifies whether a Medicare patient holds a current concession entitlement. RebateRight runs a Medicare identity check first. If the patient is found (including a partial match), a concession check is performed. If the Medicare check fails, only a Medicare error is returned — no concession check is attempted. #### Medicare Status Codes | Code | Meaning | |---|---| | `0` | Patient matched on Medicare | | `9633` | New Medicare card issued — details differ from records | | `9202` | Field-level validation failure — see `serviceMessage` for detail | #### Concession Status Codes | Code | Meaning | |---|---| | `0` | Patient is eligible for concession | | `9685` | No concession entitlement found | Reference: https://docs.rebateright.com.au/api-reference/concession/concession-verification ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: collection version: 1.0.0 paths: /Medicare/concessionverification/v1: post: operationId: concession-verification summary: Concession Verification description: > > 🚧 **Coming Soon** — This endpoint is not yet available. > RebateRight is completing Medicare certification. Availability will be announced when certification is complete. Verifies whether a Medicare patient holds a current concession entitlement. RebateRight runs a Medicare identity check first. If the patient is found (including a partial match), a concession check is performed. If the Medicare check fails, only a Medicare error is returned — no concession check is attempted. #### Medicare Status Codes | Code | Meaning | |---|---| | `0` | Patient matched on Medicare | | `9633` | New Medicare card issued — details differ from records | | `9202` | Field-level validation failure — see `serviceMessage` for detail | #### Concession Status Codes | Code | Meaning | |---|---| | `0` | Patient is eligible for concession | | `9685` | No concession entitlement found | tags: - subpackage_concession parameters: - name: x-api-key in: header required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: >- #/components/schemas/Concession_Concession Verification_Response_200 '400': description: >- Validation or business-rule failure; body includes `serviceMessage` entries and `correlationId`. content: application/json: schema: $ref: >- #/components/schemas/PostMedicareConcessionverificationV1RequestBadRequestError requestBody: content: application/json: schema: type: object properties: dateOfService: type: string format: date description: >- Date the service is being provided. Defaults to today if not supplied. Cannot be in the future or more than 2 years in the past. patient: $ref: >- #/components/schemas/MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatient required: - patient servers: - url: https://api.rebateright.com.au - url: https://test-api.rebateright.com.au components: schemas: MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentity: type: object properties: dateOfBirth: type: string format: date description: Cannot be in the future or more than 130 years in the past. familyName: type: string description: >- 1–40 characters. Alpha, numeric, space, apostrophe and hyphen only. If the patient has only one name, supply it here and use `Onlyname` as the given name. givenName: type: string description: >- 1–40 characters. Alpha, numeric, space, apostrophe and hyphen only. If the patient has only one name, supply `Onlyname` here and their name in `familyName`. required: - dateOfBirth - familyName - givenName title: >- MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentity MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatientMedicare: type: object properties: memberNumber: type: string description: >- 10-digit Medicare card number. Must pass the Medicare check digit routine. The 10th digit must not be `0`. memberRefNumber: type: string description: >- Individual reference number (IRN) — the digit to the left of the patient's name on the card. Must be `1`–`9`. required: - memberNumber - memberRefNumber title: >- MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatientMedicare MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatient: type: object properties: identity: $ref: >- #/components/schemas/MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentity medicare: $ref: >- #/components/schemas/MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatientMedicare required: - identity - medicare title: >- MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatient MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatusStatus: type: object properties: code: type: integer text: type: string required: - code - text title: >- MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatusStatus MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatusCurrentMembership: type: object properties: memberNumber: type: string memberRefNumber: type: string description: >- Present when the patient's Medicare card details differ from what was submitted. title: >- MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatusCurrentMembership MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatusCurrentMember: type: object properties: givenName: type: string description: >- Present when the patient's name on Medicare differs from what was submitted. title: >- MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatusCurrentMember MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatus: type: object properties: status: $ref: >- #/components/schemas/MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatusStatus currentMembership: $ref: >- #/components/schemas/MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatusCurrentMembership description: >- Present when the patient's Medicare card details differ from what was submitted. currentMember: $ref: >- #/components/schemas/MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatusCurrentMember description: >- Present when the patient's name on Medicare differs from what was submitted. title: >- MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatus MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaConcessionStatusStatus: type: object properties: code: type: integer text: type: string required: - code - text title: >- MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaConcessionStatusStatus MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaConcessionStatus: type: object properties: status: $ref: >- #/components/schemas/MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaConcessionStatusStatus title: >- MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaConcessionStatus MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaServiceMessageItems: type: object properties: code: type: string severity: type: string reason: type: string title: >- MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaServiceMessageItems Concession_Concession Verification_Response_200: type: object properties: correlationId: type: string description: Unique identifier for this transaction. Use for tracing and support. medicareStatus: $ref: >- #/components/schemas/MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatus concessionStatus: $ref: >- #/components/schemas/MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaConcessionStatus highestSeverity: type: string description: Present on validation errors. Value is `Error`. serviceMessage: type: array items: $ref: >- #/components/schemas/MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaServiceMessageItems description: Present on validation errors. Each entry describes one failure. required: - correlationId title: Concession_Concession Verification_Response_200 PostMedicareConcessionverificationV1RequestBadRequestError: type: object properties: highestSeverity: type: string serviceMessage: type: array items: $ref: >- #/components/schemas/MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaServiceMessageItems correlationId: type: string required: - highestSeverity - serviceMessage - correlationId title: PostMedicareConcessionverificationV1RequestBadRequestError securitySchemes: apiKeyAuth: type: apiKey in: header name: x-api-key minorId: type: apiKey in: header name: x-minor-id ``` ## SDK Code Examples ```python Concession Eligible import requests url = "https://api.rebateright.com.au/Medicare/concessionverification/v1" payload = { "patient": { "identity": { "dateOfBirth": "1958-02-10", "familyName": "Leonard", "givenName": "Bobby" }, "medicare": { "memberNumber": "2293653285", "memberRefNumber": "1" } }, "dateOfService": "2026-04-09" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Concession Eligible const url = 'https://api.rebateright.com.au/Medicare/concessionverification/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"patient":{"identity":{"dateOfBirth":"1958-02-10","familyName":"Leonard","givenName":"Bobby"},"medicare":{"memberNumber":"2293653285","memberRefNumber":"1"}},"dateOfService":"2026-04-09"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Concession Eligible package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/concessionverification/v1" payload := strings.NewReader("{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-02-10\",\n \"familyName\": \"Leonard\",\n \"givenName\": \"Bobby\"\n },\n \"medicare\": {\n \"memberNumber\": \"2293653285\",\n \"memberRefNumber\": \"1\"\n }\n },\n \"dateOfService\": \"2026-04-09\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 Concession Eligible require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/concessionverification/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-02-10\",\n \"familyName\": \"Leonard\",\n \"givenName\": \"Bobby\"\n },\n \"medicare\": {\n \"memberNumber\": \"2293653285\",\n \"memberRefNumber\": \"1\"\n }\n },\n \"dateOfService\": \"2026-04-09\"\n}" response = http.request(request) puts response.read_body ``` ```java Concession Eligible import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/concessionverification/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-02-10\",\n \"familyName\": \"Leonard\",\n \"givenName\": \"Bobby\"\n },\n \"medicare\": {\n \"memberNumber\": \"2293653285\",\n \"memberRefNumber\": \"1\"\n }\n },\n \"dateOfService\": \"2026-04-09\"\n}") .asString(); ``` ```php Concession Eligible request('POST', 'https://api.rebateright.com.au/Medicare/concessionverification/v1', [ 'body' => '{ "patient": { "identity": { "dateOfBirth": "1958-02-10", "familyName": "Leonard", "givenName": "Bobby" }, "medicare": { "memberNumber": "2293653285", "memberRefNumber": "1" } }, "dateOfService": "2026-04-09" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp Concession Eligible using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/concessionverification/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1958-02-10\",\n \"familyName\": \"Leonard\",\n \"givenName\": \"Bobby\"\n },\n \"medicare\": {\n \"memberNumber\": \"2293653285\",\n \"memberRefNumber\": \"1\"\n }\n },\n \"dateOfService\": \"2026-04-09\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Concession Eligible import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "patient": [ "identity": [ "dateOfBirth": "1958-02-10", "familyName": "Leonard", "givenName": "Bobby" ], "medicare": [ "memberNumber": "2293653285", "memberRefNumber": "1" ] ], "dateOfService": "2026-04-09" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/concessionverification/v1")! 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 No Concession Entitlement import requests url = "https://api.rebateright.com.au/Medicare/concessionverification/v1" payload = { "patient": { "identity": { "dateOfBirth": "1960-01-01", "familyName": "Thompson", "givenName": "Terri" }, "medicare": { "memberNumber": "5500053244", "memberRefNumber": "1" } }, "dateOfService": "2026-04-09" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript No Concession Entitlement const url = 'https://api.rebateright.com.au/Medicare/concessionverification/v1'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"patient":{"identity":{"dateOfBirth":"1960-01-01","familyName":"Thompson","givenName":"Terri"},"medicare":{"memberNumber":"5500053244","memberRefNumber":"1"}},"dateOfService":"2026-04-09"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go No Concession Entitlement package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.rebateright.com.au/Medicare/concessionverification/v1" payload := strings.NewReader("{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1960-01-01\",\n \"familyName\": \"Thompson\",\n \"givenName\": \"Terri\"\n },\n \"medicare\": {\n \"memberNumber\": \"5500053244\",\n \"memberRefNumber\": \"1\"\n }\n },\n \"dateOfService\": \"2026-04-09\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") 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 No Concession Entitlement require 'uri' require 'net/http' url = URI("https://api.rebateright.com.au/Medicare/concessionverification/v1") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1960-01-01\",\n \"familyName\": \"Thompson\",\n \"givenName\": \"Terri\"\n },\n \"medicare\": {\n \"memberNumber\": \"5500053244\",\n \"memberRefNumber\": \"1\"\n }\n },\n \"dateOfService\": \"2026-04-09\"\n}" response = http.request(request) puts response.read_body ``` ```java No Concession Entitlement import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.rebateright.com.au/Medicare/concessionverification/v1") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1960-01-01\",\n \"familyName\": \"Thompson\",\n \"givenName\": \"Terri\"\n },\n \"medicare\": {\n \"memberNumber\": \"5500053244\",\n \"memberRefNumber\": \"1\"\n }\n },\n \"dateOfService\": \"2026-04-09\"\n}") .asString(); ``` ```php No Concession Entitlement request('POST', 'https://api.rebateright.com.au/Medicare/concessionverification/v1', [ 'body' => '{ "patient": { "identity": { "dateOfBirth": "1960-01-01", "familyName": "Thompson", "givenName": "Terri" }, "medicare": { "memberNumber": "5500053244", "memberRefNumber": "1" } }, "dateOfService": "2026-04-09" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp No Concession Entitlement using RestSharp; var client = new RestClient("https://api.rebateright.com.au/Medicare/concessionverification/v1"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"patient\": {\n \"identity\": {\n \"dateOfBirth\": \"1960-01-01\",\n \"familyName\": \"Thompson\",\n \"givenName\": \"Terri\"\n },\n \"medicare\": {\n \"memberNumber\": \"5500053244\",\n \"memberRefNumber\": \"1\"\n }\n },\n \"dateOfService\": \"2026-04-09\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift No Concession Entitlement import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = [ "patient": [ "identity": [ "dateOfBirth": "1960-01-01", "familyName": "Thompson", "givenName": "Terri" ], "medicare": [ "memberNumber": "5500053244", "memberRefNumber": "1" ] ], "dateOfService": "2026-04-09" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/concessionverification/v1")! 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() ``` *** title: Claiming subtitle: Lodge Medicare and DVA claims electronically with Services Australia slug: claiming --------------------- 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. The Claiming services allow health professionals and healthcare locations to submit **Medicare** and **DVA** medical claims electronically to Services Australia. RebateRight supports two **Medicare** claim flows (below) and **DVA** medical claiming for eligible veterans — see the **DVA claiming** card. The patient assigns their right to Medicare benefits to the health professional. The claim is lodged on their behalf, with payment going directly to the provider. The patient retains their right to Medicare benefits. The claim is lodged on their behalf, with Medicare benefit paid directly to the patient. Veteran verification, general / specialist / pathology medical claims, processing and payment reports, and the treatment service voucher (PDF). *** ## Common Concepts The two **Medicare** claim flows share the same building blocks: | Concept | Description | | --------------------------- | ------------------------------------------------------------------------------ | | **Voucher (Medical Event)** | A group of services provided to a patient on a given date | | **Service** | An individual MBS item claimed within a voucher | | **Referral** | Required for specialist and some diagnostic services | | **Request** | Required for pathology and diagnostic imaging services | | **Correlation ID** | Your unique identifier for the transaction — used for resubmission and tracing | **DVA claiming** follows a similar voucher-and-services model, but patients are identified with a **DVA file number** and related veteran fields. *** ## Before You Begin Claiming requires a **Minor ID** to be registered with Services Australia before you can submit claims. See the [Minor ID Setup](/minor-id) guide for instructions. Ensure you have completed: 1. Minor ID registration via the HW027 or HW052 form with Services Australia 2. Practitioners linked to the Minor ID (call Medicare eBusiness on **1800 700 199**) 3. EFT bank details registered with Services Australia for Bulk Bill payment *** ## Implementation Note It is a requirement by Services Australia that error messages are displayed to the end user exactly as supplied in the response — not truncated, transformed, or changed in any way. These messages may be updated at any time. *** title: Bulk Bill Claim subtitle: Lodge claims where the patient assigns their Medicare benefits to the provider slug: bulk-bill-claim --------------------- 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. A Bulk Bill claim is submitted when a patient assigns their right to Medicare benefits to the health professional who provided the service. Services Australia assesses the claim and pays the benefit directly to the provider via EFT. *** ## Claim Types RebateRight supports three Bulk Bill service types: Standard GP and general practitioner consultations. Specialist, Allied Health, and Diagnostic Imaging services. Pathology services subject to a pathology request. All vouchers in a single claim must use the same `serviceTypeCode`. You cannot mix General, Specialist, and Pathology services in one claim. *** ## Claim Structure Each Bulk Bill claim contains: * One **servicing provider** and one **payee provider** (where applicable — they cannot be the same) * Up to **80 Medical Events (Vouchers)** * A consistent `serviceTypeCode` across all vouchers Each **voucher** contains: * One **patient** * A **date of service** * Up to **14 services** (MBS items) * **Referral details** (where applicable) *** ## Mixed Referral and Request Services Specialists may submit claims with a mixture of services requiring both referral and request information in the same voucher. To do this, include referral details at the voucher level alongside the relevant service-level request details. This only applies to specialist services combining Referrals and Diagnostic Imaging Requests in the same voucher. Pathology Requests must be submitted separately. *** ## Validations | Rule | Limit | | -------------------------- | ----------------------------------------------------------------------------------------------------- | | Medical Events per claim | Maximum **80** | | Services per Medical Event | Maximum **14** | | Medical Event IDs | Must start at `01` and increment by one | | Service IDs | Must be unique within the claim | | Date of Service | Must not be more than **2 years** in the past | | Daily claim volume | More than **2,500 BBSW claims** from the same Payee Provider and Location ID per day will be rejected | *** ## EFT Payment Details Services Australia no longer issues cheques for Bulk Bill payments. Health professionals must register their bank details with Services Australia to receive payments via EFT. If a health professional practises at more than one location, bank details must be registered for each location separately. To register EFT details, refer health professionals to: [Claim Bulk Bill Payments — Services Australia](https://www.servicesaustralia.gov.au/claim-medicare-bulk-bill-payments) *** ## Resubmitting Rejected Claims If a claim is rejected, you can resubmit it after correcting the errors. Key rules: * Use the **same `correlationId`** to resubmit a corrected version of the same claim * Use a **new `correlationId`** if you are submitting a different claim * Review the error messages in the response — they must be displayed to the end user exactly as returned, without modification It is a requirement by Services Australia that error messages are displayed to the end user exactly as supplied in the response — not truncated, transformed, or changed in any way. *** title: Interactive patient claims subtitle: Lodge claims where the patient retains their Medicare benefits slug: patient-claim-interactive --------------------- 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. An **interactive patient claim** is submitted when a patient has received professional medical services and has **not** assigned their right to Medicare benefits to the health professional. The healthcare location lodges the claim on behalf of the patient or claimant, and Medicare pays the benefit directly to the patient. *** ## Validations | Rule | Limit | | -------------------------- | -------------------- | | Medical Events per claim | Maximum **16** | | Services per Medical Event | Maximum **14** | | Services per claim | Maximum **16** total | *** ## Pendable Claims Some interactive patient claim submissions require further assessment by a Services Australia operator. These are returned with a claim status of `MEDICARE_PENDABLE`. Your system receives a response indicating the claim requires operator review. Display the pendable status to the end user. Services Australia recommends designing your software to streamline this — for example, a checkbox or accept button. Resend the claim using the **same `correlationId`** within **one hour** of the original submission to request that the claim be pended. Once pended, a lodgement advice is printed and issued to the claimant. If you resend the claim using a **different `correlationId`**, it is treated as a new patient claim — not a resubmission of the pending claim. *** ## Mixed Referral and Request Services Specialists may submit claims with a mixture of services requiring both referral and request information in the same voucher. Include referral details at the voucher level alongside the relevant service-level request details. This only applies to specialist services combining Referrals and Diagnostic Imaging Requests in the same voucher. Pathology Requests must be submitted separately. *** ## Printed Statements Services Australia advises that using the most up-to-date statements, declarations, and privacy notes in your software is a **legislative requirement**. When an interactive patient claim is lodged, the location must issue the claimant with a printed statement. Which one depends on the claim outcome: Issued when the claim is processed in real-time and Services Australia returns a benefit amount. [Download template PDF](https://app.rebateright.com.au/docs/statement-of-claim-benefit-payment.pdf) Issued when the claim is referred to a Services Australia operator for further assessment (pendable). [Download template PDF](https://app.rebateright.com.au/docs/lodgement-advice.pdf) The location must produce a printed copy for the claimant's record, and may keep its own copy in electronic or hard copy form. ### Override Indicator Requirements If any of these override indicators are used in a claim, the printed statement must display additional information: | Field | Printed form requirement | | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------- | | `duplicateServiceOverrideInd` | Indicator value plus text explaining the reason | | `multipleProcedureOverrideInd` | Indicator value plus text explaining the reason. If set to `Y` (Not Multiple), `serviceText` providing the reason is required | | `restrictiveOverrideCode` | Indicator value | Any relevant supporting material or text must also appear on the printed statement. *** ## Pathology Request Form For pathology patient claims, the combined request form must include all of the following. ### Requesting Practitioner * Surname and initials * Address * Provider number * Date of request ### Patient Details * Name (surname, first name) * Address * Date of birth * Sex * Medicare card number and Individual Reference Number * Hospital status ### Required Sections * **Tests Requested** — a titled area is required. Terms such as *order*, *require*, or *referred* must not be used. * **Self Determine (SD)** — a tick box is required (used when the APP determines that pathologist-determinable tests are necessary). ### Privacy Notice The following wording must appear on the patient's copy of the form: **Privacy Notice:** Your personal information is protected by law, including the *Privacy Act 1988*, and is collected by Services Australia for the assessment and administration of payments and services. This information is required to process your application or claim. The notice may sit in the clinical notes area or on the back of the patient copy if more practical. ### Combined Online Patient Claiming Authority The form must include patient authorisation for the APP/APA to submit an electronic claim on the patient's behalf. Example wording: > *I authorise the approved pathology practitioner who will render the requested pathology services, and any further pathology services which the practitioner determines to be necessary, to submit my unpaid account to Services Australia, so that Services Australia can assess my claim and issue me a cheque made payable to the practitioner, for the Medicare benefit.* Patient Signature: \_\_\_\_\_ Date: \_\_\_\_\_ / \_\_\_\_\_ / \_\_\_\_\_ If the patient cannot sign: > *Verbal consent was provided by patient to submit unpaid account to Services Australia. No signature available.* A **Practitioner's Use Only** text box is also required for cases where the patient is unable to sign and an appropriate person endorses on their behalf. *** ## Implementation Note Services Australia requires that error messages are displayed to the end user exactly as supplied in the response — not truncated, transformed, or changed in any way. *** title: Minor ID Setup subtitle: Do you need to set up a Minor ID? Find out below. slug: minor-id --------------------- 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. ## Do I need to do anything? It depends on which RebateRight services you use: **No action required.** RebateRight handles all Minor ID registration and setup on your behalf. You can start integrating straight away. **Action required.** You need to notify Services Australia of your Minor ID by following the setup steps below before you can use these services. *** ## What is a Minor ID? A **Minor ID** (also known as a Location ID or Software Site ID) is a unique identifier issued to your organisation by RebateRight. Services Australia uses it to accurately identify where each request originates. Each **physical location** of your business requires its own Minor ID. When you open a new site, you must request a new Minor ID from RebateRight before submitting claims for that location. *** ## Setup Steps Only follow these steps if you are using **Claiming** or **AIR** endpoints. For Patient Verification and Eligibility Check, RebateRight takes care of this for you. RebateRight will issue and provide your organisation with its unique Minor ID(s). Contact the RebateRight team at [support@rebateright.com.au](mailto:support@rebateright.com.au) to request yours. Download and complete the [HW027 form](https://www.servicesaustralia.gov.au/hw027) from Services Australia. This form allows Services Australia to associate your organisation with the provided Minor ID(s). * The HW027 form only needs to be completed **once per organisation**, not per practitioner. * Alternatively, use the [HW052 form](https://www.servicesaustralia.gov.au/hw052) to register up to six practitioners at the same time. Follow the submission instructions included in the form. Once Services Australia approves the form, your organisation will be able to use Claiming and AIR services through RebateRight. For every practitioner who will be claiming: 1. They must log in to PRODA and confirm their bank account details match your organisation's bank account details. 2. Then call **Medicare eBusiness on 1800 700 199** and request that the Minor ID be linked to their provider number. Alternatively, a representative from your organisation may call Medicare to link all provider numbers to the Minor ID/s. The practitioner's bank details in PRODA must match the organisation's bank details. If they don't match, that practitioner will be required to submit their own HW027 form. *** title: Architecture subtitle: How your application interacts with RebateRight and external services slug: architecture --------------------- 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. ## High-level Overview The diagram below provides a simplified, high-level overview of how your application interacts with RebateRight. High Level Overview Your request includes the Location Minor ID, Patient Details, MBS Item Numbers, and Provider Numbers — everything needed to determine the patient's eligibility for a Medicare Rebate. RebateRight works behind the scenes with PRODA, Medicare, the Provider Directory, and the MBS Item Catalogue to determine eligibility and calculate applicable rebates. Your API Key is included in the request header. The response indicates the rebate amount Medicare will pay for each of the requested MBS items. *** ## RebateRight External Interactions A more detailed view of RebateRight's interactions with external systems and services. External Interactions RebateRight has a growing set of internal rules to assess patient eligibility, including checks for age, referrer specialty, and in-hospital or out-of-hospital restrictions. These rules serve as the first layer of eligibility checks before any external validation is performed. PRODA is the authentication mechanism that enables secure communication between RebateRight and Medicare. Our organisation and B2B device are registered in PRODA. Operations such as Activate Device, Refresh Token, and Get Authentication Token take place with PRODA. RebateRight securely connects to Medicare for Patient Demographic Verification, Eligibility Checks, and Claiming. All Medicare reason codes are automatically updated within RebateRight — no manual action required. RebateRight automatically connects to a nationwide provider directory to retrieve the latest information on all registered healthcare providers. Provider data is imported automatically — no manual updates or user actions required. RebateRight has access to the complete list of \~6,000 MBS items, including descriptions, rebate values, and usage rules. Always up to date with the latest MBS releases — no manual updates required. *** title: Security & Governance subtitle: How RebateRight protects your data and ensures compliance with Australian healthcare regulations slug: governance --------------------- 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. Patient data is never stored. Every request is processed in real time and immediately discarded. Your data never leaves Australia. All infrastructure runs within Microsoft Azure's Australia East region. RebateRight never stores, accesses, or manages your API credentials. *** ## Zero Data Persistence Architecture **Real-time processing only** — Patient data flows through our system without ever being stored. Each request is processed immediately and discarded, ensuring no sensitive information remains in our infrastructure. **Stateless serverless design** — Every request is handled independently with no session persistence. Once your request is complete, no trace of the transaction remains in our systems. *** ## Australian Data Sovereignty & Compliance **Complete geographic containment** — Your data never crosses Australian borders. Our entire infrastructure operates within Microsoft Azure's Australia East region, ensuring data sovereignty from ingestion to response. **Government-grade security** — Microsoft Azure has completed an IRAP (Information Security Registered Assessors Program) assessment for Australian government data processing, supporting workloads up to and including the PROTECTED classification level in Australian regions. **Enterprise compliance framework** — Azure provides compliance with ISO 27001, SOC 2, HIPAA, GDPR, and numerous other global security standards. For more information on Microsoft Azure's compliance certifications, see [Microsoft Azure Compliance](https://learn.microsoft.com/en-us/azure/compliance/). *** ## Your Keys, Your Control **Client-managed authentication** — RebateRight never stores, accesses, or manages your API credentials. You maintain complete control over your authentication tokens. *** ## Enterprise-Grade Infrastructure **Azure reliability** — Leveraging Microsoft Azure's enterprise infrastructure ensures high availability, automatic scaling during peak periods, and built-in redundancy across multiple availability zones. **Security by design** — Every component follows security best practices including: * TLS 1.2/1.3 encrypted transit * Minimal attack surface * Secure development lifecycle with vulnerability scanning * Continuous monitoring for threats **Government-standard integration** — Communications with Services Australia, including Medicare, use PRODA (Provider Digital Access) — Services Australia's secure authentication mechanism. *** ## Usage Data We Store To keep billing accurate and provide you with usage insights, RebateRight stores a minimal set of operational metadata about requests. This metadata **never includes personally identifiable information (PII)**, patient details, or provider information. It is retained solely for billing and reporting purposes. Examples of metadata stored: * Total number of times RebateRight endpoints were used * Which API endpoints were called * Which MBS item numbers were requested * The outcome of the operation (e.g., eligible or not eligible) *** title: PRODA subtitle: Provider Digital Access — how RebateRight authenticates with Medicare and government services slug: proda --------------------- 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. This section is provided for your information only — **no action is required from you regarding PRODA**. RebateRight manages all required setup and maintenance internally, including generating and registering Minor IDs, managing and activating the PRODA device, refreshing keys, and related configuration. ## What is PRODA? **Provider Digital Access (PRODA)** is the authentication mechanism that enables secure communication between RebateRight and Medicare. It allows RebateRight to access Medicare, AIR, and other government services securely. Our organisation and B2B device are registered in the PRODA environment, which lays the foundation for authentication. ## How It Works For each request sent to Medicare or AIR, RebateRight requires an authentication token from PRODA. These tokens are: * **Cached and reused** for approximately one hour * **Refreshed automatically** when they expire — no manual intervention required ## More Information For more information about PRODA, visit the Services Australia website: [servicesaustralia.gov.au/proda](https://www.servicesaustralia.gov.au/proda-provider-digital-access) *** title: AIR Integration subtitle: Australian Immunisation Register — overview of RebateRight's AIR integration slug: air --------------------- 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. ## What is the AIR? The **Australian Immunisation Register (AIR)** is a national register that records all vaccinations given to individuals of all ages living in Australia. This includes people who are non-eligible for Medicare — such as newborns, newly arrived immigrants, and student visa holders. ## RebateRight & AIR RebateRight integrates with the AIR to support secure, compliant, and streamlined healthcare transactions. If you use AIR through RebateRight, you will need to notify Services Australia of your assigned Minor ID. See the [Minor ID](/minor-id) page for setup steps. *** title: Integration test data subtitle: Patients, cards, and providers for the test environment — copy into your requests slug: test-data --------------------- 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. Use these rows only in the **RebateRight test environment**, not in production. **Synthetic test patient and provider data** prepared for your use — reuse it in examples, but do not mix it with real patient data. *** ## Medicare Medicare card numbers, patients, and provider numbers for bulk bill, patient claims, eligibility, and related calls in the test environment. ### Singles | Card Number | IRN | Last Name | First Name | DOB | Sex | Address | Locality | State | Postcode | | ----------- | --- | --------- | ---------- | ---------- | --- | ----------------- | ---------------- | ----- | -------- | | 2954536421 | 1 | NASH | Hazel | 14/08/1993 | F | 78 Princess Ct | Soldiers Point | NSW | 2317 | | 2954536511 | 1 | FULLER | Maurice | 05/01/1990 | M | 2 Gottfried Hts | Lynwood | NSW | 2477 | | 4951648811 | 1 | ALDRIDGE | Eli | 08/02/1960 | M | 136 Centenary Cnr | Richanna Heights | QLD | 4740 | | 2954536601 | 1 | MURPHY | Denise | 28/12/1989 | F | 88 Barn Ave | Sackville | NSW | 2756 | ### Family (FLETCHER) | Card Number | IRN | Last Name | First Name | DOB | Sex | Address | Locality | State | Postcode | | ----------- | --- | --------- | ---------- | ---------- | --- | ------------- | ------------ | ----- | -------- | | 4951525561 | 1 | FLETCHER | Ricky | 28/02/1982 | M | 153 Farmer Dr | Everton Park | QLD | 4053 | | 4951525561 | 2 | FLETCHER | Edmond | 18/12/1986 | M | 153 Farmer Dr | Everton Park | QLD | 4053 | | 4951525561 | 3 | FLETCHER | Clint | 08/02/2009 | M | 153 Farmer Dr | Everton Park | QLD | 4053 | | 4951525561 | 4 | FLETCHER | Cortez | 15/05/2016 | M | 153 Farmer Dr | Everton Park | QLD | 4053 | ### Providers for claiming **GP, specialist, diagnostic imaging, radiation oncology** | Provider Number | Last Name | First Name | | --------------- | --------- | ---------- | | 2447781L | HUNTER | GWENDA | | 2447791K | DYER | KELLY | * LSPN Number (Diagnostic Imaging): `14` * SCP Number (Pathology): `00001` * Equipment Number (Radiation Oncology): `00901` **Pathology** | Provider Number | Last Name | First Name | | --------------- | --------- | ---------- | | 2446081F | GALLOWAY | GENEVIEVE | | 2446091B | LAMBERT | CLIVE | **Referral or request only (not for lodging claims)** | Type | Provider Number | Name | | ---------- | --------------- | ----------------- | | General | 2054781W | Dr Brenda Reed | | Specialist | 2121331W | Dr Vivian Mortier | ### Medicare — alternate enrolment scenarios | Scenario | Card | IRN | Last Name | First Name | DOB | Sex | Locality | State | Postcode | | ---------------------- | ---------- | --- | ------------------- | ---------------- | ---------- | --- | ---------- | ----- | -------- | | Only name | 2297460337 | 1 | Devo | Onlyname | 01/01/1980 | M | Sydney | NSW | 2000 | | Long first name | 2298039875 | 1 | Jones | Marrianna-Louise | 19/05/1967 | F | Gowrie | ACT | 2904 | | Long family name | 3950921522 | 1 | Weatherby-Wilkinson | Harriett-Jane | 12/03/1992 | F | Southbank | VIC | 3006 | | RHCA | 2297582345 | 1 | Xpatriot | English | 15/09/1975 | M | Sydney | NSW | 2000 | | Expired RHCA | 2297402205 | 1 | Forigner | French | 16/05/1980 | F | Deakin | ACT | 2600 | | Lost card | 5500393925 | 1 | Boyes | Simon | 23/05/1980 | M | Nailsworth | SA | 5083 | | Transferred (old card) | 6951393261 | 3 | Harris | Sam | 12/09/2000 | F | Eden Hill | WA | 6054 | | Deceased (30/06/2024) | 2296510128 | 4 | Jones | Sad | 15/09/1964 | M | Fadden | ACT | 2904 | | Unknown on Medicare | 2398125261 | 1 | Doe | John | 13/09/1979 | M | Sydney | NSW | 2000 | | Old issue number | 2298264833 | 1 | Watts | Gregory | 12/05/1970 | M | Wanniassa | ACT | 2903 | | Safety net patient | 2295919746 | 1 | Davis | Eva | 02/05/1979 | F | Macquarie | ACT | 2614 | | Over 70 years | 2951386025 | 1 | Smith | Henry | 17/06/1940 | M | Dubbo | NSW | 2830 | | Over 7 years | 2951386025 | 2 | Smith | Lyndall | 20/09/2012 | F | Dubbo | NSW | 2830 | | Under 7 years | 2951386025 | 6 | Stevens | Reggie | 26/08/2019 | M | Dubbo | NSW | 2830 | ### Hospital, fund, and billing IDs Use with inpatient, in-hospital, or overseas-related test flows. | | | | ---------------------------- | ------------------------------------ | | **Fund Brand ID** | `TST` | | **Facility ID** | `9988770W` | | **Billing Agent ID** | `3530971X` (SIMPBILL) | | **BSB Codes** | `062-902`, `801-003` | | Patient fund memberNumber | 1-19 alphanumeric (any valid format) | | Patient fund memberRefNumber | 1-2 numeric (any valid format) | *** ## DVA Department of Veterans’ Affairs cardholders and special cases for the test environment. ### Veterans (card type PT) | Veteran File No. | Last Name | First Name | DOB | Sex | Address | Locality | State | Postcode | | ---------------- | --------- | ---------- | ---------- | --- | ------------- | ----------- | ----- | -------- | | NX901667 | IAN | JANET | 27/09/1958 | F | 63 DANUTA ST | YARRALUMLA | ACT | 2600 | | NX901668 | VICKI | BRUCE | 21/04/1964 | M | 91 HELMUT GR | GLADESVILLE | NSW | 2111 | | NX901669 | ESME | RODERICK | 10/01/1965 | M | 95 GAE PL | OATLANDS | NSW | 2117 | | NX901670 | VINCE | SEPPO | 03/02/1964 | M | 93 FRANCIS CR | WEST RYDE | NSW | 2114 | ### DVA — alternate enrolment scenarios | Scenario | File No. | Last Name | First Name | DOB | Sex | Locality | State | Postcode | | --------- | --------- | -------------------- | ------------ | ---------- | --- | ------------ | ----- | -------- | | Long name | N 026027K | Clarksonnnnnnnnnnnnn | Peterrrrrrrr | 07/12/1935 | M | Parramatta | NSW | 2124 | | Only name | NX000098A | Brown | Onlyname | 16/10/1916 | F | Erskineville | NSW | 2043 | *** ## Concession Patients with common concession or entitlement combinations used in tests. | Type | Card | IRN | Last Name | First Name | DOB | Entitlement # | | ---- | ---------- | --- | --------- | ---------- | ---------- | ------------- | | CLK | 2293653285 | 1 | Leonard | Bobby | 10/02/1958 | 100015482A | | DVA | 5500053244 | 1 | Thompson | Terri | 01/01/1960 | NX840351 | *** ## AIR (Australian Immunisation Register) IHI numbers, Medicare linkage, providers, and organisation IDs for AIR-related calls in the test environment. ### Families (shared Medicare card) | IHI Number | Card | IRN | Last Name | First Name | DOB | Sex | Locality | State | Postcode | | ---------------- | ---------- | --- | --------- | ---------- | ---------- | --- | ----------- | ----- | -------- | | 8003608500312418 | 4951633381 | 1 | HARDIE | Melody | 19/08/1959 | F | Susan River | QLD | 4655 | | 8003608666974126 | 4951633381 | 2 | HARDIE | Ulysses | 03/03/2005 | M | Susan River | QLD | 4655 | | 8003608333644508 | 4951633381 | 3 | HARDIE | Elizabeth | 27/12/2008 | F | Susan River | QLD | 4655 | | 8003608500312426 | 4951633381 | 4 | HARDIE | Vicki | 24/11/2010 | F | Susan River | QLD | 4655 | | 8003608166978031 | 4951633381 | 5 | HARDIE | Bertram | 24/02/2011 | M | Susan River | QLD | 4655 | | 8003608666974126 | 4951633381 | 6 | HARDIE | Tyson | 18/04/2016 | M | Susan River | QLD | 4655 | | 8003608333644508 | 4951633381 | 7 | HARDIE | Juliana | 26/06/2019 | F | Susan River | QLD | 4655 | ### AIR — alternate enrolment scenarios | Scenario | IHI | Card | IRN | Last Name | First Name | DOB | Sex | Locality | State | Postcode | | -------------------- | ---------------- | ---------- | --- | --------- | ---------- | ---------- | --- | -------------- | ----- | -------- | | End date limited | 8003608666929120 | 4951405041 | 2 | Hicks | Minnie | 12/11/2016 | F | Wellers Hill | QLD | 4121 | | End date all | 8003608000265017 | 6951624611 | 2 | Stenson | Jerico | 11/11/2018 | M | Balcatta | WA | 6021 | | End date none | 8003608333600336 | 6951628321 | 2 | Allan | Grace | 23/01/2017 | F | South Hobart | TAS | 7004 | | Authorised release | 8003608666929138 | 3951149821 | 1 | Hayes | Gwen | 12/08/1992 | F | Lara | VIC | 3212 | | Immunisation history | 8003608000265033 | 2953701051 | 2 | Edwards | Koby | 17/04/2012 | M | Merrylands | NSW | 2160 | | Indigenous indicator | 8003608666929807 | 3951152401 | 2 | Jenkins | Clarissa | 15/10/2015 | F | Doncaster East | VIC | 3109 | | No history | 8003608333411106 | 2951214792 | 1 | Wilson | Peter | 19/02/1979 | M | Inverell | NSW | 2360 | ### Vaccination providers | Provider Number | Name | | --------------- | ------------------------ | | T39126X | FELICA HEALTH SERVICES65 | | N24523B | JAMES PRACTITIONERS42 | ### School IDs `40001`, `41000`, `43350` ### Organisation identifiers (HPIO / HPII) | | | | -------- | ---------------- | | **HPIO** | 8003623233370062 | | **HPII** | 8003611566712356 | *** title: Troubleshooting subtitle: Common errors and how to resolve them slug: troubleshooting --------------------- 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. This indicates that a valid **API Key** was not provided in your request. **Resolution** Refer to the Authentication section for details on how to include your API key correctly. Ensure your `x-api-key` header is present and valid in every request. A required field is missing from your request. The `reason` field in the response provides exact details about the missing field name enclosed in single quotes. **Example:** `"Reason": "The 'PrincipalProviderNumber' field is not provided."` **Resolution** Include the missing field in your request and try again. Both referral details (such as referring provider number) and a referral override code (e.g. `N – Not required`) were included in the same request. Medicare only allows one. **Resolution** Include **either** referral details **or** a referral override code — not both. The combination of `ReferralTypeCode` and `ServiceTypeCode` does not meet Medicare's validation rules. **Resolution** | ReferralTypeCode | Required ServiceTypeCode | | ---------------- | ------------------------ | | `S` or `D` | `S` (Specialist) | | `P` | `P` (Pathology) | Confirm both values exactly match one of the valid MBS combinations. The Referral Issue Date is invalid — it may be in the future, after the service date, or before the patient's date of birth. **Resolution** Ensure the referral issue date: * Is **not in the future** * Is **on or before** the service date * Is **after** the patient's date of birth The provider number does not follow the required Medicare format. **Resolution** Provider numbers must be **8 characters** in the format: `6-digit stem + 1 location character + 1 check digit` Example: `123456A7` The referring provider number matches the servicing provider number. Medicare requires different provider stems for each. **Resolution** Use a referring provider number with a **different 6-digit stem** from the servicing provider's number. A hospital-related referral override code (`H`) was provided, but required hospital fields were not included. **Resolution** If `ReferralOverrideCode` is `H`: * Set `HospitalIndicator` to `Y` * Provide a valid `FacilityID` The Service Date is in the future or outside Medicare's permitted timeframe. **Resolution** Ensure the service date: * Is **not in the future** * Is **within 2 years** of the transmission date The Medicare card number or IRN (Individual Reference Number) is invalid. **Resolution** * Medicare card number must be **10 digits** with a valid check digit * The **10th digit must not be 0** * The **IRN** must be a single digit from **1 to 9** (not 0) A Collection or Accession timestamp was provided without its corresponding value. **Resolution** If either `CollectionDateTime` or `AccessionDateTime` is provided, both must be included. * Both must use valid Australian time zones * Order must be: **Collection ≤ Accession ≤ ServiceDate** Medicare rejected the transaction due to missing or invalid dependent fields, or incomplete data required for claim validation. **Resolution** Review the `reason` or `errorDescription` field in the response for specific details. An interactive patient claim contains more than 16 Medical Events. **Resolution** * Limit each claim to **16 Medical Events** * Split additional events into separate claims A Medical Event contains more than 14 services. **Resolution** * Limit each Medical Event to **14 services** * Split additional services into separate Medical Events The claim contains more than 16 services overall. **Resolution** * Limit the claim to **16 services total** * Split additional services into separate claims One or more Medical Event IDs are duplicated or not in the correct sequence (01–16). **Resolution** * Ensure Medical Event IDs are **unique** * IDs must **start at 01** and **increment by one** sequentially A Service ID is repeated within the same claim. **Resolution** Ensure all Service IDs are **unique within the claim**. The Account Paid Indicator is not `Y` or `N`, or is inconsistent with EFT details. **Resolution** * Must be `Y` (paid) or `N` (not paid) * If EFT details are supplied, set `AccountPaidIndicator = Y` The Account Reference ID contains invalid characters or is the wrong length. **Resolution** * Must be **1–9 characters** * Allowed characters: `0-9, A-Z, a-z, @ # $ % + = : ; , . -` * No leading or trailing spaces Referral `PeriodCode`, `Period`, or `TypeCode` is missing or inconsistent. **Resolution** | Field | Valid values | | ---------------------------- | --------------------------------------------------- | | TypeCode | `S` (Specialist), `P` (Pathology), `D` (Diagnostic) | | Period/PeriodCode | Only set if TypeCode = `S` | | Non-standard referrals (`N`) | Must supply Period 1–98 (not 0, 00, or 99) | The claim cannot be submitted digitally because `SubmissionAuthorityInd` is missing or invalid. **Resolution** Set `SubmissionAuthorityInd = Y` to indicate the claimant authorised digital submission. *** Still stuck? Reach out to the RebateRight team at [support@rebateright.com.au](mailto:support@rebateright.com.au) — we're happy to help.