Shipping API

Integrate Peeap Shipping into your platform. Create deliveries, get quotes, track shipments in real-time.

Base URL: https://api.peeap.com/api/v1/shipping

Overview

The Shipping API lets you programmatically create delivery jobs, get shipping quotes, track packages in real-time, and manage shipping addresses. It authenticates via your secret API key with shipping:read and shipping:write scopes.

Available Endpoints

MethodEndpointDescription
GET/v1/shipping/quoteGet a shipping quote
POST/v1/shipping/deliveriesCreate a delivery job
GET/v1/shipping/deliveriesList your deliveries
GET/v1/shipping/deliveries/:jobNumber/trackTrack a delivery
POST/v1/shipping/deliveries/:jobNumber/verifyVerify pickup/delivery handoff code
POST/v1/shipping/deliveries/:jobNumber/cancelCancel a delivery
POST/v1/shipping/bulk-trackTrack multiple deliveries at once
GET/v1/shipping/zonesList delivery zones
POST/v1/shipping/addressesSave a shipping address
GET/v1/shipping/addressesList saved shipping addresses

Authentication

All shipping endpoints require a secret API key (sk_live_ or sk_test_) with the appropriate scope. Pass it in the Authorization: Bearer header or the X-API-Key header.

bash
"code-comment"># Using Authorization header
curl -X GET "https://api.peeap.com/api/v1/shipping/zones" \
  -H "Authorization: Bearer sk_live_your_api_key"

"code-comment"># Using X-API-Key header
curl -X GET "https://api.peeap.com/api/v1/shipping/zones" \
  -H "X-API-Key: sk_live_your_api_key"

Required Scopes: Endpoints that read data (quotes, tracking, zones) need shipping:read. Endpoints that create resources (deliveries, addresses) need shipping:write. Add these scopes to your API key in the Developer Dashboard.

Delivery Statuses

A delivery progresses through these statuses:

StatusDescription
pendingDelivery created, waiting for driver assignment
assignedDriver assigned to the delivery
picked_upPackage picked up from the merchant
in_transitPackage is on the way to the customer
deliveredPackage delivered to the customer
completedDelivery cycle completed
cancelledDelivery was cancelled
failedDelivery failed

Webhooks

Stay informed about shipping events by registering webhook endpoints. Peeap will send signed POST requests to your endpoint when shipping events occur.

EventDescription
shipping.delivery.createdA new delivery job was created
shipping.status.updatedDelivery status changed