# 2. Get MBS Item

GET https://MedicareItems/701

This endpoint retrieves detailed information about a specific MBS item using its item number.

#### 🎨 **How It Works**

- Sources data from MBS and enriches it with RebateRight details.
    
- Includes **MBS notes** and additional insights including the **limitation period**, specifying how often an item can be claimed within a given timeframe (e.g., **twice in a 12-month period**).
    

#### 🛠️ Example Requests and Responses

At the top-right corner of the **Example Request** section, select from the available options to view sample requests along with the corresponding responses returned by RebateRight.

<img src="https://content.pstmn.io/865888b3-d95c-471b-8a51-43bba0cbb70e/aW1hZ2UucG5n" alt="How%20to%20Choose%20a%20Sample%20Request" width="100%">

Reference: https://developers.rebateright.com.au/rebate-right/standard-eligibility-flow/2-get-mbs-item

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /MedicareItems/701:
    get:
      operationId: 2-get-mbs-item
      summary: 2. Get MBS Item
      description: >-
        This endpoint retrieves detailed information about a specific MBS item
        using its item number.


        #### 🎨 **How It Works**


        - Sources data from MBS and enriches it with RebateRight details.
            
        - Includes **MBS notes** and additional insights including the
        **limitation period**, specifying how often an item can be claimed
        within a given timeframe (e.g., **twice in a 12-month period**).
            

        #### 🛠️ Example Requests and Responses


        At the top-right corner of the **Example Request** section, select from
        the available options to view sample requests along with the
        corresponding responses returned by RebateRight.


        <img
        src="https://content.pstmn.io/865888b3-d95c-471b-8a51-43bba0cbb70e/aW1hZ2UucG5n"
        alt="How%20to%20Choose%20a%20Sample%20Request" width="100%">
      tags:
        - subpackage_standardEligibilityFlow
      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/Standard Eligibility Flow_2. Get MBS
                  Item_Response_200
servers:
  - url: https:/
components:
  schemas:
    Standard Eligibility Flow_2. Get MBS Item_Response_200:
      type: object
      properties:
        Group:
          type: string
        Category:
          type: string
        SubGroup:
          type: string
        DerivedFee:
          description: Any type
        ItemNumber:
          type: string
        BenefitType:
          type: string
        Description:
          type: string
        ScheduleFee:
          type: string
        ItemStartDate:
          type: string
          format: date
        EligibleAgeRange:
          type: string
        EligiblePatientSex:
          description: Any type
        ReferralRequirements:
          type: string
        ScheduleFeeStartDate:
          type: string
          format: date
        ClaimHistoryLimitation:
          type: string
      required:
        - Group
        - Category
        - SubGroup
        - ItemNumber
        - BenefitType
        - Description
        - ScheduleFee
        - ItemStartDate
        - EligibleAgeRange
        - ReferralRequirements
        - ScheduleFeeStartDate
        - ClaimHistoryLimitation
      title: Standard Eligibility Flow_2. Get MBS Item_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

```

## SDK Code Examples

```python Standard Eligibility Flow_2. Get MBS Item_example
import requests

url = "https://https/MedicareItems/701"

headers = {
    "x-minor-id": "{{MinorId}}",
    "x-api-key": "<apiKey>"
}

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

print(response.json())
```

```javascript Standard Eligibility Flow_2. Get MBS Item_example
const url = 'https://https/MedicareItems/701';
const options = {method: 'GET', headers: {'x-minor-id': '{{MinorId}}', 'x-api-key': '<apiKey>'}};

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

```go Standard Eligibility Flow_2. Get MBS Item_example
package main

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

func main() {

	url := "https://https/MedicareItems/701"

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

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

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

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

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

}
```

```ruby Standard Eligibility Flow_2. Get MBS Item_example
require 'uri'
require 'net/http'

url = URI("https://https/MedicareItems/701")

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

request = Net::HTTP::Get.new(url)
request["x-minor-id"] = '{{MinorId}}'
request["x-api-key"] = '<apiKey>'

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

```java Standard Eligibility Flow_2. Get MBS Item_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://https/MedicareItems/701")
  .header("x-minor-id", "{{MinorId}}")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Standard Eligibility Flow_2. Get MBS Item_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://https/MedicareItems/701', [
  'headers' => [
    'x-api-key' => '<apiKey>',
    'x-minor-id' => '{{MinorId}}',
  ],
]);

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

```csharp Standard Eligibility Flow_2. Get MBS Item_example
using RestSharp;

var client = new RestClient("https://https/MedicareItems/701");
var request = new RestRequest(Method.GET);
request.AddHeader("x-minor-id", "{{MinorId}}");
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Standard Eligibility Flow_2. Get MBS Item_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://https/MedicareItems/701")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
```