{"openapi":"3.1.0","info":{"title":"Sam's Truck Parking Hub","version":"1.0.0","description":"Free availability and price lookups for Kettering Yard and Stickney Yard in Toledo, Ohio. Published prices are $15 a day, $60 a week, and $130 a month for one spot. Creating a reservation returns a Stripe hosted checkout URL. The reservation stays unconfirmed until Stripe reports payment. Gate codes are never returned. Matzinger Rd is cross-dock only and is not bookable here. HTTP 402 / x402 is not enabled.","contact":{"email":"info@myparkinghub.com","telephone":"+14197271875"}},"servers":[{"url":"https://www.myparkinghub.com"}],"tags":[{"name":"yards"},{"name":"availability"},{"name":"quote"},{"name":"reservations"}],"paths":{"/api/v1/yards":{"get":{"tags":["yards"],"operationId":"listYards","summary":"List yards, prices, amenities, and vehicle types","responses":{"200":{"description":"Yard catalog","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YardCatalog"}}}}}}},"/api/v1/availability":{"get":{"tags":["availability"],"operationId":"checkAvailability","summary":"Open spots for a yard and date range","parameters":[{"name":"yard","in":"query","schema":{"type":"string","enum":["kettering","stickney"]}},{"name":"start","in":"query","description":"YYYY-MM-DD. Defaults to today in America/New_York.","schema":{"type":"string","format":"date"}},{"name":"end","in":"query","description":"YYYY-MM-DD inclusive. Defaults to start.","schema":{"type":"string","format":"date"}},{"name":"spots","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":1}}],"responses":{"200":{"description":"Open spots","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Availability"}}}},"422":{"description":"Yard is not bookable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/quote":{"get":{"tags":["quote"],"operationId":"getQuote","summary":"Price one spot. Does not hold it.","parameters":[{"name":"yard","in":"query","required":true,"schema":{"type":"string","enum":["kettering","stickney"]}},{"name":"plan","in":"query","required":true,"schema":{"type":"string","enum":["daily","weekly","monthly"]}},{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date"}},{"name":"end","in":"query","schema":{"type":"string","format":"date"}},{"name":"discountCode","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"422":{"description":"Invalid quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/reservations":{"post":{"tags":["reservations"],"operationId":"createReservation","summary":"Hold one spot and return a Stripe checkout URL","description":"The reservation is pending_payment until the Stripe webhook marks it paid. A 15-minute hold blocks the spot. No gate code is returned. Send Idempotency-Key to retry safely.","parameters":[{"name":"Idempotency-Key","in":"header","schema":{"type":"string","minLength":8,"maxLength":80}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationRequest"}}}},"responses":{"201":{"description":"Hold created. Pay at checkoutUrl.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reservation"}}}},"409":{"description":"Yard is full for those dates","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Card checkout is not configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/reservations/{id}":{"get":{"tags":["reservations"],"operationId":"getReservation","summary":"Status for the reservation that matches the token","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"token","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Caller-owned reservation. No gate code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reservation"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"},"details":{"type":"array","items":{"type":"string"}},"openSpots":{"type":"integer"}}},"Prices":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"dailyCents":{"type":"integer"},"weeklyCents":{"type":"integer","description":"Weekly price in cents. Currently 6000 ($60).","example":6000},"monthlySpotCents":{"type":"integer"},"monthlyVolumeCents":{"type":"integer"},"monthlyVolumeMinSpots":{"type":"integer"},"notes":{"type":"string"}}},"Yard":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"bookable":{"type":"boolean"},"kind":{"type":"string","enum":["parking","cross_dock"]},"summary":{"type":"string"},"address":{"type":"object"},"coordinates":{"type":["object","null"]},"amenities":{"type":"array","items":{"type":"string"}},"vehicleTypes":{"type":"array","items":{"type":"string"}},"capacity":{"type":"integer"},"capacityUnit":{"type":"string"},"walkInBuffer":{"type":"integer"},"bookingUrl":{"type":"string"}}},"YardCatalog":{"type":"object","properties":{"name":{"type":"string"},"prices":{"$ref":"#/components/schemas/Prices"},"yards":{"type":"array","items":{"$ref":"#/components/schemas/Yard"}}}},"AvailabilityYard":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"openSpots":{"type":"integer"},"reservedSpots":{"type":"integer"},"capacity":{"type":"integer"},"walkInBuffer":{"type":"integer"},"sellableSpots":{"type":"integer"},"available":{"type":"boolean"}}},"Availability":{"type":"object","properties":{"start":{"type":"string"},"end":{"type":"string"},"spots":{"type":"integer"},"formula":{"type":"string"},"yards":{"type":"array","items":{"$ref":"#/components/schemas/AvailabilityYard"}}}},"Quote":{"type":"object","properties":{"yard":{"type":"string"},"plan":{"type":"string"},"amountCents":{"type":"integer"},"listCents":{"type":"integer"},"available":{"type":"boolean"},"openSpots":{"type":"integer"},"paymentRequired":{"type":"boolean"}}},"ReservationRequest":{"type":"object","required":["yard","plan","start","vehicleType","driverName","email","mobile","hazmat","emergencyName","emergencyPhone","rulesAccepted"],"properties":{"yard":{"type":"string","enum":["kettering","stickney"]},"plan":{"type":"string","enum":["daily","weekly","monthly"]},"start":{"type":"string","format":"date"},"end":{"type":"string","format":"date"},"spots":{"type":"integer","const":1},"vehicleType":{"type":"string","enum":["car","bobtail","tractor_trailer","trailer","box_truck"]},"driverName":{"type":"string"},"email":{"type":"string","format":"email"},"mobile":{"type":"string"},"company":{"type":"string"},"usdot":{"type":"string"},"mc":{"type":"string"},"tractorPlate":{"type":"string"},"tractorState":{"type":"string"},"trailerNumber":{"type":"string"},"trailerPlate":{"type":"string"},"hazmat":{"type":"boolean"},"emergencyName":{"type":"string"},"emergencyPhone":{"type":"string"},"rulesAccepted":{"type":"boolean","const":true},"discountCode":{"type":"string"}}},"Reservation":{"type":"object","description":"Does not include gate codes or other customers' data.","properties":{"reservationId":{"type":"string"},"status":{"type":"string"},"confirmed":{"type":"boolean"},"amountCents":{"type":"integer"},"checkoutUrl":{"type":["string","null"]},"statusUrl":{"type":"string"},"memberCode":{"type":"string"},"gateCodeIssued":{"type":"boolean"},"gateCodeDelivery":{"type":"string"}}}}}}