{"openapi":"3.1.0","info":{"title":"Cashew Compute API","version":"1.0.0","description":"Price and order the Cashew Compute Jetson Thor carrier board and its add-ons. No API key: create an order, then the payer opens checkout_url to pay with Stripe and enter a US shipping address. Orders ship in January 2027. Full reference: https://cashewcompute.com/llms-full.txt","termsOfService":"https://cashewcompute.com/terms","contact":{"email":"support@almond.bot"}},"servers":[{"url":"https://cashewcompute.com"}],"paths":{"/api/options":{"get":{"operationId":"listOptions","summary":"Every option, price, limit and term","responses":{"200":{"description":"Options","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/quote":{"get":{"operationId":"quoteConfiguration","summary":"Quote one configuration","parameters":[{"name":"config","in":"query","required":true,"description":"Configuration code, e.g. \"T5000-HS-ENC-1TB-WIFI-PSU\", or \"BOARD\"","schema":{"type":"string"}},{"name":"quantity","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":5,"default":1}}],"responses":{"200":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pricing"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"quoteOrder","summary":"Quote several configurations without creating an order","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["items"],"properties":{"items":{"$ref":"#/components/schemas/Items"},"ship_to":{"$ref":"#/components/schemas/ShipTo"}}}}}},"responses":{"200":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pricing"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/orders":{"post":{"operationId":"createOrder","summary":"Create an order and get a Stripe checkout link","description":"Not open yet: Cashew Compute is not taking orders, and this returns 503. Prices every configuration server-side and opens a Stripe Checkout Session valid for 24 hours, with the board and each add-on as its own line. Nothing is charged until someone pays at checkout_url. Send an Idempotency-Key header to make retries safe.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string; retrying with the same key and body returns the same order.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRequest"}}}},"responses":{"201":{"description":"Order created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency-Key reused with a different body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Ordering is not open, or not configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/orders/{id}":{"get":{"operationId":"getOrder","summary":"Get an order's payment status and totals","parameters":[{"name":"id","in":"path","required":true,"description":"Order id from createOrder (cs_…)","schema":{"type":"string"}}],"responses":{"200":{"description":"The order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderStatus"}}}},"404":{"description":"No such order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/build-sheet":{"get":{"operationId":"getBuildSheet","summary":"Parts list of one unit of a configuration","parameters":[{"name":"config","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Build sheet","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}},"ShipTo":{"type":"string","enum":["US"],"default":"US","description":"US addresses only: Jetson modules are export-controlled (ECCN 5A992)."},"Item":{"oneOf":[{"type":"string","description":"A configuration code, e.g. \"T5000-HS-ENC-1TB-WIFI-PSU\", or \"BOARD\" (quantity 1)"},{"type":"object","additionalProperties":false,"description":"config, and/or the add-on fields (module is required without config). Fields next to config override it; omitted add-ons are not included. An enclosure needs the heat sink.","properties":{"config":{"type":"string"},"module":{"type":"string","enum":["t5000","t4000","none"],"description":"\"none\" = bring your own module"},"heatsink":{"type":"boolean","default":false},"enclosure":{"type":"boolean","default":false,"description":"needs heatsink: true"},"ssd":{"type":"string","enum":["500gb","1tb","2tb","4tb","none"],"default":"none"},"wifi":{"type":"boolean","default":false,"description":"Wi-Fi 7 + Bluetooth LE card with antennas"},"adapter":{"type":"boolean","default":false,"description":"24 V power adapter with fused, ferruled lead"},"cables":{"type":"integer","enum":[0,1,2],"default":0,"description":"GMSL2 1-to-4 camera cables"},"quantity":{"type":"integer","minimum":1,"maximum":5,"default":1}}}]},"Items":{"type":"array","minItems":1,"maxItems":4,"items":{"$ref":"#/components/schemas/Item"},"description":"At most 10 units per order."},"OrderRequest":{"type":"object","required":["items"],"properties":{"items":{"$ref":"#/components/schemas/Items"},"ship_to":{"$ref":"#/components/schemas/ShipTo"},"email":{"type":"string","format":"email","description":"Prefills checkout"},"reference":{"type":"string","maxLength":200,"description":"Your PO number or note"}}},"Pricing":{"type":"object","properties":{"currency":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"config":{"type":"string"},"sku":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"item":{"type":"string"},"price":{"type":"number","description":"USD"}}}},"bring_your_own":{"type":"array","items":{"type":"string"}},"quantity":{"type":"integer"},"unit_price":{"type":"number","description":"USD"},"total":{"type":"number","description":"USD"},"configurator_url":{"type":"string"},"build_sheet_url":{"type":"string"}}}},"units":{"type":"integer"},"subtotal":{"type":"number","description":"USD"},"shipping_options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"price":{"type":"number","description":"USD"}}}},"ships":{"type":"string","description":"Ship date, e.g. January 2027"},"ship_date":{"type":"object","properties":{"label":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"terms":{"type":"string"},"cancellation":{"type":"string"}}},"export":{"type":"string"}}},"Order":{"allOf":[{"$ref":"#/components/schemas/Pricing"},{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["awaiting_payment"]},"checkout_url":{"type":"string","description":"Stripe Checkout page"},"pay_url":{"type":"string","description":"Short link on our site that opens the same checkout page"},"expires_at":{"type":"string","format":"date-time"},"status_url":{"type":"string"},"reference":{"type":["string","null"]}}}]},"OrderStatus":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["awaiting_payment","payment_processing","payment_failed","paid","expired"]},"pay_url":{"type":"string","description":"Only while awaiting_payment"},"units":{"type":"integer"},"subtotal":{"type":"number","description":"USD"},"shipping":{"type":["object","null"]},"tax":{"type":"number","description":"USD"},"total":{"type":"number","description":"USD"},"ships":{"type":"string"},"fulfillment":{"type":["string","null"]}}}}}}