For clean Markdown of any page, append .md to the page URL. For a complete documentation index, see https://docs.rebateright.com.au/api-reference/dva/llms.txt. For full documentation content, see https://docs.rebateright.com.au/api-reference/dva/llms-full.txt.

# Veteran Verification

POST https://api.rebateright.com.au/Medicare/veteranverification/v1
Content-Type: application/json

> 🚧 **Coming Soon** — This endpoint is not yet available.
> RebateRight is completing DVA certification. Availability will be announced when certification is complete.

Verify a patient's DVA veteran status in real time. One patient per request.

Two verification types are supported:

- **PVP** — submit personal details only (name, DOB, sex). DVA returns the veteran's file number and card type.
- **PVV** — include `veteranMembership.veteranNumber` to verify against a known DVA file number.

#### Entitlement Codes

| Code | Card Type |
|---|---|
| `PTEC` | Gold Card |
| `STEC` | White Card |
| `RPBC` | Orange Card |
| `PCC` | Pensioner Concession Card |
| `CSHC` | Commonwealth Seniors Healthcare Card |
| `NIL` | Card type cannot be determined — advise patient to contact DVA |

#### Status Codes

| Code | Meaning |
|---|---|
| `0` | Patient is known to DVA with details provided |
| `8005` | Verification completed but patient details were not an exact match |
| `9650` | Veteran file number and/or patient details did not match DVA records |
| `9202` | Field-level validation failure — see `serviceMessage` for detail |


Reference: https://docs.rebateright.com.au/api-reference/dva/veteran-verification

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /Medicare/veteranverification/v1:
    post:
      operationId: veteran-verification
      summary: Veteran Verification
      description: >
        > 🚧 **Coming Soon** — This endpoint is not yet available.

        > RebateRight is completing DVA certification. Availability will be
        announced when certification is complete.


        Verify a patient's DVA veteran status in real time. One patient per
        request.


        Two verification types are supported:


        - **PVP** — submit personal details only (name, DOB, sex). DVA returns
        the veteran's file number and card type.

        - **PVV** — include `veteranMembership.veteranNumber` to verify against
        a known DVA file number.


        #### Entitlement Codes


        | Code | Card Type |

        |---|---|

        | `PTEC` | Gold Card |

        | `STEC` | White Card |

        | `RPBC` | Orange Card |

        | `PCC` | Pensioner Concession Card |

        | `CSHC` | Commonwealth Seniors Healthcare Card |

        | `NIL` | Card type cannot be determined — advise patient to contact DVA
        |


        #### Status Codes


        | Code | Meaning |

        |---|---|

        | `0` | Patient is known to DVA with details provided |

        | `8005` | Verification completed but patient details were not an exact
        match |

        | `9650` | Veteran file number and/or patient details did not match DVA
        records |

        | `9202` | Field-level validation failure — see `serviceMessage` for
        detail |
      tags:
        - subpackage_dva
      parameters:
        - name: x-api-key
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DVA_Veteran Verification_Response_200'
        '400':
          description: >-
            Validation failure — body includes `serviceMessage` entries and
            `correlationId`.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostMedicareVeteranverificationV1RequestBadRequestError
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                patient:
                  $ref: >-
                    #/components/schemas/MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatient
              required:
                - patient
servers:
  - url: https://api.rebateright.com.au
  - url: https://test-api.rebateright.com.au
