{"openapi":"3.1.0","info":{"title":"Trendyol (BYOK) API","version":"0.1.0","description":"Trendyol (BYOK) lets an AI assistant read your own Trendyol data through the Trendyol API with a key you supply (Trendyol API key). Read-only: 10 tools (list_shipment_packages, list_claims, list_approved_products, list_unapproved_products, get_product_status, list_customer_questions, get_seller_addresses, list_cargo_providers, list_brands, get_batch_request_result). The BYOK key travels with each...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-trendyol.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-trendyol/docs"},"termsOfService":"https://connectorbay.com/byok-trendyol/terms"},"servers":[{"url":"https://byok-trendyol.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-trendyol/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_shipment_packages":{"post":{"operationId":"list_shipment_packages","summary":"List order shipment packages of a seller with status, amounts, cargo provider and tracking, delivery dates and the order","description":"List order shipment packages of a seller with status, amounts, cargo provider and tracking, delivery dates and the order lines. Customer names, addresses and national ids are not returned. Max 200 per page. Use for \"Which Trendyol orders are waiting to be shipped\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"seller_id":{"description":"Your Trendyol seller (supplier) id, shown with the API credentials in the seller panel.","maximum":999999999,"minimum":1,"title":"Seller Id","type":"integer"},"start_date":{"anyOf":[{"maximum":9999999999999,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Only records from this time, Unix timestamp in milliseconds.","title":"Start Date"},"end_date":{"anyOf":[{"maximum":9999999999999,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Only records up to this time, Unix timestamp in milliseconds.","title":"End Date"},"page":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Page number, starting at 0.","title":"Page"},"size":{"anyOf":[{"maximum":200,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Packages per page (1 to 200).","title":"Size"},"order_number":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only packages of this order number.","title":"Order Number"},"status":{"anyOf":[{"enum":["Awaiting","Created","Picking","Invoiced","Shipped","Cancelled","Delivered","UnDelivered","Returned","AtCollectionPoint","UnSupplied"],"type":"string"},{"type":"null"}],"default":null,"description":"Package status.","title":"Status"},"order_by_field":{"anyOf":[{"enum":["PackageLastModifiedDate","CreatedDate"],"type":"string"},{"type":"null"}],"default":null,"description":"Sort field.","title":"Order By Field"},"order_by_direction":{"anyOf":[{"enum":["ASC","DESC"],"type":"string"},{"type":"null"}],"default":null,"description":"Sort direction.","title":"Order By Direction"}},"required":["seller_id"],"title":"list_shipment_packagesArguments","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_claims":{"post":{"operationId":"list_claims","summary":"List returned orders (claims) with claim id, order number, dates, cargo provider and tracking numbers. Customer names ar","description":"List returned orders (claims) with claim id, order number, dates, cargo provider and tracking numbers. Customer names are not returned. Use for \"Which Trendyol returns came in this week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"seller_id":{"description":"Your Trendyol seller (supplier) id, shown with the API credentials in the seller panel.","maximum":999999999,"minimum":1,"title":"Seller Id","type":"integer"},"start_date":{"anyOf":[{"maximum":9999999999999,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Only records from this time, Unix timestamp in milliseconds.","title":"Start Date"},"end_date":{"anyOf":[{"maximum":9999999999999,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Only records up to this time, Unix timestamp in milliseconds.","title":"End Date"},"page":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Page number, starting at 0.","title":"Page"},"size":{"anyOf":[{"maximum":200,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Claims per page (1 to 200).","title":"Size"},"claim_item_status":{"anyOf":[{"enum":["Created","WaitingInAction","WaitingFraudCheck","Accepted","Unresolved","Rejected","Cancelled","InAnalysis"],"type":"string"},{"type":"null"}],"default":null,"description":"Claim status.","title":"Claim Item Status"},"order_number":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only claims of this order number.","title":"Order Number"}},"required":["seller_id"],"title":"list_claimsArguments","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_approved_products":{"post":{"operationId":"list_approved_products","summary":"List approved (live) products grouped by content, each with brand, category, title and its variants (barcodes, prices, s","description":"List approved (live) products grouped by content, each with brand, category, title and its variants (barcodes, prices, stock). Max 100 per page; nextPageToken is used past 10,000 contents. Use for \"Which of my Trendyol products are on sale\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"seller_id":{"description":"Your Trendyol seller (supplier) id, shown with the API credentials in the seller panel.","maximum":999999999,"minimum":1,"title":"Seller Id","type":"integer"},"page":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Page number, starting at 0.","title":"Page"},"size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Contents per page (1 to 100).","title":"Size"},"barcode":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Only the product with this barcode.","title":"Barcode"},"stock_code":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Only products with this stock code.","title":"Stock Code"},"product_main_id":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Only products with this main product code.","title":"Product Main Id"},"status":{"anyOf":[{"enum":["archived","blacklisted","locked","onSale"],"type":"string"},{"type":"null"}],"default":null,"description":"Product status filter.","title":"Status"},"next_page_token":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Token from nextPageToken of the previous answer, for lists past 10,000 contents.","title":"Next Page Token"}},"required":["seller_id"],"title":"list_approved_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/list_unapproved_products":{"post":{"operationId":"list_unapproved_products","summary":"List products that are pending approval or were rejected, with title, price, stock, brand, category and rejection reason","description":"List products that are pending approval or were rejected, with title, price, stock, brand, category and rejection reasons. Max 1000 per page. Use for \"Which Trendyol products were rejected and why\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"seller_id":{"description":"Your Trendyol seller (supplier) id, shown with the API credentials in the seller panel.","maximum":999999999,"minimum":1,"title":"Seller Id","type":"integer"},"page":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Page number, starting at 0.","title":"Page"},"size":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Products per page (1 to 1000).","title":"Size"},"barcode":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Only the product with this barcode.","title":"Barcode"},"stock_code":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Only products with this stock code.","title":"Stock Code"},"status":{"anyOf":[{"enum":["rejected","pendingApproval"],"type":"string"},{"type":"null"}],"default":null,"description":"Approval state.","title":"Status"},"next_page_token":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Token from nextPageToken of the previous answer.","title":"Next Page Token"}},"required":["seller_id"],"title":"list_unapproved_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_status":{"post":{"operationId":"get_product_status","summary":"Get the basic state of one product by barcode: whether it is approved, archived, and its listing and content ids. Use fo","description":"Get the basic state of one product by barcode: whether it is approved, archived, and its listing and content ids. Use for \"Is the Trendyol product with barcode ABC123 approved\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"seller_id":{"description":"Your Trendyol seller (supplier) id, shown with the API credentials in the seller panel.","maximum":999999999,"minimum":1,"title":"Seller Id","type":"integer"},"barcode":{"description":"Product barcode.","maxLength":60,"title":"Barcode","type":"string"}},"required":["seller_id","barcode"],"title":"get_product_statusArguments","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_customer_questions":{"post":{"operationId":"list_customer_questions","summary":"List questions customers asked about the seller's products, with product, text, status and answer. Customer names are no","description":"List questions customers asked about the seller's products, with product, text, status and answer. Customer names are not returned. Use for \"Which Trendyol customer questions are waiting for an answer\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"seller_id":{"description":"Your Trendyol seller (supplier) id, shown with the API credentials in the seller panel.","maximum":999999999,"minimum":1,"title":"Seller Id","type":"integer"},"start_date":{"anyOf":[{"maximum":9999999999999,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Only records from this time, Unix timestamp in milliseconds.","title":"Start Date"},"end_date":{"anyOf":[{"maximum":9999999999999,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Only records up to this time, Unix timestamp in milliseconds.","title":"End Date"},"page":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Page number, starting at 0.","title":"Page"},"size":{"anyOf":[{"maximum":200,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Questions per page (1 to 200).","title":"Size"},"status":{"anyOf":[{"enum":["WAITING_FOR_ANSWER","ANSWERED","REJECTED","REPORTED"],"type":"string"},{"type":"null"}],"default":null,"description":"Question status.","title":"Status"},"barcode":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Only questions about the product with this barcode.","title":"Barcode"},"order_by_direction":{"anyOf":[{"enum":["ASC","DESC"],"type":"string"},{"type":"null"}],"default":null,"description":"Sort direction.","title":"Order By Direction"}},"required":["seller_id"],"title":"list_customer_questionsArguments","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_seller_addresses":{"post":{"operationId":"get_seller_addresses","summary":"Show the seller's registered shipment, return and invoice addresses with the ids used when creating products. Use for \"W","description":"Show the seller's registered shipment, return and invoice addresses with the ids used when creating products. Use for \"What shipment and return addresses are registered on my Trendyol account\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"seller_id":{"description":"Your Trendyol seller (supplier) id, shown with the API credentials in the seller panel.","maximum":999999999,"minimum":1,"title":"Seller Id","type":"integer"}},"required":["seller_id"],"title":"get_seller_addressesArguments","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_cargo_providers":{"post":{"operationId":"list_cargo_providers","summary":"List the cargo (shipping) providers Trendyol supports with their codes. Use for \"Which cargo providers can I use on Tren","description":"List the cargo (shipping) providers Trendyol supports with their codes. Use for \"Which cargo providers can I use on Trendyol\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_cargo_providersArguments","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_brands":{"post":{"operationId":"list_brands","summary":"List Trendyol brands with ids, 1000 or more per page, for use when matching product brands. Use for \"What is the Trendyo","description":"List Trendyol brands with ids, 1000 or more per page, for use when matching product brands. Use for \"What is the Trendyol brand id for Nike\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"page":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Page number, starting at 0.","title":"Page"},"size":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"Brands per page (up to 1000).","title":"Size"}},"title":"list_brandsArguments","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_batch_request_result":{"post":{"operationId":"get_batch_request_result","summary":"Check the outcome of a bulk product request by its batch request id: status, item counts and failures. Results stay visi","description":"Check the outcome of a bulk product request by its batch request id: status, item counts and failures. Results stay visible for about 4 hours. Use for \"Did my Trendyol bulk product update finish\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"seller_id":{"description":"Your Trendyol seller (supplier) id, shown with the API credentials in the seller panel.","maximum":999999999,"minimum":1,"title":"Seller Id","type":"integer"},"batch_request_id":{"description":"Batch request id returned by an earlier bulk product call.","maxLength":80,"title":"Batch Request Id","type":"string"}},"required":["seller_id","batch_request_id"],"title":"get_batch_request_resultArguments","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}}}}