Has anyone successfully created an action in your custom GPT that is able to make a call to the e bay buy browse API and define the market place ID? The documentation states this should be a parameter value, however the Action editor throws an error when you define an “in”: “header” parameter value. If you use “in”: “query” to define there is no error however it ignores the market place ID and just uses the default market place. If I define the “headers” outside of the parameters the marketplace ID is once again ignored. I’ve tried many different combinations of everything I can think of, been in tutorial heck for days and still, no go. Any help would be greatly appreciated. I can paste the entire Action if anyone want’s to have a look.
{
“openapi”: “3.1.0”,
“info”: {
“title”: “eBay Keyword Search”,
“description”: “Action to search eBay items by keywords using the Browse API.”,
“version”: “v1.0.0”
},
“servers”: [
{
“url”: “https://api.ebay.com/buy/browse/v1”
}
],
“paths”: {
“/item_summary/search”: {
“get”: {
“operationId”: “searchItemSummaries”,
“tags”: [“item_summary”],
“description”: “Search for eBay items by keyword.”,
“parameters”: [
{
“name”: “q”,
“in”: “query”,
“description”: “Keywords to search for items on eBay.”,
“required”: true,
“schema”: { “type”: “string” }
},
{
“name”: “limit”,
“in”: “query”,
“description”: “Limit the return results”,
“required”: true,
“schema”: { “type”: “string”, “default”: “10” }
}
],
“headers”: {
“X-EBAY-C-MARKETPLACE-ID”: {
“description”: “Marketplace ID for eBay Canada”,
“required”: true,
“schema”: {
“type”: “string”,
“default”: “EBAY-ENCA”
}
}
},
“responses”: {
“200”: {
“description”: “Successful response”,
“content”: {
“application/json”: {
“schema”: {
“type”: “object”,
“properties”: {
“items”: {
“type”: “array”,
“items”: { “$ref”: “#/components/schemas/Item” }
}
}
}
}
}
}
},
“security”: [
{
“BearerAuth”:
}
]
}
}
},
“components”: {
“securitySchemes”: {
“BearerAuth”: {
“type”: “http”,
“scheme”: “bearer”,
“bearerFormat”: “JWT”,
“description”: “For accessing the eBay API”
}
},
“schemas”: {
“Item”: {
“type”: “object”,
“properties”: {
}
}
}
}
}