{"openapi":"3.1.0","info":{"title":"FastSpring (BYOK) API","version":"0.1.0","description":"FastSpring (BYOK) lets an AI assistant read your own FastSpring data through the FastSpring API with a key you supply (FastSpring API username). Read-only: 11 tools (list_orders, get_order, list_subscriptions, get_subscription, list_subscription_entries, list_products, get_product, list_product_prices, get_product_price, list_processed_events, list_unprocessed_events). The BYOK key travels with...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-fastspring.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-fastspring/docs"},"termsOfService":"https://connectorbay.com/byok-fastspring/terms"},"servers":[{"url":"https://byok-fastspring.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-fastspring/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_orders":{"post":{"operationId":"list_orders","summary":"List order ids filtered by date range, product, status, rebill or returns; use get_order for details. Use for \"Which Fas","description":"List order ids filtered by date range, product, status, rebill or returns; use get_order for details. Use for \"Which FastSpring orders were completed in September\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"begin":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Only orders after this date, YYYY-MM-DD.","title":"Begin"},"end":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Only orders before this date, YYYY-MM-DD.","title":"End"},"days":{"anyOf":[{"maximum":3650,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only the last N days.","title":"Days"},"status":{"anyOf":[{"enum":["completed","canceled","failed"],"type":"string"},{"type":"null"}],"default":null,"description":"completed, canceled (declined) or failed.","title":"Status"},"products":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only orders with this product path.","title":"Products"},"rebill":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"true to include only subscription rebills, false to exclude them.","title":"Rebill"},"returns":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"true for orders with returns.","title":"Returns"},"scope":{"anyOf":[{"enum":["all","live","test"],"type":"string"},{"type":"null"}],"default":null,"description":"Live orders, test orders or both.","title":"Scope"},"limit":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Results per page (the API default is 50).","title":"Limit"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_ordersArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_order":{"post":{"operationId":"get_order","summary":"Get one order by id with totals, tax, discount, currency, payment type, buyer country and date. Buyer name, email, phone","description":"Get one order by id with totals, tax, discount, currency, payment type, buyer country and date. Buyer name, email, phone and addresses are not returned. Use for \"How much was FastSpring order abcDEFgHiJklM1N-3OP9q\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"order_id":{"description":"Order id from list_orders.","maxLength":200,"title":"Order Id","type":"string"}},"required":["order_id"],"title":"get_orderArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_subscriptions":{"post":{"operationId":"list_subscriptions","summary":"List subscriptions filtered by status, product, account, event and dates, with paging. Use for \"Which FastSpring subscri","description":"List subscriptions filtered by status, product, account, event and dates, with paging. Use for \"Which FastSpring subscriptions are overdue\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"status":{"anyOf":[{"enum":["active","canceled","deactivated","overdue","trial"],"type":"string"},{"type":"null"}],"default":null,"description":"Only this status.","title":"Status"},"products":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only subscriptions to this product path.","title":"Products"},"account_id":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Only this account id.","title":"Account Id"},"event":{"anyOf":[{"enum":["canceled","charged","created","deactivated","trialended","trialstarted"],"type":"string"},{"type":"null"}],"default":null,"description":"Only subscriptions with this event; needs begin and end.","title":"Event"},"begin":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Start of the date range, YYYY-MM-DD.","title":"Begin"},"end":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"End of the date range, YYYY-MM-DD.","title":"End"},"scope":{"anyOf":[{"enum":["all","live","test"],"type":"string"},{"type":"null"}],"default":null,"description":"Live orders, test orders or both.","title":"Scope"},"limit":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Results per page (the API default is 50).","title":"Limit"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_subscriptionsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_subscription":{"post":{"operationId":"get_subscription","summary":"Get one subscription by id with state, product, price, quantity, renewal setting, payment method type and next charge da","description":"Get one subscription by id with state, product, price, quantity, renewal setting, payment method type and next charge date. Use for \"When is FastSpring subscription sub1 charged next\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"subscription_id":{"description":"Subscription id from list_subscriptions.","maxLength":200,"title":"Subscription Id","type":"string"}},"required":["subscription_id"],"title":"get_subscriptionArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_subscription_entries":{"post":{"operationId":"list_subscription_entries","summary":"List the billing entries (orders) of one subscription with period dates, order reference and totals. Use for \"Show the c","description":"List the billing entries (orders) of one subscription with period dates, order reference and totals. Use for \"Show the charges of FastSpring subscription sub1\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"subscription_id":{"description":"Subscription id from list_subscriptions.","maxLength":200,"title":"Subscription Id","type":"string"}},"required":["subscription_id"],"title":"list_subscription_entriesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_products":{"post":{"operationId":"list_products","summary":"List the product paths of the store. Use for \"Which products are in my FastSpring store\".","description":"List the product paths of the store. Use for \"Which products are in my FastSpring store\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"limit":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Results per page (the API default is 50).","title":"Limit"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_productsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_product":{"post":{"operationId":"get_product","summary":"Get one product by path with its name, SKU and visibility. Use for \"Show the FastSpring product pro-plan\".","description":"Get one product by path with its name, SKU and visibility. Use for \"Show the FastSpring product pro-plan\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"product_path":{"description":"Product path (the id you gave the product in FastSpring), for example pro-plan.","maxLength":200,"title":"Product Path","type":"string"}},"required":["product_path"],"title":"get_productArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_product_prices":{"post":{"operationId":"list_product_prices","summary":"List the prices of all products, optionally for one country and currency, including discount details. Use for \"What do m","description":"List the prices of all products, optionally for one country and currency, including discount details. Use for \"What do my FastSpring products cost in Germany\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"country":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":null,"description":"ISO 3166 country such as DE.","title":"Country"},"currency":{"anyOf":[{"maxLength":3,"type":"string"},{"type":"null"}],"default":null,"description":"ISO 4217 currency such as EUR.","title":"Currency"},"limit":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Results per page (the API default is 50).","title":"Limit"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_product_pricesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_product_price":{"post":{"operationId":"get_product_price","summary":"Get the prices of one product, optionally for one country and currency. Use for \"How much is the FastSpring product pro-","description":"Get the prices of one product, optionally for one country and currency. Use for \"How much is the FastSpring product pro-plan in the US\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"product_path":{"description":"Product path (the id you gave the product in FastSpring), for example pro-plan.","maxLength":200,"title":"Product Path","type":"string"},"country":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":null,"description":"ISO 3166 country such as US.","title":"Country"},"currency":{"anyOf":[{"maxLength":3,"type":"string"},{"type":"null"}],"default":null,"description":"ISO 4217 currency such as USD.","title":"Currency"}},"required":["product_path"],"title":"get_product_priceArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_processed_events":{"post":{"operationId":"list_processed_events","summary":"List events that were already processed (order, subscription, return) in the last 30 days; the event payload is not retu","description":"List events that were already processed (order, subscription, return) in the last 30 days; the event payload is not returned. Use for \"What FastSpring events happened this week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"days":{"description":"How many days back to look (1 to 30).","maximum":30,"minimum":1,"title":"Days","type":"integer"},"begin":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Only events after this date, YYYY-MM-DD.","title":"Begin"},"end":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Only events before this date, YYYY-MM-DD.","title":"End"}},"required":["days"],"title":"list_processed_eventsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_unprocessed_events":{"post":{"operationId":"list_unprocessed_events","summary":"List events not yet marked as processed in the last 30 days; the event payload is not returned. Use for \"Did I miss any ","description":"List events not yet marked as processed in the last 30 days; the event payload is not returned. Use for \"Did I miss any FastSpring events\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"days":{"description":"How many days back to look (1 to 30).","maximum":30,"minimum":1,"title":"Days","type":"integer"},"begin":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Only events after this date, YYYY-MM-DD.","title":"Begin"},"end":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Only events before this date, YYYY-MM-DD.","title":"End"}},"required":["days"],"title":"list_unprocessed_eventsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}