📦Send Order Request
This API is used to send a medication request from a client to the DrugNet portal.
Endpoint: POST /send_request_web
Send Request Web
POST
/send_request_web
Send a medication request from a client to the DrugNet portal..
Request Body
Name | Type | Description |
---|---|---|
client_id* | integer | The ID of the client submitting the request |
prescription | String | The prescription or reason for the request. |
order_items | JSON array | An array of objects specifying the items in the order. Each object should have |
insurance | String | Insurance company |
insurance_card | String | The insurance card id |
recipient | String | Recipient phone number |
location | String | Location to deliver drugs |
file | file | The file to be uploaded, representing additional information or images related to the request. |
Take a look at how you might call this method using our official libraries, or via curl
:
Example
In case of errors, the API will return a JSON object with a
success
field indicating whether the request was successful, and a corresponding error message in themessage
field.
Last updated