{
    "openapi": "3.1.0",
    "info": {
        "title": "Media API",
        "description": "The <strong>Media API</strong> lets sellers to create, upload, and retrieve files, including:<ul><li>images</li><li>videos</li><li>documents for Regulatory requirements</li><li>documents for post-order activities (such as returns)</li></ul>",
        "contact": {
            "name": "eBay Inc,"
        },
        "license": {
            "name": "eBay API License Agreement",
            "url": "https://developer.ebay.com/join/api-license-agreement"
        },
        "version": "v1_beta.5.1"
    },
    "servers": [
        {
            "url": "https://apim.ebay.com/commerce/media/v1_beta",
            "description": "Production default for image and video operations"
        }
    ],
    "security": [
        {}
    ],
    "paths": {
        "/image/create_image_from_file": {
            "post": {
                "tags": [
                    "image"
                ],
                "description": "This method uploads a picture file to eBay Picture Services (EPS) using multipart/form-data. <p>All images must comply with eBay's picture requirements, such as dimension and file size restrictions. For more information, see <a href=\"https://www.ebay.com/help/policies/listing-policies/picture-policy?id=4370\"  target=\"_blank\">Picture policy</a>. The image formats supported are <strong>JPG</strong>, <strong>GIF</strong>, <strong>PNG</strong>, <strong>BMP</strong>, <strong>TIFF</strong>, <strong>AVIF</strong>, <strong>HEIC</strong>, and <strong>WEBP</strong>. For more information, see <a href=\"/api-docs/sell/static/inventory/managing-image-media.html#image-requirements\" target=\"_blank\">Image requirements</a>.</p><p><span class=\"tablenote\"><strong>Note:</strong> Animated GIF, and multi-page PNG/TIFF files, are not supported. Any animation effect of supported formats will be lost upon upload.</span></p><p>This call does not have a JSON Request payload but uploads the file as form-data. For example:<br /> <pre> image: &quot;sample_picture.jpg&quot; </pre>See <strong>Samples</strong> for information.</p><p><span class=\"tablenote\"><strong>Note:</strong> You must use a <strong>Content-Type</strong> header with its value set to 'multipart/form-data'.</span></p><p>When an EPS image is successfully created, the method returns the HTTP Status Code <code>201 Created</code>. The method also returns the getImage URI in the <strong>Location</strong> response header.</p><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><strong><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></strong></span></span> Make sure to capture the image ID URI returned in the response <a href=\"/develop/guides-v2/using-ebay-restful-apis#responseheaders\" target=\"_blank\">Location header</a> provided in the following format:</p><p><code>https://apim.ebay.com/commerce/media/v1_beta/image/<em>{image_id}</em></code> </p><p>You can capture the entire URI, or just save the <code>{image_id}</code> only. Pass the <code>{image_id}</code> as a path parameter in the <strong><a href=\"/develop/api/sell/media_api#sell-media_api-image-getimage\" >getImage</a></strong> method to return the value needed to associate an image to a listing using the Trading and Inventory APIs.</p></div><p>See <a href=\"/api-docs/sell/static/inventory/managing-image-media.html\" target=\"_blank\">Managing images</a> for additional details.</p><br/><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><strong><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></strong></span></span>All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds. </p></div>",
                "operationId": "createImageFromFile",
                "servers": [
                    {
                        "url": "https://apim.ebay.com/commerce/media/v1_beta",
                        "description": "Production server for image operations"
                    }
                ],
                "parameters": [
                    {
                        "name": "Content-Type",
                        "in": "header",
                        "description": "This header indicates the format of the request body provided by the client. Its value should be set to <strong>multipart/form-data</strong>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "headers": {
                            "Location": {
                                "schema": {
                                    "type": "string",
                                    "description": "The location response header contains the URI of the newly created image ID in the format:<br> <code>https://apim.ebay.com/commerce/media/v1_beta/image/<em>{image_id}</em></code> <br><br>Capture this URI to use with the <a href=\"/develop/api/sell/media_api#sell-media_api-image-getimage\" >getImage</a> method. See <a href=\"/api-docs/sell/static/inventory/managing-image-media.html\"  target=\"_blank\">Managing images</a> for more information."
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ImageResponse"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190201": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The image file size is larger than the limit. Please refer to the documentation."
                                },
                                "190202": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The supplied image dimensions exceed the limit. Please refer to the documentation."
                                },
                                "190203": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The supplied image is in a format that is not supported. Please refer to the documentation for a list of supported formats."
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190013": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Unauthorized access."
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190000": {
                                    "domain": "API_MEDIA",
                                    "category": "APPLICATION",
                                    "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance."
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "api_auth": [
                            "https://api.ebay.com/oauth/api_scope/sell.inventory"
                        ]
                    }
                ]
            }
        },
        "/image/create_image_from_url": {
            "post": {
                "tags": [
                    "image"
                ],
                "description": "This method uploads a picture to eBay Picture Services (EPS) from the specified URL. Specify the location of the picture on an external web server through the <strong>imageUrl</strong> field. <p>All images must comply with eBay’s picture requirements, such as dimension and file size restrictions. For more information, see <a href=\"https://www.ebay.com/help/policies/listing-policies/picture-policy?id=4370\" target=\"_blank\">Picture policy</a>. The image formats supported are <strong>JPG</strong>, <strong>GIF</strong>, <strong>PNG</strong>, <strong>BMP</strong>, <strong>TIFF</strong>, <strong>AVIF</strong>, <strong>HEIC</strong>, and <strong>WEBP</strong>. In addition, the provided URL must be secured using HTTPS (HTTP is not permitted). For more information, see <a href=\"/api-docs/sell/static/inventory/managing-image-media.html#image-requirements\" target=\"_blank\">Image requirements</a>.</p><p><span class=\"tablenote\"><strong>Note:</strong> Animated GIF, and multi-page PNG/TIFF files, are not supported. Any animation effect of supported formats will be lost upon upload.</span></p><p>When an EPS image is successfully created, the method returns the HTTP Status Code <code>201 Created</code>. The method also returns the getImage URI in the <strong>Location</strong> response header.</p><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><strong><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></strong></span></span> Make sure to capture the image ID URI returned in the response <a href=\"/develop/guides-v2/using-ebay-restful-apis#responseheaders\" target=\"_blank\">Location header</a> provided in the following format:</p><p><code>https://apim.ebay.com/commerce/media/v1_beta/image/<em>{image_id}</em></code> </p><p>You can capture the entire URI, or just save the <code>{image_id}</code> only. Pass the <code>{image_id}</code> as a path parameter in the <strong><a href=\"/develop/api/sell/media_api#sell-media_api-image-getimage\" >getImage</a></strong> method to return the value needed to associate an image to a listing using the Trading and Inventory APIs.</p></div><p>See <a href=\"/api-docs/sell/static/inventory/managing-image-media.html\" target=\"_blank\">Managing images</a> for additional details.</p><br/><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><strong><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></strong></span></span>All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds. </p></div>",
                "operationId": "createImageFromUrl",
                "servers": [
                    {
                        "url": "https://apim.ebay.com/commerce/media/v1_beta",
                        "description": "Production server for image operations"
                    }
                ],
                "parameters": [
                    {
                        "name": "Content-Type",
                        "in": "header",
                        "description": "This header indicates the format of the request body provided by the client. Its value should be set to <strong>application/json</strong>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateImageFromUrlRequest"
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "201": {
                        "description": "Created",
                        "headers": {
                            "Location": {
                                "schema": {
                                    "type": "string",
                                    "description": "The location response header contains the URI of the newly created image ID in the format:<br> <code>https://apim.ebay.com/commerce/media/v1_beta/image/<em>{image_id}</em></code> <br><br>Capture this URI to use with the <a href=\"/develop/api/sell/media_api#sell-media_api-image-getimage\" >getImage</a> method. See <a href=\"/api-docs/sell/static/inventory/managing-image-media.html\"  target=\"_blank\">Managing images</a> for more information."
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ImageResponse"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190201": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The image file size is larger than the limit. Please refer to the documentation."
                                },
                                "190202": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The supplied image dimensions exceed the limit. Please refer to the documentation."
                                },
                                "190203": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The supplied image is in a format that is not supported. Please refer to the documentation for a list of supported formats."
                                },
                                "190204": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "No valid image can be downloaded from the provided imageUrl. Please refer to the documentation."
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190013": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Unauthorized access."
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190000": {
                                    "domain": "API_MEDIA",
                                    "category": "APPLICATION",
                                    "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance."
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "api_auth": [
                            "https://api.ebay.com/oauth/api_scope/sell.inventory"
                        ]
                    }
                ]
            }
        },
        "/image/{image_id}": {
            "get": {
                "tags": [
                    "image"
                ],
                "description": "This method retrieves an EPS image URL and its expiration details for the unique identifier specified in the path parameter <strong>image_id</strong>. Use the retrieved EPS image URL to add the image to a listing through the <strong>Inventory API</strong> or the <strong>Trading API</strong>. See <a href=\"/api-docs/sell/static/inventory/managing-image-media.html\"  target=\"_blank\">Managing images</a> for additional details.<br><br><span class=\"tablenote\"><strong>Note:</strong> If a user inputs a valid <strong>image_id</strong> as a path parameter but the EPS image associated with that ID has expired, the call will fail and a <strong>404 Not Found</strong> status code will be returned.</span>",
                "operationId": "getImage",
                "servers": [
                    {
                        "url": "https://apim.ebay.com/commerce/media/v1_beta",
                        "description": "Production server for image operations"
                    }
                ],
                "parameters": [
                    {
                        "name": "image_id",
                        "in": "path",
                        "description": "This path parameter is the unique identifier of a created image. Use the value returned in the location header of the method used to create the image (<strong>createImageFromFile</strong> or <strong>createImageFromUrl</strong>, as applicable).",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ImageResponse"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190013": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Unauthorized access."
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190200": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The image resource was not found."
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190000": {
                                    "domain": "API_MEDIA",
                                    "category": "APPLICATION",
                                    "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance."
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "api_auth": [
                            "https://api.ebay.com/oauth/api_scope/sell.inventory"
                        ]
                    }
                ]
            }
        },
        "/video": {
            "post": {
                "tags": [
                    "video"
                ],
                "description": "This method creates a video resource. When using this method, specify the <strong>title</strong>, <strong>size</strong>, and <strong>classification</strong> of the video resource to be created. <strong>Description</strong> is an optional field for this method.<br /><br /><span class=\"tablenote\"><span style=\"color:#478415\"><strong>Tip:</strong></span> See <a href=\"https://www.ebay.com/help/selling/listings/creating-managing-listings/add-video-to-listing?id=5272#section3\" target=\"_blank\">Adding a video to your listing</a> in the eBay Seller Center for details about video formatting requirements and restrictions, or visit the relevant eBay site help pages for the region in which the listings will be posted.</span><br /><br />When a video resource is successfully created, the method returns the HTTP Status Code <code>201 Created.</code>The method also returns the location response header containing the <strong>video ID</strong>, which you can use to retrieve the video.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> There is no ability to edit metadata on videos at this time. There is also no method to delete videos.</span><br>To upload a created video to a created video resource, use the <a href=\"/develop/api/sell/media_api#sell-media_api-video-uploadvideo\" >uploadVideo</a> method.<br><br><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><strong><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></strong></span></span>All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds. </p></div>",
                "operationId": "createVideo",
                "servers": [
                    {
                        "url": "https://apim.ebay.com/commerce/media/v1_beta",
                        "description": "Production server for video operations"
                    }
                ],
                "parameters": [
                    {
                        "name": "Content-Type",
                        "in": "header",
                        "description": "This header indicates the format of the request body provided by the client. Its value should be set to <strong>application/json</strong>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateVideoRequest"
                            }
                        }
                    },
                    "required": false
                },
                "responses": {
                    "201": {
                        "description": "Created",
                        "headers": {
                            "Location": {
                                "schema": {
                                    "type": "string",
                                    "description": "The created video resource location and the unique <strong>video ID</strong>."
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190002": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Missing or invalid size. Size (in bytes) is required."
                                },
                                "190003": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Maximum size exceeded for supported uploads. Please refer to documentation."
                                },
                                "190004": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Title length exceeded. Please refer to documentation."
                                },
                                "190005": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Description length exceeded. Please refer to documentation."
                                },
                                "190006": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Title is required."
                                },
                                "190014": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "A video classification is required."
                                },
                                "190016": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Markups are not permitted in the video title."
                                },
                                "190017": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Markups are not permitted in the video description."
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190013": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Unauthorized access."
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190000": {
                                    "domain": "API_MEDIA",
                                    "category": "APPLICATION",
                                    "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance."
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "api_auth": [
                            "https://api.ebay.com/oauth/api_scope/sell.inventory"
                        ]
                    }
                ]
            }
        },
        "/video/{video_id}": {
            "get": {
                "tags": [
                    "video"
                ],
                "description": "This method retrieves a video's metadata and content given a specified <strong>video ID</strong>. The method returns the <strong>title</strong>, <strong>size</strong>, <strong>classification</strong>, <strong>description</strong>, <strong>video ID</strong>, <strong>playList</strong>, <strong>status</strong>, <strong>status message</strong> (if any), <strong>expiration  date</strong>, and <strong>thumbnail</strong> image of the retrieved video. <p>The video's <strong>title</strong>, <strong>size</strong>, <strong>classification</strong>, and <strong>description</strong> are set using the <a href=\"/develop/api/sell/media_api#sell-media_api-video-createvideo\" >createVideo</a> method.</p> <p>The video's <strong>playList</strong> contains two URLs that link to instances of the streaming video based on the supported protocol.</p><p>The <strong>status</strong> field contains the current status of the video. After a video upload is successfully completed, the video's <strong>status</strong> will show as <code>PROCESSING</code> until the video reaches one of the terminal states of <code>LIVE</code>, <code>BLOCKED</code> or <code>PROCESSING_FAILED</code>.<p> If a video's processing fails, it could be because the file is corrupted, is too large, or its size doesn't match what was provided in the metadata. Refer to the error messages to determine the cause of the video's failure to upload.</p> <p> The <strong>status message</strong> will indicate why a video was blocked from uploading.</p><p>If a video is not being used on an active listing, its <strong>expiration date</strong> is automatically set to 30 days after the video's initial upload.<p>The video's <strong>thumbnail</strong> image is automatically generated when the video is created.",
                "operationId": "getVideo",
                "servers": [
                    {
                        "url": "https://apim.ebay.com/commerce/media/v1_beta",
                        "description": "Production server for video operations"
                    }
                ],
                "parameters": [
                    {
                        "name": "video_id",
                        "in": "path",
                        "description": "The unique identifier of the video to be retrieved.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Video"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190013": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Unauthorized access."
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190001": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The specified video_Id does not exist."
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190000": {
                                    "domain": "API_MEDIA",
                                    "category": "APPLICATION",
                                    "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance."
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "api_auth": [
                            "https://api.ebay.com/oauth/api_scope/sell.inventory"
                        ]
                    }
                ]
            }
        },
        "/video/{video_id}/upload": {
            "post": {
                "tags": [
                    "video"
                ],
                "description": "This method associates the specified file with the specified <b>video ID</b> and uploads the input file. After the file has been uploaded the processing of the file begins.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> The size of the video to be uploaded must exactly match the size of the video's input stream that was set in the <a href=\"/develop/api/sell/media_api#method-video-createVideo\">createVideo</a> method. If the sizes do not match, the video will not upload successfully.</span><br /><br />When a video is successfully uploaded, it returns the HTTP Status Code <code>200 OK</code>.<br /><br />The status flow is <code>PENDING_UPLOAD</code> > <code>PROCESSING</code> > <code>LIVE</code>,  <code>PROCESSING_FAILED</code>, or <code>BLOCKED</code>. After a video upload is successfully completed, the status will show as <code>PROCESSING</code> until the video reaches one of the terminal states of <code>LIVE</code>, <code>BLOCKED</code>, or <code>PROCESSING_FAILED</code>. If the size information (in bytes) provided is incorrect, the API will throw an error.<br /><br /><span class=\"tablenote\"><span style=\"color:#478415\"><strong>Tip:</strong></span> See <a href=\"https://www.ebay.com/help/selling/listings/creating-managing-listings/add-video-to-listing?id=5272#section3\" target=\"_blank\">Adding a video to your listing</a> in the eBay Seller Center for details about video formatting requirements and restrictions, or visit the relevant eBay site help pages for the region in which the listings will be posted.</span><br /><br />To retrieve an uploaded video, use the <a href=\"/api-docs/commerce/media/resources/video/methods/getVideo\" target=\"_blank\">getVideo</a> method.<br><br><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><b><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></b></span></span>All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds. </p></div>",
                "operationId": "uploadVideo",
                "servers": [
                    {
                        "url": "https://apim.ebay.com/commerce/media/v1_beta",
                        "description": "Production server for video operations"
                    }
                ],
                "parameters": [
                    {
                        "name": "Content-Length",
                        "in": "header",
                        "description": "Use this header to specify the content length for the upload. Use Content-Range: bytes {1}-{2}/{3} and Content-Length:{4} headers.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> This header is optional and is only required for <i>resumable</i> uploads (when an upload is interrupted and must be resumed from a certain point).</span>",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "Content-Range",
                        "in": "header",
                        "description": "Use this header to specify the content range for the upload. The Content-Range should be of the following bytes ((?:[0-9]+-[0-9]+)|\\\\\\\\*)/([0-9]+|\\\\\\\\*) pattern.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> This header is optional and is only required for <i>resumable</i> uploads (when an upload is interrupted and must be resumed from a certain point).</span>",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "Content-Type",
                        "in": "header",
                        "description": "Use this header to specify the content type for the upload. The Content-Type should be set to <code>application/octet-stream</code>.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "video_id",
                        "in": "path",
                        "description": "The unique identifier of the video to be uploaded.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190007": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The content length does not match the content size specified."
                                },
                                "190010": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The video's Content-Range is invalid. The Content-Range should be of the following bytes ((?:[0-9]+-[0-9]+)|\\\\\\\\*)/([0-9]+|\\\\\\\\*) pattern."
                                },
                                "190012": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The content length of the video is invalid."
                                },
                                "190015": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The uploaded content must match the video size."
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190013": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Unauthorized access."
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190001": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The specified video_Id does not exist."
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190011": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The video is already uploaded."
                                }
                            }
                        }
                    },
                    "411": {
                        "description": "Content Length Required",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190008": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The content length is required."
                                }
                            }
                        }
                    },
                    "416": {
                        "description": "Range Not Satisfiable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190009": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The Content-Range specified is incorrect. Use Content-Range: bytes {1}}-{2}/{3} and Content-Length:{4} headers."
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190000": {
                                    "domain": "API_MEDIA",
                                    "category": "APPLICATION",
                                    "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance."
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "api_auth": [
                            "https://api.ebay.com/oauth/api_scope/sell.inventory"
                        ]
                    }
                ]
            }
        },
        "/document": {
            "post": {
                "tags": [
                    "document"
                ],
                "description": "This method stages a document to be uploaded, and requires the type of document to be uploaded, and the language(s) that the document contains. A successful call returns a <strong>documentId</strong> value that is then used as a path parameter in an <a href=\" /develop/api/sell/media_api#sell-media_api-document-uploaddocument\" >uploadDocument</a> call.<p>When a document is successfully created, the method returns the HTTP Status Code <code>201 Created.</code> The method returns <strong>documentId</strong> in the response payload, which you can use to retrieve the document resource. This ID is also returned in the <strong>location</strong> header, for convenience.</p><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><strong><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></strong></span></span> Make sure to capture the document ID value returned in the response payload. This value is required to use the other methods in the <strong>document</strong> resource, and also needed to associate a document to a listing using the Trading and Inventory APIs.</p></div><br><p>To upload a created document, use the document ID returned from this method's response with the <a href=\" /develop/api/sell/media_api#sell-media_api-document-uploaddocument\" >uploadDocument</a> method. See <a href=\"/api-docs/sell/static/inventory/managing-document-media.html\" target=\"_blank\">Managing documents</a> for information on creating, uploading, and adding documents to listings.</p><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><strong><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></strong></span></span>All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds.</p></div> ",
                "operationId": "createDocument",
                "servers": [
                    {
                        "url": "https://api.ebay.com/commerce/media/v1_beta",
                        "description": "Production server for document operations"
                    }
                ],
                "parameters": [
                    {
                        "name": "Content-Type",
                        "in": "header",
                        "description": "This header indicates the format of the request body provided by the client. Its value should be set to <strong>application/json</strong>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateDocumentRequest"
                            }
                        }
                    },
                    "required": false
                },
                "responses": {
                    "201": {
                        "description": "Created",
                        "headers": {
                            "Location": {
                                "schema": {
                                    "type": "string",
                                    "description": "The <strong>location</strong> response header returns the <strong>getDocument</strong> URI."
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CreateDocumentResponse"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190050": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Missing or invalid 'languages' value(s)."
                                },
                                "190051": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Missing or invalid 'documentType' value."
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "api_auth": [
                            "https://api.ebay.com/oauth/api_scope/sell.inventory"
                        ]
                    }
                ]
            }
        },
        "/document/create_document_from_url": {
            "post": {
                "tags": [
                    "document"
                ],
                "description": "This method downloads a document from the provided URL and adds that document to the user's account. This method requires the URL of the document, the type of document to be uploaded, and the language(s) that the document contains. <br><br>When a document is successfully created, the method returns the HTTP Status Code <code>201 Created.</code> The method returns <strong>documentId</strong> in the response payload, which you can use to retrieve the document resource. This ID is also returned in the <strong>location</strong> header, for convenience.</p><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><strong><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></strong></span></span> Make sure to capture the document ID value returned in the response payload. This value is required to use the other methods in the <strong>document</strong> resource, and also needed to associate a document to a listing using the Trading and Inventory APIs.</p></div><br>After creating a document using this method, a <a href=\"/develop/api/sell/media_api#sell-media_api-document-getdocument\" >getDocument</a> call should be made to check for a <strong>documentStatus</strong> of <code>ACCEPTED</code>. Only documents with this status can be added to a listing. See <a href=\"/api-docs/sell/static/inventory/managing-document-media.html\" target=\"_blank\">Managing documents</a> for more information on creating, uploading, and adding documents to listings.<br><br><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><strong><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></strong></span></span>All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds.</p></div>",
                "operationId": "createDocumentFromUrl",
                "servers": [
                    {
                        "url": "https://api.ebay.com/commerce/media/v1_beta",
                        "description": "Production server for document operations"
                    }
                ],
                "parameters": [
                    {
                        "name": "Content-Type",
                        "in": "header",
                        "description": "This header indicates the format of the request body provided by the client. Its value should be set to <strong>application/json</strong>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateDocumentFromUrlRequest"
                            }
                        }
                    },
                    "required": false
                },
                "responses": {
                    "201": {
                        "description": "Created",
                        "headers": {
                            "Location": {
                                "schema": {
                                    "type": "string",
                                    "description": "The <strong>location</strong> response header returns the <strong>getDocument</strong> URI."
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CreateDocumentResponse"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190050": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Missing or invalid ‘languages’ value(s)."
                                },
                                "190051": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Missing or invalid ‘documentType’ value."
                                },
                                "190055": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Missing or invalid 'documentUrl'  value."
                                },
                                "190056": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Missing or invalid domain in 'documentUrl'."
                                },
                                "190057": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Missing or malformed 'documentUrl'."
                                },
                                "190058": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Missing or invalid 'request'."
                                },
                                "190059": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Invalid value for ‘documentUrl’ was supplied. Failed to download document from 'documentUrl'."
                                },
                                "190060": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Invalid value for ‘documentUrl’ was supplied. Please provide an HTTPS 'documentUrl'."
                                },
                                "190061": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Invalid value for ‘documentUrl’ was supplied. File type could not be detected from ‘documentUrl'."
                                },
                                "190062": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Invalid value for ‘documentUrl’ was supplied. Not an allowed file type for download from ‘documentUrl'."
                                },
                                "190063": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Invalid value for ‘documentUrl’ was supplied. File size exceeds the maximum limit from ‘documentUrl'."
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "api_auth": [
                            "https://api.ebay.com/oauth/api_scope/sell.inventory"
                        ]
                    }
                ]
            }
        },
        "/document/{document_id}": {
            "get": {
                "tags": [
                    "document"
                ],
                "description": "This method retrieves the current <strong>status</strong> and metadata of the specified document.<br><br><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><strong><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></strong></span></span> The document ID value returned in the response payload of the <a href=\"/develop/api/sell/media_api#sell-media_api-document-createdocument\">createDocument</a> or the <a href=\"/develop/api/sell/media_api#sell-media_api-document-createdocumentfromurl\">createDocumentFromUrl</a> method is a required input path parameter for this method.</p></div><p>See <a href=\"/api-docs/sell/static/inventory/managing-document-media.html\" target=\"_blank\">Managing documents</a> for additional information.</p>",
                "operationId": "getDocument",
                "servers": [
                    {
                        "url": "https://api.ebay.com/commerce/media/v1_beta",
                        "description": "Production server for document operations"
                    }
                ],
                "parameters": [
                    {
                        "name": "document_id",
                        "in": "path",
                        "description": "The unique identifier of the document for which status and metadata is being retrieved.<br><br>This value is returned in the response of the <a href=\"/develop/api/sell/media_api#method-document-createdocument\">createDocument</a> or <a href=\"/develop/api/sell/media_api#method-document-createdocumentfromurl\">createDocumentFromUrl</a> method used to create the document.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Uploaded",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DocumentResponse"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Document Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190052": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "No document found with id {document_id}."
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "api_auth": [
                            "https://api.ebay.com/oauth/api_scope/sell.inventory"
                        ]
                    }
                ]
            }
        },
        "/document/{document_id}/upload": {
            "post": {
                "tags": [
                    "document"
                ],
                "description": "This method associates the specified file with the specified document ID and uploads the input file. After the file has been uploaded, the processing of the file begins. Supported file types include .PDF, .JPEG/.JPG, and .PNG, with a maximum file size of 10 MB (10485760 bytes).<br><br><span class=\"tablenote\"><strong>Note:</strong> Animated and multi-page PNG files are not currently supported.</span><br><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> The document ID value returned in the response of the <a href=\"/develop/api/sell/media_api#sell-media_api-document-createdocument\">createDocument</a> method is a required input path parameter for this method. This value is also returned in the <strong>location</strong> header of the <strong>createDocument</strong> response payload.</span><br>A successful upload returns the HTTP Status Code <code>200 OK</code>.<br><p>See <a href=\"/api-docs/sell/static/inventory/managing-document-media.html\" target=\"_blank\">Managing documents</a> for additional information.</p> <span class=\"tablenote\"><strong>Note:</strong> You must use a <strong>Content-Type</strong> header with its value set to <strong>multipart/form-data</strong>.</p></span></p>This call does not have a JSON Request payload but uploads the file as form-data. For example:<br /> <pre>file: @&quot;/C:/Users/.../drone_user_warranty.pdf&quot;</pre>See <a href=\"/develop/api/sell/media_api#sell-media_api-document-uploadDocument#h2-samples\">Samples</a> for information.<br><br><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><strong><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></strong></span></span>All POST methods in the Media API, including this method, are subject to short-duration rate limits at the user level: 50 requests per 5 seconds.</p></div>",
                "operationId": "uploadDocument",
                "servers": [
                    {
                        "url": "https://api.ebay.com/commerce/media/v1_beta",
                        "description": "Production server for document operations"
                    }
                ],
                "parameters": [
                    {
                        "name": "document_id",
                        "in": "path",
                        "description": "The unique identifier of the document to be uploaded.<br><br>This value is returned in the response of the <a href=\"/develop/api/sell/media_api#sell-media_api-document-createdocument\" >createDocument</a> method.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "Content-Type",
                        "in": "header",
                        "description": "This header indicates the format of the request body provided by the client. Its value should be set to <strong>multipart/form-data</strong>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Uploaded",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DocumentResponse"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Document Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190052": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "No document found with id {document_id}."
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "api_auth": [
                            "https://api.ebay.com/oauth/api_scope/sell.inventory"
                        ]
                    }
                ]
            }
        },
        "/post_order/document/{document_id}": {
            "get": {
                "tags": [
                    "post_order"
                ],
                "description": "This method downloads the  file associated with the specified document ID. Access depends on the document’s state:<ul><li>SUBMITTED: Only the document owner can download it </li><li>PUBLISHED: The document is no longer restricted to the owner and can be downloaded by authorized parties involved in the specific post‑order flow based on the <strong>documentUsageType</strong></li></ul><p><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note: </strong>This method is currently restricted and requires a special <strong>OAuth scope</strong> not available to all users.</span></p><p><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note: </strong>After a document is uploaded (but not yet published), its status is <strong>SUBMITTED</strong>. Once its identifier is linked to a post‑order entity through an eBay GraphQL mutation, the status changes to <strong>PUBLISHED</strong>. A post-order entity is part of eBay's order management for activities after purchase (such as returns).</span></p><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><strong><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important! </span></strong></span></span>The document must be in the <strong>SUBMITTED</strong>  or <strong>PUBLISHED</strong> state to be downloadable. All documents (published or submitted) expire and become inaccessible after their expiration date.</p></div>",
                "operationId": "downloadPostOrderDocument",
                "servers": [
                    {
                        "url": "https://apiz.ebay.com/commerce/media/v1_beta",
                        "description": "Production server for post_order operations"
                    }
                ],
                "parameters": [
                    {
                        "name": "document_id",
                        "in": "path",
                        "description": "This path parameter is the unique identifier of the document associated with the file to be downloaded. This ID was returned in the <a href=\"/develop/guides-v2/using-ebay-restful-apis#responseheaders\" target=\"_blank\">Location response header</a> when calling the <strong><a href=\"/develop/api/sell/media_api#sell-media_api-post_order-uploadpostorderdocument\">uploadPostOrderDocument</a></strong> method to upload the document.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190308": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The document identifier is missing from the request."
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190013": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Unauthorized access."
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190301": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Invalid document identifier supplied in the request."
                                },
                                "190302": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The document is no longer available because it has expired."
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190000": {
                                    "domain": "API_MEDIA",
                                    "category": "APPLICATION",
                                    "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance."
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "api_auth": [
                            "https://api.ebay.com/oauth/api_scope/commerce.post_order.document"
                        ]
                    }
                ]
            },
            "delete": {
                "tags": [
                    "post_order"
                ],
                "description": "This method deletes a previously uploaded document by its document ID. Only documents in <strong>SUBMITTED</strong> state can be removed; documents in the <strong>PUBLISHED</strong> state cannot be deleted.<p><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note: </strong>This method is currently restricted and requires a special <strong>OAuth scope</strong> not available to all users.</span></p><p><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note: </strong>After a document is uploaded (but not yet published), its status is <strong>SUBMITTED</strong>. When its identifier is associated with a post‑order entity through an eBay GraphQL mutation, the status changes to <strong>PUBLISHED</strong>. A post-order entity is part of eBay's order management for activities after purchase (such as returns).</span></p><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><strong><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important! </span></strong></span></span>All documents, whether submitted or published, expire and become inaccessible after their expiration date.</p></div> ",
                "operationId": "removePostOrderDocument",
                "servers": [
                    {
                        "url": "https://apiz.ebay.com/commerce/media/v1_beta",
                        "description": "Production server for post_order operations"
                    }
                ],
                "parameters": [
                    {
                        "name": "document_id",
                        "in": "path",
                        "description": "This path parameter is the unique identifier of the document associated with the file to be deleted. This ID was returned in the <a href=\"/develop/guides-v2/using-ebay-restful-apis#responseheaders\">Location response header</a> when calling the <strong><a href=\"/develop/api/sell/media_api#sell-media_api-post_order-uploadpostorderdocument\">uploadPostOrderDocument</a></strong> method to upload the document.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190308": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The document identifier is missing from the request."
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190013": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Unauthorized access."
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190301": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Invalid document identifier supplied in the request."
                                },
                                "190302": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The document is no longer available because it has expired."
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190000": {
                                    "domain": "API_MEDIA",
                                    "category": "APPLICATION",
                                    "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance."
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "api_auth": [
                            "https://api.ebay.com/oauth/api_scope/commerce.post_order.document"
                        ]
                    }
                ]
            }
        },
        "/post_order/document": {
            "post": {
                "tags": [
                    "post_order"
                ],
                "description": "This method uploads a document for post‑order processes (for example, a seller providing a return shipping label).<p> Supported file types include .PDF, .JPEG/.JPG, .BMP, .GIF and .PNG, with a maximum file size of 5&nbsp;MB&nbsp;(5,242,880&nbsp;bytes).<p><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note: </strong>This method is currently restricted and requires a special <strong>OAuth scope</strong> not available to all users.</span></p><p><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note: </strong>Animated and multi-page PNG files are not currently supported. For multi-page content, use PDF. The maximum number of pages allowed varies by the <strong>documentUsageType</strong>.</span></p><p>Send a multipart/form‑data request with:</p><ul><li><strong>file</strong>: the document file, set <code>key: file</code></li><li><strong>documentUsageType</strong>: for example, <code>RETURN_SHIPPING_LABEL</code></li><li><strong>entityType</strong>: for example, <code>RETURNS</code></li><li><strong>entityId</strong>: the unique identifier for the post-order entity</li></ul><p>A successful call returns the HTTP Status Code <strong>201 Created</strong> with the document ID in the <strong>Location header</strong> (no response body is returned). The document’s initial state is <strong>SUBMITTED</strong>. When its identifier is associated with a post-order entity through an eBay GraphQL mutation, the state changes to <strong>PUBLISHED</strong>. </p><p><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note: </strong>A post-order entity is part of eBay's order management for activities after purchase (such as returns).</span></p><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><strong><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important! </span></strong></span></span><br><ul><li>Capture and retain the <strong>documentId</strong> in the response's <a href=\"/develop/guides-v2/using-ebay-restful-apis#responseheaders\" target=\"_blank\">Location header</a>. It is required to use the other <strong>post_order</strong> methods and to associate the document with a post-order entity. The location response header contains the URI of the newly created document ID in the format:<br><code> https://apiz.ebay.com/commerce/media/v1_beta/post_order/document/{documentId}</code></li><li>All documents (published or submitted) expire and become inaccessible after their expiration date.</li><li>All <strong>POST</strong> methods in the <strong>Media API</strong>, including this method, are subject to short-duration, user-level rate limits: 50 requests per 5 seconds.</li></ul></p></div>",
                "operationId": "uploadPostOrderDocument",
                "servers": [
                    {
                        "url": "https://apiz.ebay.com/commerce/media/v1_beta",
                        "description": "Production server for post_order operations"
                    }
                ],
                "parameters": [
                    {
                        "name": "Content-Type",
                        "in": "header",
                        "description": "This header indicates the format of the request body provided by the client. Its value should be set to <strong>multipart/form-data</strong>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "headers": {
                            "Location": {
                                "schema": {
                                    "type": "string",
                                    "description": "The location response header contains the URI of the newly created document ID in the format: <code>https://apiz.ebay.com/commerce/media/v1_beta/post_order/document/<em>{documentId}</em></code><p>Clients can extract the <strong>documentId</strong> from this URI to perform subsequent operations such as <strong>downloadDocument</strong> or <strong>removeDocument</strong> (using this resource), or to associate this document with a post-order entity (such as through an eBay GraphQL mutation). </p>"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190303": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Invalid post-order entity type supplied in the request."
                                },
                                "190304": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Invalid document usage type supplied in the request."
                                },
                                "190305": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The post-order entity type is missing from the request."
                                },
                                "190306": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The post-order entity identifier is missing from the request."
                                },
                                "190307": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The document usage type is missing from the request."
                                },
                                "190309": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The uploaded file format is not supported. Supported formats are: jpeg, png, bmp, gif, jpg, and pdf."
                                },
                                "190310": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The uploaded PDF exceeds the maximum allowed number of pages."
                                },
                                "190311": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The post-order entity state does not allow new documents for the specified usage type."
                                },
                                "190312": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The maximum number of documents for the specified post-order entity has been reached."
                                },
                                "190313": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The uploaded file could not be processed. Please upload a valid file."
                                },
                                "190314": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The uploaded file exceeds the maximum allowed size of 5 MB."
                                },
                                "190315": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "The file is missing from the request. Please upload a valid file."
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190013": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Unauthorized access."
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190300": {
                                    "domain": "API_MEDIA",
                                    "category": "REQUEST",
                                    "description": "Invalid or unknown post-order entity identifier supplied in the request."
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "x-response-codes": {
                            "errors": {
                                "190000": {
                                    "domain": "API_MEDIA",
                                    "category": "APPLICATION",
                                    "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance."
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "api_auth": [
                            "https://api.ebay.com/oauth/api_scope/commerce.post_order.document"
                        ]
                    }
                ]
            }
        }
    },
    "components": {
        "schemas": {
            "Classification": {
                "type": "object",
                "description": "A required metadata field for the <strong>createVideo</strong> method. The only classification option currently is <code>ITEM</code>. | - **ITEM**: The ITEM classification is designated to videos created using the createVideo method. Classification helps associate videos with a seller’s product or store.",
                "enum": [
                    "ITEM"
                ]
            },
            "CreateDocumentFromUrlRequest": {
                "type": "object",
                "required": [
                    "documentType",
                    "documentUrl",
                    "languages"
                ],
                "properties": {
                    "documentType": {
                        "description": "The type of the document being created. For example, a <code>USER_GUIDE_OR_MANUAL</code> or a <code>SAFETY_DATA_SHEET</code>.",
                        "$ref": "#/components/schemas/DocumentTypeEnum"
                    },
                    "documentUrl": {
                        "type": "string",
                        "description": "The URL of the document being created.<br><br>The document referenced by the URL must be a .pdf, .png, .jpg, or .jpeg file, and must be no larger than 10 MB."
                    },
                    "languages": {
                        "type": "array",
                        "description": "This array shows the language(s) used in the document.",
                        "items": {
                            "$ref": "#/components/schemas/LanguageEnum"
                        }
                    }
                },
                "description": "This type contains the metadata used to create the document ID when creating a document using a URL."
            },
            "CreateDocumentRequest": {
                "type": "object",
                "required": [
                    "documentType",
                    "languages"
                ],
                "properties": {
                    "documentType": {
                        "description": "The type of the document being uploaded. For example, a <code>USER_GUIDE_OR_MANUAL</code> or a <code>SAFETY_DATA_SHEET</code>.",
                        "$ref": "#/components/schemas/DocumentTypeEnum"
                    },
                    "languages": {
                        "type": "array",
                        "description": "This array shows the language(s) used in the document.",
                        "items": {
                            "$ref": "#/components/schemas/LanguageEnum"
                        }
                    }
                },
                "description": "This type contains the metadata used to create the document ID."
            },
            "CreateDocumentResponse": {
                "type": "object",
                "required": [
                    "documentId",
                    "documentStatus",
                    "documentType",
                    "languages"
                ],
                "properties": {
                    "documentId": {
                        "type": "string",
                        "description": "The unique identifier of the document to be uploaded.<br><br>This value is returned in the response and <strong>location</strong> header of the <strong>createDocument</strong> and <strong>createDocumentFromUrl</strong> methods. This ID can be used with the <strong>getDocument</strong> and <strong>uploadDocument</strong> methods, and to add an uploaded document to a listing. See <a href=\"/api-docs/sell/static/inventory/managing-document-media.html#add-documents\" target=\"_blank\">Adding documents to listings</a> for more information. "
                    },
                    "documentStatus": {
                        "description": "The status of the document resource.<br><br>For example, the value <code>PENDING_UPLOAD</code> is the initial state when the reference to the document has been created using the <strong>createDocument</strong> method. When creating a document using the <strong>createDocumentFromUrl</strong> method, the initial state will be <code>SUBMITTED</code>.",
                        "$ref": "#/components/schemas/DocumentStatusEnum"
                    },
                    "documentType": {
                        "description": "The type of the document uploaded. For example, <code>USER_GUIDE_OR_MANUAL</code>.",
                        "$ref": "#/components/schemas/DocumentTypeEnum"
                    },
                    "languages": {
                        "type": "array",
                        "description": "This array shows the language(s) used in the document.",
                        "items": {
                            "$ref": "#/components/schemas/LanguageEnum"
                        }
                    }
                },
                "description": "This type provides information about the created document ID."
            },
            "CreateImageFromUrlRequest": {
                "type": "object",
                "required": [
                    "imageUrl"
                ],
                "properties": {
                    "imageUrl": {
                        "type": "string",
                        "description": "The image URL of the self-hosted picture to upload to eBay Picture Services (EPS). In addition to the picture requirements in <a href=\"https://www.ebay.com/help/policies/listing-policies/picture-policy?id=4370\" target=\"_blank\">Picture policy</a>, the provided URL must be secured using HTTPS (HTTP is not permitted). For more information, see <a href=\"/api-docs/sell/static/inventory/managing-image-media.html#image-requirements\" target=\"_blank\">Image requirements</a>."
                    }
                },
                "description": "A type that provides the location of the image."
            },
            "CreateVideoRequest": {
                "type": "object",
                "required": [
                    "classification",
                    "size",
                    "title"
                ],
                "properties": {
                    "classification": {
                        "type": "array",
                        "description": "The intended use for this video content. Currently, videos can only be added and associated with eBay listings, so the only supported value is <code>ITEM</code>.",
                        "items": {
                            "$ref": "#/components/schemas/Classification"
                        }
                    },
                    "description": {
                        "type": "string",
                        "description": "The description of the video."
                    },
                    "size": {
                        "type": "integer",
                        "description": "The size, in bytes, of the video content. <br><br><strong>Max:</strong> 157,286,400 bytes",
                        "format": "int32"
                    },
                    "title": {
                        "type": "string",
                        "description": "The title of the video."
                    }
                },
                "description": "The request to create a video, which must contain the video's <strong>title</strong>, <strong>size</strong>, and <strong>classification</strong>. <strong>Description</strong> is an optional field when creating videos."
            },
            "DocumentMetadata": {
                "type": "object",
                "properties": {
                    "fileName": {
                        "type": "string",
                        "description": "The name of the file including its extension (for example, <code>drone_user_warranty.pdf</code>)."
                    },
                    "fileSize": {
                        "type": "string",
                        "description": "The size, in bytes, of the document content."
                    },
                    "fileType": {
                        "type": "string",
                        "description": "The type of the file uploaded. Supported file types include the following: <code>pdf</code>, <code>jpeg</code>, <code>jpg</code>, and <code>png</code>."
                    }
                },
                "description": "This type provides information about the <strong>documentId</strong>."
            },
            "DocumentResponse": {
                "type": "object",
                "required": [
                    "documentId",
                    "documentStatus",
                    "documentType",
                    "languages"
                ],
                "properties": {
                    "documentId": {
                        "type": "string",
                        "description": "The unique ID of the document."
                    },
                    "documentMetadata": {
                        "description": "This container provides the name, size, and type of the specified file.",
                        "$ref": "#/components/schemas/DocumentMetadata"
                    },
                    "documentStatus": {
                        "description": "The status of the document resource.<br><br>Once a document has been uploaded using the <strong>uploadDocument</strong> method, the <strong>documentStatus</strong> will be <code>SUBMITTED</code>. The document will then either be accepted or rejected. Only documents with the status of <code>ACCEPTED</code> are available to be added to a listing.",
                        "$ref": "#/components/schemas/DocumentStatusEnum"
                    },
                    "documentType": {
                        "description": "The type of the document uploaded. For example, <code>USER_GUIDE_OR_MANUAL</code>.",
                        "$ref": "#/components/schemas/DocumentTypeEnum"
                    },
                    "languages": {
                        "type": "array",
                        "description": "This array shows the language(s) used in the document.",
                        "items": {
                            "$ref": "#/components/schemas/LanguageEnum"
                        }
                    }
                },
                "description": "This type provides information returned about a created document ID, which may or may not have been uploaded."
            },
            "DocumentStatusEnum": {
                "type": "string",
                "description": "An enumerated value indicating the status of the document. | - **SUBMITTED**: The document has been uploaded. - **ACCEPTED**: The uploaded document has been accepted and is available to be added to a listing. - **REJECTED**: The uploaded document has been rejected. - **PENDING_UPLOAD**: This is the initial state when the reference to the document has been created. The document is being associated with a document ID and has not been uploaded yet. - **EXPIRED**: The document or reference has expired. This enumerated value is not fully supported and provided here as a reference.",
                "enum": [
                    "SUBMITTED",
                    "ACCEPTED",
                    "REJECTED",
                    "PENDING_UPLOAD",
                    "EXPIRED"
                ]
            },
            "DocumentTypeEnum": {
                "type": "string",
                "description": "This enumeration value indicates the type of document. | - **CERTIFICATE_OF_ANALYSIS**: This is a document provided by the manufacturer or a qualified third-party laboratory that confirms the product has been tested and meets the specified criteria. - **CERTIFICATE_OF_CONFORMITY**: This certificate is issued by a manufacturer or a certification body to declare that a product meets all the required safety and regulatory standards. - **DECLARATION_OF_CONFORMITY**: This is a document self-issued by a manufacturer declaring that their product complies with all the relevant requirements of the GPSR and other applicable regulations and standards. - **INSTRUCTIONS_FOR_USE**: These are detailed directions provided by the manufacturer that inform the consumer on how to use the product correctly and safely. - **OTHER_SAFETY_DOCUMENTS**: This could refer to any additional safety-related documentation that accompanies a product. This may include safety warnings, emergency procedures, information on safe storage and handling, or any other relevant safety information that doesn't fall into the other specified categories. - **SAFETY_DATA_SHEET**: This is a detailed document that provides information on the properties of a chemical product. It includes information on the potential hazards (health, fire, reactivity, and environmental), safe handling practices, and emergency control measures (for example, fire-fighting). - **TROUBLE_SHOOTING_GUIDE**: This guide helps users diagnose and resolve problems that they may encounter with a product. - **USER_GUIDE_OR_MANUAL**: A user guide or manual is a comprehensive resource that includes all the necessary information for consumers to understand and operate the product. - **INSTALLATION_INSTRUCTIONS**: These are step-by-step instructions provided by the manufacturer that detail how to properly install a product. - **ACCESSIBILITY_INFORMATION**: This document provides details on the accessibility features of a product, ensuring it can be used by individuals with disabilities or special needs. - **SAFETY_TEST_LAB_REPORTS**: In the context of CE or UL certification, a Safety Test Lab Report refers to the formal test documentation issued by an accredited testing laboratory that demonstrates a product has been evaluated against specific safety standards.<br><br>In the context of CE certification, the Safety Test Lab Report supports the manufacturer's Declaration of Conformity by proving the product was tested against applicable EU directives (such as LVD, EMC, Battery Regulation).<br><br>In the context of UL, a third-party certification program, the Safety Test Lab Report is generated as part of the UL evaluation process and is used by UL to grant and maintain the UL listing or recognition. Sellers may provide either the UL certificate or the underlying test report, depending on policy requirements. - **EEK_ENERGY_LABEL**: This value indicates the uploaded document is an energy efficiency label (PDF or image) provided by the manufacturer or an authorized third party. The label displays the product's energy rating and consumption metrics as required by EU and UK regulations. <br><br><span class=\"tablenote\"><strong>Note:</strong> While individual documents are uploaded separately via the Media API, this document type must be associated with a listing in conjunction with an <code>EEK_PRODUCT_INFORMATION_SHEET</code> document. Creating or updating a listing with only one of these document types will trigger validation error 21920387 in the listing API (Trading API or Inventory API).</span> - **EEK_PRODUCT_INFORMATION_SHEET**: This value indicates the uploaded document is a product information sheet or fiche (PDF or image) provided by the manufacturer or an authorized third party. The document includes technical specifications and energy performance details as required by EU and UK regulations.  <br><br><span class=\"tablenote\"><strong>Note:</strong> While individual documents are uploaded separately via the Media API, this document type must be associated with a listing in conjunction with an <code>EEK_ENERGY_LABEL</code> Document. Creating or updating a listing with only one of these document types will trigger validation error 21920387 in the listing API (Trading API or Inventory API).</span> - **GENERAL_CERTIFICATE_OF_CONFORMITY**: A certificate required for general-use consumer products, certifying that the product complies with all applicable U.S. Consumer Product Safety Commission (CPSC) safety rules based on manufacturer or importer testing. - **CHILDRENS_PRODUCT_CERTIFICATE**: A certificate required for products intended for children 12 years and under, certifying that the product complies with all applicable U.S. Consumer Product Safety Commission (CPSC) safety rules based on third-party testing.",
                "enum": [
                    "CERTIFICATE_OF_ANALYSIS",
                    "CERTIFICATE_OF_CONFORMITY",
                    "DECLARATION_OF_CONFORMITY",
                    "INSTRUCTIONS_FOR_USE",
                    "OTHER_SAFETY_DOCUMENTS",
                    "SAFETY_DATA_SHEET",
                    "TROUBLE_SHOOTING_GUIDE",
                    "USER_GUIDE_OR_MANUAL",
                    "INSTALLATION_INSTRUCTIONS",
                    "ACCESSIBILITY_INFORMATION",
                    "SAFETY_TEST_LAB_REPORTS",
                    "EEK_ENERGY_LABEL",
                    "EEK_PRODUCT_INFORMATION_SHEET",
                    "GENERAL_CERTIFICATE_OF_CONFORMITY",
                    "CHILDRENS_PRODUCT_CERTIFICATE"
                ]
            },
            "Error": {
                "type": "object",
                "properties": {
                    "category": {
                        "type": "string",
                        "description": "Identifies the type of erro."
                    },
                    "domain": {
                        "type": "string",
                        "description": "Name for the primary system where the error occurred. This is relevant for application errors."
                    },
                    "errorId": {
                        "type": "integer",
                        "description": "A unique number to identify the error.",
                        "format": "int32"
                    },
                    "inputRefIds": {
                        "type": "array",
                        "description": "An array of request elements most closely associated to the error.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "longMessage": {
                        "type": "string",
                        "description": "A more detailed explanation of the error."
                    },
                    "message": {
                        "type": "string",
                        "description": "Information on how to correct the problem, in the end user's terms and language where applicable."
                    },
                    "outputRefIds": {
                        "type": "array",
                        "description": "An array of request elements most closely associated to the error.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "parameters": {
                        "type": "array",
                        "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.",
                        "items": {
                            "$ref": "#/components/schemas/ErrorParameter"
                        }
                    },
                    "subdomain": {
                        "type": "string",
                        "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc."
                    }
                },
                "description": "This type defines the fields that can be returned in an error."
            },
            "ErrorParameter": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "The object of the error."
                    },
                    "value": {
                        "type": "string",
                        "description": "The value of the object."
                    }
                }
            },
            "FormDataContentDisposition": {
                "type": "object",
                "properties": {
                    "creationDate": {
                        "type": "string"
                    },
                    "fileName": {
                        "type": "string"
                    },
                    "modificationDate": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "parameters": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string"
                        }
                    },
                    "readDate": {
                        "type": "string"
                    },
                    "size": {
                        "type": "integer",
                        "format": "int32"
                    },
                    "type": {
                        "type": "string"
                    }
                }
            },
            "Image": {
                "type": "object",
                "properties": {
                    "imageUrl": {
                        "type": "string",
                        "description": "The URL of the image's location."
                    }
                },
                "description": "A type that provides the location of the image."
            },
            "ImageResponse": {
                "type": "object",
                "required": [
                    "expirationDate",
                    "imageUrl",
                    "maxDimensionImageUrl"
                ],
                "properties": {
                    "expirationDate": {
                        "type": "string",
                        "description": "The date and time when an unused EPS image will expire and be removed from the EPS server, in Coordinated Universal Time (UTC). As long as an EPS image is being used in an active listing, that image will remain on the EPS server and be accessible."
                    },
                    "imageUrl": {
                        "type": "string",
                        "description": "The EPS URL to access the uploaded image. This URL will be used in listing calls to add the image to a listing."
                    },
                    "maxDimensionImageUrl": {
                        "type": "string",
                        "description": "The EPS URL to access the maximum dimension version of the uploaded image."
                    }
                },
                "description": "A type that provides an image's details including its URL and expiration."
            },
            "LanguageEnum": {
                "type": "string",
                "description": "This enumeration value indicates the language of the document. | - **ENGLISH**: The document is in English. - **SPANISH**: The document is in Spanish. - **ITALIAN**: The document is in Italian. - **GERMAN**: The document is in German. - **POLISH**: The document is in Polish. - **DUTCH**: The document is in Dutch. - **PORTUGESE**: <span class=\"tablenote\"><strong>Note:</strong> This enumeration value is deprecated. Use the <code>PORTUGUESE</code> enum value instead when creating a document.</span><br><br>The document is in Portuguese. - **PORTUGUESE**: The document is in Portuguese. - **FRENCH**: The document is in French. - **OTHER**: The document is in a language other than the ones specifically listed above.",
                "enum": [
                    "ENGLISH",
                    "SPANISH",
                    "ITALIAN",
                    "GERMAN",
                    "POLISH",
                    "DUTCH",
                    "PORTUGESE",
                    "PORTUGUESE",
                    "FRENCH",
                    "OTHER"
                ]
            },
            "Moderation": {
                "type": "object",
                "properties": {
                    "rejectReasons": {
                        "type": "array",
                        "description": "The reason(s) why the specified video was blocked by moderators.",
                        "items": {
                            "$ref": "#/components/schemas/RejectReasonEnum"
                        }
                    }
                },
                "description": "A container that provides video moderation information when calling the <strong>getVideo</strong> method.<br /><br />This container is returned if the specified video has been blocked by moderators.<br /><br /><span class=\"tablenote\"><span style=\"color:#478415\"><strong>Tip:</strong></span> See <a href=\"https://www.ebay.com/help/selling/listings/creating-managing-listings/add-video-to-listing?id=5272#section2\" target=\"_blank\">Video moderation and restrictions</a> in the eBay Seller Center for details about video moderation.</span>"
            },
            "Play": {
                "type": "object",
                "properties": {
                    "playUrl": {
                        "type": "string",
                        "description": "The playable URL for this video."
                    },
                    "protocol": {
                        "description": "The protocol for the video playlist. Supported protocols are DASH (Dynamic Adaptive Streaming over HTTP) and HLS (HTTP Live Streaming).",
                        "$ref": "#/components/schemas/ProtocolEnum"
                    }
                },
                "description": "The two streaming video URLs available for a successfully uploaded video with a status of <code>LIVE</code>. The supported streaming video protocols are DASH (Dynamic Adaptive Streaming over HTTP) and HLS (HTTP Live Streaming)."
            },
            "ProtocolEnum": {
                "type": "string",
                "description": "An enumerated type that indicates whether the video streaming protocol is DASH (Dynamic Adaptive Streaming over HTTP) or HLS (HTTP Live Streaming).<br /><br />DASH is also known as MPEG-DASH. It is an internationally accepted protocol for streaming video. It splits a larger media file into much smaller segments.<br /><br />HLS is a format developed by Apple. Rather than deliver a video file all at once, HLS splits it into much smaller segments. Since HLS was developed by Apple, it is the only method of video streaming currently supported on iOS (iPad and iPhone) and is supported natively within its Mac Safari browser. | - **DASH**: The video streaming protocol is DASH (Dynamic Adaptive Streaming over HTTP). - **HLS**: The video streaming protocol is HLS (HTTP Live Streaming).",
                "enum": [
                    "DASH",
                    "HLS"
                ]
            },
            "RejectReasonEnum": {
                "type": "string",
                "description": "An enumerated type that indicates the reason why a video may be blocked by moderators.<br /><br /><span class=\"tablenote\"><span style=\"color:#478415\"><strong>Tip:</strong></span> See <a href=\"https://www.ebay.com/help/selling/listings/creating-managing-listings/add-video-to-listing?id=5272#section2 \" target=\"_blank\">Video moderation and restrictions</a> and <a href=\"https://www.ebay.com/help/selling/listings/creating-managing-listings/add-video-to-listing?id=5272#section4 \" target=\"_blank\">Video Format Requirements</a> in the eBay Seller Center for details about video moderation and formatting requirements.</span> | - **MAX_LENGTH_EXCEEDED**: This enum value indicates that the video is blocked because the max length has been exceeded. - **PIXELATED**: This enum value indicates that the video is blocked because some parts are pixelated and cannot be seen clearly. - **BLURRED**: This enum value indicates that the video is blocked because some parts are blurry and cannot be seen clearly. - **DISTORTED_AUDIO**: This enum value indicates that the video is blocked because the audio playback is distorted. - **FREEZES**: This enum value indicates that the video is blocked because some parts appear frozen and do not play correctly. - **INAPPROPRIATE_DEPICTION**: This enum value indicates that the video is blocked due to an inappropriate depiction of minors. Refer to eBay's <a href=\"https://www.ebay.com/help/policies/prohibited-restricted-items/protecting-minors-policy?id=5057\" target=\"_blank\">Protecting Minors Policy</a> for details. - **OFFENSIVE_CONTENT**: This enum value indicates that the video is blocked because it contains offensive content. Refer to eBay's <a href=\"https://www.ebay.com/help/policies/prohibited-restricted-items/offensive-materials-policy?id=4324\" target=\"_blank\">Offensive Materials Policy</a> for details. - **DIRECTS_OFF_EBAY**: This enum value indicates that the video is blocked because it leads buyers away from the eBay site. See <a href=\"https://www.ebay.com/help/policies/payment-policies/offering-buy-sell-outside-ebay-policy?id=4272\" target=\"_blank\">Offering to buy or sell outside eBay</a> for details. - **NUDITY**: This enum value indicates that the video is blocked because the it contains nudity. Refer to eBay's <a href=\"https://www.ebay.com/help/policies/prohibited-restricted-items/adult-items-policy?id=4278\" target=\"_blank\">Adult Items Policy</a> for details. - **OTHER_POLICY_VIOLATION**: This enum value indicates that the video is blocked due to some other specific or atypical policy violation.",
                "enum": [
                    "MAX_LENGTH_EXCEEDED",
                    "PIXELATED",
                    "BLURRED",
                    "DISTORTED_AUDIO",
                    "FREEZES",
                    "INAPPROPRIATE_DEPICTION",
                    "OFFENSIVE_CONTENT",
                    "DIRECTS_OFF_EBAY",
                    "NUDITY",
                    "OTHER_POLICY_VIOLATION"
                ]
            },
            "Video": {
                "type": "object",
                "properties": {
                    "classification": {
                        "type": "array",
                        "description": "The intended use for this video content. Currently, videos can only be added and associated with eBay listings, so the only supported value is <code>ITEM</code>. This array is always returned.",
                        "items": {
                            "$ref": "#/components/schemas/Classification"
                        }
                    },
                    "description": {
                        "type": "string",
                        "description": "The description of the video. The video description is an optional field that can be set using the <a href=\" /develop/api/sell/media_api#sell-media_api-video-createvideo\">createVideo</a> method."
                    },
                    "expirationDate": {
                        "type": "string",
                        "description": "The date and time when an unused video will expire and be removed from the eBay Video Services server, in Coordinated Universal Time (UTC).<br><br>As long as a video is being used in an active listing, that video will remain on the server and be accessible. If a video is not being used on an active listing, its expiration date is automatically set to 30 days after the video's initial upload."
                    },
                    "moderation": {
                        "description": "The video moderation information that is returned if a video is blocked by moderators.<br /><br /><span class=\"tablenote\"><span style=\"color:#478415\"><strong>Tip:</strong></span> See <a href=\"https://www.ebay.com/help/selling/listings/creating-managing-listings/add-video-to-listing?id=5272#section2\" target=\"_blank\">Video moderation and restrictions</a> in the eBay Seller Center for details about video moderation.</span><br /><br />If the video status is <code>BLOCKED</code>, ensure that the video complies with eBay's video formatting and content guidelines. Afterwards, begin the video creation and upload procedure anew using the <strong>createVideo</strong> and <strong>uploadVideo</strong> methods.",
                        "$ref": "#/components/schemas/Moderation"
                    },
                    "playLists": {
                        "type": "array",
                        "description": "The playlist created for the uploaded video, which provides the streaming video URLs to play the video. The supported streaming video protocols are DASH (Dynamic Adaptive Streaming over HTTP) and HLS (HTTP Live Streaming). The playlist will only be generated if a video is successfully uploaded with a status of <code>LIVE</code>.",
                        "items": {
                            "$ref": "#/components/schemas/Play"
                        }
                    },
                    "size": {
                        "type": "integer",
                        "description": "The size, in bytes, of the video content. This field is always returned.",
                        "format": "int32"
                    },
                    "status": {
                        "description": "The status of the current video resource.",
                        "$ref": "#/components/schemas/VideoStatusEnum"
                    },
                    "statusMessage": {
                        "type": "string",
                        "description": "The <strong>statusMessage</strong> field contains additional information on the status. For example, information on why processing might have failed or if the video was blocked."
                    },
                    "thumbnail": {
                        "description": "The URL of the thumbnail image of the video. The thumbnail image's URL must be an eBayPictureURL (EPS URL).",
                        "$ref": "#/components/schemas/Image"
                    },
                    "title": {
                        "type": "string",
                        "description": "The title of the video. This field is always returned."
                    },
                    "videoId": {
                        "type": "string",
                        "description": "The unique ID of the video."
                    }
                },
                "description": "A response field that retrieves all the metadata for the video, including its <strong>title</strong>, <strong>classification</strong>, <strong>size</strong>, <strong>description</strong>, <strong>status</strong>, <strong>status message</strong> (if any), and <strong>expiration date</strong>."
            },
            "VideoStatusEnum": {
                "type": "string",
                "description": "An enumerated value indicating the video's status. The available status values are <code>PENDING_UPLOAD</code>, <code>PROCESSING</code>, <code>PROCESSING_FAILED</code>, <code>BLOCKED</code>, and <code>LIVE</code>. | - **PENDING_UPLOAD**: The video is pending upload. The video is being associated with a video ID and has not been uploaded yet. - **PROCESSING**: After a video upload is successfully completed, the status will show as PROCESSING until the video reaches one of the terminal states of <code>LIVE</code>, <code>BLOCKED</code>, or <code>PROCESSING_FAILED</code>. - **PROCESSING_FAILED**: The video failed to process. If processing fails, it could be because the file is corrupted, is too large, or its size doesn't match what was provided in the metadata. Refer to the error messages to determine the cause of the video's failure to upload. - **BLOCKED**: The video is blocked. A video might be BLOCKED if it contains malware, or if it is blocked by the video moderation feature. - **LIVE**: The video is live. When the status of the video is <code>LIVE</code>, this indicates the file has been processed and uploaded successfully. The <strong>playList</strong> providing URLs for the video in DASH and HLS streaming video protocols will only be generated if the video uploads successfully.",
                "enum": [
                    "PENDING_UPLOAD",
                    "PROCESSING",
                    "PROCESSING_FAILED",
                    "BLOCKED",
                    "LIVE"
                ]
            }
        },
        "securitySchemes": {
            "api_auth": {
                "type": "oauth2",
                "description": "The security definitions for this API. Please check individual operations for applicable scopes.",
                "flows": {
                    "authorizationCode": {
                        "authorizationUrl": "https://auth.ebay.com/oauth2/authorize",
                        "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token",
                        "scopes": {
                            "https://api.ebay.com/oauth/api_scope/sell.inventory": "View and manage your inventory and offers"
                        }
                    }
                }
            },
            "bearerAuth": {
                "type": "http",
                "scheme": "bearer"
            }
        }
    }
}
