{"openapi":"3.1.0","info":{"title":"TCG QuickShip API","version":"1.0.0","description":"Read your shipped labels (shipment history) and wallet transactions from your own scripts and tools.\n\nAuthenticate with an API key from Settings → API keys, sent as `Authorization: Bearer qs_live_…`. Never put the key in a URL: requests that do are refused, and you should revoke that key. Keys are read-only and always expire. Each endpoint needs its scope (`shipments:read`, `wallet:read`), or `account:read`, which grants every read endpoint.\n\nRequires an active paid plan. Limits: 60 requests a minute and 1,000 a UTC day per account, plus 120 a minute per IP address. Over a limit you get 429 with Retry-After."},"servers":[{"url":"/api/v1"}],"security":[{"apiKey":[]}],"paths":{"/shipments":{"get":{"operationId":"listShipments","summary":"List shipments","description":"One page of your shipments shipped in [from, to), oldest first.\n\nTo page, pass the previous response's `next_cursor` as `cursor`, keeping the same `from`. `next_cursor` is returned on every non-empty page, including the last, so an integration can store it and poll later for only new shipments. A shipment appears once it is 30 seconds old.\n\nPoll for new shipments at most every 5 minutes. The daily limit is shared by all of an account's keys, so a script that polls more often can use it up before the UTC day ends.","parameters":[{"name":"from","in":"query","required":true,"description":"Start of the range, inclusive. ISO-8601 with a timezone, year 1970 or later, a UTC offset of at most ±14:00 and at most 6 fractional digits.","schema":{"type":"string","format":"date-time","examples":["2026-01-01T00:00:00Z"]}},{"name":"to","in":"query","required":false,"description":"End of the range, exclusive. Same format as `from`. Defaults to now.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"Shipments per page.","schema":{"type":"integer","minimum":1,"maximum":500,"default":100}},{"name":"cursor","in":"query","required":false,"description":"`next_cursor` from a previous response. Opaque.","schema":{"type":"string","maxLength":256}}],"responses":{"200":{"description":"A page of shipments.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentPage"}}}},"400":{"description":"Invalid query (`invalid_request`). Still counts against your rate limits.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_api_key`, `api_key_revoked`, `api_key_expired`).","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"WWW-Authenticate":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Key lacks the scope, or no active paid plan (`insufficient_scope`, `subscription_required`).","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (`rate_limited`).","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected error (`internal_error`). Quote the request id to support.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The API is temporarily unavailable (`service_unavailable`).","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/wallet/transactions":{"get":{"operationId":"listWalletTransactions","summary":"List wallet transactions","description":"One page of your settled wallet transactions (completed or failed) whose `settled_at` is in [from, to), oldest first. Needs the `wallet:read` or `account:read` scope.\n\nPending transactions, such as an ACH top-up that has not cleared or a label refund the carrier has not paid yet, are left out until they settle. They then appear with the time they settled, so a settled transaction never changes after you have fetched it. A transaction appears once it has been settled for 30 seconds.\n\nPaging works as for shipments: pass the previous response's `next_cursor` as `cursor`, keeping the same `from`, and store the last one to fetch only new transactions later.","parameters":[{"name":"from","in":"query","required":true,"description":"Start of the range, inclusive. ISO-8601 with a timezone, year 1970 or later, a UTC offset of at most ±14:00 and at most 6 fractional digits.","schema":{"type":"string","format":"date-time","examples":["2026-01-01T00:00:00Z"]}},{"name":"to","in":"query","required":false,"description":"End of the range, exclusive. Same format as `from`. Defaults to now.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"Transactions per page.","schema":{"type":"integer","minimum":1,"maximum":500,"default":100}},{"name":"cursor","in":"query","required":false,"description":"`next_cursor` from a previous response. Opaque.","schema":{"type":"string","maxLength":256}}],"responses":{"200":{"description":"A page of wallet transactions.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTransactionPage"}}}},"400":{"description":"Invalid query (`invalid_request`). Still counts against your rate limits.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_api_key`, `api_key_revoked`, `api_key_expired`).","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"WWW-Authenticate":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Key lacks the scope, or no active paid plan (`insufficient_scope`, `subscription_required`).","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (`rate_limited`).","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected error (`internal_error`). Quote the request id to support.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The API is temporarily unavailable (`service_unavailable`).","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"qs_live_ API key"}},"headers":{"X-Request-Id":{"description":"Unique id for this request.","schema":{"type":"string","format":"uuid"}},"RateLimit-Limit":{"description":"On a 200, and on a 400 for bad query parameters (which still counts against your limits): requests allowed per minute. On a 429: the limit that was hit (per minute, per day, or per IP). Absent on other errors, and briefly absent if rate limiting is degraded.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_api_key","api_key_revoked","api_key_expired","insufficient_scope","subscription_required","rate_limited","service_unavailable","internal_error"]},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}}}}},"ShipmentPage":{"type":"object","required":["data","has_more","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Shipment"}},"has_more":{"type":"boolean","description":"Whether another page exists right now."},"next_cursor":{"type":["string","null"],"description":"Where to resume. Null only when nothing has been returned yet."}}},"WalletTransactionPage":{"type":"object","required":["data","has_more","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WalletTransaction"}},"has_more":{"type":"boolean","description":"Whether another page exists right now."},"next_cursor":{"type":["string","null"],"description":"Where to resume. Null only when nothing has been returned yet."}}},"WalletTransaction":{"type":"object","description":"One settled wallet transaction. Amounts are integer US cents, positive when money comes into the wallet and negative when it is spent. The wallet balance moved by balance_after_cents − balance_before_cents. A failed transaction never moved the balance: both balances are null and its amounts are what was attempted, so total only completed rows.","properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["auto_reload","topup","purchase","refund","promo","adjustment","credit","debit"]},"status":{"type":"string","enum":["completed","failed"]},"charge_type":{"type":["string","null"],"enum":["ach","card",null],"description":"How a top-up or auto-reload was paid. Null for every other type."},"currency":{"type":"string","const":"USD"},"base_cents":{"type":"integer","description":"The amount before fees: credited for a top-up, spent for a purchase."},"fee_cents":{"type":"integer","description":"Fees: the card processing fee on a top-up (charged to your card, not taken from the wallet), or the platform fee on a purchase (negative)."},"total_cents":{"type":"integer","description":"base_cents + fee_cents: what your card was charged for a top-up, or what the wallet paid for a purchase."},"balance_before_cents":{"type":["integer","null"],"description":"The wallet balance before. Null on a failed row."},"balance_after_cents":{"type":["integer","null"],"description":"The wallet balance after. Null on a failed row."},"description":{"type":["string","null"]},"reference":{"type":["object","null"],"description":"What the transaction belongs to, for example the shipment a label refund is for. Null when it belongs to nothing.","properties":{"type":{"type":["string","null"]},"id":{"type":["string","null"]}}},"created_at":{"type":"string","format":"date-time","description":"When the transaction was started."},"completed_at":{"type":["string","null"],"format":"date-time","description":"When it completed or failed. Null on some failed and older transactions."},"settled_at":{"type":"string","format":"date-time","description":"When it settled: completed_at, or created_at when that is null. The range and the order use this. Microsecond precision."}}},"Shipment":{"type":"object","description":"One purchased shipping label.","properties":{"id":{"type":"string","format":"uuid"},"order_number":{"type":"string"},"marketplace":{"type":"string"},"shipped_at":{"type":"string","format":"date-time","description":"When the label was bought. Microsecond precision."},"carrier":{"type":"string"},"service":{"type":"string"},"tracking_number":{"type":"string"},"tracking":{"type":["object","null"],"description":"Latest carrier tracking event, or null before the first.","properties":{"status":{"type":["string","null"]},"description":{"type":["string","null"]},"updated_at":{"type":["string","null"],"format":"date-time"},"location":{"type":["object","null"],"properties":{"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"country":{"type":["string","null"]}}}}},"ship_to":{"type":"object","description":"Buyer address. Name and street lines are null once identity is removed: 18 months after shipping, or sooner when the buyer or store asks for their data to be deleted.","properties":{"name":{"type":["string","null"]},"address_line1":{"type":["string","null"]},"address_line2":{"type":["string","null"]},"address_line3":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"},"country":{"type":"string"}}},"costs":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"label_cents":{"type":["integer","null"],"description":"Postage. Integer US cents."},"fee_cents":{"type":["integer","null"],"description":"Platform fee. Integer US cents."},"insurance_cents":{"type":["integer","null"],"description":"Insurance paid. Integer US cents."}}},"insured":{"type":"boolean"},"insured_value_cents":{"type":["integer","null"],"description":"Insured value. Integer US cents."},"order_value_cents":{"type":"integer","description":"Order value, as on the Shipped Orders page. Integer US cents."},"card_count":{"type":"integer"},"card_value_cents":{"type":"integer","description":"Summed card line values. Integer US cents."},"parcel":{"type":"object","properties":{"weight_oz":{"type":["number","null"]},"billed_weight_oz":{"type":["number","null"]},"length_in":{"type":["number","null"]},"width_in":{"type":["number","null"]},"height_in":{"type":["number","null"]}}},"signature_required":{"type":"boolean"},"non_machinable":{"type":"boolean"},"destination_zone":{"type":["string","null"]},"cancelled":{"type":"boolean"},"cancelled_at":{"type":["string","null"],"format":"date-time"},"cancellation_status":{"type":["string","null"]}}}}}}