# Concession Verification

POST https://Medicare/concessionverification/v1
Content-Type: application/json

## Concession Verification

Verifies whether a Medicare patient is eligible for a concession based on their identity and Medicare details.

This endpoint submits patient demographic and Medicare information to the Medicare Concession Verification service and returns both a Medicare identity match status and a concession eligibility status.

---

### Request

**Method:** `POST`  
**URL:** `{{hostURL}}/Medicare/concessionverification/v1`

#### Request Body

| Field | Type | Description |
| --- | --- | --- |
| `dateOfService` | string (date) | The date the service is being provided (ISO 8601 format). |
| `patient.identity.dateOfBirth` | string (date) | Patient's date of birth (ISO 8601 format). |
| `patient.identity.familyName` | string | Patient's family (last) name. |
| `patient.identity.givenName` | string | Patient's given (first) name. |
| `patient.identity.sex` | string | Patient's sex code (e.g. `"1"` for male). |
| `patient.medicare.memberNumber` | string | Patient's Medicare card number. |
| `patient.medicare.memberRefNumber` | string | Patient's Medicare card reference (line) number. |

---

### Response

| Field | Description |
| --- | --- |
| `medicareStatus.status.code` | Medicare verification status code. Code `8017` indicates an accepted match with minor discrepancies. |
| `medicareStatus.status.text` | Human-readable description of the Medicare verification result. |
| `medicareStatus.currentMember.givenName` | The given name on record with Medicare (may differ from submitted name). |
| `concessionStatus.status.code` | Concession eligibility code. `0` indicates the patient is eligible for concession. |
| `concessionStatus.status.text` | Human-readable description of the concession eligibility result. |
| `correlationId` | A unique identifier for this transaction, useful for tracing and support. |

---

Reference: https://developers.rebateright.com.au/rebate-right/advanced/v-4/concession-verification

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /Medicare/concessionverification/v1:
    post:
      operationId: concession-verification
      summary: Concession Verification
      description: >-
        ## Concession Verification


        Verifies whether a Medicare patient is eligible for a concession based
        on their identity and Medicare details.


        This endpoint submits patient demographic and Medicare information to
        the Medicare Concession Verification service and returns both a Medicare
        identity match status and a concession eligibility status.


        ---


        ### Request


        **Method:** `POST`  

        **URL:** `{{hostURL}}/Medicare/concessionverification/v1`


        #### Request Body


        | Field | Type | Description |

        | --- | --- | --- |

        | `dateOfService` | string (date) | The date the service is being
        provided (ISO 8601 format). |

        | `patient.identity.dateOfBirth` | string (date) | Patient's date of
        birth (ISO 8601 format). |

        | `patient.identity.familyName` | string | Patient's family (last) name.
        |

        | `patient.identity.givenName` | string | Patient's given (first) name.
        |

        | `patient.identity.sex` | string | Patient's sex code (e.g. `"1"` for
        male). |

        | `patient.medicare.memberNumber` | string | Patient's Medicare card
        number. |

        | `patient.medicare.memberRefNumber` | string | Patient's Medicare card
        reference (line) number. |


        ---


        ### Response


        | Field | Description |

        | --- | --- |

        | `medicareStatus.status.code` | Medicare verification status code. Code
        `8017` indicates an accepted match with minor discrepancies. |

        | `medicareStatus.status.text` | Human-readable description of the
        Medicare verification result. |

        | `medicareStatus.currentMember.givenName` | The given name on record
        with Medicare (may differ from submitted name). |

        | `concessionStatus.status.code` | Concession eligibility code. `0`
        indicates the patient is eligible for concession. |

        | `concessionStatus.status.text` | Human-readable description of the
        concession eligibility result. |

        | `correlationId` | A unique identifier for this transaction, useful for
        tracing and support. |


        ---
      tags:
        - subpackage_advanced.subpackage_advanced/v4
      parameters:
        - name: x-api-key
          in: header
          required: true
          schema:
            type: string
        - name: x-minor-id
          in: header
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Advanced_V4_Concession
                  Verification_Response_200
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                patient:
                  $ref: >-
                    #/components/schemas/MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatient
                dateOfService:
                  type: string
                  format: date
              required:
                - patient
                - dateOfService
