> ## Documentation Index
> Fetch the complete documentation index at: https://docs.idmetagroup.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Australia Death Certificate sandbox

> Predetermined API payloads to retrieve every Australia Death Certificate status in sandbox mode.

Sandbox payloads for the [AUS Death Certificate](https://docs.idmetagroup.com/api-reference/government-data/australia/au-death-certificate/au-death-certificate.md) endpoint.

```http theme={null}
POST /api/v3/verifications/australia/death-certificate
```

When your account is in sandbox mode, these payloads return the outcomes shown below. No credit is reserved or charged.

Every field in the request body selects the scenario, so send each payload exactly as shown. Values are case-sensitive, and adding an optional field that a sample leaves out, or leaving out one that it includes, returns the [details not on record](#rejected) response. `doe` is the exception: send it as `DD-MM-YYYY` or `YYYY-MM-DD`. `registrationDate` is not converted, so send it as `YYYY-MM-DD` exactly as shown. `createdAt` is generated per request, and `trustFlowId`, `trustValidationId` and `metadata` are echoed back from your request and trust validation.

See [Sandbox introduction](https://docs.idmetagroup.com/api-reference/sandbox.md) for the shared sandbox rules.

### Verified

In `data`, `isValid` is `true` when `VerificationResultCode` is `1`. `ActivityId` and `VerificationRequestNumber` are fixed sandbox values. In live they are unique to each request.

> [accordion] VERIFIED — Sample 1: Jane Taylor
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "familyName": "TAYLOR",
>   "givenName": "JANE",
>   "doe": "01-01-2020",
>   "registrationNumber": "1234567",
>   "registrationState": "NSW",
>   "registrationDate": "2020-01-08",
>   "certificateNumber": "1234567"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Australia Death Certificate processed successfully",
>   "data": {
>     "isValid": true,
>     "ActivityId": "SANDBOX-DEATHCERTIFICATE-0001",
>     "OriginatingAgencyCode": "IDM001",
>     "VerificationRequestNumber": "SANDBOX-0001",
>     "VerificationResultCode": 1
>   },
>   "verificationStatus": "VERIFIED",
>   "verificationStatusCode": 3,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "australia_death_certificate",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

> [accordion] VERIFIED — Sample 2: Linh Nguyen
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "familyName": "NGUYEN",
>   "givenName": "LINH",
>   "doe": "01-01-2020",
>   "registrationNumber": "1234567",
>   "registrationState": "NSW",
>   "registrationDate": "2020-01-08",
>   "certificateNumber": "1234567"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Australia Death Certificate processed successfully",
>   "data": {
>     "isValid": true,
>     "ActivityId": "SANDBOX-DEATHCERTIFICATE-0003",
>     "OriginatingAgencyCode": "IDM001",
>     "VerificationRequestNumber": "SANDBOX-0003",
>     "VerificationResultCode": 1
>   },
>   "verificationStatus": "VERIFIED",
>   "verificationStatusCode": 3,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "australia_death_certificate",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

### Rejected

A rejection is a completed verification, not an error. It returns HTTP `200` with `verificationStatus` set to `REJECTED`, and `Errors` says which field was rejected and by whom: `Issuer` for the document issuer, `DVS` for the DVS hub.

> [accordion] REJECTED — Certificate Number invalid
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "familyName": "WHITFIELD",
>   "givenName": "MARIA",
>   "doe": "01-01-2020",
>   "registrationNumber": "1234567",
>   "registrationState": "NSW",
>   "registrationDate": "2020-01-08",
>   "certificateNumber": "1234567"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Australia Death Certificate processed successfully",
>   "data": {
>     "isValid": false,
>     "ActivityId": "SANDBOX-DEATHCERTIFICATE-0002",
>     "Errors": [
>       {
>         "Field": "Certificate Number",
>         "Message": "Certificate Number invalid.",
>         "Source": "Issuer"
>       }
>     ],
>     "OriginatingAgencyCode": "IDM001",
>     "VerificationRequestNumber": "SANDBOX-0002",
>     "VerificationResultCode": 2
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "australia_death_certificate",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> `Errors` names the field the issuer rejected.

> [accordion] REJECTED — Date of event does not match
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "familyName": "TAYLOR",
>   "givenName": "JANE",
>   "doe": "22-08-2019",
>   "registrationNumber": "1234567",
>   "registrationState": "NSW",
>   "registrationDate": "2020-01-08",
>   "certificateNumber": "1234567"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Australia Death Certificate processed successfully",
>   "data": {
>     "isValid": false,
>     "ActivityId": "SANDBOX-DEATHCERTIFICATE-0004",
>     "Errors": [
>       {
>         "Field": "DateOfEvent",
>         "Message": "Date of event does not match.",
>         "Source": "Issuer"
>       }
>     ],
>     "OriginatingAgencyCode": "IDM001",
>     "VerificationRequestNumber": "SANDBOX-0004",
>     "VerificationResultCode": 2
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "australia_death_certificate",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> `Errors` names the field the issuer rejected.

> [accordion] REJECTED — Registration or certificate number missing
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "familyName": "TAYLOR",
>   "givenName": "JANE",
>   "doe": "01-01-2020",
>   "registrationState": "NSW"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Australia Death Certificate processed successfully",
>   "data": {
>     "isValid": false,
>     "ActivityId": "00000000-0000-0000-0000-000000000000",
>     "Errors": [
>       {
>         "Field": "CertificateNumber",
>         "Message": "Registration Number OR Certificate Number must be supplied",
>         "Source": "DVS"
>       }
>     ],
>     "OriginatingAgencyCode": "IDM001",
>     "VerificationRequestNumber": "SANDBOX-0005",
>     "VerificationResultCode": 2
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "australia_death_certificate",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> DVS rejects this request before the issuer is checked, so `Source` is `DVS` and `ActivityId` is all zeros. Send `registrationNumber`, `certificateNumber` or both. Field validation does not catch this, so it comes back as a rejected verification rather than HTTP `400`.

> [accordion] REJECTED — Details not on record
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "familyName": "SMITH",
>   "givenName": "JANE",
>   "doe": "01-01-2020",
>   "registrationNumber": "1234567",
>   "registrationState": "NSW",
>   "registrationDate": "2020-01-08",
>   "certificateNumber": "1234567"
> }
> ```
>
> **Response** — HTTP `200`
>
> ```json theme={null}
> {
>   "success": true,
>   "message": "Australia Death Certificate processed successfully",
>   "data": {
>     "isValid": false,
>     "ActivityId": "SANDBOX-NO-RECORD",
>     "Errors": [
>       {
>         "Field": null,
>         "Message": "The details provided could not be verified.",
>         "Source": "Issuer"
>       }
>     ],
>     "OriginatingAgencyCode": "IDM001",
>     "VerificationRequestNumber": "SANDBOX-NO-RECORD",
>     "VerificationResultCode": 2
>   },
>   "verificationStatus": "REJECTED",
>   "verificationStatusCode": 1,
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "verificationType": "australia_death_certificate",
>   "metadata": null,
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> Any details that are not listed on this page return this same response, so `SMITH` is only an example. This includes a listed sample with an optional field added or removed.

### Validation failures

Validation runs before any fixture matching, so these behave identically in sandbox and live. They return HTTP `400`, and `message` is the first validation error.

> [accordion] Validation failed — Required fields missing
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>"
> }
> ```
>
> **Response** — HTTP `400`
>
> ```json theme={null}
> {
>   "success": false,
>   "message": "The doe field is required.",
>   "errors": {
>     "doe": ["The doe field is required."],
>     "registrationState": ["The registrationState field is required."]
>   },
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```

> [accordion] Not found — Trust validation does not exist
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "does-not-exist",
>   "familyName": "TAYLOR",
>   "givenName": "JANE",
>   "doe": "01-01-2020",
>   "registrationNumber": "1234567",
>   "registrationState": "NSW",
>   "registrationDate": "2020-01-08",
>   "certificateNumber": "1234567"
> }
> ```
>
> **Response** — HTTP `404`
>
> ```json theme={null}
> {
>   "success": false,
>   "message": "Trust Validation Not Found",
>   "errors": {
>     "trustValidation": "Trust Validation Not Found"
>   },
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> `trustValidationId` must belong to your company. Create a trust validation first, then use its ID.

### Source unavailable

> [accordion] Error — Data Source Unavailable
>
> **Request**
>
> ```json theme={null}
> {
>   "trustFlowId": "<your trust flow id>",
>   "trustValidationId": "<your trust validation id>",
>   "familyName": "OKONKWO",
>   "givenName": "DANIEL",
>   "doe": "01-01-2020",
>   "registrationNumber": "1234567",
>   "registrationState": "NSW",
>   "registrationDate": "2020-01-08",
>   "certificateNumber": "1234567"
> }
> ```
>
> **Response** — HTTP `500`
>
> ```json theme={null}
> {
>   "success": false,
>   "message": "An error occurred during the process. Please contact support for assistance.",
>   "createdAt": "<UTC timestamp of the request>"
> }
> ```
>
> There is no `data`, `verificationStatus` or `trustValidationId` in this response. Treat it as a temporary failure and retry later. No credit is charged in live mode.

### Account-level responses

Two further responses are not specific to this endpoint. A missing or invalid `Authorization` header returns HTTP `401`, and an account without the `australia_death_certificate` plan returns HTTP `403` — both enforced in sandbox exactly as in live. See [Sandbox introduction](https://docs.idmetagroup.com/api-reference/sandbox.md#non-verification-responses) for their envelopes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.