All API access is over HTTPS, and is accessed from the following domains:
| Url | Description |
|---|---|
| https://sandbox.dropship.provet.com.au/v2 | Sandbox environment for development and testing |
| https://dropship.provet.com.au/v2 | AU Production environment |
| https://dropship.provet.co.nz/v2 | NZ Production environment |
To utilise Version 2 of the Provet Dropship API, /v2 needs to be appended to the endpoint domain. Otherwise Version 1 will be used.
eg: https://dropship.provet.com.au/v2/...
The Dropship service is authenticated via Token Authentication over HTTPS.
If you do not provide correct authentication details with each request, you will be returned a 401 Unauthorized HTTP Response.
The following tokens are required to be placed in the headers of each request:
Application-Key
Account-Key
The Dropship API provides the following media types:
application/json
Any HTTP return code of 400 or greater is considered an error.
Any return code in the range 400-499 is considered a client side error.
And return code greater than or equal to 500 is considered a server side error.
Additional details of errors will be provided where applicable.
Please see the Swagger Documentation for the relevant return objects.
The following properties / rules are to be considered when integrating with the Orders endpoint
Metadata - string dictionary used to hold specific data relating to the integrator's system. This is stored and returned along with the orderItems.Metadata - string dictionary utilised as above for storing item related dataOrderCarrierService - set the preferred carrier service available for the order. This can be found via the ShippingEstimate endpoint.DeliverToVetAccountNumber - Provet Account number. If set, the Dropship order wil be sent to the address of the nominated clinic identified by via the account numberShippingAddress.Country - the 2 character reference of a country (eg: AU)Status
Ordered placed in the systemSent sent to the warehouseAwaitingStock one or more lines cannot be fulfilledShipped order has been shippedCancelled order has been cancelled
International Orders
Orders can be shipped globally (outside of Australia), with the following conditions:
ShipmentOptions[i].Price = null and ShipmentOptions[i].Eta = nullThe following properties / rules are to be considered when integrating with the Products endpoint
Status
InStock Product is in stock and can be orderedTemporarilyUnavailable Product is temporarily unavailableDiscontinued Product is no longer stocked and is not orderablesandbox onlyOrders will automatically have their status progressed to Shipped after 15 minutes.
Although Dropship handles the status updates, you can force the sandbox to change the status to Cancelled or Awaiting Stock by using the following data during order creation.
{ "Items[i].Quantity": "1000" }
{ "DeliveryInstructions": "cancel" }
Examples of consuming the Provet Dropship API via common languages.
Note: this is a trivial example and is used as a starting point to illustrate how to consume the API data