servers:
  - url: https:/
components:
  schemas:
    MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentity:
      type: object
      properties:
        sex:
          type: string
        givenName:
          type: string
        familyName:
          type: string
        dateOfBirth:
          type: string
          format: date
      required:
        - sex
        - givenName
        - familyName
        - dateOfBirth
      title: >-
        MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentity
    MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatientMedicare:
      type: object
      properties:
        memberNumber:
          type: string
        memberRefNumber:
          type: string
      required:
        - memberNumber
        - memberRefNumber
      title: >-
        MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatientMedicare
    MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatient:
      type: object
      properties:
        identity:
          $ref: >-
            #/components/schemas/MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentity
        medicare:
          $ref: >-
            #/components/schemas/MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatientMedicare
      required:
        - identity
        - medicare
      title: >-
        MedicareConcessionverificationV1PostRequestBodyContentApplicationJsonSchemaPatient
    MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatusStatus:
      type: object
      properties:
        code:
          type: integer
        text:
          type: string
      required:
        - code
        - text
      title: >-
        MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatusStatus
    MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatus:
      type: object
      properties:
        status:
          $ref: >-
            #/components/schemas/MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatusStatus
      required:
        - status
      title: >-
        MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatus
    MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaConcessionStatusStatus:
      type: object
      properties:
        code:
          type: integer
        text:
          type: string
      required:
        - code
        - text
      title: >-
        MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaConcessionStatusStatus
    MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaConcessionStatus:
      type: object
      properties:
        status:
          $ref: >-
            #/components/schemas/MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaConcessionStatusStatus
      required:
        - status
      title: >-
        MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaConcessionStatus
    Advanced_V4_Concession Verification_Response_200:
      type: object
      properties:
        correlationId:
          type: string
        medicareStatus:
          $ref: >-
            #/components/schemas/MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaMedicareStatus
        concessionStatus:
          $ref: >-
            #/components/schemas/MedicareConcessionverificationV1PostResponsesContentApplicationJsonSchemaConcessionStatus
      required:
        - correlationId
        - medicareStatus
        - concessionStatus
      title: Advanced_V4_Concession Verification_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

```

## SDK Code Examples

```python 8.1.1
import requests

url = "https://https/Medicare/concessionverification/v1"

headers = {
    "x-minor-id": "{{MinorId}}",
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript 8.1.1
const url = 'https://https/Medicare/concessionverification/v1';
const options = {
  method: 'POST',
  headers: {
    'x-minor-id': '{{MinorId}}',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: undefined
};

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

```go 8.1.1
package main

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

func main() {

	url := "https://https/Medicare/concessionverification/v1"

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

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

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

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

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

}
```

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

url = URI("https://https/Medicare/concessionverification/v1")

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

request = Net::HTTP::Post.new(url)
request["x-minor-id"] = '{{MinorId}}'
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'

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

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

HttpResponse<String> response = Unirest.post("https://https/Medicare/concessionverification/v1")
  .header("x-minor-id", "{{MinorId}}")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/Medicare/concessionverification/v1', [
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
    'x-minor-id' => '{{MinorId}}',
  ],
]);

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

```csharp 8.1.1
using RestSharp;

var client = new RestClient("https://https/Medicare/concessionverification/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-minor-id", "{{MinorId}}");
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift 8.1.1
import Foundation

let headers = [
  "x-minor-id": "{{MinorId}}",
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://https/Medicare/concessionverification/v1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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 8.1.2
import requests

url = "https://https/Medicare/concessionverification/v1"

headers = {
    "x-minor-id": "{{MinorId}}",
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript 8.1.2
const url = 'https://https/Medicare/concessionverification/v1';
const options = {
  method: 'POST',
  headers: {
    'x-minor-id': '{{MinorId}}',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: undefined
};

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

```go 8.1.2
package main

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

