hafihime-ship

Shipping rate service — provider-agnostic, multi-tenant, no database.

Endpoints

MethodPathPurpose
POST/v1/quoteprice a parcel for one destination
GET/v1/quotewhat this token's profile can ask for
POST/api/quotealias of /v1/quote

Probe

# 401 = no token, 400 = token accepted but the body is wrong
curl -s -i https://ship.hafihime.com/v1/quote \
  -H "Authorization: Bearer $SHIP_TOKEN" \
  -H 'content-type: application/json' \
  -d '{"subject":"x"}'

Units

QuantityUnit
weightgrams (weightG)
lengthcentimetres (dimensionsCm)
moneyinteger minor units of currency — whole rupiah for IDR

Providers in this deployment

GET /v1/quote  →  { providers: [ { id, configured, lanes, currencies } ] }

Authenticated per caller: one app never sees another's accounts.

Contract

docs/contract.md · docs/settings.md · docs/errors.md · contract.schema.json