{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Playground and sample transactions","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":"playground-and-sample-transactions","__idx":0},"children":["Playground and sample transactions"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"tyro-health-playground","__idx":1},"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":"p","attributes":{},"children":[{"$$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."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"sample-transcations","__idx":2},"children":["Sample transcations"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"_","__idx":3},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://playground.medipass.io/?query=%7B%22platform%22%3A%22funder%22%2C%22funder%22%3A%22comcare%22%2C%22providerNumber%22%3A%222409661B%22%2C%22funderData%22%3A%7B%22comcare%22%3A%7B%22serviceNotes%22%3A%22Current%20Medication%3A%20Donepezil%20HCL%22%7D%7D%2C%22invoiceReference%22%3A%22MA1567%22%2C%22memberStatus%22%3A%22new%22%2C%22patient%22%3A%7B%22firstName%22%3A%22Emily%22%2C%22lastName%22%3A%22Harris%22%2C%22dob%22%3A%221963-04-29%22%2C%22mobile%22%3A%22%22%2C%22accountNumber%22%3A%227777%2F77%22%2C%22refId%22%3A%22%22%7D%2C%22claimableItems%22%3A%5B%7B%22itemCode%22%3A%22AA020%22%2C%22price%22%3A%22%2490%22%2C%22description%22%3A%22%20Service%20provided%20by%20a%20Practice%20Nurse%22%2C%22serviceDateString%22%3A%222022-02-15%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":["Playground test transaction for a GP claim item"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"js","header":{"controls":{"copy":{}}},"source":"medipassPartnerSDK.renderCreateTransaction({\n  funder: \"comcare\",\n  providerNumber: \"2409661B\",\n  invoiceReference: \"MA1567\",\n  patient: {\n    firstName: \"Emily\",\n    lastName: \"Harris\",\n    dob: \"1963-04-29\",\n    claimNumber: \"7777/77\"\n  },\n  claimableItems: [\n    {\n      itemCode: \"AA020\",\n      price: \"$90\",\n      serviceDateString: \"2022-02-15\"\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":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"_-1","__idx":4},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://playground.medipass.io/?query=%7B%22platform%22%3A%22funder%22%2C%22funder%22%3A%22comcare%22%2C%22funderData%22%3A%7B%22comcare%22%3A%7B%22serviceNotes%22%3A%22Pain%20level%20%3A7%20%22%7D%7D%2C%22invoiceReference%22%3A%22UI1567%22%2C%22memberStatus%22%3A%22new%22%2C%22patient%22%3A%7B%22firstName%22%3A%22Emily%20%22%2C%22lastName%22%3A%22Harris%20%22%2C%22dob%22%3A%221963-04-29%22%2C%22mobile%22%3A%220472637746%22%2C%22accountNumber%22%3A%227777%2F77%22%2C%22refId%22%3A%22%22%7D%2C%22claimableItems%22%3A%5B%7B%22itemCode%22%3A%22ELCTO%22%2C%22serviceDateString%22%3A%222022-02-15%22%2C%22price%22%3A%22%2490%22%2C%22description%22%3A%22ELECTRO%20THERAPY%20BY%20PHYSIO%22%7D%5D%2C%22providerNumber%22%3A%222429581T%22%7D&config=%7B%22env%22%3A%22stg%22%2C%22apiKey%22%3A%22%22%2C%22appId%22%3A%22%22%7D","target":"_blank"},"children":["Playground test transaction example of Physio"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"js","header":{"controls":{"copy":{}}},"source":"\nmedipassPartnerSDK.renderCreateTransaction({\n  funder: \"comcare\",\n  providerNumber: \"2429581T\",\n  invoiceReference: \"UI1567\",\n  funderData: {\n    comcare: {\n      serviceNotes: \"Pain level :7 \"\n    }\n  },\n  patient: {\n    firstName: \"Emily \",\n    lastName: \"Harris \",\n    dob: \"1963-04-29\",\n    mobile: \"0472637746\",\n    claimNumber: \"7777/77\"\n  },\n  claimableItems: [\n    {\n      itemCode: \"PY102\",\n      serviceDateString: \"2022-02-15\",\n      price: \"$200\",\n    }\n  ],\n  \n}, \nwebhooks: [\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","lang":"js"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"_-2","__idx":5},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://playground.medipass.io/?query=%7B%22platform%22%3A%22funder%22%2C%22funder%22%3A%22comcare%22%2C%22providerNumber%22%3A%220710446T%22%2C%22funderData%22%3A%7B%22comcare%22%3A%7B%22serviceNotes%22%3A%22Current%20Medication%3A%20Donepezil%20HCL%22%7D%7D%2C%22invoiceReference%22%3A%22MA1567%22%2C%22memberStatus%22%3A%22new%22%2C%22patient%22%3A%7B%22firstName%22%3A%22Emily%22%2C%22lastName%22%3A%22Harris%22%2C%22dob%22%3A%221980-09-04%22%2C%22mobile%22%3A%220472637740%22%2C%22accountNumber%22%3A%221243615%2F2%22%7D%2C%22claimableItems%22%3A%5B%7B%22itemCode%22%3A%22AD030%22%2C%22price%22%3A%22%24567%22%2C%22description%22%3A%22Cleaning%20%22%2C%22serviceDateString%22%3A%222022-02-15%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":[" Playground test transaction link example for a Home Care"]}]}]},"headings":[{"value":"Playground and sample transactions","id":"playground-and-sample-transactions","depth":1},{"value":"Tyro Health playground","id":"tyro-health-playground","depth":2},{"value":"Sample transcations","id":"sample-transcations","depth":3},{"value":"","id":"_","depth":3},{"value":"","id":"_-1","depth":3},{"value":"","id":"_-2","depth":3}],"frontmatter":{"title":"Playground and sample transactions","seo":{"title":"Playground and sample transactions"}},"lastModified":"2025-06-17T06:32:31.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/developer-portal/comcare/playground-and-sample-transactions","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}