func main() {

	url := "https://https/Medicare/concessionverification/v1"

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

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

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

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

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

}
```

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

url = URI("https://https/Medicare/concessionverification/v1")

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

request = Net::HTTP::Post.new(url)
request["x-minor-id"] = '{{MinorId}}'
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'

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

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

HttpResponse<String> response = Unirest.post("https://https/Medicare/concessionverification/v1")
  .header("x-minor-id", "{{MinorId}}")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/Medicare/concessionverification/v1', [
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
    'x-minor-id' => '{{MinorId}}',
  ],
]);

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

```csharp 8.1.2
using RestSharp;

var client = new RestClient("https://https/Medicare/concessionverification/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-minor-id", "{{MinorId}}");
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift 8.1.2
import Foundation

let headers = [
  "x-minor-id": "{{MinorId}}",
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://https/Medicare/concessionverification/v1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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 8.2.1
import requests

url = "https://https/Medicare/concessionverification/v1"

headers = {
    "x-minor-id": "{{MinorId}}",
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript 8.2.1
const url = 'https://https/Medicare/concessionverification/v1';
const options = {
  method: 'POST',
  headers: {
    'x-minor-id': '{{MinorId}}',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: undefined
};

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

```go 8.2.1
package main

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

func main() {

	url := "https://https/Medicare/concessionverification/v1"

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

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

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

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

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

}
```

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

url = URI("https://https/Medicare/concessionverification/v1")

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

request = Net::HTTP::Post.new(url)
request["x-minor-id"] = '{{MinorId}}'
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'

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

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

HttpResponse<String> response = Unirest.post("https://https/Medicare/concessionverification/v1")
  .header("x-minor-id", "{{MinorId}}")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/Medicare/concessionverification/v1', [
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
    'x-minor-id' => '{{MinorId}}',
  ],
]);

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

```csharp 8.2.1
using RestSharp;

var client = new RestClient("https://https/Medicare/concessionverification/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-minor-id", "{{MinorId}}");
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift 8.2.1
import Foundation

let headers = [
  "x-minor-id": "{{MinorId}}",
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://https/Medicare/concessionverification/v1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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 8.2.2
import requests

url = "https://https/Medicare/concessionverification/v1"

headers = {
    "x-minor-id": "{{MinorId}}",
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript 8.2.2
const url = 'https://https/Medicare/concessionverification/v1';
const options = {
  method: 'POST',
  headers: {
    'x-minor-id': '{{MinorId}}',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: undefined
};

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

```go 8.2.2
package main

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

func main() {

	url := "https://https/Medicare/concessionverification/v1"

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

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

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

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

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

}
```

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

url = URI("https://https/Medicare/concessionverification/v1")

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

request = Net::HTTP::Post.new(url)
request["x-minor-id"] = '{{MinorId}}'
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'

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

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

HttpResponse<String> response = Unirest.post("https://https/Medicare/concessionverification/v1")
  .header("x-minor-id", "{{MinorId}}")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/Medicare/concessionverification/v1', [
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
    'x-minor-id' => '{{MinorId}}',
  ],
]);

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

```csharp 8.2.2
using RestSharp;

var client = new RestClient("https://https/Medicare/concessionverification/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-minor-id", "{{MinorId}}");
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift 8.2.2
import Foundation

let headers = [
  "x-minor-id": "{{MinorId}}",
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://https/Medicare/concessionverification/v1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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 8.2.3
import requests

url = "https://https/Medicare/concessionverification/v1"

headers = {
    "x-minor-id": "{{MinorId}}",
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript 8.2.3
const url = 'https://https/Medicare/concessionverification/v1';
const options = {
  method: 'POST',
  headers: {
    'x-minor-id': '{{MinorId}}',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: undefined
};

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

```go 8.2.3
package main

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

func main() {

	url := "https://https/Medicare/concessionverification/v1"

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

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

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

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

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

}
```

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

url = URI("https://https/Medicare/concessionverification/v1")

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

request = Net::HTTP::Post.new(url)
request["x-minor-id"] = '{{MinorId}}'
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'

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

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

HttpResponse<String> response = Unirest.post("https://https/Medicare/concessionverification/v1")
  .header("x-minor-id", "{{MinorId}}")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/Medicare/concessionverification/v1', [
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
    'x-minor-id' => '{{MinorId}}',
  ],
]);

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

