Developers Documentation For Logistics Company
Staging URL: https://staging-api.sharply.africa
Production URL: https://api.sharply.africa
Expectations:
Monetary figures are sent in multiple of 100 i.e. kobo value, send 500 to represent N5.
Sharply's API uses API Keys to authenticate requests. Get your API Key from settings page on the web app.
Add the API Key to the headers:
Authorization:
Orders
POSTCreate Order
To create a shipping request, you send the order object:
sender: The details of the sender. It is an object with the ffg attributes: name, phoneNumber, email, address, coords. The coords (optional) holds the latitude and longitude info.
recipient: Accepts same properties as the sender object.
items: Array of items being sent
description (optional)
chargeRecipient: determines who is paying: sender or recipient? Set to true for recipient, false means sender is paying.
deliveryArea: The ID of the pricelist. pricelists is an array in the company's object. This records the general source -> destination and also determines the price.
rider: The id of the rider