components:
  schemas:
    MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentitySex:
      type: string
      enum:
        - '1'
        - '2'
        - '9'
      description: |
        Patient sex (Services Australia coding).

        | Code | Meaning |
        |------|---------|
        | 1 | Male |
        | 2 | Female |
        | 9 | Not stated |
      title: >-
        MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentitySex
    MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentity:
      type: object
      properties:
        dateOfBirth:
          type: string
          format: date
          description: Cannot be a future date or more than 130 years in the past.
        familyName:
          type: string
          description: Alphanumeric only, 1–40 characters.
        givenName:
          type: string
          description: Alphanumeric only, 1–40 characters.
        sex:
          $ref: >-
            #/components/schemas/MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentitySex
          description: |
            Patient sex (Services Australia coding).

            | Code | Meaning |
            |------|---------|
            | 1 | Male |
            | 2 | Female |
            | 9 | Not stated |
        secondInitial:
          type: string
          description: Patient's second name initial.
      required:
        - dateOfBirth
        - familyName
        - givenName
        - sex
      title: >-
        MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentity
    MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientResidentialAddress:
      type: object
      properties:
        locality:
          type: string
          description: >-
            Suburb or town name. Alphanumeric only, 1–40 characters. Do not
            include the state code.
        postcode:
          type: string
          description: 4-digit postcode. Must not be `0000`.
      required:
        - locality
        - postcode
      description: Optional. If provided, both fields are required.
      title: >-
        MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientResidentialAddress
    MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientVeteranMembership:
      type: object
      properties:
        veteranNumber:
          type: string
          description: >-
            DVA file number. War code followed by numeric digits, no spaces
            (e.g. `NX901667`).
      description: Include to perform a PVV verification against a known DVA file number.
      title: >-
        MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientVeteranMembership
    MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatient:
      type: object
      properties:
        identity:
          $ref: >-
            #/components/schemas/MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentity
        residentialAddress:
          $ref: >-
            #/components/schemas/MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientResidentialAddress
          description: Optional. If provided, both fields are required.
        veteranMembership:
          $ref: >-
            #/components/schemas/MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientVeteranMembership
          description: >-
            Include to perform a PVV verification against a known DVA file
            number.
      required:
        - identity
      title: >-
        MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatient
    MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusCurrentMembership:
      type: object
      properties:
        veteranNumber:
          type: string
          description: DVA file number. Present in PVP responses.
        entitlementCode:
          type: string
          description: DVA card type code.
      title: >-
        MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusCurrentMembership
    MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusCurrentMember:
      type: object
      properties:
        familyName:
          type: string
          description: Name as known to DVA.
        givenName:
          type: string
          description: Name as known to DVA.
      description: Present when status code is `8005`.
      title: >-
        MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusCurrentMember
    MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusStatus:
      type: object
      properties:
        code:
          type: integer
        text:
          type: string
      title: >-
        MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusStatus
    MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatus:
      type: object
      properties:
        currentMembership:
          $ref: >-
            #/components/schemas/MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusCurrentMembership
        currentMember:
          $ref: >-
            #/components/schemas/MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusCurrentMember
          description: Present when status code is `8005`.
        status:
          $ref: >-
            #/components/schemas/MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusStatus
      title: >-
        MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatus
    MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaServiceMessageItems:
      type: object
      properties:
        code:
          type: string
        severity:
          type: string
        reason:
          type: string
      required:
        - code
        - severity
        - reason
      title: >-
        MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaServiceMessageItems
    DVA_Veteran Verification_Response_200:
      type: object
      properties:
        correlationId:
          type: string
        veteranStatus:
          $ref: >-
            #/components/schemas/MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatus
        highestSeverity:
          type: string
          description: Present on validation errors.
        serviceMessage:
          type: array
          items:
            $ref: >-
              #/components/schemas/MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaServiceMessageItems
          description: Present on validation errors.
      title: DVA_Veteran Verification_Response_200
    PostMedicareVeteranverificationV1RequestBadRequestError:
      type: object
      properties:
        highestSeverity:
          type: string
        correlationId:
          type: string
        serviceMessage:
          type: array
          items:
            $ref: >-
              #/components/schemas/MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaServiceMessageItems
      required:
        - highestSeverity
        - correlationId
        - serviceMessage
      title: PostMedicareVeteranverificationV1RequestBadRequestError
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    minorId:
      type: apiKey
      in: header
      name: x-minor-id

```

## SDK Code Examples

```python PVP Match
import requests

url = "https://api.rebateright.com.au/Medicare/veteranverification/v1"

payload = { "patient": {
        "identity": {
            "dateOfBirth": "1958-09-27",
            "familyName": "IAN",
            "givenName": "JANET",
            "sex": "2"
        },
        "residentialAddress": {
            "locality": "YARRALUMLA",
            "postcode": "2600"
        }
    } }
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript PVP Match
const url = 'https://api.rebateright.com.au/Medicare/veteranverification/v1';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"patient":{"identity":{"dateOfBirth":"1958-09-27","familyName":"IAN","givenName":"JANET","sex":"2"},"residentialAddress":{"locality":"YARRALUMLA","postcode":"2600"}}}'
};

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