```csharp 8.2.3
using RestSharp;

var client = new RestClient("https://https/Medicare/concessionverification/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-minor-id", "{{MinorId}}");
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift 8.2.3
import Foundation

let headers = [
  "x-minor-id": "{{MinorId}}",
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://https/Medicare/concessionverification/v1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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 1. Match
import requests

url = "https://https/Medicare/concessionverification/v1"

headers = {
    "x-minor-id": "{{MinorId}}",
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript 1. Match
const url = 'https://https/Medicare/concessionverification/v1';
const options = {
  method: 'POST',
  headers: {
    'x-minor-id': '{{MinorId}}',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: undefined
};

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

```go 1. Match
package main

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

func main() {

	url := "https://https/Medicare/concessionverification/v1"

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

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

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

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

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

}
```

```ruby 1. Match
require 'uri'
require 'net/http'

url = URI("https://https/Medicare/concessionverification/v1")

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

request = Net::HTTP::Post.new(url)
request["x-minor-id"] = '{{MinorId}}'
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'

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

```java 1. Match
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/Medicare/concessionverification/v1")
  .header("x-minor-id", "{{MinorId}}")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/Medicare/concessionverification/v1', [
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
    'x-minor-id' => '{{MinorId}}',
  ],
]);

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

```csharp 1. Match
using RestSharp;

var client = new RestClient("https://https/Medicare/concessionverification/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-minor-id", "{{MinorId}}");
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift 1. Match
import Foundation

let headers = [
  "x-minor-id": "{{MinorId}}",
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://https/Medicare/concessionverification/v1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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 Not a concession Card
import requests

url = "https://https/Medicare/concessionverification/v1"

headers = {
    "x-minor-id": "{{MinorId}}",
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Not a concession Card
const url = 'https://https/Medicare/concessionverification/v1';
const options = {
  method: 'POST',
  headers: {
    'x-minor-id': '{{MinorId}}',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: undefined
};

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

```go Not a concession Card
package main

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

func main() {

	url := "https://https/Medicare/concessionverification/v1"

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

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

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

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

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

}
```

```ruby Not a concession Card
require 'uri'
require 'net/http'

url = URI("https://https/Medicare/concessionverification/v1")

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

request = Net::HTTP::Post.new(url)
request["x-minor-id"] = '{{MinorId}}'
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'

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

```java Not a concession Card
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/Medicare/concessionverification/v1")
  .header("x-minor-id", "{{MinorId}}")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .asString();
```

```php Not a concession Card
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/Medicare/concessionverification/v1', [
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
    'x-minor-id' => '{{MinorId}}',
  ],
]);

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

```csharp Not a concession Card
using RestSharp;

var client = new RestClient("https://https/Medicare/concessionverification/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-minor-id", "{{MinorId}}");
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift Not a concession Card
import Foundation

let headers = [
  "x-minor-id": "{{MinorId}}",
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://https/Medicare/concessionverification/v1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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 Advanced_V4_Concession Verification_example
import requests

url = "https://https/Medicare/concessionverification/v1"

payload = {
    "patient": {
        "identity": {
            "sex": "1",
            "givenName": "B2obby",
            "familyName": "LEONARD",
            "dateOfBirth": "1958-02-10"
        },
        "medicare": {
            "memberNumber": "2293653285",
            "memberRefNumber": "1"
        }
    },
    "dateOfService": "2025-09-03"
}
headers = {
    "x-minor-id": "{{MinorId}}",
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Advanced_V4_Concession Verification_example
const url = 'https://https/Medicare/concessionverification/v1';
const options = {
  method: 'POST',
  headers: {
    'x-minor-id': '{{MinorId}}',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: '{"patient":{"identity":{"sex":"1","givenName":"B2obby","familyName":"LEONARD","dateOfBirth":"1958-02-10"},"medicare":{"memberNumber":"2293653285","memberRefNumber":"1"}},"dateOfService":"2025-09-03"}'
};

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

```go Advanced_V4_Concession Verification_example
package main

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

