The files
Each file is cut from the examples inside the OpenAPI document by the same build that publishes the schemas, so a payload here is never older than the contract. Figures are illustrative; a real answer carries the rates the carriers return at that moment.
| Operation | Request | Responses |
|---|---|---|
| getParcelQuote (POST /quote) | get-parcel-quote-request.json (described item; exact box) | get-parcel-quote-responses.json (200 priced; 200 not a parcel; 400; 422; 429) |
| createPaymentSession (POST /agent/checkout-session) | create-payment-session-request.json (from a quote_id; from a shipment; create or update by external_id) | create-payment-session-responses.json (200; 400; 401; 409; 422; 429) |
| upsertPaymentSession (PUT /agent/checkout-session/by-external-id/{external_id}) | upsert-payment-session-request.json (first call creates; same key re-prices; from a quote_id; dry run) | upsert-payment-session-responses.json (201 created; 200 updated; 400; 401; 409; 422; 429) |
| updatePaymentSession (PATCH /agent/checkout-session/{session_id}) | update-payment-session-request.json (another service; a fresh quote_id; dry run) | update-payment-session-responses.json (200; 400; 401; 404; 409; 422; 429) |
| getCheckoutStatus (GET /agent/checkout-session/{session_id}) | — (path parameter only) | get-checkout-status-responses.json (200 label_ready; 404; 429) |
| cancelPaymentSession (DELETE /agent/checkout-session/{session_id}) | — (path parameter only) | cancel-payment-session-responses.json (200 cancelled; 404; 409; 429) |
| getRefundStatus (GET /agent/checkout-session/{session_id}/refund) | — (path parameter only) | get-refund-status-responses.json (200 refunded; 200 requested; 200 none; 404; 429) |
| trackParcel (GET /tracking/{tracking_number}) | — (path parameter only) | track-parcel-responses.json (200 in transit; 400; 404; 429) |
| getPriceIndex (GET /price-index) | — (optional month query) | get-price-index-responses.json (200; 400; 404 with available_months; 429) |
| calculateBillableWeight (GET /billable-weight) | — (four query parameters) | calculate-billable-weight-responses.json (200 by size at UPS and FedEx; 400; 429) |
| getHolidayShippingDeadlines (GET /holiday-deadlines) | — | get-holiday-shipping-deadlines-responses.json (200 as of Dec 16, 2026; 429) |
| getShippingRestrictions (GET /shipping-restrictions) | — | get-shipping-restrictions-responses.json (200; 429) |
| status (GET /status) | — | status-responses.json (200) |
The first call
curl -s https://quote-api.smklog.com/quote \
-H 'Content-Type: application/json' \
-d '{"product": "Yamaha FG800 acoustic guitar in a hard case",
"quantity": 1,
"from_postal_code": "07102",
"to_postal_code": "30303"}'
Read mode first, then rates[].amount (the checkout total) and rates[].retail_amount (the carrier’s counter price, where published). The repack line walks a full two-request example with the arithmetic; the playground runs this request from the browser.