Skip to content

Tracking API ​

Send the tracking number of a shipped order back to the marketplace. All requests need the API key of the integration, see authentication. Errors follow the common format.

POST /tracking ​

Submit a tracking number for an order. This will fulfill the order on the marketplace and notify the customer.

Request body:

FieldTypeRequiredDescription
orderIdintegeryesNumeric Shopify order ID (received in the order webhook)
trackingNumberstringyesTracking number
trackingCompanystringnoCarrier name (e.g. "UPS")
trackingUrlstringnoTracking URL

Example request:

bash
curl -X POST https://api.garnetmarketplace.com/tracking \
  -H "Authorization: Bearer your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "orderId": 5538456789012,
    "trackingNumber": "1Z999AA10123456784",
    "trackingCompany": "UPS",
    "trackingUrl": "https://www.ups.com/track?tracknum=1Z999AA10123456784"
  }'

Response:

json
{ "fulfilled": true }