func main() {

	url := "https://https/Medicare/concessionverification/v1"

	payload := strings.NewReader("{\n  \"patient\": {\n    \"identity\": {\n      \"sex\": \"1\",\n      \"givenName\": \"B2obby\",\n      \"familyName\": \"LEONARD\",\n      \"dateOfBirth\": \"1958-02-10\"\n    },\n    \"medicare\": {\n      \"memberNumber\": \"2293653285\",\n      \"memberRefNumber\": \"1\"\n    }\n  },\n  \"dateOfService\": \"2025-09-03\"\n}")

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

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

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

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

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

}
```

```ruby Advanced_V4_Concession Verification_example
require 'uri'
require 'net/http'

url = URI("https://https/Medicare/concessionverification/v1")

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

request = Net::HTTP::Post.new(url)
request["x-minor-id"] = '{{MinorId}}'
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"patient\": {\n    \"identity\": {\n      \"sex\": \"1\",\n      \"givenName\": \"B2obby\",\n      \"familyName\": \"LEONARD\",\n      \"dateOfBirth\": \"1958-02-10\"\n    },\n    \"medicare\": {\n      \"memberNumber\": \"2293653285\",\n      \"memberRefNumber\": \"1\"\n    }\n  },\n  \"dateOfService\": \"2025-09-03\"\n}"

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

```java Advanced_V4_Concession Verification_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/Medicare/concessionverification/v1")
  .header("x-minor-id", "{{MinorId}}")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"patient\": {\n    \"identity\": {\n      \"sex\": \"1\",\n      \"givenName\": \"B2obby\",\n      \"familyName\": \"LEONARD\",\n      \"dateOfBirth\": \"1958-02-10\"\n    },\n    \"medicare\": {\n      \"memberNumber\": \"2293653285\",\n      \"memberRefNumber\": \"1\"\n    }\n  },\n  \"dateOfService\": \"2025-09-03\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/Medicare/concessionverification/v1', [
  'body' => '{
  "patient": {
    "identity": {
      "sex": "1",
      "givenName": "B2obby",
      "familyName": "LEONARD",
      "dateOfBirth": "1958-02-10"
    },
    "medicare": {
      "memberNumber": "2293653285",
      "memberRefNumber": "1"
    }
  },
  "dateOfService": "2025-09-03"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
    'x-minor-id' => '{{MinorId}}',
  ],
]);

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

```csharp Advanced_V4_Concession Verification_example
using RestSharp;

var client = new RestClient("https://https/Medicare/concessionverification/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-minor-id", "{{MinorId}}");
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"patient\": {\n    \"identity\": {\n      \"sex\": \"1\",\n      \"givenName\": \"B2obby\",\n      \"familyName\": \"LEONARD\",\n      \"dateOfBirth\": \"1958-02-10\"\n    },\n    \"medicare\": {\n      \"memberNumber\": \"2293653285\",\n      \"memberRefNumber\": \"1\"\n    }\n  },\n  \"dateOfService\": \"2025-09-03\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Advanced_V4_Concession Verification_example
import Foundation

let headers = [
  "x-minor-id": "{{MinorId}}",
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "patient": [
    "identity": [
      "sex": "1",
      "givenName": "B2obby",
      "familyName": "LEONARD",
      "dateOfBirth": "1958-02-10"
    ],
    "medicare": [
      "memberNumber": "2293653285",
      "memberRefNumber": "1"
    ]
  ],
  "dateOfService": "2025-09-03"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://https/Medicare/concessionverification/v1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
```