Validate a Medicare card
/api/v2/dvs/medicare
operationId: dvs.medicare
Live: https://gdapi.globaldata.net.au/api/v2/dvs/medicare · Sandbox: https://sandbox-gdapi.globaldata.net.au/api/v2/dvs/medicare
Validates a Medicare card against the Australian Document Verification Service (DVS).
Sandbox environment
When simulating queries in the sandbox environment, a specific set of medicare cards will return a specific result. The response will be determined by the card number:
Request body
Content type application/json.
The medicare card details to validate
| Field | Description |
|---|---|
preflight |
boolean When set to true, the request will only perform a preflight check to validate the input parameters. No actual verification will be performed. |
consent |
boolean The individual's consent to perform the check |
oac |
string [4..20 characters] or null The DVS Identity (Originating Agency Code) to run the check under. You only need this if Global Data has set up additional DVS Identities on your account, for example because you submit checks on behalf of other organisations. If you leave it out, your account's own DVS Identity is used. If you send it, it must be your account's own DVS Identity or one of its additional identities. Any other value is rejected. In the sandbox you can also use the sample identities |
full_name1 |
string Line 1 of the full name of the card holder |
full_name2 |
string Line 2 of the full name of the card holder |
full_name3 |
string Line 3 of the full name of the card holder |
full_name4 |
string Line 4 of the full name of the card holder |
birth_date |
string (date) The date of birth of the card holder |
card_number |
string The card number on the card to be validated |
individual_ref_number |
string The individual reference number on the card for the card holder |
card_expiry |
string The expiry date of the card to be validated |
card_type |
string The type of card to be validated |
Responses
Result of the document verification check
application/json
| Field | Description |
|---|---|
message |
string A message indicating the result of the request. This will be |
function |
string The function that was called |
api_reference |
string (uuid) A unique identifier for this request. This can be used to track the request in the logs. |
data |
object The check data |
data. |
string The type of response |
data. |
string A reference ID for this activity. This ID can be used to track the activity in the logs. |
data. |
string A unique reference number for this request |
data. |
string The result of the verification
|
data. |
array of objects An array of expanded responses returned from the DVSHub or Document Issuer for N or D results |
data. |
string A message indicating the reason for the N or D result. |
data. |
string A code number associated with the corresponding message. |
A successful preflight check. A 400 will be returned if the preflight check fails.
application/json
| Field | Description |
|---|---|
message |
string A message indicating the result of the request. This will be |
function |
string The function that was called |
api_reference |
string (uuid) A unique identifier for this request. This can be used to track the request in the logs. |
data |
null For preflight checks this is null |