# Veteran Verification

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

Reference: https://developers.rebateright.com.au/rebate-right/advanced/v-4/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
      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_Veteran
                  Verification_Response_200
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                patient:
                  $ref: >-
                    #/components/schemas/MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatient
                dateOfService:
                  type: string
                  format: date
              required:
                - patient
                - dateOfService
servers:
  - url: https:/
components:
  schemas:
    MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentity:
      type: object
      properties:
        sex:
          type: string
        givenName:
          type: string
        familyName:
          type: string
        dateOfBirth:
          type: string
          format: date
      required:
        - sex
        - givenName
        - familyName
        - dateOfBirth
      title: >-
        MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentity
    MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientMedicare:
      type: object
      properties:
        memberNumber:
          type: string
        memberRefNumber:
          type: string
      required:
        - memberNumber
        - memberRefNumber
      title: >-
        MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientMedicare
    MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatient:
      type: object
      properties:
        identity:
          $ref: >-
            #/components/schemas/MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientIdentity
        medicare:
          $ref: >-
            #/components/schemas/MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatientMedicare
      required:
        - identity
        - medicare
      title: >-
        MedicareVeteranverificationV1PostRequestBodyContentApplicationJsonSchemaPatient
    MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusStatus:
      type: object
      properties:
        code:
          type: integer
        text:
          type: string
      required:
        - code
        - text
      title: >-
        MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusStatus
    MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatus:
      type: object
      properties:
        status:
          $ref: >-
            #/components/schemas/MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatusStatus
      required:
        - status
      title: >-
        MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatus
    Advanced_V4_Veteran Verification_Response_200:
      type: object
      properties:
        correlationId:
          type: string
        veteranStatus:
          $ref: >-
            #/components/schemas/MedicareVeteranverificationV1PostResponsesContentApplicationJsonSchemaVeteranStatus
      required:
        - correlationId
        - veteranStatus
      title: Advanced_V4_Veteran Verification_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

```

## SDK Code Examples

```python Not Match
import requests

url = "https://https/Medicare/veteranverification/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 Match
const url = 'https://https/Medicare/veteranverification/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 Match
package main

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

func main() {

	url := "https://https/Medicare/veteranverification/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 Match
require 'uri'
require 'net/http'

url = URI("https://https/Medicare/veteranverification/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 Match
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

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

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

$client = new \GuzzleHttp\Client();

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

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

```csharp Not Match
using RestSharp;

var client = new RestClient("https://https/Medicare/veteranverification/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 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/veteranverification/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 Match - PTEC
import requests

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

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

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

print(response.json())
```

```javascript Match - PTEC
const url = 'https://https/Medicare/veteranverification/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 Match - PTEC
package main

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

func main() {

	url := "https://https/Medicare/veteranverification/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 Match - PTEC
require 'uri'
require 'net/http'

url = URI("https://https/Medicare/veteranverification/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 Match - PTEC
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

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

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

$client = new \GuzzleHttp\Client();

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

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

```csharp Match - PTEC
using RestSharp;

var client = new RestClient("https://https/Medicare/veteranverification/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 Match - PTEC
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/veteranverification/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 Match - DVA number returned
import requests

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

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

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

print(response.json())
```

```javascript Match - DVA number returned
const url = 'https://https/Medicare/veteranverification/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 Match - DVA number returned
package main

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

func main() {

	url := "https://https/Medicare/veteranverification/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 Match - DVA number returned
require 'uri'
require 'net/http'

url = URI("https://https/Medicare/veteranverification/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 Match - DVA number returned
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

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

```php Match - DVA number returned
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

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

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

```csharp Match - DVA number returned
using RestSharp;

var client = new RestClient("https://https/Medicare/veteranverification/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 Match - DVA number returned
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/veteranverification/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_Veteran Verification_example
import requests

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

payload = {
    "patient": {
        "identity": {
            "sex": "1",
            "givenName": "Eli",
            "familyName": "ALDRIDGE",
            "dateOfBirth": "1960-02-08"
        },
        "medicare": {
            "memberNumber": "4951648811",
            "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_Veteran Verification_example
const url = 'https://https/Medicare/veteranverification/v1';
const options = {
  method: 'POST',
  headers: {
    'x-minor-id': '{{MinorId}}',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: '{"patient":{"identity":{"sex":"1","givenName":"Eli","familyName":"ALDRIDGE","dateOfBirth":"1960-02-08"},"medicare":{"memberNumber":"4951648811","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_Veteran Verification_example
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"patient\": {\n    \"identity\": {\n      \"sex\": \"1\",\n      \"givenName\": \"Eli\",\n      \"familyName\": \"ALDRIDGE\",\n      \"dateOfBirth\": \"1960-02-08\"\n    },\n    \"medicare\": {\n      \"memberNumber\": \"4951648811\",\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_Veteran Verification_example
require 'uri'
require 'net/http'

url = URI("https://https/Medicare/veteranverification/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\": \"Eli\",\n      \"familyName\": \"ALDRIDGE\",\n      \"dateOfBirth\": \"1960-02-08\"\n    },\n    \"medicare\": {\n      \"memberNumber\": \"4951648811\",\n      \"memberRefNumber\": \"1\"\n    }\n  },\n  \"dateOfService\": \"2025-09-03\"\n}"

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

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

HttpResponse<String> response = Unirest.post("https://https/Medicare/veteranverification/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\": \"Eli\",\n      \"familyName\": \"ALDRIDGE\",\n      \"dateOfBirth\": \"1960-02-08\"\n    },\n    \"medicare\": {\n      \"memberNumber\": \"4951648811\",\n      \"memberRefNumber\": \"1\"\n    }\n  },\n  \"dateOfService\": \"2025-09-03\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/Medicare/veteranverification/v1', [
  'body' => '{
  "patient": {
    "identity": {
      "sex": "1",
      "givenName": "Eli",
      "familyName": "ALDRIDGE",
      "dateOfBirth": "1960-02-08"
    },
    "medicare": {
      "memberNumber": "4951648811",
      "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_Veteran Verification_example
using RestSharp;

var client = new RestClient("https://https/Medicare/veteranverification/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\": \"Eli\",\n      \"familyName\": \"ALDRIDGE\",\n      \"dateOfBirth\": \"1960-02-08\"\n    },\n    \"medicare\": {\n      \"memberNumber\": \"4951648811\",\n      \"memberRefNumber\": \"1\"\n    }\n  },\n  \"dateOfService\": \"2025-09-03\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Advanced_V4_Veteran 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": "Eli",
      "familyName": "ALDRIDGE",
      "dateOfBirth": "1960-02-08"
    ],
    "medicare": [
      "memberNumber": "4951648811",
      "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/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()
```