Response
When a transaction is processed, the SDK will pass through the transaction details to the first parameter of the onSuccess callback.
The response payload contains a number of attributes with a complete description of the transaction model in our online API documentation.
Key response attributes include:
Claim response attributes
When a transaction is processed, the SDK will pass through the transaction details to the first parameter of the onSuccess callback.
The response payload contains a number of attributes with a complete description of the transaction model in our online API documentation.
Key response attributes include
Field | Format | Example value | Description |
---|---|---|---|
_id |
128 characters | Tyro Health Online unique transaction reference | |
patient {} | Object | Patient names as validated with WorkSafe Victoria | |
patient.firstName |
Up to 40 characters | Patient first / given name as registered with icare. | |
patient.lastName |
Up to 40 characters | Patient last / family name as registered with WorkSafe Victoria. | |
patient.dobString |
string | Date of birth in YYYY-MM-DD format. | |
practice | Object | ||
practice.id |
string | Internal practice ID | |
practice.fullName |
string | Name of practice | |
claims | Object | ||
claims.status |
256 characters | Description of overall claim/quote | |
claims.statusDescription |
Description of the status | ||
claims.gatewayCode |
Claim item gateway response code | ||
claims.amountExpectedBenefitString |
integer | Total claim benefit amount in cents or (string) in currency notation WorkSafe Victoria is expected to pay. | |
claimItems.amountActualBenefitString |
string | The amount WorkSafe Victoria has approved to pay in currency format. E.g. $119.95. | |
claims.amountGap/claims.amountGapString |
Total claim gap (employee payable) amount in cents or (string) in currency notation. | ||
claims.claimItems | Array | For each claimed item, a separate line level response as below. | |
claims.claimItems.status |
256 characters | Description of the claim/quote item level status | |
claims.claimItems.gatewayCode |
String | Claim gateway response code | |
claims.claimItems.amountActualBenefit / claims.claimItems.amountActualBenefitString |
Claim item benefit amount in cents or (string) in currency notation. | ||
claims.claimItems.amountGap/ claims.claimItems.amountGapString |
Claim item gap (member payable) amount in cents or (string) in currency notation. |
Transaction object response on success(root level attributes):
{
_id: string
abn: string
amountBalance: number
amountBalanceString: string
amountCharged: number
amountChargedString: string
amountClaimsActualBenefit: number
amountClaimsActualBenefitString: string
amountClaimsExpectedBenefit: number
amountClaimsExpectedBenefitString: string
amountClaimsGap: number
amountClaimsGapString: string
amountFee: number
amountFeeNet: number
amountFeeNetString: string
amountFeeString: string
amountItemsCharged: number
amountItemsChargedString: string
amountItemsFee: number
amountItemsFeeString: string
amountOutOfPocket: number
amountOutOfPocketString: string
amountOutstanding: number
amountOutstandingString: string
amountRefund: number
amountRefundString: string
amountTax: number
amountTaxString: string
application: Object
businessId: string
businessStatus: string
claims: [
amountActualBenefit: number
amountActualBenefitString: string
amountExpectedBenefit: number
amountExpectedBenefitString: string
amountGap: number
amountGapString: string
beneficiary: string
claimDateString: string
claimId: string
claimItems: Object
claimType: string
createdByAccountId: string
createdByAccountUsername: string
funder: Object
gatewayCode: string
healthFund: Object
healthFundAccount: Object
professionalCategory: Object
providerNumber: string
requested: string
responded: string
specialties: Object
specialty: Object
status: string
statusDescription: string
statusHistory: Array
_id: string
]
created: string
createdByAccountUsername: string
items: Array
modified: string
originatingFlow: string
patient: Object
payments: Array
practice: Object
staff: Object
transactionId: string
transactionType: string
webhooks: Array
}
On Error response will either be a string or an object.
Transaction object response onError object (root level attributes):
{
"statusCode": number,
"error": string,
"message": string,
"errorCode": number,
"errors": [
{
"message": string,
"attribute": string
}
]
}