```go PVP Match
package main

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

func main() {

	url := "https://api.rebateright.com.au/Medicare/veteranverification/v1"

	payload := strings.NewReader("{\n  \"patient\": {\n    \"identity\": {\n      \"dateOfBirth\": \"1958-09-27\",\n      \"familyName\": \"IAN\",\n      \"givenName\": \"JANET\",\n      \"sex\": \"2\"\n    },\n    \"residentialAddress\": {\n      \"locality\": \"YARRALUMLA\",\n      \"postcode\": \"2600\"\n    }\n  }\n}")

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

	req.Header.Add("x-api-key", "<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 PVP Match
require 'uri'
require 'net/http'

url = URI("https://api.rebateright.com.au/Medicare/veteranverification/v1")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"patient\": {\n    \"identity\": {\n      \"dateOfBirth\": \"1958-09-27\",\n      \"familyName\": \"IAN\",\n      \"givenName\": \"JANET\",\n      \"sex\": \"2\"\n    },\n    \"residentialAddress\": {\n      \"locality\": \"YARRALUMLA\",\n      \"postcode\": \"2600\"\n    }\n  }\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.rebateright.com.au/Medicare/veteranverification/v1")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"patient\": {\n    \"identity\": {\n      \"dateOfBirth\": \"1958-09-27\",\n      \"familyName\": \"IAN\",\n      \"givenName\": \"JANET\",\n      \"sex\": \"2\"\n    },\n    \"residentialAddress\": {\n      \"locality\": \"YARRALUMLA\",\n      \"postcode\": \"2600\"\n    }\n  }\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.rebateright.com.au/Medicare/veteranverification/v1', [
  'body' => '{
  "patient": {
    "identity": {
      "dateOfBirth": "1958-09-27",
      "familyName": "IAN",
      "givenName": "JANET",
      "sex": "2"
    },
    "residentialAddress": {
      "locality": "YARRALUMLA",
      "postcode": "2600"
    }
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp PVP Match
using RestSharp;

var client = new RestClient("https://api.rebateright.com.au/Medicare/veteranverification/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"patient\": {\n    \"identity\": {\n      \"dateOfBirth\": \"1958-09-27\",\n      \"familyName\": \"IAN\",\n      \"givenName\": \"JANET\",\n      \"sex\": \"2\"\n    },\n    \"residentialAddress\": {\n      \"locality\": \"YARRALUMLA\",\n      \"postcode\": \"2600\"\n    }\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift PVP Match
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = ["patient": [
    "identity": [
      "dateOfBirth": "1958-09-27",
      "familyName": "IAN",
      "givenName": "JANET",
      "sex": "2"
    ],
    "residentialAddress": [
      "locality": "YARRALUMLA",
      "postcode": "2600"
    ]
  ]] as [String : Any]

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

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

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

dataTask.resume()
```

```python PVV Match
import requests

url = "https://api.rebateright.com.au/Medicare/veteranverification/v1"

payload = { "patient": {
        "identity": {
            "dateOfBirth": "1958-09-27",
            "familyName": "IAN",
            "givenName": "JANET",
            "sex": "2"
        },
        "veteranMembership": { "veteranNumber": "NX901667" }
    } }
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript PVV Match
const url = 'https://api.rebateright.com.au/Medicare/veteranverification/v1';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"patient":{"identity":{"dateOfBirth":"1958-09-27","familyName":"IAN","givenName":"JANET","sex":"2"},"veteranMembership":{"veteranNumber":"NX901667"}}}'
};

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

```go PVV Match
package main

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

