{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Tyro Health playground","description":"Tyro Health Docs","keywords":"redocly developer portal, api portal starter, api reference docs","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"tyro-health-playground","__idx":0},"children":["Tyro Health playground"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tyro Health has a playground to allow you to test SDK transactions. You can access Playground by  clicking on the below link:"," ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://playground.medipass.io/","target":"_blank"},"children":["https://playground.medipass.io/"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You will need a API Key and APP ID to use Playground."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You will receive these credentials from your partnerships manager. If you haven’t yet received these, please contact healthpartnerships@tyro.com."," ","Once you have inserted your API Key and APP ID click on the refreash token button."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"sample-transcations","__idx":1},"children":["Sample transcations"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"_","__idx":2},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://playground.medipass.io/?query=%7B%22platform%22%3A%22funder%22%2C%22funder%22%3A%22wsv%22%2C%22invoiceReference%22%3A%22123%22%2C%22memberStatus%22%3A%22new%22%2C%22patient%22%3A%7B%22refId%22%3A%221234%22%2C%22firstName%22%3A%22Standardclaim%22%2C%22lastName%22%3A%22Medipass%22%2C%22dob%22%3A%221980-07-01%22%2C%22accountNumber%22%3A%2212210000492%22%7D%2C%22claimableItems%22%3A%5B%7B%22itemCode%22%3A%22193%22%2C%22serviceDateString%22%3A%222022-02-15%22%2C%22price%22%3A%22%2490%22%2C%22description%22%3A%22Professional%20attendance%20by%20a%20general%20practitioner%22%7D%5D%2C%22providerNumber%22%3A%220111827Y%22%2C%22webhooks%22%3A%5B%7B%22url%22%3A%22yoururl%22%2C%22event%22%3A%22healthFundApprovedInvoice%22%2C%22method%22%3A%22POST%22%2C%22headers%22%3A%5B%5D%7D%2C%7B%22url%22%3A%22yoururl%22%2C%22event%22%3A%22healthFundRejectedInvoice%22%2C%22method%22%3A%22POST%22%7D%2C%7B%22url%22%3A%22yoururl%22%2C%22event%22%3A%22invoiceCancelled%22%2C%22method%22%3A%22POST%22%7D%5D%7D&config=%7B%22env%22%3A%22stg%22%2C%22apiKey%22%3A%22%22%2C%22appId%22%3A%22%22%7D","target":"_blank"},"children":[" GP claim item "]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"js","header":{"controls":{"copy":{}}},"source":"medipassPartnerSDK.renderCreateTransaction({\n  funder: \"wsv\",\n  providerNumber: \"0111827Y\",\n  invoiceReference: \"123\",\n  patient: {\n    firstName: \"Standardclaim\",\n    lastName: \"Medipass\",\n    dob: \"1980-07-01\",\n    accountNumber: \"12210000492\"\n  },\n  claimableItems: [\n    {\n      itemCode: \"193\",\n      serviceDateString: \"2022-02-15\",\n      price: \"$90\",\n    }\n  ]\n },  \n   webhooks: [\n    {\n      url: ’string,\n      event: 'invoiceCancelled,healthFundApprovedInvoice,healthFundRejectedInvoice',\n      method: 'POST',\n      headers: { [Key: string] : your string }\n    }],\n}, {\n  onSuccess: function (transaction) { /* ... */ },\n  onError: function (error) { /* ... */ },\n  onCancel: function () { /* ... */ }\n\n});\n","lang":"js"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"_-1","__idx":3},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://playground.medipass.io/?query=%7B%22platform%22%3A%22funder%22%2C%22funder%22%3A%22wsv%22%2C%22invoiceReference%22%3A%22123%22%2C%22memberStatus%22%3A%22new%22%2C%22patient%22%3A%7B%22refId%22%3A%22%22%2C%22firstName%22%3A%22Standardclaim%22%2C%22lastName%22%3A%22Medipass%22%2C%22dob%22%3A%221980-07-01%22%2C%22accountNumber%22%3A%2212210000492%22%7D%2C%22claimableItems%22%3A%5B%7B%22itemCode%22%3A%22193%22%2C%22serviceDateString%22%3A%222022-02-15%22%2C%22price%22%3A%22%2490%22%2C%22description%22%3A%22Professional%20attendance%20by%20a%20general%20practitioner%22%7D%5D%2C%22providerNumber%22%3A%222382464A%22%2C%22webhooks%22%3A%5B%7B%22url%22%3A%22yoururl%22%2C%22event%22%3A%22healthFundApprovedInvoice%22%2C%22method%22%3A%22POST%22%2C%22headers%22%3A%5B%5D%7D%2C%7B%22url%22%3A%22yoururl%22%2C%22event%22%3A%22healthFundRejectedInvoice%22%2C%22method%22%3A%22POST%22%7D%2C%7B%22url%22%3A%22yoururl%22%2C%22event%22%3A%22invoiceCancelled%22%2C%22method%22%3A%22POST%22%7D%5D%7D&config=%7B%22env%22%3A%22stg%22%2C%22apiKey%22%3A%22%22%2C%22appId%22%3A%22%22%7D","target":"_blank"},"children":[" Physio claim item "]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"js","header":{"controls":{"copy":{}}},"source":"medipassPartnerSDK.renderCreateTransaction({\n  funder: \"wsv\",\n  providerNumber: \"0111827Y\",\n  invoiceReference: \"123\",\n  patient: {\n    firstName: \"Standardclaim\",\n    lastName: \"Medipass\",\n    dob: \"1980-07-01\",\n    accountNumber: \"12210000492\"\n  },\n  claimableItems: [\n    {\n      itemCode: \"EPB102\",\n      serviceDateString: \"2022-02-15\",\n      price: \"$150\",\n    }\n  ]\n },  \n   webhooks: [\n    {\n      url: ’string,\n      event: 'invoiceCancelled,healthFundApprovedInvoice,healthFundRejectedInvoice',\n      method: 'POST',\n      headers: { [Key: string] : your string }\n    }],\n}, {\n  onSuccess: function (transaction) { /* ... */ },\n  onError: function (error) { /* ... */ },\n  onCancel: function () { /* ... */ }\n\n});\n\n","lang":"js"},"children":[]}]},"headings":[{"value":"Tyro Health playground","id":"tyro-health-playground","depth":1},{"value":"Sample transcations","id":"sample-transcations","depth":1},{"value":"","id":"_","depth":2},{"value":"","id":"_-1","depth":2}],"frontmatter":{"breakpoint":"widescreen","title":"Playground and sample transactions ","seo":{"title":"Tyro Health playground"}},"lastModified":"2024-08-06T02:04:03.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/developer-portal/wsv/playground-and-sample-transactions","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}