# Tyro Health playground Tyro Health has a playground to allow you to test SDK transactions. You can access Playground by clicking on the below link: https://playground.medipass.io/ - You will need a API Key and APP ID to use Playground. - You will receive these credentials from your partnerships manager. If you haven’t yet received these, please contact healthpartnerships@tyro.com. To see the below samples in playground click on the headings and then insert your API Key and appID and then click refresh token. ## Sample transcations ### GP - Bulk billed ```js medipassPartnerSDK.renderCreateTransaction({ funder: "medicare", providerNumber: "2409661B", benefitPayee: { providerNumber: "2409661B" }, funderData: { medicare: { isBulkBilled: true, isInHospital: false, referral: { referrerType: "gp", providerNumber: "2054781W", providerName: "Dr. Jane Smith", issueDateString: "2020-07-23", period: "standard" } } }, invoiceReference: "INV12350", patient: { firstName: "FELICA", lastName: "HENDRIX", dob: "1975-04-14", mobile: "0411111111", accountNumber: "6950507392", reference: "1" }, claimableItems: [ { itemCode: "23", serviceDateString: "2022-02-15", price: "$90", serviceText: "Not currently on Medication" } ] }, webhooks: [ { url: ’string, event: 'invoiceCancelled,healthFundApprovedInvoice,healthFundRejectedInvoice', method: 'POST', headers: { [Key: string] : your string } }], }, { onSuccess: function (transaction) { /* ... */ }, onError: function (error) { /* ... */ }, onCancel: function () { /* ... */ } }); ``` ### GP - Patient claim ```js medipassPartnerSDK.renderCreateTransaction({ funder: "medicare", providerNumber: "2409661B", }, funderData: { medicare: { isBulkBilled: false, lspn: "01", isInHospital: false, referral: { referrerType: "gp", providerNumber: "2054781W", providerName: "Dr. Jane Smith", issueDateString: "2020-07-23", period: "standard" } } }, invoiceReference: "INV12350", patient: { firstName: "FELICA", lastName: "HENDRIX", dob: "1975-04-14", mobile: "0411111111", accountNumber: "6950507392", reference: "1" }, claimableItems: [ { itemCode: "23", serviceDateString: "2022-02-15", price: "$90" } ] }, webhooks: [ { url: ’string, event: 'invoiceCancelled,healthFundApprovedInvoice,healthFundRejectedInvoice', method: 'POST', headers: { [Key: string] : your string } }], }, { onSuccess: function (transaction) { /* ... */ }, onError: function (error) { /* ... */ }, onCancel: function () { /* ... */ } }); ``` ### Patient Claim for Specialist/allied ```js medipassPartnerSDK.renderCreateTransaction({ funder: "medicare", providerNumber: "2429591L", funderData: { medicare: { isBulkBilled: false, lspn: "01", isInHospital: false, referral: { referrerType: "gp", providerNumber: "2054781W", providerName: "Dr. Jane Smith", issueDateString: "2020-07-23", period: "standard" } } }, invoiceReference: "INV12350", patient: { firstName: "FELICA", lastName: "HENDRIX", dob: "1975-04-14", mobile: "0411111111", accountNumber: "6950507392", reference: "1" }, claimableItems: [ { itemCode: "10960", serviceDateString: "2022-02-15", price: "$90" } ] }, webhooks: [ { url: ’string, event: 'invoiceCancelled,healthFundApprovedInvoice,healthFundRejectedInvoice', method: 'POST', headers: { [Key: string] : your string } }], }, { onSuccess: function (transaction) { /* ... */ }, onError: function (error) { /* ... */ }, onCancel: function () { /* ... */ } }); ``` ### Bulk Bill for Specialist/allied ```js medipassPartnerSDK.renderCreateTransaction({ funder: "medicare", providerNumber: "2429591L", funderData: { medicare: { isBulkBilled: true, lspn: "01", isInHospital: false, referral: { referrerType: "gp", providerNumber: "2054781W", providerName: "Dr. Jane Smith", issueDateString: "2020-07-23", period: "standard" } } }, invoiceReference: "INV12350", patient: { firstName: "FELICA", lastName: "HENDRIX", dob: "1975-04-14", mobile: "0411111111", accountNumber: "6950507392", reference: "1" }, claimableItems: [ { itemCode: "10960", serviceDateString: "2022-02-15", price: "$90" } ] }, webhooks: [ { url: ’string, event: 'invoiceCancelled,healthFundApprovedInvoice,healthFundRejectedInvoice', method: 'POST', headers: { [Key: string] : your string } }], }, { onSuccess: function (transaction) { /* ... */ }, onError: function (error) { /* ... */ }, onCancel: function () { /* ... */ } }); ``` ### Patient Claim for GP with a claimant ```js medipassPartnerSDK.renderCreateTransaction({ funder: "medicare", providerNumber: "2409661B", benefitPayee: { providerNumber: "2409661B" }, funderData: { medicare: { isBulkBilled: false, isInHospital: false, referral: { referrerType: "gp", providerNumber: "2054781W", providerName: "Dr. Jane Smith", issueDateString: "2020-07-23", period: "standard" }, claimant: { firstName: "MADELAINE", lastName: "ARTHUR", dob: "1987-01-15", reference: "1", accountNumber: "2951201842" } } }, invoiceReference: "INV12350", patient: { firstName: "DIMITY", lastName: "ARTHUR", dob: "2011-02-10", accountNumber: "2951201842", reference: "4" }, claimableItems: [ { itemCode: "23", serviceDateString: "2022-02-15", price: "$90", serviceText: "Not currently on Medication" } ] }, webhooks: [ { url: ’string, event: 'invoiceCancelled,healthFundApprovedInvoice,healthFundRejectedInvoice', method: 'POST', headers: { [Key: string] : your string } }], }, { onSuccess: function (transaction) { /* ... */ }, onError: function (error) { /* ... */ }, onCancel: function () { /* ... */ } }); ```