ShopEazydevelopers
API referenceMerchant API BetaDelivery

Roughly what dropping off saves against a driver collecting

Beta
Credentials
  • OAuth access token
Scopes
store:read
GET
/v1/merchant/stores/{storeId}/delivery/couriers/{providerId}/drop-off-saving

Priced for the store's default parcel to where its customers actually are (its most recent delivery address), because a saving to nowhere in particular is a number nobody can trust. Asks the courier for two rates; if it cannot be reached the answer is saving: null, never an error. A read, so it is not write-gated.

Access: OAuth scope store:read; not write-gated.

Authorization

merchantOAuth store:read
headerAuthorizationBearer <token>

OAuth 2.1 (authorization code + PKCE S256, public clients, dynamic registration) for connected AI apps. Effective power is scopes granted AND the person's role today AND the plan. orders:refund, billing:write and team:write are opt-in on the consent screen. Write implies read for marketing:read and messages:read, so a grant holding marketing:write passes a marketing:read check, and messages:send passes messages:read.

Scope: store:read

Path Parameters

storeId*string

A store the person can reach. Any other id answers 404, never 403.

providerId*string

A payment provider id (e.g. yoco, peach, ikhokha) or courier id.

Query Parameters

pointId?string

The drop-off point to price (from findLockers). Needed for couriers whose drop-off is a point.

Response Body

OK

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.shopeazy.co/v1/merchant/stores/<storeId>/delivery/couriers/<providerId>/drop-off-saving' \  -H 'Authorization: Bearer <access_token>'
Example Response
{  "data": {    "saving": {      "savingMinor": 0,      "to": "string"    }  }}