{"openapi":"3.1.0","info":{"title":"Stripe Tax (BYOK) API","version":"0.1.0","description":"Stripe Tax (BYOK) lets an AI assistant read your own Stripe Tax data through the Stripe Tax API with a key you supply (restricted API key with read permissions only (starts with rk_live_ or rk_test_)). Read-only: 12 tools (list_tax_registrations, get_tax_registration, get_tax_settings, get_tax_calculation, list_tax_calculation_line_items, get_tax_transaction, list_tax_transaction_line_items,...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-stripe-tax.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-stripe-tax/docs"},"termsOfService":"https://connectorbay.com/byok-stripe-tax/terms"},"servers":[{"url":"https://byok-stripe-tax.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-stripe-tax/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_tax_registrations":{"post":{"operationId":"list_tax_registrations","summary":"List the places where your account is registered to collect tax, with country, status and start and end dates. Works wit","description":"List the places where your account is registered to collect tax, with country, status and start and end dates. Works with a restricted key that has read access to this resource only. Use for \"Where am I registered to collect tax with Stripe Tax\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"status":{"anyOf":[{"enum":["active","all","expired","scheduled"],"type":"string"},{"type":"null"}],"default":null,"description":"Only registrations with this status.","title":"Status"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many objects to return (1 to 100).","title":"Limit"},"starting_after":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor for the next page: the id of the last object on the previous page. Use it while has_more is true.","title":"Starting After"}},"title":"list_tax_registrationsArguments","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_tax_registration":{"post":{"operationId":"get_tax_registration","summary":"Get one tax registration by id: country, status, and when it starts and expires. Works with a restricted key that has re","description":"Get one tax registration by id: country, status, and when it starts and expires. Works with a restricted key that has read access to this resource only. Use for \"When does tax registration taxreg_NfAbCdEf expire\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Tax registration id, for example taxreg_NfAbCdEfGhIjKl.","maxLength":200,"title":"Id","type":"string"}},"required":["id"],"title":"get_tax_registrationArguments","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_tax_settings":{"post":{"operationId":"get_tax_settings","summary":"Show your Stripe Tax settings: whether Tax is active or pending, default tax behavior and tax code, and the default prov","description":"Show your Stripe Tax settings: whether Tax is active or pending, default tax behavior and tax code, and the default provider. Works with a restricted key that has read access to this resource only. Use for \"Is Stripe Tax set up and active on my account\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_tax_settingsArguments","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_tax_calculation":{"post":{"operationId":"get_tax_calculation","summary":"Get one saved tax calculation by id with currency, total, tax amounts (exclusive and inclusive) and tax date. Customer a","description":"Get one saved tax calculation by id with currency, total, tax amounts (exclusive and inclusive) and tax date. Customer address details are not returned. Works with a restricted key that has read access to this resource only. Use for \"How much tax did calculation taxcalc_1Nf3pq come to\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"calculation":{"description":"Tax calculation id, for example taxcalc_1RHBWSLkdIwHu7ix2dzkx8eS.","maxLength":200,"title":"Calculation","type":"string"}},"required":["calculation"],"title":"get_tax_calculationArguments","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_tax_calculation_line_items":{"post":{"operationId":"list_tax_calculation_line_items","summary":"List the line items of one tax calculation with amount, tax per line, tax code and tax behavior. Works with a restricted","description":"List the line items of one tax calculation with amount, tax per line, tax code and tax behavior. Works with a restricted key that has read access to this resource only. Use for \"Which lines were taxed in calculation taxcalc_1RHBWSLkdIwHu7ix2dzkx8eS\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"calculation":{"description":"Tax calculation id.","maxLength":200,"title":"Calculation","type":"string"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many objects to return (1 to 100).","title":"Limit"},"starting_after":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor for the next page: the id of the last object on the previous page. Use it while has_more is true.","title":"Starting After"}},"required":["calculation"],"title":"list_tax_calculation_line_itemsArguments","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_tax_transaction":{"post":{"operationId":"get_tax_transaction","summary":"Get one recorded tax transaction by id with currency, type (transaction or reversal), reference, tax date and posting ti","description":"Get one recorded tax transaction by id with currency, type (transaction or reversal), reference, tax date and posting time. Customer address details are not returned. Works with a restricted key that has read access to this resource only. Use for \"What is tax transaction tax_1Nf3pq for\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"transaction":{"description":"Tax transaction id, for example tax_1RHBWSLkdIwHu7ixdwGgzA4V.","maxLength":200,"title":"Transaction","type":"string"}},"required":["transaction"],"title":"get_tax_transactionArguments","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_tax_transaction_line_items":{"post":{"operationId":"list_tax_transaction_line_items","summary":"List the line items of one tax transaction with amount, tax, tax code and type. Works with a restricted key that has rea","description":"List the line items of one tax transaction with amount, tax, tax code and type. Works with a restricted key that has read access to this resource only. Use for \"Which lines does tax transaction tax_1RHBWSLkdIwHu7ixdwGgzA4V contain\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"transaction":{"description":"Tax transaction id.","maxLength":200,"title":"Transaction","type":"string"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many objects to return (1 to 100).","title":"Limit"},"starting_after":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor for the next page: the id of the last object on the previous page. Use it while has_more is true.","title":"Starting After"}},"required":["transaction"],"title":"list_tax_transaction_line_itemsArguments","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/find_tax_association":{"post":{"operationId":"find_tax_association","summary":"Find the tax calculation and transaction attempts linked to a PaymentIntent. Works with a restricted key that has read a","description":"Find the tax calculation and transaction attempts linked to a PaymentIntent. Works with a restricted key that has read access to this resource only. Use for \"Which tax calculation was used for payment intent pi_3Nf3pq\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"payment_intent":{"description":"PaymentIntent id to look up, for example pi_3MtwBwLkdIwHu7ix28a3tqPa.","maxLength":100,"title":"Payment Intent","type":"string"}},"required":["payment_intent"],"title":"find_tax_associationArguments","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_tax_codes":{"post":{"operationId":"list_tax_codes","summary":"List Stripe's product tax codes (categories such as software or clothing) with name and description. Use for \"Which tax ","description":"List Stripe's product tax codes (categories such as software or clothing) with name and description. Use for \"Which tax code fits digital services\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many objects to return (1 to 100).","title":"Limit"},"starting_after":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor for the next page: the id of the last object on the previous page. Use it while has_more is true.","title":"Starting After"}},"title":"list_tax_codesArguments","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_tax_code":{"post":{"operationId":"get_tax_code","summary":"Get one product tax code by id, for example txcd_10000000, with its name and description. Use for \"What does tax code tx","description":"Get one product tax code by id, for example txcd_10000000, with its name and description. Use for \"What does tax code txcd_10000000 stand for\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Tax code id, for example txcd_10000000.","maxLength":200,"title":"Id","type":"string"}},"required":["id"],"title":"get_tax_codeArguments","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_tax_rates":{"post":{"operationId":"list_tax_rates","summary":"List manually created tax rates with percentage, inclusive flag, jurisdiction and tax type. Works with a restricted key ","description":"List manually created tax rates with percentage, inclusive flag, jurisdiction and tax type. Works with a restricted key that has read access to this resource only. Use for \"Which tax rates are active\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for active rates only, false for archived ones.","title":"Active"},"inclusive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for inclusive rates only, false for exclusive ones.","title":"Inclusive"},"created_after":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Only objects created at or after this time, as a Unix timestamp in seconds.","title":"Created After"},"created_before":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Only objects created at or before this time, as a Unix timestamp in seconds.","title":"Created Before"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many objects to return (1 to 100).","title":"Limit"},"starting_after":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor for the next page: the id of the last object on the previous page. Use it while has_more is true.","title":"Starting After"}},"title":"list_tax_ratesArguments","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_tax_rate":{"post":{"operationId":"get_tax_rate","summary":"Get one tax rate by id: name, percentage, jurisdiction and whether it is inclusive. Works with a restricted key that has","description":"Get one tax rate by id: name, percentage, jurisdiction and whether it is inclusive. Works with a restricted key that has read access to this resource only. Use for \"What percentage is tax rate txr_1MtvYHLkdIwHu7ix\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"tax_rate":{"description":"Tax rate id, for example txr_1MtvYHLkdIwHu7ixaq3LRnM7.","maxLength":200,"title":"Tax Rate","type":"string"}},"required":["tax_rate"],"title":"get_tax_rateArguments","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}}}}