api

Get Direct Transfer webhook events by token

You will receive a Notify Rx Webhook Event for each prescription that is transferred to Truepill.<br/><br/>After a Direct Transfer Request has been successfully completed, you will receive a Notify Rx Webhook Event for the prescription transferred to Truepill, along with a Direct Transfer webhook event. This will contain the prescription_token to utilize the prescription within Truepill.<br/><br/>If a Direct Transfer is unable to be successfully processed, only an error Direct Transfer webhook event will be sent.<br/><br/>Direct Transfer Webhook Events are sent with text DIRECT_TRANSFER in the callback_type field and, like with other webhook events, the status field indicating whether or not it was successful.<br/><br/>In an error webhook event for a Direct Transfer, the prescription_token will not be provided as it was unable to be added into the Truepill system.

get/api/v1/direct_transfer/{direct_transfer_token}/webhook_events

Request

Path parameters

direct_transfer_tokenstring required

Response

OK

Example response

{
  "results": [
    {
      "payload": {
        "timestamp": 1631593381,
        "callback_type": "DIRECT_TRANSFER",
        "details": {
          "metadata": "my_identifier",
          "message": "Direct Transfer Accepted.",
          "patient_token": "221e6f904c32faac",
          "direct_transfer_token": "b5338d53e5",
          "prescription_token": "622b9f344fa7",
          "rx_link": "rxl_31ad83984d0404f7109f0992"
        }
      },
      "delivery_data": {
        "status": "success",
        "status_code": 204
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.