Skip to main content

Orders Endpoint

Upload orders

Upload parsed order data from TCGplayer’s order export.
POST /api/v1/orders
Content-Type: application/json
Request body:
[
  {
    "order_number": "ORD-12345",
    "buyer_name": "John Doe",
    "order_date": "3/27/2026",
    "status": "Completed",
    "product_amt": 24.99,
    "shipping_amt": 0.99,
    "total_amt": 25.98
  }
]
Response:
{"status": "ok", "orders_processed": 1}

Notes

  • The agent parses TCGplayer’s order export CSV and converts it to this JSON format
  • First sync sends full order history (from January 2020)
  • Subsequent syncs send the last 90 days
  • Order upload is non-fatal. If it fails, the inventory sync still completes.