Version 1 Documentation

API Overview

Version 2.0.0




Endpoints

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


Versions

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/...



Authentication

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:



Media Types

The Dropship API provides the following media types:



Errors

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.



Creating an Order

The following properties / rules are to be considered when integrating with the Orders endpoint


International Orders
Orders can be shipped globally (outside of Australia), with the following conditions:



Products

The following properties / rules are to be considered when integrating with the Products endpoint



Testing an Order sandbox only

Orders 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.


Awaiting Stock

To test a line that cannot be fulfilled (out of stock), order a quantity greater than or equal to 1000. The system will recognise this amount and notify via the status Awaiting Stock.
The awaiting stock status will change to Shipped after 30 minutes.
{ "Items[i].Quantity": "1000" }


Cancelled

To test a cancelled order, place the word cancel in the DeliveryInstructions field.
Note: Orders cannot be cancelled from a client request. This is to simulate an order being cancelled from Provet.
{ "DeliveryInstructions": "cancel" }



API Usage Example

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