***
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", "