func main() {

	url := "https://api.rebateright.com.au/Medicare/veteranverification/v1"

	payload := strings.NewReader("{\n  \"patient\": {\n    \"identity\": {\n      \"dateOfBirth\": \"1958-09-27\",\n      \"familyName\": \"IAN\",\n      \"givenName\": \"JANET\",\n      \"sex\": \"2\"\n    },\n    \"veteranMembership\": {\n      \"veteranNumber\": \"NX901667\"\n    }\n  }\n}")

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

	req.Header.Add("x-api-key", "<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 PVV Match
require 'uri'
require 'net/http'

url = URI("https://api.rebateright.com.au/Medicare/veteranverification/v1")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"patient\": {\n    \"identity\": {\n      \"dateOfBirth\": \"1958-09-27\",\n      \"familyName\": \"IAN\",\n      \"givenName\": \"JANET\",\n      \"sex\": \"2\"\n    },\n    \"veteranMembership\": {\n      \"veteranNumber\": \"NX901667\"\n    }\n  }\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.rebateright.com.au/Medicare/veteranverification/v1")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"patient\": {\n    \"identity\": {\n      \"dateOfBirth\": \"1958-09-27\",\n      \"familyName\": \"IAN\",\n      \"givenName\": \"JANET\",\n      \"sex\": \"2\"\n    },\n    \"veteranMembership\": {\n      \"veteranNumber\": \"NX901667\"\n    }\n  }\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.rebateright.com.au/Medicare/veteranverification/v1', [
  'body' => '{
  "patient": {
    "identity": {
      "dateOfBirth": "1958-09-27",
      "familyName": "IAN",
      "givenName": "JANET",
      "sex": "2"
    },
    "veteranMembership": {
      "veteranNumber": "NX901667"
    }
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp PVV Match
using RestSharp;

var client = new RestClient("https://api.rebateright.com.au/Medicare/veteranverification/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"patient\": {\n    \"identity\": {\n      \"dateOfBirth\": \"1958-09-27\",\n      \"familyName\": \"IAN\",\n      \"givenName\": \"JANET\",\n      \"sex\": \"2\"\n    },\n    \"veteranMembership\": {\n      \"veteranNumber\": \"NX901667\"\n    }\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift PVV Match
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = ["patient": [
    "identity": [
      "dateOfBirth": "1958-09-27",
      "familyName": "IAN",
      "givenName": "JANET",
      "sex": "2"
    ],
    "veteranMembership": ["veteranNumber": "NX901667"]
  ]] as [String : Any]

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

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

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

dataTask.resume()
```

```python Partial Match
import requests

url = "https://api.rebateright.com.au/Medicare/veteranverification/v1"

payload = { "patient": {
        "identity": {
            "dateOfBirth": "1958-09-27",
            "familyName": "WRONG",
            "givenName": "NAME",
            "sex": "2"
        },
        "veteranMembership": { "veteranNumber": "NX901667" }
    } }
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Partial Match
const url = 'https://api.rebateright.com.au/Medicare/veteranverification/v1';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"patient":{"identity":{"dateOfBirth":"1958-09-27","familyName":"WRONG","givenName":"NAME","sex":"2"},"veteranMembership":{"veteranNumber":"NX901667"}}}'
};

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

```go Partial Match
package main

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

func main() {

	url := "https://api.rebateright.com.au/Medicare/veteranverification/v1"

	payload := strings.NewReader("{\n  \"patient\": {\n    \"identity\": {\n      \"dateOfBirth\": \"1958-09-27\",\n      \"familyName\": \"WRONG\",\n      \"givenName\": \"NAME\",\n      \"sex\": \"2\"\n    },\n    \"veteranMembership\": {\n      \"veteranNumber\": \"NX901667\"\n    }\n  }\n}")

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

	req.Header.Add("x-api-key", "<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 Partial Match
require 'uri'
require 'net/http'

url = URI("https://api.rebateright.com.au/Medicare/veteranverification/v1")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"patient\": {\n    \"identity\": {\n      \"dateOfBirth\": \"1958-09-27\",\n      \"familyName\": \"WRONG\",\n      \"givenName\": \"NAME\",\n      \"sex\": \"2\"\n    },\n    \"veteranMembership\": {\n      \"veteranNumber\": \"NX901667\"\n    }\n  }\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.rebateright.com.au/Medicare/veteranverification/v1")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"patient\": {\n    \"identity\": {\n      \"dateOfBirth\": \"1958-09-27\",\n      \"familyName\": \"WRONG\",\n      \"givenName\": \"NAME\",\n      \"sex\": \"2\"\n    },\n    \"veteranMembership\": {\n      \"veteranNumber\": \"NX901667\"\n    }\n  }\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.rebateright.com.au/Medicare/veteranverification/v1', [
  'body' => '{
  "patient": {
    "identity": {
      "dateOfBirth": "1958-09-27",
      "familyName": "WRONG",
      "givenName": "NAME",
      "sex": "2"
    },
    "veteranMembership": {
      "veteranNumber": "NX901667"
    }
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp Partial Match
using RestSharp;

var client = new RestClient("https://api.rebateright.com.au/Medicare/veteranverification/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"patient\": {\n    \"identity\": {\n      \"dateOfBirth\": \"1958-09-27\",\n      \"familyName\": \"WRONG\",\n      \"givenName\": \"NAME\",\n      \"sex\": \"2\"\n    },\n    \"veteranMembership\": {\n      \"veteranNumber\": \"NX901667\"\n    }\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Partial Match
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = ["patient": [
    "identity": [
      "dateOfBirth": "1958-09-27",
      "familyName": "WRONG",
      "givenName": "NAME",
      "sex": "2"
    ],
    "veteranMembership": ["veteranNumber": "NX901667"]
  ]] as [String : Any]

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

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

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

dataTask.resume()
```

```python No Match
import requests

url = "https://api.rebateright.com.au/Medicare/veteranverification/v1"

payload = { "patient": {
        "identity": {
            "dateOfBirth": "1958-09-27",
            "familyName": "UNKNOWN",
            "givenName": "PERSON",
            "sex": "2"
        },
        "veteranMembership": { "veteranNumber": "NX999999" }
    } }
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript No Match
const url = 'https://api.rebateright.com.au/Medicare/veteranverification/v1';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"patient":{"identity":{"dateOfBirth":"1958-09-27","familyName":"UNKNOWN","givenName":"PERSON","sex":"2"},"veteranMembership":{"veteranNumber":"NX999999"}}}'
};

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

```go No Match
package main

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

func main() {

	url := "https://api.rebateright.com.au/Medicare/veteranverification/v1"

	payload := strings.NewReader("{\n  \"patient\": {\n    \"identity\": {\n      \"dateOfBirth\": \"1958-09-27\",\n      \"familyName\": \"UNKNOWN\",\n      \"givenName\": \"PERSON\",\n      \"sex\": \"2\"\n    },\n    \"veteranMembership\": {\n      \"veteranNumber\": \"NX999999\"\n    }\n  }\n}")

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

	req.Header.Add("x-api-key", "<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 No Match
require 'uri'
require 'net/http'

url = URI("https://api.rebateright.com.au/Medicare/veteranverification/v1")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"patient\": {\n    \"identity\": {\n      \"dateOfBirth\": \"1958-09-27\",\n      \"familyName\": \"UNKNOWN\",\n      \"givenName\": \"PERSON\",\n      \"sex\": \"2\"\n    },\n    \"veteranMembership\": {\n      \"veteranNumber\": \"NX999999\"\n    }\n  }\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.rebateright.com.au/Medicare/veteranverification/v1")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"patient\": {\n    \"identity\": {\n      \"dateOfBirth\": \"1958-09-27\",\n      \"familyName\": \"UNKNOWN\",\n      \"givenName\": \"PERSON\",\n      \"sex\": \"2\"\n    },\n    \"veteranMembership\": {\n      \"veteranNumber\": \"NX999999\"\n    }\n  }\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.rebateright.com.au/Medicare/veteranverification/v1', [
  'body' => '{
  "patient": {
    "identity": {
      "dateOfBirth": "1958-09-27",
      "familyName": "UNKNOWN",
      "givenName": "PERSON",
      "sex": "2"
    },
    "veteranMembership": {
      "veteranNumber": "NX999999"
    }
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp No Match
using RestSharp;

var client = new RestClient("https://api.rebateright.com.au/Medicare/veteranverification/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"patient\": {\n    \"identity\": {\n      \"dateOfBirth\": \"1958-09-27\",\n      \"familyName\": \"UNKNOWN\",\n      \"givenName\": \"PERSON\",\n      \"sex\": \"2\"\n    },\n    \"veteranMembership\": {\n      \"veteranNumber\": \"NX999999\"\n    }\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift No Match
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = ["patient": [
    "identity": [
      "dateOfBirth": "1958-09-27",
      "familyName": "UNKNOWN",
      "givenName": "PERSON",
      "sex": "2"
    ],
    "veteranMembership": ["veteranNumber": "NX999999"]
  ]] as [String : Any]

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

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

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

dataTask.resume()
```