{"openapi":"3.1.0","info":{"title":"TrashTastic signup for AI assistants","version":"1.2.0","description":"Check a home address for weekly trash pickup in metro Atlanta, see plans and prices, and give the person a link to sign up. 1) Check the address. 2) Offer the plans and dates returned, with those prices. 3) Give the person signup_url, or POST signup-link with the chosen plan's offer_token for a Stripe Checkout link. The person reviews and pays on Stripe; an assistant never enters card details. Never send names, emails, phone numbers or card details: unknown fields are refused. Amounts are compared with the quote and never set a price. No key is needed. Assistants that can only open URLs use the GET form; others should prefer POST, which keeps the address out of URLs.","contact":{"name":"TrashTastic","url":"https://trashtastic.com"}},"servers":[{"url":"https://trashtastic-worker-api.conquest-solutions8334.workers.dev/api/public/agent"}],"paths":{"/check-address":{"get":{"servers":[{"url":"https://trashtastic.com/api/agent"},{"url":"https://trashtastic-worker-api.conquest-solutions8334.workers.dev/api/public/agent"}],"operationId":"checkAddressByUrl","summary":"Check an address, plans, prices and start dates (URL form)","description":"Same answer as POST. Says whether TrashTastic serves a US street address and returns the pickup day, every plan with its price, the start dates, and signup_url, a link the person can open. The person reviews and pays on Stripe; an assistant never enters card details.","parameters":[{"name":"line1","in":"query","required":true,"schema":{"type":"string","description":"Street number and name.","maxLength":200},"example":"123 Example Lane"},{"name":"city","in":"query","required":true,"schema":{"type":"string","description":"City.","maxLength":100},"example":"Marietta"},{"name":"state","in":"query","required":true,"schema":{"type":"string","description":"Two-letter state.","pattern":"^[A-Za-z]{2}$"},"example":"GA"},{"name":"postal_code","in":"query","required":true,"schema":{"type":"string","description":"Five-digit ZIP.","pattern":"^\\d{5}(-?\\d{4})?$"},"example":"30068"},{"name":"plan","in":"query","required":false,"schema":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]}},{"name":"start_date","in":"query","required":false,"schema":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object","properties":{"in_service_area":{"type":"boolean","description":"Whether the address is inside a service area."},"can_signup":{"type":"boolean","description":"Whether it can sign up now. False with in_service_area true means the area is not open yet."},"pickup_day":{"type":["string","null"],"description":"Weekly pickup day, when known."},"plans":{"type":"array","description":"Every plan and price for this address. Quote only these prices.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"First pickup dates that can be chosen."},"signup_url":{"type":"string","description":"Link for the person: the pricing page with the address filled in. Present when can_signup is true.","format":"uri"},"reason":{"type":"string","description":"Why signup is not possible.","enum":["outside_service_area","not_open_yet"]},"message":{"type":"string","description":"The reason in words."},"waitlist_url":{"type":"string","description":"Link for the person to join the waitlist, with the address filled in. Present when can_signup is false.","format":"uri"}},"required":["in_service_area","can_signup","pickup_day","plans","earliest_start_dates"],"additionalProperties":false},"example":{"in_service_area":true,"can_signup":true,"pickup_day":"tuesday","plans":[{"plan":"trash-2bins","services":["trash"],"billing_interval":"monthly","recurring_cents":3900,"setup_cents":4500,"trash_bins":2,"recycling_bins":0,"price_text":"$39.00 per month, plus $45.00 one-time setup (USD).","offer_token":"ao1.1796169600.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","signup_url":"https://trashtastic.com/pricing?address=123%20Example%20Lane%2C%20Marietta%2C%20GA%2030068&plan=trash-2bins&start=2026-12-01&utm_source=ai_assistant&utm_medium=agent"}],"earliest_start_dates":["2026-12-01","2026-12-08"],"signup_url":"https://trashtastic.com/pricing?address=123%20Example%20Lane%2C%20Marietta%2C%20GA%2030068&plan=trash-2bins&start=2026-12-01&utm_source=ai_assistant&utm_medium=agent"}}}},"400":{"description":"invalid_request (unknown, repeated or malformed fields), invalid_address, invalid_selection. Fix the request.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"invalid_address","error":"Missing or invalid: postal_code."}}}},"404":{"description":"not_found. The API is off.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"not_found","error":"Not found."}}}},"405":{"description":"method_not_allowed. See the Allow header.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"method_not_allowed","error":"Use POST."}}}},"413":{"description":"body_too_large.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"body_too_large","error":"Request too large."}}}},"422":{"description":"address_unverified (confirm the address with the person; it does not mean out of area), plan_unavailable, invalid_start_date.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"address_unverified","error":"Check the street address and try again."}}}},"503":{"description":"address_verification_unavailable, pricing_unavailable, start_dates_unavailable, lookup_unavailable. Not an answer about the address: try again later.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"lookup_unavailable","error":"Service lookup is unavailable."}}}}}},"post":{"operationId":"checkAddress","summary":"Check an address, plans, prices and start dates","description":"Says whether TrashTastic serves a US street address and returns the pickup day, every plan with its price, the start dates, and signup_url, a link the person can open. The person reviews and pays on Stripe; an assistant never enters card details.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"object","properties":{"line1":{"type":"string","description":"Street number and name.","maxLength":200},"city":{"type":"string","description":"City.","maxLength":100},"state":{"type":"string","description":"Two-letter state.","pattern":"^[A-Za-z]{2}$"},"postal_code":{"type":"string","description":"Five-digit ZIP.","pattern":"^\\d{5}(-?\\d{4})?$"}},"required":["line1","city","state","postal_code"],"additionalProperties":false}},"required":["address"],"additionalProperties":false},"example":{"address":{"line1":"123 Example Lane","city":"Marietta","state":"GA","postal_code":"30068"}}}}},"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object","properties":{"in_service_area":{"type":"boolean","description":"Whether the address is inside a service area."},"can_signup":{"type":"boolean","description":"Whether it can sign up now. False with in_service_area true means the area is not open yet."},"pickup_day":{"type":["string","null"],"description":"Weekly pickup day, when known."},"plans":{"type":"array","description":"Every plan and price for this address. Quote only these prices.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"First pickup dates that can be chosen."},"signup_url":{"type":"string","description":"Link for the person: the pricing page with the address filled in. Present when can_signup is true.","format":"uri"},"reason":{"type":"string","description":"Why signup is not possible.","enum":["outside_service_area","not_open_yet"]},"message":{"type":"string","description":"The reason in words."},"waitlist_url":{"type":"string","description":"Link for the person to join the waitlist, with the address filled in. Present when can_signup is false.","format":"uri"}},"required":["in_service_area","can_signup","pickup_day","plans","earliest_start_dates"],"additionalProperties":false},"example":{"in_service_area":true,"can_signup":true,"pickup_day":"tuesday","plans":[{"plan":"trash-2bins","services":["trash"],"billing_interval":"monthly","recurring_cents":3900,"setup_cents":4500,"trash_bins":2,"recycling_bins":0,"price_text":"$39.00 per month, plus $45.00 one-time setup (USD).","offer_token":"ao1.1796169600.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","signup_url":"https://trashtastic.com/pricing?address=123%20Example%20Lane%2C%20Marietta%2C%20GA%2030068&plan=trash-2bins&start=2026-12-01&utm_source=ai_assistant&utm_medium=agent"}],"earliest_start_dates":["2026-12-01","2026-12-08"],"signup_url":"https://trashtastic.com/pricing?address=123%20Example%20Lane%2C%20Marietta%2C%20GA%2030068&plan=trash-2bins&start=2026-12-01&utm_source=ai_assistant&utm_medium=agent"}}}},"400":{"description":"invalid_request (unknown, repeated or malformed fields), invalid_address, invalid_selection. Fix the request.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"invalid_address","error":"Missing or invalid: postal_code."}}}},"404":{"description":"not_found. The API is off.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"not_found","error":"Not found."}}}},"405":{"description":"method_not_allowed. See the Allow header.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"method_not_allowed","error":"Use POST."}}}},"413":{"description":"body_too_large.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"body_too_large","error":"Request too large."}}}},"422":{"description":"address_unverified (confirm the address with the person; it does not mean out of area), plan_unavailable, invalid_start_date.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"address_unverified","error":"Check the street address and try again."}}}},"503":{"description":"address_verification_unavailable, pricing_unavailable, start_dates_unavailable, lookup_unavailable. Not an answer about the address: try again later.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"lookup_unavailable","error":"Service lookup is unavailable."}}}}}}},"/signup-link":{"post":{"operationId":"createSignupLink","summary":"Create a Stripe Checkout link for the person","description":"Creates a hosted Stripe Checkout page for one plan from check-address. Send that plan's offer_token: the address is priced again and the Stripe page is checked, and any difference is a 409 with no link. Without it, name recurring_cents and setup_cents as shown to the person. The person reviews and pays on Stripe; an assistant never enters card details. Create one link only after the person has chosen; links per address per day are limited.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"object","properties":{"line1":{"type":"string","description":"Street number and name.","maxLength":200},"city":{"type":"string","description":"City.","maxLength":100},"state":{"type":"string","description":"Two-letter state.","pattern":"^[A-Za-z]{2}$"},"postal_code":{"type":"string","description":"Five-digit ZIP.","pattern":"^\\d{5}(-?\\d{4})?$"}},"required":["line1","city","state","postal_code"],"additionalProperties":false},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"trash_bins":{"type":"integer","minimum":1,"maximum":10,"description":"trash_bins of the chosen plan. Omitted: the fewest offered for these services."},"start_date":{"type":"string","description":"First pickup from earliest_start_dates. Omitted: the earliest.","format":"date"},"offer_token":{"type":"string","description":"offer_token of the chosen plan, unchanged. Recommended."},"recurring_cents":{"type":"integer","minimum":0,"description":"The recurring price shown to the person. Compared, never used as the price."},"setup_cents":{"type":"integer","minimum":0,"description":"The setup price shown to the person. Compared, never used as the price."}},"required":["address","services","billing_interval"],"additionalProperties":false},"example":{"address":{"line1":"123 Example Lane","city":"Marietta","state":"GA","postal_code":"30068"},"services":["trash"],"billing_interval":"monthly","trash_bins":2,"start_date":"2026-12-01","offer_token":"ao1.1796169600.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}}}},"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object","properties":{"checkout_url":{"type":"string","description":"Stripe Checkout page for the person to open.","format":"uri"},"start_date":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"summary":{"type":"string","description":"What is charged today and later. Read it to the person."},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"price_text":{"type":"string","description":"The price in words."}},"required":["checkout_url","start_date","summary","recurring_cents","setup_cents","price_text"],"additionalProperties":false},"example":{"checkout_url":"https://checkout.stripe.com/c/pay/cs_test_example","start_date":"2026-12-01","summary":"Today: $45.00 setup. December 1: $39.00 for your first month, then $39.00 each month.","recurring_cents":3900,"setup_cents":4500,"price_text":"$39.00 per month, plus $45.00 one-time setup (USD)."}}}},"400":{"description":"invalid_request (unknown, repeated or malformed fields), invalid_address, invalid_selection. Fix the request.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"invalid_address","error":"Missing or invalid: postal_code."}}}},"404":{"description":"not_found. The API is off.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"not_found","error":"Not found."}}}},"405":{"description":"method_not_allowed. See the Allow header.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"method_not_allowed","error":"Use POST."}}}},"409":{"description":"offer_mismatch. What you named is not what this address has now. No link was created. Show the person the plans in the answer (or check the address again) and ask before retrying.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"offer_mismatch","error":"The offer for this address is not the one you quoted. Show the person the current plans and prices (check the address again if they are not in this answer), then ask again."}}}},"413":{"description":"body_too_large.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"body_too_large","error":"Request too large."}}}},"422":{"description":"address_unverified (confirm the address with the person; it does not mean out of area), invalid_start_date, service_unavailable (reason and waitlist_url).","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"address_unverified","error":"Check the street address and try again."}}}},"429":{"description":"daily_limit (too many links for this address today) or rate_limited. Wait for Retry-After, or give the person signup_url.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"daily_limit","error":"Too many checkout links for this address today. The person can sign up at signup_url."}}},"headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}}},"502":{"description":"checkout_unavailable, or checkout_mismatch (the Stripe page did not match the quoted plan). Do not retry automatically: a session may exist. Give the person signup_url.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"checkout_unavailable","error":"Could not prepare checkout."}}}},"503":{"description":"address_verification_unavailable, pricing_unavailable, start_dates_unavailable, lookup_unavailable, checkout_unavailable. Not an answer about the address: try again later.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Stable error code."},"error":{"type":"string","description":"What to do about it."},"signup_url":{"type":"string","description":"The pricing page for the person, once the address could be read.","format":"uri"},"reason":{"type":"string","description":"service_unavailable only: outside_service_area or not_open_yet."},"message":{"type":"string","description":"service_unavailable only: the reason in words."},"waitlist_url":{"type":"string","description":"service_unavailable only: waitlist link with the address filled in.","format":"uri"},"plans":{"type":"array","description":"offer_mismatch only, when the offer could be re-checked: the current plans.","items":{"type":"object","properties":{"plan":{"type":"string","description":"Plan name used in signup_url. When a neighborhood bundle has other bin counts this is the nearest name.","enum":["trash","trash-valet","trash-2bins","trash-2bins-valet","trash-recycling","trash-recycling-valet","trash-2bins-recycling","trash-2bins-recycling-valet"]},"services":{"type":"array","items":{"type":"string","enum":["trash","recycling","valet"]},"uniqueItems":true,"contains":{"const":"trash"},"description":"Weekly trash is always included. recycling adds a recycling bin. valet brings the bins to and from the curb."},"billing_interval":{"type":"string","description":"How the subscription renews.","enum":["monthly","annual"]},"recurring_cents":{"type":"integer","minimum":0,"description":"Recurring price per interval, US cents."},"setup_cents":{"type":"integer","minimum":0,"description":"One-time setup, US cents."},"trash_bins":{"type":"integer","minimum":0,"description":"96-gallon trash bins included. 2 is the extra-bin option."},"recycling_bins":{"type":"integer","minimum":0,"description":"Recycling bins included."},"price_text":{"type":"string","description":"The price in words."},"offer_token":{"type":"string","description":"Send it unchanged with signup-link to get exactly this plan at this price, or a 409. Valid for 24 hours."},"signup_url":{"type":"string","description":"The pricing page filled in with this address and plan.","format":"uri"}},"required":["plan","services","billing_interval","recurring_cents","setup_cents","trash_bins","recycling_bins","price_text","signup_url"],"additionalProperties":false}},"earliest_start_dates":{"type":"array","items":{"type":"string","description":"First pickup, YYYY-MM-DD, from earliest_start_dates.","format":"date"},"description":"offer_mismatch only: current start dates."}},"required":["code","error"],"additionalProperties":false},"example":{"code":"lookup_unavailable","error":"Service lookup is unavailable."}}}}}}}}}