> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.rebateright.com.au/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.rebateright.com.au/_mcp/server.

# Bulk Bill Claim — General

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

Submit a bulk bill claim for **general (out-of-hospital)** Medicare services. Use `serviceTypeCode: O`.

A claim may contain up to **80 medical events**, each with up to **14 services**. `medicalEventDate` must not be more than **1 year before submission**.

**General-only constraint:** do **not** set `referral`, `referralOverrideCode`, or `selfDeemedCode` on this endpoint — they apply only to specialist and pathology claims.

## 📑 Error codes

Validation and business-rule failures return **`400`** with `serviceMessage[].code` populated by Medicare. Use the [Services Australia lookup tool](https://www.servicesaustralia.gov.au/look-up-medicare-reason-code) to map each code to a human-readable description.


Reference: https://docs.rebateright.com.au/api-reference/medicare-claiming/bulk-bill-claim/bulk-bill-claim-general

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /Medicare/bulkbillstoreforward/general/v1:
    post:
      operationId: bulk-bill-claim-general
      summary: Bulk Bill Claim — General
      description: >
        Submit a bulk bill claim for **general (out-of-hospital)** Medicare
        services. Use `serviceTypeCode: O`.


        A claim may contain up to **80 medical events**, each with up to **14
        services**. `medicalEventDate` must not be more than **1 year before
        submission**.


        **General-only constraint:** do **not** set `referral`,
        `referralOverrideCode`, or `selfDeemedCode` on this endpoint — they
        apply only to specialist and pathology claims.


        ## 📑 Error codes


        Validation and business-rule failures return **`400`** with
        `serviceMessage[].code` populated by Medicare. Use the [Services
        Australia lookup
        tool](https://www.servicesaustralia.gov.au/look-up-medicare-reason-code)
        to map each code to a human-readable description.
      tags:
        - subpackage_medicareClaiming.subpackage_medicareClaiming/bulkBillClaim
      parameters:
        - name: x-api-key
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: >-
            OK — claim accepted by Medicare for store-and-forward processing.
            Poll the Bulk Bill Processing Report using the returned `claimId` to
            retrieve the assessment outcome.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Medicare Claiming_Bulk Bill Claim_Bulk
                  Bill Claim — General_Response_200
        '400':
          description: >-
            Validation or business-rule failure. The body is **one of two
            envelopes** — both always include `correlationId` for support
            tracing.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostMedicareBulkbillstoreforwardGeneralV1RequestBadRequestError
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                correlationId:
                  type: string
                  description: >-
                    Optional. Supply a unique transaction ID in the format
                    `urn:uuid:{MinorId}{16 hex chars}` (33 characters total,
                    e.g. `urn:uuid:MDE00000a1b2c3d4e5f6a7b8`). If the same
                    `correlationId` is submitted twice, the second request is
                    rejected with error `9777`. If omitted, RebateRight
                    generates one automatically.
                claim:
                  $ref: >-
                    #/components/schemas/MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaim
              required:
                - claim
servers:
  - url: https://api.rebateright.com.au
    description: Production
  - url: https://test-api.rebateright.com.au
    description: Test
components:
  schemas:
    MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider:
      type: object
      properties:
        providerNumber:
          type: string
          description: >-
            Medicare-issued 8-character provider number for the servicing
            provider (e.g. `2447781L`).
      required:
        - providerNumber
      description: The servicing provider rendering the services in this claim.
      title: >-
        MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider
    MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity:
      type: object
      properties:
        givenName:
          type: string
          description: >-
            First given name as it appears on the Medicare card. For single-name
            patients, set this to the literal string `ONLYNAME`.
        familyName:
          type: string
          description: >-
            Family name as it appears on the Medicare card. For single-name
            patients, put the single name here.
        dateOfBirth:
          type: string
          format: date
          description: Patient date of birth (`YYYY-MM-DD`).
      required:
        - givenName
        - familyName
        - dateOfBirth
      title: >-
        MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity
    MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare:
      type: object
      properties:
        memberNumber:
          type: string
          description: Patient's 10-digit Medicare card number.
        memberRefNumber:
          type: string
          description: >-
            Individual Reference Number (IRN) from the patient's Medicare card —
            a single digit identifying the family member.
      required:
        - memberNumber
        - memberRefNumber
      title: >-
        MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare
    MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient:
      type: object
      properties:
        identity:
          $ref: >-
            #/components/schemas/MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientIdentity
        medicare:
          $ref: >-
            #/components/schemas/MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatientMedicare
      required:
        - identity
        - medicare
      title: >-
        MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient
    MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems:
      type: object
      properties:
        id:
          type: string
          description: >-
            Your sequence number for this service within the medical event (e.g.
            `0001`, `0002`). Echoed by Medicare on any per-service errors.
        itemNumber:
          type: string
          description: MBS item number being claimed (e.g. `23`).
        chargeAmount:
          type: string
          description: Charge amount in **cents**, as a string (e.g. `"15000"` = $150.00).
        aftercareOverrideInd:
          type: string
          description: >-
            Set to `Y` to override the aftercare-period check when you are
            certain the service is not within another provider's aftercare
            period. Omit otherwise.
        duplicateServiceOverrideInd:
          type: string
          description: >-
            Set to `Y` to override the same-day duplicate-service check (for
            legitimate multiple same-item services on the same date). Requires
            `medicalEventTime` to be set. Omit otherwise.
        multipleProcedureOverrideInd:
          type: string
          description: >-
            Set to `Y` to override Medicare's multiple-procedure rule when not
            applicable (e.g. services on different body regions). Omit
            otherwise.
        numberOfPatientsSeen:
          type: string
          description: >-
            Number of patients seen. Required only for group-therapy MBS items
            that specify a patient count.
        restrictiveOverrideCode:
          type: string
          description: >-
            Override code for restricted items when a legitimate clinical reason
            applies (consult the MBS for valid codes). Omit otherwise.
        text:
          type: string
          description: >-
            Free-text supporting information for the service line (max 50
            characters). Required for some items (e.g. specified procedural
            services).
      required:
        - id
        - itemNumber
        - chargeAmount
      title: >-
        MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems
    MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems:
      type: object
      properties:
        id:
          type: string
          description: >-
            Your sequence number for this medical event within the claim (e.g.
            `01`, `02`). Echoed by Medicare on any per-event errors so you can
            match messages back to the originating event.
        authorisationDate:
          type: string
          format: date
          description: >-
            Date the patient authorised lodgement (`YYYY-MM-DD`). Cannot be in
            the future.
        createDateTime:
          type: string
          format: date-time
          description: >-
            ISO-8601 timestamp when your software created this claim record.
            Cannot be in the future.
        medicalEventDate:
          type: string
          format: date
          description: >-
            Date the service was rendered. Must not be more than 1 year before
            submission.
        medicalEventTime:
          type: string
          description: >-
            Time the service was rendered (`HH:mm:ss±HH:mm`). Required when a
            same-day duplicate service override applies; otherwise optional.
        submissionAuthorityInd:
          type: string
          description: >-
            Must be `Y`. Confirms that the Medicare benefit has been assigned by
            the patient through pre-assignment or post-assignment. Must be
            displayed to the user to enable claim submission.
        patient:
          $ref: >-
            #/components/schemas/MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsPatient
        service:
          type: array
          items:
            $ref: >-
              #/components/schemas/MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItemsServiceItems
          description: Services rendered in this medical event (max 14 per event).
      required:
        - id
        - authorisationDate
        - createDateTime
        - medicalEventDate
        - submissionAuthorityInd
        - patient
        - service
      title: >-
        MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems
    MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaim:
      type: object
      properties:
        serviceTypeCode:
          type: string
          description: Must be `O` for general out-of-hospital services.
        serviceProvider:
          $ref: >-
            #/components/schemas/MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimServiceProvider
          description: The servicing provider rendering the services in this claim.
        medicalEvent:
          type: array
          items:
            $ref: >-
              #/components/schemas/MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaimMedicalEventItems
          description: >-
            Medical events in this claim (max 80). Each event groups one
            patient's services on a single date.
      required:
        - serviceTypeCode
        - serviceProvider
        - medicalEvent
      title: >-
        MedicareBulkbillstoreforwardGeneralV1PostRequestBodyContentApplicationJsonSchemaClaim
    Medicare Claiming_Bulk Bill Claim_Bulk Bill Claim — General_Response_200:
      type: object
      properties:
        claimId:
          type: string
          description: >-
            Claim identifier assigned by Medicare. Format is a letter prefix, 4
            digits, and a `@` suffix (e.g. `F3848@`). Use this to retrieve the
            Processing Report once the claim has been assessed.
        status:
          type: string
          description: Always `SUCCESS` on a successful submission.
        correlationId:
          type: string
          description: >-
            Unique identifier for the request, for support tracing. Matches the
            `correlationId` you supplied (or the one RebateRight generated for
            you).
      required:
        - claimId
        - status
        - correlationId
      title: Medicare Claiming_Bulk Bill Claim_Bulk Bill Claim — General_Response_200
    MedicareBulkbillstoreforwardGeneralV1PostResponsesContentApplicationJsonSchemaOneOf0ServiceMessageItems:
      type: object
      properties:
        code:
          type: string
          description: >-
            Medicare reason code. Use the [Services Australia lookup
            tool](https://www.servicesaustralia.gov.au/look-up-medicare-reason-code)
            to map it to a human-readable description.
        severity:
          type: string
          description: Severity of this message (e.g. `Error`, `Warning`).
        reason:
          type: string
          description: >-
            Human-readable error message. Includes the offending value and
            points to the faulting Medical Event / Service by id where
            applicable.
      required:
        - code
        - severity
        - reason
      title: >-
        MedicareBulkbillstoreforwardGeneralV1PostResponsesContentApplicationJsonSchemaOneOf0ServiceMessageItems
    PostMedicareBulkbillstoreforwardGeneralV1RequestBadRequestError0:
      type: object
      properties:
        highestSeverity:
          type: string
          description: Highest severity across all messages (e.g. `Error`, `Warning`).
        serviceMessage:
          type: array
          items:
            $ref: >-
              #/components/schemas/MedicareBulkbillstoreforwardGeneralV1PostResponsesContentApplicationJsonSchemaOneOf0ServiceMessageItems
          description: >-
            One entry per failed check. Each message identifies the faulting
            medical event or service in its `reason` text.
        correlationId:
          type: string
          description: Echo of the request's `correlationId`, for support tracing.
      required:
        - highestSeverity
        - serviceMessage
        - correlationId
      title: PostMedicareBulkbillstoreforwardGeneralV1RequestBadRequestError0
    PostMedicareBulkbillstoreforwardGeneralV1RequestBadRequestError1:
      type: object
      properties:
        code:
          type: integer
          description: >-
            Numeric gateway error code (request-schema or routing layer — not a
            Medicare business-rule code).
        codeType:
          type: string
          description: >-
            Gateway error category. For example `DHSEIN` for JSON-schema
            validation failures (missing required properties, wrong types).
        message:
          type: string
          description: Human-readable validation summary.
        correlationId:
          type: string
          description: >-
            Echo of the request's `correlationId` when supplied; otherwise a
            generated one for this call.
      required:
        - code
        - codeType
        - message
        - correlationId
      title: PostMedicareBulkbillstoreforwardGeneralV1RequestBadRequestError1
    PostMedicareBulkbillstoreforwardGeneralV1RequestBadRequestError:
      oneOf:
        - $ref: >-
            #/components/schemas/PostMedicareBulkbillstoreforwardGeneralV1RequestBadRequestError0
        - $ref: >-
            #/components/schemas/PostMedicareBulkbillstoreforwardGeneralV1RequestBadRequestError1
      title: PostMedicareBulkbillstoreforwardGeneralV1RequestBadRequestError
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    minorId:
      type: apiKey
      in: header
      name: x-minor-id

```

## Examples

### Success



**Request**

```json
{
  "claim": {
    "serviceTypeCode": "O",
    "serviceProvider": {
      "providerNumber": "2447781L"
    },
    "medicalEvent": [
      {
        "id": "01",
        "authorisationDate": "2025-09-16",
        "createDateTime": "2025-09-16T10:30:00+10:00",
        "medicalEventDate": "2025-09-16",
        "submissionAuthorityInd": "Y",
        "patient": {
          "identity": {
            "givenName": "Edmond",
            "familyName": "FLETCHER",
            "dateOfBirth": "1986-12-18"
          },
          "medicare": {
            "memberNumber": "4951525561",
            "memberRefNumber": "2"
          }
        },
        "service": [
          {
            "id": "0001",
            "itemNumber": "23",
            "chargeAmount": "15000"
          }
        ]
      }
    ]
  }
}
```

**Response**

```json
{
  "claimId": "F3848@",
  "status": "SUCCESS",
  "correlationId": "urn:uuid:MDE000009bb6cd1c92674e1c"
}
```

**SDK Code**

```python Success
import requests

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

payload = { "claim": {
        "serviceTypeCode": "O",
        "serviceProvider": { "providerNumber": "2447781L" },
        "medicalEvent": [
            {
                "id": "01",
                "authorisationDate": "2025-09-16",
                "createDateTime": "2025-09-16T10:30:00+10:00",
                "medicalEventDate": "2025-09-16",
                "submissionAuthorityInd": "Y",
                "patient": {
                    "identity": {
                        "givenName": "Edmond",
                        "familyName": "FLETCHER",
                        "dateOfBirth": "1986-12-18"
                    },
                    "medicare": {
                        "memberNumber": "4951525561",
                        "memberRefNumber": "2"
                    }
                },
                "service": [
                    {
                        "id": "0001",
                        "itemNumber": "23",
                        "chargeAmount": "15000"
                    }
                ]
            }
        ]
    } }
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Success
const url = 'https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/v1';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"claim":{"serviceTypeCode":"O","serviceProvider":{"providerNumber":"2447781L"},"medicalEvent":[{"id":"01","authorisationDate":"2025-09-16","createDateTime":"2025-09-16T10:30:00+10:00","medicalEventDate":"2025-09-16","submissionAuthorityInd":"Y","patient":{"identity":{"givenName":"Edmond","familyName":"FLETCHER","dateOfBirth":"1986-12-18"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"2"}},"service":[{"id":"0001","itemNumber":"23","chargeAmount":"15000"}]}]}}'
};

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

```go Success
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"claim\": {\n    \"serviceTypeCode\": \"O\",\n    \"serviceProvider\": {\n      \"providerNumber\": \"2447781L\"\n    },\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"authorisationDate\": \"2025-09-16\",\n        \"createDateTime\": \"2025-09-16T10:30:00+10:00\",\n        \"medicalEventDate\": \"2025-09-16\",\n        \"submissionAuthorityInd\": \"Y\",\n        \"patient\": {\n          \"identity\": {\n            \"givenName\": \"Edmond\",\n            \"familyName\": \"FLETCHER\",\n            \"dateOfBirth\": \"1986-12-18\"\n          },\n          \"medicare\": {\n            \"memberNumber\": \"4951525561\",\n            \"memberRefNumber\": \"2\"\n          }\n        },\n        \"service\": [\n          {\n            \"id\": \"0001\",\n            \"itemNumber\": \"23\",\n            \"chargeAmount\": \"15000\"\n          }\n        ]\n      }\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 Success
require 'uri'
require 'net/http'

url = URI("https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/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  \"claim\": {\n    \"serviceTypeCode\": \"O\",\n    \"serviceProvider\": {\n      \"providerNumber\": \"2447781L\"\n    },\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"authorisationDate\": \"2025-09-16\",\n        \"createDateTime\": \"2025-09-16T10:30:00+10:00\",\n        \"medicalEventDate\": \"2025-09-16\",\n        \"submissionAuthorityInd\": \"Y\",\n        \"patient\": {\n          \"identity\": {\n            \"givenName\": \"Edmond\",\n            \"familyName\": \"FLETCHER\",\n            \"dateOfBirth\": \"1986-12-18\"\n          },\n          \"medicare\": {\n            \"memberNumber\": \"4951525561\",\n            \"memberRefNumber\": \"2\"\n          }\n        },\n        \"service\": [\n          {\n            \"id\": \"0001\",\n            \"itemNumber\": \"23\",\n            \"chargeAmount\": \"15000\"\n          }\n        ]\n      }\n    ]\n  }\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/v1")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"claim\": {\n    \"serviceTypeCode\": \"O\",\n    \"serviceProvider\": {\n      \"providerNumber\": \"2447781L\"\n    },\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"authorisationDate\": \"2025-09-16\",\n        \"createDateTime\": \"2025-09-16T10:30:00+10:00\",\n        \"medicalEventDate\": \"2025-09-16\",\n        \"submissionAuthorityInd\": \"Y\",\n        \"patient\": {\n          \"identity\": {\n            \"givenName\": \"Edmond\",\n            \"familyName\": \"FLETCHER\",\n            \"dateOfBirth\": \"1986-12-18\"\n          },\n          \"medicare\": {\n            \"memberNumber\": \"4951525561\",\n            \"memberRefNumber\": \"2\"\n          }\n        },\n        \"service\": [\n          {\n            \"id\": \"0001\",\n            \"itemNumber\": \"23\",\n            \"chargeAmount\": \"15000\"\n          }\n        ]\n      }\n    ]\n  }\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/v1', [
  'body' => '{
  "claim": {
    "serviceTypeCode": "O",
    "serviceProvider": {
      "providerNumber": "2447781L"
    },
    "medicalEvent": [
      {
        "id": "01",
        "authorisationDate": "2025-09-16",
        "createDateTime": "2025-09-16T10:30:00+10:00",
        "medicalEventDate": "2025-09-16",
        "submissionAuthorityInd": "Y",
        "patient": {
          "identity": {
            "givenName": "Edmond",
            "familyName": "FLETCHER",
            "dateOfBirth": "1986-12-18"
          },
          "medicare": {
            "memberNumber": "4951525561",
            "memberRefNumber": "2"
          }
        },
        "service": [
          {
            "id": "0001",
            "itemNumber": "23",
            "chargeAmount": "15000"
          }
        ]
      }
    ]
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp Success
using RestSharp;

var client = new RestClient("https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"claim\": {\n    \"serviceTypeCode\": \"O\",\n    \"serviceProvider\": {\n      \"providerNumber\": \"2447781L\"\n    },\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"authorisationDate\": \"2025-09-16\",\n        \"createDateTime\": \"2025-09-16T10:30:00+10:00\",\n        \"medicalEventDate\": \"2025-09-16\",\n        \"submissionAuthorityInd\": \"Y\",\n        \"patient\": {\n          \"identity\": {\n            \"givenName\": \"Edmond\",\n            \"familyName\": \"FLETCHER\",\n            \"dateOfBirth\": \"1986-12-18\"\n          },\n          \"medicare\": {\n            \"memberNumber\": \"4951525561\",\n            \"memberRefNumber\": \"2\"\n          }\n        },\n        \"service\": [\n          {\n            \"id\": \"0001\",\n            \"itemNumber\": \"23\",\n            \"chargeAmount\": \"15000\"\n          }\n        ]\n      }\n    ]\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Success
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = ["claim": [
    "serviceTypeCode": "O",
    "serviceProvider": ["providerNumber": "2447781L"],
    "medicalEvent": [
      [
        "id": "01",
        "authorisationDate": "2025-09-16",
        "createDateTime": "2025-09-16T10:30:00+10:00",
        "medicalEventDate": "2025-09-16",
        "submissionAuthorityInd": "Y",
        "patient": [
          "identity": [
            "givenName": "Edmond",
            "familyName": "FLETCHER",
            "dateOfBirth": "1986-12-18"
          ],
          "medicare": [
            "memberNumber": "4951525561",
            "memberRefNumber": "2"
          ]
        ],
        "service": [
          [
            "id": "0001",
            "itemNumber": "23",
            "chargeAmount": "15000"
          ]
        ]
      ]
    ]
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/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()
```

### With Aftercare Override



**Request**

```json
{
  "claim": {
    "serviceTypeCode": "O",
    "serviceProvider": {
      "providerNumber": "2447781L"
    },
    "medicalEvent": [
      {
        "id": "01",
        "authorisationDate": "2025-09-16",
        "createDateTime": "2025-09-16T10:30:00+10:00",
        "medicalEventDate": "2025-09-16",
        "submissionAuthorityInd": "Y",
        "patient": {
          "identity": {
            "givenName": "Edmond",
            "familyName": "FLETCHER",
            "dateOfBirth": "1986-12-18"
          },
          "medicare": {
            "memberNumber": "4951525561",
            "memberRefNumber": "2"
          }
        },
        "service": [
          {
            "id": "0001",
            "itemNumber": "30195",
            "chargeAmount": "12000",
            "aftercareOverrideInd": "Y"
          }
        ]
      }
    ]
  }
}
```

**Response**

```json
{
  "claimId": "F3848@",
  "status": "SUCCESS",
  "correlationId": "urn:uuid:MDE000009bb6cd1c92674e1c"
}
```

**SDK Code**

```python With Aftercare Override
import requests

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

payload = { "claim": {
        "serviceTypeCode": "O",
        "serviceProvider": { "providerNumber": "2447781L" },
        "medicalEvent": [
            {
                "id": "01",
                "authorisationDate": "2025-09-16",
                "createDateTime": "2025-09-16T10:30:00+10:00",
                "medicalEventDate": "2025-09-16",
                "submissionAuthorityInd": "Y",
                "patient": {
                    "identity": {
                        "givenName": "Edmond",
                        "familyName": "FLETCHER",
                        "dateOfBirth": "1986-12-18"
                    },
                    "medicare": {
                        "memberNumber": "4951525561",
                        "memberRefNumber": "2"
                    }
                },
                "service": [
                    {
                        "id": "0001",
                        "itemNumber": "30195",
                        "chargeAmount": "12000",
                        "aftercareOverrideInd": "Y"
                    }
                ]
            }
        ]
    } }
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript With Aftercare Override
const url = 'https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/v1';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"claim":{"serviceTypeCode":"O","serviceProvider":{"providerNumber":"2447781L"},"medicalEvent":[{"id":"01","authorisationDate":"2025-09-16","createDateTime":"2025-09-16T10:30:00+10:00","medicalEventDate":"2025-09-16","submissionAuthorityInd":"Y","patient":{"identity":{"givenName":"Edmond","familyName":"FLETCHER","dateOfBirth":"1986-12-18"},"medicare":{"memberNumber":"4951525561","memberRefNumber":"2"}},"service":[{"id":"0001","itemNumber":"30195","chargeAmount":"12000","aftercareOverrideInd":"Y"}]}]}}'
};

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

```go With Aftercare Override
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"claim\": {\n    \"serviceTypeCode\": \"O\",\n    \"serviceProvider\": {\n      \"providerNumber\": \"2447781L\"\n    },\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"authorisationDate\": \"2025-09-16\",\n        \"createDateTime\": \"2025-09-16T10:30:00+10:00\",\n        \"medicalEventDate\": \"2025-09-16\",\n        \"submissionAuthorityInd\": \"Y\",\n        \"patient\": {\n          \"identity\": {\n            \"givenName\": \"Edmond\",\n            \"familyName\": \"FLETCHER\",\n            \"dateOfBirth\": \"1986-12-18\"\n          },\n          \"medicare\": {\n            \"memberNumber\": \"4951525561\",\n            \"memberRefNumber\": \"2\"\n          }\n        },\n        \"service\": [\n          {\n            \"id\": \"0001\",\n            \"itemNumber\": \"30195\",\n            \"chargeAmount\": \"12000\",\n            \"aftercareOverrideInd\": \"Y\"\n          }\n        ]\n      }\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 With Aftercare Override
require 'uri'
require 'net/http'

url = URI("https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/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  \"claim\": {\n    \"serviceTypeCode\": \"O\",\n    \"serviceProvider\": {\n      \"providerNumber\": \"2447781L\"\n    },\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"authorisationDate\": \"2025-09-16\",\n        \"createDateTime\": \"2025-09-16T10:30:00+10:00\",\n        \"medicalEventDate\": \"2025-09-16\",\n        \"submissionAuthorityInd\": \"Y\",\n        \"patient\": {\n          \"identity\": {\n            \"givenName\": \"Edmond\",\n            \"familyName\": \"FLETCHER\",\n            \"dateOfBirth\": \"1986-12-18\"\n          },\n          \"medicare\": {\n            \"memberNumber\": \"4951525561\",\n            \"memberRefNumber\": \"2\"\n          }\n        },\n        \"service\": [\n          {\n            \"id\": \"0001\",\n            \"itemNumber\": \"30195\",\n            \"chargeAmount\": \"12000\",\n            \"aftercareOverrideInd\": \"Y\"\n          }\n        ]\n      }\n    ]\n  }\n}"

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

```java With Aftercare Override
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/v1")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"claim\": {\n    \"serviceTypeCode\": \"O\",\n    \"serviceProvider\": {\n      \"providerNumber\": \"2447781L\"\n    },\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"authorisationDate\": \"2025-09-16\",\n        \"createDateTime\": \"2025-09-16T10:30:00+10:00\",\n        \"medicalEventDate\": \"2025-09-16\",\n        \"submissionAuthorityInd\": \"Y\",\n        \"patient\": {\n          \"identity\": {\n            \"givenName\": \"Edmond\",\n            \"familyName\": \"FLETCHER\",\n            \"dateOfBirth\": \"1986-12-18\"\n          },\n          \"medicare\": {\n            \"memberNumber\": \"4951525561\",\n            \"memberRefNumber\": \"2\"\n          }\n        },\n        \"service\": [\n          {\n            \"id\": \"0001\",\n            \"itemNumber\": \"30195\",\n            \"chargeAmount\": \"12000\",\n            \"aftercareOverrideInd\": \"Y\"\n          }\n        ]\n      }\n    ]\n  }\n}")
  .asString();
```

```php With Aftercare Override
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/v1', [
  'body' => '{
  "claim": {
    "serviceTypeCode": "O",
    "serviceProvider": {
      "providerNumber": "2447781L"
    },
    "medicalEvent": [
      {
        "id": "01",
        "authorisationDate": "2025-09-16",
        "createDateTime": "2025-09-16T10:30:00+10:00",
        "medicalEventDate": "2025-09-16",
        "submissionAuthorityInd": "Y",
        "patient": {
          "identity": {
            "givenName": "Edmond",
            "familyName": "FLETCHER",
            "dateOfBirth": "1986-12-18"
          },
          "medicare": {
            "memberNumber": "4951525561",
            "memberRefNumber": "2"
          }
        },
        "service": [
          {
            "id": "0001",
            "itemNumber": "30195",
            "chargeAmount": "12000",
            "aftercareOverrideInd": "Y"
          }
        ]
      }
    ]
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp With Aftercare Override
using RestSharp;

var client = new RestClient("https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/v1");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"claim\": {\n    \"serviceTypeCode\": \"O\",\n    \"serviceProvider\": {\n      \"providerNumber\": \"2447781L\"\n    },\n    \"medicalEvent\": [\n      {\n        \"id\": \"01\",\n        \"authorisationDate\": \"2025-09-16\",\n        \"createDateTime\": \"2025-09-16T10:30:00+10:00\",\n        \"medicalEventDate\": \"2025-09-16\",\n        \"submissionAuthorityInd\": \"Y\",\n        \"patient\": {\n          \"identity\": {\n            \"givenName\": \"Edmond\",\n            \"familyName\": \"FLETCHER\",\n            \"dateOfBirth\": \"1986-12-18\"\n          },\n          \"medicare\": {\n            \"memberNumber\": \"4951525561\",\n            \"memberRefNumber\": \"2\"\n          }\n        },\n        \"service\": [\n          {\n            \"id\": \"0001\",\n            \"itemNumber\": \"30195\",\n            \"chargeAmount\": \"12000\",\n            \"aftercareOverrideInd\": \"Y\"\n          }\n        ]\n      }\n    ]\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift With Aftercare Override
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = ["claim": [
    "serviceTypeCode": "O",
    "serviceProvider": ["providerNumber": "2447781L"],
    "medicalEvent": [
      [
        "id": "01",
        "authorisationDate": "2025-09-16",
        "createDateTime": "2025-09-16T10:30:00+10:00",
        "medicalEventDate": "2025-09-16",
        "submissionAuthorityInd": "Y",
        "patient": [
          "identity": [
            "givenName": "Edmond",
            "familyName": "FLETCHER",
            "dateOfBirth": "1986-12-18"
          ],
          "medicare": [
            "memberNumber": "4951525561",
            "memberRefNumber": "2"
          ]
        ],
        "service": [
          [
            "id": "0001",
            "itemNumber": "30195",
            "chargeAmount": "12000",
            "aftercareOverrideInd": "Y"
          ]
        ]
      ]
    ]
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.rebateright.com.au/Medicare/bulkbillstoreforward/general/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()
```