{
  "openapi": "3.0.0",
  "info": {
    "title": "Order API",
    "description": "<span class=\"tablenote\"><b>Note:</b> This is the v1_beta version of the Order API which supports member checkout payment flows. If you need to support guest checkout payment flows, please use the <a href=\"/api-docs/buy/order/resources/methods\" target=\"_blank\">v2 version</a> of the Order API.</span><br><br><span class=\"tablenote\"><b>Note:</b> This is a <a href=\"https://developer.ebay.com/api-docs/static/versioning.html#limited \" target=\"_blank\"><img src=\"/cms/img/docs/partners-api.svg\" class=\"legend-icon partners-icon\" alt=\"Limited Release\" title=\"Limited Release\" />(Limited Release)</a> API available only to select developers approved by business units.</span><br><br>The Order API provides interfaces that let eBay members pay for items. It also returns payment and shipping status of the order.",
    "contact": {
      "name": "eBay Inc,"
    },
    "license": {
      "name": "eBay API License Agreement",
      "url": "https://developer.ebay.com/join/api-license-agreement"
    },
    "version": "v1_beta.37.0"
  },
  "servers": [
    {
      "url": "https://apix.ebay.com{basePath}",
      "description": "Production",
      "variables": {
        "basePath": {
          "default": "/buy/order/v1"
        }
      }
    },
    {
      "url": "https://api.ebay.com{basePath}",
      "description": "Production",
      "variables": {
        "basePath": {
          "default": "/buy/order/v1"
        }
      }
    }
  ],
  "paths": {
    "/checkout_session/{checkoutSessionId}/apply_coupon": {
      "post": {
        "tags": [
          "checkout_session"
        ],
        "description": "<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><a href=\"https://developer.ebay.com/api-docs/static/versioning.html#limited \" target=\"_blank\"><img src=\"/cms/img/docs/partners-api.svg\" class=\"legend-icon partners-icon\"  alt=\"Limited Release\" title=\"Limited Release\" />(Limited Release)</a> You must be whitelisted to use this method.</p></div><p>This method adds a coupon to an eBay checkout session and applies it to all the eligible items in the order.</p><p>The <b>checkoutSessionId</b> is passed in as a URI parameter and is required. The redemption code of the coupon is in the payload and is also required. </p><h3><b>Restrictions</b></h3><ul><li><b>Maximum:</b> One coupon per order </li><li>For a list of supported sites and other restrictions, see <a href=\"/api-docs/buy/order/overview.html#API\">API Restrictions</a> in the Order API overview.</li></ul>",
        "operationId": "applyCoupon",
        "parameters": [
          {
            "name": "checkoutSessionId",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.<br><br>This value is returned by the <a href=\"/api-docs/buy/order/resources/guest_checkout_session/methods/initiateGuestCheckoutSession\" target=\"_blank \">initiateGuestCheckoutSession</a> method.<br><br><span class=\"tablenote\"><b>Note:</b> When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See <a href=\"/api-docs/buy/order/overview.html#checkout-restriction\">Checkout session restrictions</a> in the Buy Integration Guide for details.</span>",
            "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 <b>application/json</b>. <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"
            }
          },
          {
            "name": "X-EBAY-C-ENDUSERCTX",
            "in": "header",
            "description": "This header is used to specify the <b>deviceId</b> for the device/user attempting to make the call. It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EBAY-C-MARKETPLACE-ID",
            "in": "header",
            "description": "This header identifies the eBay marketplace where the order will occur. <br><br><span class=\"tablenote\"><b>Note:</b>  For this method, this value must match the <b>X-EBAY-C-MARKETPLACE-ID</b> used when the associated checkout session was created.</span><br>See <a href=\"/api-docs/static/rest-request-components.html#marketpl \" target=\"_blank \">HTTP request headers</a> for the marketplace ID values.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The container for the fields used to apply a coupon to a checkout session.",
          "content": {
            "application/json": {
              "schema": {
                "description": "The container for the fields used to apply a coupon to a checkout session.",
                "$ref": "#/components/schemas/CouponRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutSessionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "x-response-codes": {
              "errors": {
                "15001": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call."
                },
                "15002": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. This error can be returned due to multiple scenarios. Please refer to <a href=\"/api-docs/buy/static/api-order.html#errordetails\" target=\"_blank \">Order API error details</a> for assistance on troubleshooting the issue."
                },
                "15003": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The checkout session requested does not exist."
                },
                "15025": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The App is not authorized to access this resource."
                },
                "15029": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}."
                },
                "16002": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The coupon does not exist. The coupon was ignored and no discount was applied to this order."
                },
                "16003": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The coupon has expired. No discount was applied to this order."
                },
                "16004": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The coupon has not been activated. The coupon was ignored and no discount was applied to this order."
                },
                "16006": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The coupon code is invalid. The coupon was ignored and no discount was applied to this order."
                },
                "16022": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The coupon code is invalid. The coupon was ignored and no discount was applied to this order."
                },
                "16024": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The coupon provided could not be applied. You may proceed with this session or provide another coupon."
                }
              }
            }
          },
          "403": {
            "description": "Access Forbidden"
          },
          "404": {
            "description": "Resource Not Found"
          },
          "409": {
            "description": "Conflict",
            "x-response-codes": {
              "errors": {
                "15019": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session."
                },
                "15021": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "This checkout session cannot be updated because the order has already been placed."
                },
                "15027": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}."
                },
                "16000": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The coupon is not valid for any of the items in the order. The coupon was ignored and no discount was applied to this order."
                },
                "16001": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "You cannot apply multiple coupons to the same order. No discount was applied to this order."
                },
                "16005": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The coupon requires the buyer to spend a specific monetary amount. This threshold has not been met. The coupon was ignored and no discount was applied to this order."
                },
                "16007": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "This coupon has already been used. The coupon was ignored and no discount was applied to this order."
                },
                "16008": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "This coupon is no longer valid. The coupon was ignored and no discount was applied to this order."
                },
                "16009": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The coupon requires the buyer to spend a specific monetary amount. This threshold has not been met. The coupon was ignored and no discount was applied to this order."
                },
                "16010": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The coupon is not valid for the currency being used by the items. The coupon was ignored and no discount was applied to this order."
                },
                "16012": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The coupon is not valid for the {fieldName}. The coupon was ignored and no discount was applied to this order."
                },
                "16013": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The coupon is not valid for any of the item categories in the order. The coupon was ignored and no discount was applied to this order."
                },
                "16014": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The coupon is not valid for the selected payment method. The coupon was ignored and no discount was applied to this order."
                },
                "16015": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The coupon is not valid for the selected shipping option. The coupon was ignored and no discount was applied to this order."
                },
                "16016": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The coupon is valid only for items that are shipped domestically. The coupon was ignored and no discount was applied to this order."
                },
                "16017": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The coupon is valid only for items that are shipped internationally. The coupon was ignored and no discount was applied to this order."
                },
                "16018": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The buyer is not eligible for this coupon. The coupon was ignored and no discount was applied to this order."
                },
                "16019": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The coupon is not valid for guest eBay checkouts. The coupon was ignored and no discount was applied to this order."
                },
                "16023": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "You cannot apply multiple coupons to the same order. The coupon was ignored and no discount was applied to this order."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "x-response-codes": {
              "errors": {
                "15000": {
                  "domain": "API_ORDER",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance."
                },
                "16020": {
                  "domain": "API_ORDER",
                  "category": "APPLICATION",
                  "description": "Your application is not eligible for this coupon. The coupon was ignored and no discount was applied to this order."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/buy.order"
            ]
          }
        ]
      }
    },
    "/checkout_session/{checkoutSessionId}": {
      "get": {
        "tags": [
          "checkout_session"
        ],
        "description": "<p> This method returns the details of the specified eBay member checkout session.  The <b> checkoutSessionId</b> is passed in as a URI  parameter and is required. This method has no request payload.  </p>  <h3><b> Restrictions </b></h3> <p>For a list of supported sites and other restrictions, see <a href=\"/api-docs/buy/order/overview.html#API\">API Restrictions</a> in the Order API overview.</p> ",
        "operationId": "getCheckoutSession",
        "parameters": [
          {
            "name": "checkoutSessionId",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.<br><br>This value is returned by the <a href=\"/api-docs/buy/order/resources/guest_checkout_session/methods/initiateGuestCheckoutSession\" target=\"_blank \">initiateGuestCheckoutSession</a> method.<br><br><span class=\"tablenote\"><b>Note:</b> When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See <a href=\"/api-docs/buy/order/overview.html#checkout-restriction\">Checkout session restrictions</a> in the Buy Integration Guide for details.</span>",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EBAY-C-ENDUSERCTX",
            "in": "header",
            "description": "This header is used to specify the <b>deviceId</b> for the device/user attempting to make the call. It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EBAY-C-MARKETPLACE-ID",
            "in": "header",
            "description": "This header identifies the eBay marketplace where the order will occur. <br><br><span class=\"tablenote\"><b>Note:</b>  For this method, this value must match the <b>X-EBAY-C-MARKETPLACE-ID</b> used when the associated checkout session was created.</span><br>See <a href=\"/api-docs/static/rest-request-components.html#marketpl \" target=\"_blank \">HTTP request headers</a> for the marketplace ID values.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutSessionResponse"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "20000": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "This order contains the item {itemId} that may be subject to certain importation permitting/licensing requirements. Please check applicable regulations for specific import restrictions in your country."
                },
                "20001": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "This item {itemId} ships via a freight carrier. For information regarding shipping, tracking, delivery, etc. check with the seller."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "x-response-codes": {
              "errors": {
                "15003": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The checkout session requested does not exist."
                },
                "15025": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The App is not authorized to access this resource."
                },
                "15029": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}."
                }
              }
            }
          },
          "403": {
            "description": "Access Forbidden"
          },
          "404": {
            "description": "Resource Not Found"
          },
          "409": {
            "description": "Conflict",
            "x-response-codes": {
              "errors": {
                "15027": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "x-response-codes": {
              "errors": {
                "15000": {
                  "domain": "API_ORDER",
                  "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/buy.order"
            ]
          }
        ]
      }
    },
    "/checkout_session/initiate": {
      "post": {
        "tags": [
          "checkout_session"
        ],
        "description": "This method creates an eBay member checkout session, which is the first step in performing a checkout. You use this method to create a checkout session before you can process a checkout. If the address submitted cannot be validated, a warning message will be returned.<br><br>The method returns a <b>checkoutSessionId</b> that you use as a URI parameter in subsequent checkout methods.<br><br>Also see <a href=\"/api-docs/buy/static/ref-buy-negative-testing.html \">Negative Testing Using Stubs</a> for information on how to emulate error conditions for this method using stubs.<br><br><span class=\"tablenote\"><b>Tip:</b> To test the entire checkout flow, you might need a 'test' credit card. You can generate a credit card number from <a href=\"http://www.getcreditcardnumbers.com \" target=\"_blank\">http://www.getcreditcardnumbers.com</a>.</span><h3>Restrictions</h3>For a list of supported sites and other restrictions, see <a href=\"/api-docs/buy/order/overview.html#API \" target=\"_blank\">API Restrictions</a> in the Order API overview.",
        "operationId": "initiateCheckoutSession",
        "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 <b>application/json</b>. <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"
            }
          },
          {
            "name": "X-EBAY-C-ENDUSERCTX",
            "in": "header",
            "description": "This header is used to specify the <b>deviceId</b> for the device/user attempting to make the call.<br><br>It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EBAY-C-MARKETPLACE-ID",
            "in": "header",
            "description": "This header identifies the eBay marketplace where the order will occur. <br><br>See <a href=\"/api-docs/static/rest-request-components.html#marketpl \" target=\"_blank \">HTTP request headers</a> for the marketplace ID values.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The container for the fields used by the <b> initiateCheckoutSession</b> method.",
          "content": {
            "application/json": {
              "schema": {
                "description": "The container for the fields used by the <b> initiateCheckoutSession</b> method.",
                "$ref": "#/components/schemas/CreateSignInCheckoutSessionRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutSessionResponse"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "15007": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The address provided may be incorrect. You may proceed with this address or provide a correct address."
                },
                "15043": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The item {itemId} cannot be purchased using this API and has been removed from the cart. The purchase can be done on ebay.com."
                },
                "20000": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "This order contains the item {itemId} that may be subject to certain importation permitting/licensing requirements. Please check applicable regulations for specific import restrictions in your country."
                },
                "20001": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "This item {itemId} ships via a freight carrier. For information regarding shipping, tracking, delivery, etc. check with the seller."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "x-response-codes": {
              "errors": {
                "15001": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call."
                },
                "15002": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. This error can be returned due to multiple scenarios. Please refer to <a href=\"/api-docs/buy/static/api-order.html#errordetails\" target=\"_blank \">Order API error details</a> for assistance on troubleshooting the issue."
                },
                "15029": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}."
                },
                "15048": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The value of {fieldName} is too long. For more information, see the documentation for this call."
                },
                "17002": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Invalid character(s) found in the shipping address. Please check name and shipping address fields, remove invalid character(s) and resubmit the call."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "x-response-codes": {
              "errors": {
                "15011": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of {maxLineItems} line items. Correct the request and resubmit the call."
                },
                "15012": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "There is a limit on the quantity of this item that can be purchased. Reduce the quantity and resubmit the call."
                },
                "15013": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The quantity value is greater than the quantity available. Correct the quantity value and resubmit the call."
                },
                "15014": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The quantity submitted for this item is invalid. Correct the quantity value and resubmit the call."
                },
                "15015": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "There is a problem with the credit card and it cannot be used to purchase items. Use the updatePaymentInfo call to change the payment information."
                },
                "15016": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The buyer is the seller of the item, which is not allowed."
                },
                "15017": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The payment for the order line items in your cart could not be processed due to issues with one or more sellers."
                },
                "15018": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The item is not available for purchase. This can be for several reasons including the listing has ended. Remove the item and resubmit the call."
                },
                "15019": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session."
                },
                "15024": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "There is a problem with the buyer's payment method. Please check or provide another payment method for this order."
                },
                "15026": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The item is not shippable to the specified shipping address."
                },
                "15027": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}."
                },
                "15028": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The item {itemId} is not available for purchase because it cannot be shipped to {country}."
                },
                "15031": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The item is not purchasable because the buyer has been blocked by the seller."
                },
                "15044": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "At least one of the items in the cart cannot be purchased using this API. The purchase can be done on eBay, through the eBay app or eBay website."
                },
                "15045": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The item cannot be purchased because the seller is away and is not processing orders. If you are trying to purchase more than one item, you need to create a new checkout session to purchase the other items."
                },
                "15047": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "In compliance with applicable economic sanctions and trade restrictions, eBay is unavailable in your location. If you believe you are receiving this notice in error, please contact eBay's Customer Service."
                },
                "15050": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "Your transaction cannot be completed with the given information. Contact eBay customer service."
                },
                "15051": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "Additional user details required. Please complete your registration or contact eBay customer support."
                },
                "15056": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The buyer is not the winning bidder of the auction."
                },
                "17001": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "Authentication with the payment provider failed. Please log into eBay.com and ensure payment provider accounts are properly linked."
                },
                "20002": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "This item {itemId} is currently unavailable to buy from the seller."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "x-response-codes": {
              "errors": {
                "15000": {
                  "domain": "API_ORDER",
                  "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/buy.order"
            ]
          }
        ]
      }
    },
    "/checkout_session/{checkoutSessionId}/place_order": {
      "post": {
        "tags": [
          "checkout_session"
        ],
        "description": "<p> This method creates the purchase order, pays for the items, and terminates the specified eBay member checkout session.    The <b> checkoutSessionId</b> is passed in as a URI parameter and is required. Although there is not a request payload, for this method you must pass in <code>{ }</code> in the request body.  </p><p> Also see <a href=\"/api-docs/buy/static/ref-buy-negative-testing.html\">Negative Testing Using Stubs</a> for information on how to emulate error conditions for this method using stubs. </p>      <h3> Restrictions </h3> <p>For a list of supported sites and other restrictions, see <a href=\"/api-docs/buy/order/overview.html#API\">API Restrictions</a> in the Order API overview.</p> <p class=\"tablenote\"><b> Note: </b> If the credit card is declined, the checkout session is unusable. You will need to create a new checkout session for the order using the <b> initiateCheckoutSession</b> method. </p>",
        "operationId": "placeOrder",
        "parameters": [
          {
            "name": "checkoutSessionId",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.<br><br>This value is returned by the <a href=\"/api-docs/buy/order/resources/guest_checkout_session/methods/initiateGuestCheckoutSession\" target=\"_blank \">initiateGuestCheckoutSession</a> method.<br><br><span class=\"tablenote\"><b>Note:</b> When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See <a href=\"/api-docs/buy/order/overview.html#checkout-restriction\">Checkout session restrictions</a> in the Buy Integration Guide for details.</span>",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EBAY-C-ENDUSERCTX",
            "in": "header",
            "description": "This header is used to specify the <b>deviceId</b> for the device/user attempting to make the call.<br><br>It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EBAY-C-MARKETPLACE-ID",
            "in": "header",
            "description": "This header identifies the eBay marketplace where the order will occur. <br><br><span class=\"tablenote\"><b>Note:</b>  For this method, this value must match the <b>X-EBAY-C-MARKETPLACE-ID</b> used when the associated checkout session was created.</span><br>See <a href=\"/api-docs/static/rest-request-components.html#marketpl \" target=\"_blank \">HTTP request headers</a> for the marketplace ID values.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderSummary"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "15005": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "Some of the line items were not purchased. Use the Order API getPurchaseOrder call to check the payment status of each line item."
                },
                "15006": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The order has already been placed for the checkout session submitted and no modifications can be made. Use the Order API getPurchaseOrder call to get the purchase order details."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "x-response-codes": {
              "errors": {
                "15003": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The checkout session requested does not exist."
                },
                "15004": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The buyer's credit card information is missing. Please submit the buyer's credit card information using updatePaymentInfo method."
                },
                "15025": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The App is not authorized to access this resource."
                },
                "15029": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}."
                }
              }
            }
          },
          "403": {
            "description": "Access Forbidden"
          },
          "404": {
            "description": "Resource Not Found"
          },
          "409": {
            "description": "Conflict",
            "x-response-codes": {
              "errors": {
                "15012": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "There is a limit on the quantity of this item that can be purchased. Reduce the quantity and resubmit the call."
                },
                "15019": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session."
                },
                "15020": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "During the checkout process the item has been changed. Create a new checkout session for this item using the initiateCheckoutSession call."
                },
                "15023": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The payment cannot be processed due to an issue with the funding source, such as insufficient funds, or invalid payment details, such as card number or billing address error. To complete this order, use the appropriate initiate checkout session call to create a new session and either provide a new payment method or correct the payment details."
                },
                "15024": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "There is a problem with the buyer's payment method. Please check or provide another payment method for this order."
                },
                "15027": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}."
                },
                "15045": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The item cannot be purchased because the seller is away and is not processing orders. If you are trying to purchase more than one item, you need to create a new checkout session to purchase the other items."
                },
                "17000": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The payment cannot be processed due to a payment processor issue, such as invalid incentive, funding or financing issue, etc"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "x-response-codes": {
              "errors": {
                "15000": {
                  "domain": "API_ORDER",
                  "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/buy.order"
            ]
          }
        ]
      }
    },
    "/checkout_session/{checkoutSessionId}/remove_coupon": {
      "post": {
        "tags": [
          "checkout_session"
        ],
        "description": "<a href=\"https://developer.ebay.com/api-docs/static/versioning.html#limited\" target=\"_blank\"><img src=\"/cms/img/docs/partners-api.svg\" class=\"legend-icon partners-icon\"  alt=\"Limited Release\" title=\"Limited Release\" />(Limited Release)</a> You must be whitelisted to use this method. <p>This method removes a coupon from an eBay member checkout session. The <b>checkoutSessionId</b> is passed in as a URI parameter and is required. The redemption code of the coupon is specified in the payload and is also required.</p><h3><b> Restrictions </b></h3> <p> For a list of supported sites and other restrictions, see <a href=\"/api-docs/buy/order/overview.html#API\">API Restrictions</a> in the Order API overview.</p>",
        "operationId": "removeCoupon",
        "parameters": [
          {
            "name": "checkoutSessionId",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.<br><br>This value is returned by the <a href=\"/api-docs/buy/order/resources/guest_checkout_session/methods/initiateGuestCheckoutSession\" target=\"_blank \">initiateGuestCheckoutSession</a> method.<br><br><span class=\"tablenote\"><b>Note:</b> When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See <a href=\"/api-docs/buy/order/overview.html#checkout-restriction\">Checkout session restrictions</a> in the Buy Integration Guide for details.</span>",
            "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 <b>application/json</b>. <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"
            }
          },
          {
            "name": "X-EBAY-C-ENDUSERCTX",
            "in": "header",
            "description": "This header is used to specify the <b>deviceId</b> for the device/user attempting to make the call. It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EBAY-C-MARKETPLACE-ID",
            "in": "header",
            "description": "This header identifies the eBay marketplace where the order will occur. <br><br><span class=\"tablenote\"><b>Note:</b>  For this method, this value must match the <b>X-EBAY-C-MARKETPLACE-ID</b> used when the associated checkout session was created.</span><br>See <a href=\"/api-docs/static/rest-request-components.html#marketpl \" target=\"_blank \">HTTP request headers</a> for the marketplace ID values.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The container for the fields used to remove a coupon from a checkout session.",
          "content": {
            "application/json": {
              "schema": {
                "description": "The container for the fields used to remove a coupon from a checkout session.",
                "$ref": "#/components/schemas/CouponRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutSessionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "x-response-codes": {
              "errors": {
                "15001": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call."
                },
                "15002": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. This error can be returned due to multiple scenarios. Please refer to <a href=\"/api-docs/buy/static/api-order.html#errordetails\" target=\"_blank \">Order API error details</a> for assistance on troubleshooting the issue."
                },
                "15003": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The checkout session requested does not exist."
                },
                "15025": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The App is not authorized to access this resource."
                },
                "15029": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}."
                },
                "16025": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The coupon was not applied to this cart."
                }
              }
            }
          },
          "403": {
            "description": "Access Forbidden"
          },
          "404": {
            "description": "Resource Not Found"
          },
          "409": {
            "description": "Conflict",
            "x-response-codes": {
              "errors": {
                "15019": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session."
                },
                "15021": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "This checkout session cannot be updated because the order has already been placed."
                },
                "15027": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "x-response-codes": {
              "errors": {
                "15000": {
                  "domain": "API_ORDER",
                  "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/buy.order"
            ]
          }
        ]
      }
    },
    "/checkout_session/{checkoutSessionId}/update_add_on_services_status": {
      "post": {
        "tags": [
          "checkout_session"
        ],
        "description": "This method changes the selection of add-on services for one line item for the checkout session.",
        "operationId": "updateAddonServicesStatus",
        "parameters": [
          {
            "name": "checkoutSessionId",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.<br><br>This value is returned by the <a href=\"/api-docs/buy/order/resources/guest_checkout_session/methods/initiateGuestCheckoutSession\" target=\"_blank \">initiateGuestCheckoutSession</a> method.<br><br><span class=\"tablenote\"><b>Note:</b> When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See <a href=\"/api-docs/buy/order/overview.html#checkout-restriction\">Checkout session restrictions</a> in the Buy Integration Guide for details.</span>",
            "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 <b>application/json</b>. <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"
            }
          },
          {
            "name": "X-EBAY-C-ENDUSERCTX",
            "in": "header",
            "description": "This header is used to specify the <b>deviceId</b> for the device/user attempting to make the call. It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EBAY-C-MARKETPLACE-ID",
            "in": "header",
            "description": "This header identifies the eBay marketplace where the order will occur. <br><br><span class=\"tablenote\"><b>Note:</b>  For this method, this value must match the <b>X-EBAY-C-MARKETPLACE-ID</b> used when the associated checkout session was created.</span><br>See <a href=\"/api-docs/static/rest-request-components.html#marketpl \" target=\"_blank \">HTTP request headers</a> for the marketplace ID values.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The container for the fields used by the <b> updateAddonServicesRequest</b> method.",
          "content": {
            "application/json": {
              "schema": {
                "description": "The container for the fields used by the <b> updateAddonServicesRequest</b> method.",
                "$ref": "#/components/schemas/UpdateAddonServicesRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutSessionResponse"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "18000": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "{serviceId} is not a valid add-on service for this item {lineItemId}. Correct the value and resubmit the call."
                },
                "18001": {
                  "domain": "API_ORDER",
                  "category": "APPLICATION",
                  "description": "The selected add-on service {serviceId} could not be added to the checkout session at this time. Please try again or process the checkout session without selecting the service."
                },
                "18002": {
                  "domain": "API_ORDER",
                  "category": "APPLICATION",
                  "description": "Selected add-on service {serviceId} is no longer available. You can still process the checkout session without selecting the service."
                },
                "18004": {
                  "domain": "API_ORDER",
                  "category": "APPLICATION",
                  "description": "Based on your add-on service selection(s), your shipping option and/or shipping price might have changed. Please check these values before proceeding with your order."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "x-response-codes": {
              "errors": {
                "15001": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call."
                },
                "15002": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. This error can be returned due to multiple scenarios. Please refer to <a href=\"/api-docs/buy/static/api-order.html#errordetails\" target=\"_blank \">Order API error details</a> for assistance on troubleshooting the issue."
                },
                "15003": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The checkout session requested does not exist."
                },
                "15025": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The App is not authorized to access this resource."
                },
                "15029": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}."
                }
              }
            }
          },
          "403": {
            "description": "Access Forbidden"
          },
          "404": {
            "description": "Resource Not Found"
          },
          "409": {
            "description": "Conflict",
            "x-response-codes": {
              "errors": {
                "15021": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "This checkout session cannot be updated because the order has already been placed."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "x-response-codes": {
              "errors": {
                "15000": {
                  "domain": "API_ORDER",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance."
                },
                "18003": {
                  "domain": "API_ORDER",
                  "category": "APPLICATION",
                  "description": "Selected add-on service {fieldName} is not eligible for the shipping destination."
                },
                "18005": {
                  "domain": "API_ORDER",
                  "category": "APPLICATION",
                  "description": "Selected add-on service {fieldName} is required for this purchase."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/buy.order"
            ]
          }
        ]
      }
    },
    "/checkout_session/{checkoutSessionId}/update_payment_info": {
      "post": {
        "tags": [
          "checkout_session"
        ],
        "description": "<p> This method changes the payment method information of the specified eBay member checkout session. </p><h3><b> Restrictions </b></h3> <p>For a list of supported sites and other restrictions, see <a href=\"/api-docs/buy/order/overview.html#API\">API Restrictions</a> in the Order API overview.</p> ",
        "operationId": "updatePaymentInfo",
        "parameters": [
          {
            "name": "checkoutSessionId",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.<br><br>This value is returned by the <a href=\"/api-docs/buy/order/resources/guest_checkout_session/methods/initiateGuestCheckoutSession\" target=\"_blank \">initiateGuestCheckoutSession</a> method.<br><br><span class=\"tablenote\"><b>Note:</b> When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See <a href=\"/api-docs/buy/order/overview.html#checkout-restriction\">Checkout session restrictions</a> in the Buy Integration Guide for details.</span>",
            "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 <b>application/json</b>. <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"
            }
          },
          {
            "name": "X-EBAY-C-ENDUSERCTX",
            "in": "header",
            "description": "This header is used to specify the <b>deviceId</b> for the device/user attempting to make the call. It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EBAY-C-MARKETPLACE-ID",
            "in": "header",
            "description": "This header identifies the eBay marketplace where the order will occur. <br><br><span class=\"tablenote\"><b>Note:</b>  For this method, this value must match the <b>X-EBAY-C-MARKETPLACE-ID</b> used when the associated checkout session was created.</span><br>See <a href=\"/api-docs/static/rest-request-components.html#marketpl \" target=\"_blank \">HTTP request headers</a> for the marketplace ID values.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The container for the fields used by the <b> updatePaymentInfo</b> method.",
          "content": {
            "application/json": {
              "schema": {
                "description": "The container for the fields used by the <b> updatePaymentInfo</b> method.",
                "$ref": "#/components/schemas/UpdatePaymentInformation"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutSessionResponse"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "15007": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The address provided may be incorrect. You may proceed with this address or provide a correct address."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "x-response-codes": {
              "errors": {
                "15001": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call."
                },
                "15002": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. This error can be returned due to multiple scenarios. Please refer to <a href=\"/api-docs/buy/static/api-order.html#errordetails\" target=\"_blank \">Order API error details</a> for assistance on troubleshooting the issue."
                },
                "15003": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The checkout session requested does not exist."
                },
                "15025": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The App is not authorized to access this resource."
                },
                "15029": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}."
                },
                "17002": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Invalid character(s) found in the shipping address. Please check name and shipping address fields, remove invalid character(s) and resubmit the call."
                }
              }
            }
          },
          "403": {
            "description": "Access Forbidden"
          },
          "404": {
            "description": "Resource Not Found"
          },
          "409": {
            "description": "Conflict",
            "x-response-codes": {
              "errors": {
                "15015": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "There is a problem with the credit card and it cannot be used to purchase items. Use the updatePaymentInfo call to change the payment information."
                },
                "15019": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session."
                },
                "15021": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "This checkout session cannot be updated because the order has already been placed."
                },
                "15022": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "Some of the items cannot be purchased using a credit card and must be removed from the checkout session."
                },
                "15027": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "x-response-codes": {
              "errors": {
                "15000": {
                  "domain": "API_ORDER",
                  "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/buy.order"
            ]
          }
        ]
      }
    },
    "/checkout_session/{checkoutSessionId}/update_quantity": {
      "post": {
        "tags": [
          "checkout_session"
        ],
        "description": "<p> This method changes the quantity of the specified line item in an eBay member checkout session. <br><br><span class=\"tablenote\"><b>Note:</b> This method is <b>not</b> applicable to auction item checkouts, as the <b>quantity</b> field must be <code>1</code>. If this field is updated to any other value, an error will be returned.</span></p><h3><b> Restrictions </b></h3> <p>For a list of supported sites and other restrictions, see <a href=\"/api-docs/buy/order/overview.html#API\">API Restrictions</a> in the Order API overview.</p> ",
        "operationId": "updateQuantity",
        "parameters": [
          {
            "name": "checkoutSessionId",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.<br><br>This value is returned by the <a href=\"/api-docs/buy/order/resources/guest_checkout_session/methods/initiateGuestCheckoutSession\" target=\"_blank \">initiateGuestCheckoutSession</a> method.<br><br><span class=\"tablenote\"><b>Note:</b> When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See <a href=\"/api-docs/buy/order/overview.html#checkout-restriction\">Checkout session restrictions</a> in the Buy Integration Guide for details.</span>",
            "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 <b>application/json</b>. <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"
            }
          },
          {
            "name": "X-EBAY-C-ENDUSERCTX",
            "in": "header",
            "description": "This header is used to specify the <b>deviceId</b> for the device/user attempting to make the call.<br><br>It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EBAY-C-MARKETPLACE-ID",
            "in": "header",
            "description": "This header identifies the eBay marketplace where the order will occur. <br><br><span class=\"tablenote\"><b>Note:</b>  For this method, this value must match the <b>X-EBAY-C-MARKETPLACE-ID</b> used when the associated checkout session was created.</span><br>See <a href=\"/api-docs/static/rest-request-components.html#marketpl \" target=\"_blank \">HTTP request headers</a> for the marketplace ID values.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The container for the fields used by the <b> updateQuantity</b> method.",
          "content": {
            "application/json": {
              "schema": {
                "description": "The container for the fields used by the <b> updateQuantity</b> method.",
                "$ref": "#/components/schemas/UpdateQuantity"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutSessionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "x-response-codes": {
              "errors": {
                "15001": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call."
                },
                "15002": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. This error can be returned due to multiple scenarios. Please refer to <a href=\"/api-docs/buy/static/api-order.html#errordetails\" target=\"_blank \">Order API error details</a> for assistance on troubleshooting the issue."
                },
                "15003": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The checkout session requested does not exist."
                },
                "15025": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The App is not authorized to access this resource."
                },
                "15029": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}."
                }
              }
            }
          },
          "403": {
            "description": "Access Forbidden"
          },
          "404": {
            "description": "Resource Not Found"
          },
          "409": {
            "description": "Conflict",
            "x-response-codes": {
              "errors": {
                "15012": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "There is a limit on the quantity of this item that can be purchased. Reduce the quantity and resubmit the call."
                },
                "15013": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The quantity value is greater than the quantity available. Correct the quantity value and resubmit the call."
                },
                "15014": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The quantity submitted for this item is invalid. Correct the quantity value and resubmit the call."
                },
                "15019": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session."
                },
                "15021": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "This checkout session cannot be updated because the order has already been placed."
                },
                "15027": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "x-response-codes": {
              "errors": {
                "15000": {
                  "domain": "API_ORDER",
                  "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/buy.order"
            ]
          }
        ]
      }
    },
    "/checkout_session/{checkoutSessionId}/update_shipping_address": {
      "post": {
        "tags": [
          "checkout_session"
        ],
        "description": "<p> This method changes the shipping address for in an eBay member checkout session. All the line items in an order must be shipped to the same address, but the shipping method can be specific to the line item.  <br> <br><span class=\"tablenote\"> <b> Note: </b>If the address submitted cannot be validated, a warning message will be returned. This does not prevent the method from executing, but  you may want to verify the address. </span><h3><b> Restrictions </b></h3> <p>For a list of supported sites and other restrictions, see <a href=\"/api-docs/buy/order/overview.html#API\">API Restrictions</a> in the Order API overview.</p> ",
        "operationId": "updateShippingAddress",
        "parameters": [
          {
            "name": "checkoutSessionId",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.<br><br>This value is returned by the <a href=\"/api-docs/buy/order/resources/guest_checkout_session/methods/initiateGuestCheckoutSession\" target=\"_blank \">initiateGuestCheckoutSession</a> method.<br><br><span class=\"tablenote\"><b>Note:</b> When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See <a href=\"/api-docs/buy/order/overview.html#checkout-restriction\">Checkout session restrictions</a> in the Buy Integration Guide for details.</span>",
            "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 <b>application/json</b>. <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"
            }
          },
          {
            "name": "X-EBAY-C-ENDUSERCTX",
            "in": "header",
            "description": "This header is used to specify the <b>deviceId</b> for the device/user attempting to make the call. It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EBAY-C-MARKETPLACE-ID",
            "in": "header",
            "description": "This header identifies the eBay marketplace where the order will occur. <br><br><span class=\"tablenote\"><b>Note:</b>  For this method, this value must match the <b>X-EBAY-C-MARKETPLACE-ID</b> used when the associated checkout session was created.</span><br>See <a href=\"/api-docs/static/rest-request-components.html#marketpl \" target=\"_blank \">HTTP request headers</a> for the marketplace ID values.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The container for the fields used by the <b> updateShippingAddress</b> method.",
          "content": {
            "application/json": {
              "schema": {
                "description": "The container for the fields used by the <b> updateShippingAddress</b> method.",
                "$ref": "#/components/schemas/ShippingAddressImpl"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutSessionResponse"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "15007": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The address provided may be incorrect. You may proceed with this address or provide a correct address."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "x-response-codes": {
              "errors": {
                "15001": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call."
                },
                "15002": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. This error can be returned due to multiple scenarios. Please refer to <a href=\"/api-docs/buy/static/api-order.html#errordetails\" target=\"_blank \">Order API error details</a> for assistance on troubleshooting the issue."
                },
                "15003": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The checkout session requested does not exist."
                },
                "15025": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The App is not authorized to access this resource."
                },
                "15029": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}."
                },
                "15048": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The value of {fieldName} is too long. For more information, see the documentation for this call."
                },
                "17002": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Invalid character(s) found in the shipping address. Please check name and shipping address fields, remove invalid character(s) and resubmit the call."
                }
              }
            }
          },
          "403": {
            "description": "Access Forbidden"
          },
          "404": {
            "description": "Resource Not Found"
          },
          "409": {
            "description": "Conflict",
            "x-response-codes": {
              "errors": {
                "15019": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session."
                },
                "15021": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "This checkout session cannot be updated because the order has already been placed."
                },
                "15026": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The item is not shippable to the specified shipping address."
                },
                "15027": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}."
                },
                "15047": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "In compliance with applicable economic sanctions and trade restrictions, eBay is unavailable in your location. If you believe you are receiving this notice in error, please contact eBay's Customer Service."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "x-response-codes": {
              "errors": {
                "15000": {
                  "domain": "API_ORDER",
                  "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/buy.order"
            ]
          }
        ]
      }
    },
    "/checkout_session/{checkoutSessionId}/update_shipping_option": {
      "post": {
        "tags": [
          "checkout_session"
        ],
        "description": "<p> This method changes the shipping method for the specified line item in an eBay member checkout session. The shipping option can be set for each line item. This gives the shopper the ability choose the cost of shipping for each line item. </p><h3><b> Restrictions </b></h3> <p>For a list of supported sites and other restrictions, see <a href=\"/api-docs/buy/order/overview.html#API\">API Restrictions</a> in the Order API overview.</p> ",
        "operationId": "updateShippingOption",
        "parameters": [
          {
            "name": "checkoutSessionId",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned session identifier for a specific eBay marketplace.<br><br>This value is returned by the <a href=\"/api-docs/buy/order/resources/guest_checkout_session/methods/initiateGuestCheckoutSession\" target=\"_blank \">initiateGuestCheckoutSession</a> method.<br><br><span class=\"tablenote\"><b>Note:</b> When using this ID, the X-EBAY-C-MARKETPLACE-ID value and developer App ID must be the same as that used when this guest checkout session was created. See <a href=\"/api-docs/buy/order/overview.html#checkout-restriction\">Checkout session restrictions</a> in the Buy Integration Guide for details.</span>",
            "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 <b>application/json</b>. <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"
            }
          },
          {
            "name": "X-EBAY-C-ENDUSERCTX",
            "in": "header",
            "description": "This header is used to specify the <b>deviceId</b> for the device/user attempting to make the call.<br><br>It contains an alphanumeric string that allows a payment gateway to track an API call attempt and confirm that it is a verified payment attempt by a device/user.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EBAY-C-MARKETPLACE-ID",
            "in": "header",
            "description": "This header identifies the eBay marketplace where the order will occur. <br><br><span class=\"tablenote\"><b>Note:</b>  For this method, this value must match the <b>X-EBAY-C-MARKETPLACE-ID</b> used when the associated checkout session was created.</span><br>See <a href=\"/api-docs/static/rest-request-components.html#marketpl \" target=\"_blank \">HTTP request headers</a> for the marketplace ID values.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The container for the fields used by the <b> updateShippingOption</b> method.",
          "content": {
            "application/json": {
              "schema": {
                "description": "The container for the fields used by the <b> updateShippingOption</b> method.",
                "$ref": "#/components/schemas/UpdateShippingOption"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutSessionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "x-response-codes": {
              "errors": {
                "15001": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Missing field: {fieldName}. The indicated field is required for this request. Add the field and resubmit the call."
                },
                "15002": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Invalid field: {fieldName}. The indicated field contains an invalid value. This error can be returned due to multiple scenarios. Please refer to <a href=\"/api-docs/buy/static/api-order.html#errordetails\" target=\"_blank \">Order API error details</a> for assistance on troubleshooting the issue."
                },
                "15003": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The checkout session requested does not exist."
                },
                "15025": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The App is not authorized to access this resource."
                },
                "15029": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The X-EBAY-C-MARKETPLACE-ID value {fieldValue} is invalid for this checkout session because it is different from the X-EBAY-C-MARKETPLACE-ID header value used to create the session. For all calls in this checkout session, you must use X-EBAY-C-MARKETPLACE-ID {supportedValues}."
                }
              }
            }
          },
          "403": {
            "description": "Access Forbidden"
          },
          "404": {
            "description": "Resource Not Found"
          },
          "409": {
            "description": "Conflict",
            "x-response-codes": {
              "errors": {
                "15019": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "To place an order, you must have at least one line item. Use the initiateCheckoutSession call to add line items (maximum of {maxLineItems}) and create a new checkout session."
                },
                "15021": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "This checkout session cannot be updated because the order has already been placed."
                },
                "15027": {
                  "domain": "API_ORDER",
                  "category": "BUSINESS",
                  "description": "The value {fieldValue} is not supported for the {fieldName}. The supported values are: {supportedValues}."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "x-response-codes": {
              "errors": {
                "15000": {
                  "domain": "API_ORDER",
                  "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/buy.order"
            ]
          }
        ]
      }
    },
    "/purchase_order/{purchaseOrderId}": {
      "get": {
        "tags": [
          "purchase_order"
        ],
        "description": "<p> This method retrieves the details about a specific eBay member purchase order. It returns the line items, including purchase  order status; dates created and modified; item quantity and listing data; payment and shipping information;  and prices, taxes, and discounts and credits.   </p>  <p>The <b> purchaseOrderId</b> is passed in as a URI parameter and is required. This method has no request payload. </p>  <p>The <a href=\"/api-docs/buy/order_v1/resources/checkout_session/methods/placeOrder\">placeOrder</a> method initiates the payment process, which can sometimes take a few minutes. You can use  this method to not only get the details of a purchase order but to check the value of the <a href=\"#response.purchaseOrderPaymentStatus\">purchaseOrderPaymentStatus</a> field to determine if the order has been paid for. If the order has been paid for, this field will return <code>PAID</code>. </p>       <p>This method also returns the <b>legacyItemId</b>, <b>legacyTransactionId</b>, and <b>legacyOrderId</b> fields. The values in these fields enable eBay partners to use the <a href=\"https://developer.ebay.com/Devzone/post-order/index.html#CallIndex \" target=\"_blank\">Post Order API</a> for eBay member checkouts, to process a return or cancellation. For more information, see <a href=\"/api-docs/buy/static/api-order.html#Post\">Post order tasks</a> in the Buy Integration Guide.</p>                 <h3><b>Restrictions </b></h3> <p>For a list of supported sites and other restrictions, see <a href=\"/api-docs/buy/order/overview.html#API\">API Restrictions</a> in the Order API overview.</p> ",
        "operationId": "getPurchaseOrder",
        "parameters": [
          {
            "name": "purchaseOrderId",
            "in": "path",
            "description": "This path parameter specifies the unique identifier of a purchase order made by an eBay member, for which details are to be retrieved.<br><br>This value is returned by the <a href=\"/api-docs/buy/order_v1/resources/checkout_session/methods/placeOrder\" target=\"_blank\">placeOrder</a> method in the <b> purchaseOrderId</b> field.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "x-response-codes": {
              "errors": {
                "16002": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "The purchase order ID was not found."
                },
                "16003": {
                  "domain": "API_ORDER",
                  "category": "REQUEST",
                  "description": "Access to the purchase order is not authorized."
                }
              }
            }
          },
          "403": {
            "description": "Access Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "500": {
            "description": "Internal Server Error",
            "x-response-codes": {
              "errors": {
                "16001": {
                  "domain": "API_ORDER",
                  "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/buy.order.readonly",
              "https://api.ebay.com/oauth/api_scope/buy.order"
            ]
          }
        ]
      },
      "servers": [
        {
          "url": "https://api.ebay.com{basePath}",
          "description": "Production",
          "variables": {
            "basePath": {
              "default": "/buy/order/v1"
            }
          }
        }
      ]
    }
  },
  "components": {
    "schemas": {
      "AddonService": {
        "type": "object",
        "properties": {
          "serviceFee": {
            "description": "The container that returns the amount and currency of the fee for an add-on service.",
            "$ref": "#/components/schemas/Amount"
          },
          "serviceTax": {
            "description": "The container that returns the amount and currency of the sales tax applied against the add-on service fee. This tax is based on the state or territory in which the buyer is located.",
            "$ref": "#/components/schemas/Amount"
          },
          "serviceType": {
            "type": "string",
            "description": "An enumerated value that defines the type of add-on service. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:ServiceTypeEnum'>eBay API documentation</a>"
          }
        },
        "description": "A type that defines the fields for add-on services that may be applied or are automatically applied to an item in an order."
      },
      "AddonServiceInput": {
        "type": "object",
        "properties": {
          "selected": {
            "type": "boolean",
            "description": "This field is used to add or remove an add-on service for an order line item. Set the field value to <code>true</code> to add a service or <code>false</code> to remove it."
          },
          "serviceId": {
            "type": "string",
            "description": "The unique identifier of the add-on service.<br><br>This value appears in the response field <b>lineitems.addonServices.serviceId</b> of the <a href=\"/api-docs/buy/order_v1/resources/checkout_session/methods/getCheckoutSession\">getCheckoutSession</a> method. <br><br><span class=\"tablenote\"><strong> Note: </strong> BUYER_PROTECTION cannot be added or removed as a add-on service with this method. eBay adds this service automatically if applicable.</span>"
          }
        },
        "description": "A type that defines which add-on services are selected for an item. This type is used by <b>updateAddonServicesStatus</b> to add an add-on service to an order line item."
      },
      "Adjustment": {
        "type": "object",
        "properties": {
          "amount": {
            "description": "The container for the amount and currency of the adjustment.",
            "$ref": "#/components/schemas/Amount"
          },
          "label": {
            "type": "string",
            "description": "Text that describes the adjustment."
          }
        },
        "description": "The type that defines the fields for seller adjustments. An adjustment can be a credit or debit."
      },
      "Amount": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "description": "A three letter ISO 4217 code specifying the currency of the monetary amount. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/ba:CurrencyCodeEnum'>eBay API documentation</a>"
          },
          "value": {
            "type": "string",
            "description": "The monetary amount."
          }
        },
        "description": "The type the defines the fields for the details of a monetary amount, in the currency used by the method and in the original currency, if the amount was converted between currencies."
      },
      "AuthenticityVerificationProgram": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "description": "An informational message that applies to the Authenticity Guarantee program."
          },
          "outcomeReason": {
            "type": "string",
            "description": "An informational message regarding the authentication outcome of an authenticity verification inspection.<br><span class=\"tablenote\"><b>Note</b>: This field is conditionally returned when there is information that applies to the Authenticity Guarantee program.</span>"
          },
          "status": {
            "type": "string",
            "description": "The value in this field indicates whether the order line item has passed or failed the authenticity verification inspection, or if the inspection and/or results are still pending. The possible values returned here are <code>PENDING</code>, <code>PASSED</code>, <code>FAILED</code>, or <code>INELIGIBLE</code>.<br><span class=\"tablenote\"><b>Note</b>: This field is conditionally returned when purchase is complete.</span> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:AuthenticityVerificationStatusEnum'>eBay API documentation</a>"
          },
          "termsWebUrl": {
            "type": "string",
            "description": "The terms and conditions that apply to the Authenticity Guarantee program."
          }
        },
        "description": "This type is used to provide the status and outcome of an order line item going through the Authenticity Guarantee verification process."
      },
      "BillingAddress": {
        "type": "object",
        "properties": {
          "addressLine1": {
            "type": "string",
            "description": "The first line of the street address. <br><br><b> Maximum characters</b> <ul><li>AU, CA, & US: 40</li> <li>DE & GB: 35</li> <li>All other marketplaces: 50</li></ul>"
          },
          "addressLine2": {
            "type": "string",
            "description": "The second line of the street address where the item is being shipped. This optional field can be used for information such as 'Suite Number' or 'Apt Number'."
          },
          "city": {
            "type": "string",
            "description": "The city of the address."
          },
          "country": {
            "type": "string",
            "description": "The two letter code representing the country of the address. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/ba:CountryCodeEnum'>eBay API documentation</a>"
          },
          "county": {
            "type": "string",
            "description": "The county of the address."
          },
          "firstName": {
            "type": "string",
            "description": "The buyer's first name."
          },
          "lastName": {
            "type": "string",
            "description": "The buyer's last name."
          },
          "postalCode": {
            "type": "string",
            "description": "The postal code of the address."
          },
          "stateOrProvince": {
            "type": "string",
            "description": "The state or province of the address. <p><span class=\"tablenote\"><b>Note: </b> For the EBAY_US - USA (ebay.com) marketplace, this is a 2 character value. For a list of these, see <a href=\"https://www.ups.com/worldshiphelp/WS15/ENU/AppHelp/Codes/State_Province_Codes.htm\">US State and Canada Province Codes</a>. </span>"
          }
        },
        "description": "The type that defines the fields for an address. "
      },
      "CheckoutAddonService": {
        "type": "object",
        "properties": {
          "selected": {
            "type": "boolean",
            "description": "Indicates whether the service is selected or not."
          },
          "serviceFee": {
            "description": "The container that returns the amount and currency of the fee for an add-on service.",
            "$ref": "#/components/schemas/Amount"
          },
          "serviceId": {
            "type": "string",
            "description": "The ID of the add-on service."
          },
          "serviceTax": {
            "description": "The container that returns the amount and currency of the sales tax applied against the add-on service fee. This tax is based on the state or territory in which the buyer is located.",
            "$ref": "#/components/schemas/Amount"
          },
          "serviceType": {
            "type": "string",
            "description": "The type of add-on service, such as AUTHENTICITY_GUARANTEE. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:ServiceTypeEnum'>eBay API documentation</a>"
          }
        },
        "description": "A type that defines the fields for add-on services that may be applied or are automatically applied to an item in an order."
      },
      "CheckoutSessionResponse": {
        "type": "object",
        "properties": {
          "acceptedPaymentMethods": {
            "type": "array",
            "description": "The container that returns the payment methods that can be used to purchase the items. ",
            "items": {
              "$ref": "#/components/schemas/PaymentMethod"
            }
          },
          "appliedCoupons": {
            "type": "array",
            "description": "The container that returns the information of the coupons that were applied in the checkout session.",
            "items": {
              "$ref": "#/components/schemas/Coupon"
            }
          },
          "checkoutSessionId": {
            "type": "string",
            "description": "The <b> checkoutSessionId</b> submitted in the request."
          },
          "expirationDate": {
            "type": "string",
            "description": "The time the checkout session will end. To purchase the items the order must be placed before this time."
          },
          "lineItems": {
            "type": "array",
            "description": "An array of line items associated with the checkout session.",
            "items": {
              "$ref": "#/components/schemas/LineItem"
            }
          },
          "pricingSummary": {
            "description": "The container that returns information about the costs of the order, such as the total cost, discounts, etc., of all the line items.",
            "$ref": "#/components/schemas/PricingSummary"
          },
          "providedPaymentInstrument": {
            "description": "The container that returns the payment methods that can be used for the checkout. This is returned only if you have used the <b> updatePaymentInfo</b> method to change the payment method.",
            "$ref": "#/components/schemas/ProvidedPaymentInstrument"
          },
          "shippingAddress": {
            "description": "The container that returns the address where the purchase order will be shipped. ",
            "$ref": "#/components/schemas/ShippingAddress"
          },
          "taxDetails": {
            "type": "array",
            "description": "Detailed tax information for items included in this order.",
            "items": {
              "$ref": "#/components/schemas/TaxDetails"
            }
          },
          "warnings": {
            "type": "array",
            "description": "An array of any process errors or warnings that were generated during the method processing.",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "Type that defines the fields for a checkout session."
      },
      "Coupon": {
        "type": "object",
        "properties": {
          "redemptionCode": {
            "type": "string",
            "description": "The redemption code of the coupon.  <span class=\"tablenote\"><b>Note: </b> There can be only one redemption code per order.</span>"
          }
        },
        "description": "The type that defines the fields for the coupon information.<br><br><span class=\"tablenote\"><b>Note:</b> This container is not returned for the <b>getPurchaseOrder</b> and <b>getGuestPurchaseOrder</b> methods.</span>"
      },
      "CouponRequest": {
        "type": "object",
        "properties": {
          "redemptionCode": {
            "type": "string",
            "description": "The redemption code of the coupon.  <br><br><b>Maximum: </b> one redemption code per order"
          }
        },
        "description": "The type that defines the fields for the coupon information used in the request."
      },
      "CreateSignInCheckoutSessionRequest": {
        "type": "object",
        "properties": {
          "creditCard": {
            "description": "The container that returns the buyer's credit card information.",
            "$ref": "#/components/schemas/CreditCard"
          },
          "lineItemInputs": {
            "type": "array",
            "description": "The container for the line item information fields in an eBay member checkout session. <br><br><b>Maximum number of line items: </b> 10",
            "items": {
              "$ref": "#/components/schemas/LineItemInput"
            }
          },
          "shippingAddress": {
            "description": "The container for the shipping address information in an eBay member checkout session. The Order API supports only domestic shipping. For example, an item purchased on the EBAY_DE marketplace can be shipped only to an address in Germany. <br> <br><span class=\"tablenote\"> <b> Note: </b>If the address cannot be validated, a warning message is  returned along with the response.</span>",
            "$ref": "#/components/schemas/ShippingAddress"
          }
        },
        "description": "The type that defines the fields for creating an eBay member checkout session."
      },
      "CreditCard": {
        "type": "object",
        "properties": {
          "accountHolderName": {
            "type": "string",
            "description": "The name of the card holder under which the credit card was issued. "
          },
          "billingAddress": {
            "description": "The container that returns the billing address of the card holder.  <br> <br><span class=\"tablenote\"> <b> Note: </b>If the address cannot be validated, a warning message will be returned.</span> ",
            "$ref": "#/components/schemas/BillingAddress"
          },
          "brand": {
            "type": "string",
            "description": "The type of the credit card, such as Visa or MasterCard.<br><br>For a list of valid values, see <a href=\"/api-docs/buy/order_v1/types/gct:PaymentMethodBrandEnum \" target=\"_blank \">PaymentMethodBrandEnum</a>."
          },
          "cardNumber": {
            "type": "string",
            "description": "The credit card number on the card. "
          },
          "cvvNumber": {
            "type": "string",
            "description": "The <em> Card Verification Value</em> of the credit card. This value is also known as the <em> card verification code</em> (CVC) or <em> card security code</em> (CSC). <br><br>This is a three-digit number on VISA, MasterCard, and Discover branded credit and debit cards. On American Express branded cards, this is a four-digit numeric code. <br> <br><span class=\"tablenote\"> <b> Note:</b> This number is <em> not</em> the PIN associated with the card.</span> "
          },
          "expireMonth": {
            "type": "integer",
            "description": "The month the credit card expires.",
            "format": "int32"
          },
          "expireYear": {
            "type": "integer",
            "description": "The year the credit card expires.",
            "format": "int32"
          }
        },
        "description": "The type that defines the fields for the credit card that's used to pay for the items. "
      },
      "Error": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "description": "Identifies the type of error."
          },
          "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": "The type that defines the fields for the error messages."
      },
      "ErrorParameter": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The object of the error."
          },
          "value": {
            "type": "string",
            "description": "The value of the object."
          }
        },
        "description": "An array of name/value pairs that provide details regarding the error."
      },
      "EventLocation": {
        "type": "object",
        "properties": {
          "city": {
            "type": "string",
            "description": "The city where the tracking event occurred. "
          },
          "country": {
            "type": "string",
            "description": "The two letter code representing the country of the address where the tracking event occurred. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/ba:CountryCodeEnum'>eBay API documentation</a>"
          },
          "county": {
            "type": "string",
            "description": "The county where the tracking event occurred."
          },
          "postalCode": {
            "type": "string",
            "description": "The postal code where the tracking event occurred."
          },
          "stateOrProvince": {
            "type": "string",
            "description": "The state where the tracking event occurred."
          }
        },
        "description": "The type that defines the fields for the location of a tracking event."
      },
      "Fee": {
        "type": "object",
        "properties": {
          "amount": {
            "description": "A container for the currency type and monetary amount of the fees associated with the line item.",
            "$ref": "#/components/schemas/Amount"
          },
          "feeType": {
            "type": "string",
            "description": "The type of fee associated with the line item. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:FeeEnum'>eBay API documentation</a>"
          }
        },
        "description": "A breakdown of the fees applicable to the line item."
      },
      "Image": {
        "type": "object",
        "properties": {
          "height": {
            "type": "integer",
            "description": "<b> Reserved for future use. </b> ",
            "format": "int32"
          },
          "imageUrl": {
            "type": "string",
            "description": "The URL of the image."
          },
          "width": {
            "type": "integer",
            "description": "<b> Reserved for future use. </b> ",
            "format": "int32"
          }
        },
        "description": "The type the defines the fields for the details of an image, such as size and URL. Currently only <b> imageUrl</b> is getting populated. The <b> height</b> and <b> width</b> were added for future use."
      },
      "ImportTax": {
        "type": "object",
        "properties": {
          "amount": {
            "description": "The total amount of import tax for all line items of an order.",
            "$ref": "#/components/schemas/Amount"
          },
          "importTaxType": {
            "type": "string",
            "description": "This enumeration value indicates the type of import tax applicable to the order. Currently, the only import tax is Goods and Services Tax (indicated by <code>GST</code>) which applies only to Australia and New Zealand where GST is charged to buyers outside of these two countries.<br><br><span class=\"tablenote\"><b>Note:</b> Canada also charges a Goods and Services Tax. However, in this case, <code>GST</code> does not represent an import tax, but rather a Federal Sales Tax that is charged on most items sold. <code>ImportTax</code> will not be returned for Canadian sales transactions.</span> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:ImportTaxTypeEnum'>eBay API documentation</a>"
          }
        },
        "description": "This type provides the type of import tax applicable to the order, and the total amount of tax for all line items in the order."
      },
      "LegacyReference": {
        "type": "object",
        "properties": {
          "legacyItemId": {
            "type": "string",
            "description": "The legacy ID used to identify an item.<br><br>This is used by the Post Order API <a href=\"https://developer.ebay.com/Devzone/post-order/post-order_v2_return__post.html \" target=\"_blank\">Create Return Request</a> method. This call initiates the item return process. For more information on how to use this field in the Post Order API, see <a href=\"/api-docs/buy/static/api-order.html#return-request\">Create a return request</a> in the Buy Integration Guide."
          },
          "legacyOrderId": {
            "type": "string",
            "description": "The legacy ID of the order.  <br><br>This is used by the Post Order API <a href=\"https://developer.ebay.com/Devzone/post-order/post-order_v2_cancellation__post.html \" target=\"_blank\">Submit Cancellation Request</a> method. This method initiates the item cancellation process. For more information on how to use this field in the Post Order API, see <a href=\"/api-docs/buy/static/api-order.html#using\">Using the Post Order API</a>."
          },
          "legacyTransactionId": {
            "type": "string",
            "description": "The legacy ID of the transaction. <br><br>This is used by the Post Order API <a href=\"https://developer.ebay.com/devzone/post-order/post-order_v2_return__post.html \" target=\"_blank\">Create Return Request</a> call. This call initiates the item return process. For more information on how to use this field in the Post Order API, see <a href=\"/api-docs/buy/static/api-order.html#using\">Using the Post Order API</a> in the Buy Integration Guide."
          }
        },
        "description": "The type that defines the fields to support using the <a href=\"https://developer.ebay.com/devzone/post-order/index.html#callindex \">Post Order API</a> for returns and cancellations."
      },
      "LineItem": {
        "type": "object",
        "properties": {
          "addonServices": {
            "type": "array",
            "description": "An array of add-on services for the line item.",
            "items": {
              "$ref": "#/components/schemas/CheckoutAddonService"
            }
          },
          "authenticityVerification": {
            "description": "This container is returned for orders that are eligible for eBay's Authenticity Guarantee service. The seller ships Authenticity Guarantee service items to the authentication partner instead of the buyer. If the item is successfully authenticated, the authenticator will ship the item to the buyer.",
            "$ref": "#/components/schemas/AuthenticityVerificationProgram"
          },
          "baseUnitPrice": {
            "description": "The cost of a single item in this line item. This is the starting point for computing the price during checkout session.<br><br><span class=\"tablenote\"><b> Note: </b>The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the <a href=\"/api-docs/static/rest-request-components.html#HTTP\"><code>X-EBAY-C-MARKETPLACE-ID</code></a> request header specifying the supported marketplace (such as <code>EBAY_GB</code>) to see VAT-inclusive pricing. For more information on VAT, refer to <a href=\"https://www.ebay.co.uk/help/listings/default/vat-obligations-eu?id=4650&st=12&pos=1&query=Your%20VAT%20obligations%20in%20the%20EU&intent=VAT\">VAT Obligations in the EU</a>.</span>",
            "$ref": "#/components/schemas/Amount"
          },
          "fees": {
            "type": "array",
            "description": "A breakdown of the fees applicable to the line item.",
            "items": {
              "$ref": "#/components/schemas/Fee"
            }
          },
          "image": {
            "description": "An eBay-assigned URL of the item image. eBay assigns the URL when the seller uploads the image.",
            "$ref": "#/components/schemas/Image"
          },
          "importDuties": {
            "description": "The total amount of import duties for this line item, which is paid by the buyer when checking out. <br><br><span class=\"tablenote\"><b> Note: </b>This is applicable only for eBay International Shipping (eIS) orders, and eIS is only available to sellers on US marketplace.<br><br> For GSP orders, the import charges will be shown in the <code>shippingOptions.importCharges</code> container.</span>",
            "$ref": "#/components/schemas/Amount"
          },
          "itemId": {
            "type": "string",
            "description": "The eBay identifier of an item. This ID is returned by the <b> Browse</b> and <b> Feed</b> API methods.  The ID must be in RESTful item ID format. <br><br><b> For example: </b> <code> v1|2**********6|5**********4</code> or <code>v1|1**********9|0</code>. <br> <br>For more information about item ID for RESTful APIs, see the <a href=\"/api-docs/buy/static/api-browse.html#Legacy\">Legacy API compatibility</a>.     <br> <br>Each <b> itemId</b> will become a single line item. You can have a maximum of 10 <b> itemId</b>(s) per checkout."
          },
          "lineItemId": {
            "type": "string",
            "description": "A unique eBay-assigned ID value that identifies a line item in a checkout session."
          },
          "netPrice": {
            "description": "The total cost for the items in this line item taking into account the quantity and applying any seller item discounts, such as Buy 1 Get 1, and any coupon that applies to this item. <br> <br><span class=\"tablenote\"> <b> Note:</b> This does not include any shipping discounts, shipping costs, fees, or seller adjustments.</span>",
            "$ref": "#/components/schemas/Amount"
          },
          "promotions": {
            "type": "array",
            "description": "An array of promotions applied to the item of this line item.",
            "items": {
              "$ref": "#/components/schemas/Promotion"
            }
          },
          "quantity": {
            "type": "integer",
            "description": "The number of individual items ordered for this line item. <br><br><span class=\"tablenote\"><b>Note:</b> If a winning bidder is purchasing an auction item, the value of the this field will be returned as <code>1</code>.</span>",
            "format": "int32"
          },
          "seller": {
            "description": "The container that returns the information about the seller, such as their eBay user name.",
            "$ref": "#/components/schemas/Seller"
          },
          "shippingOptions": {
            "type": "array",
            "description": "An array of the shipping methods that are available for the line item. By default, the first one will be selected.",
            "items": {
              "$ref": "#/components/schemas/ShippingOption"
            }
          },
          "shortDescription": {
            "type": "string",
            "description": "This text string is derived from the item condition, item title, and the item aspects (such as size, color, capacity, model, brand, etc.)."
          },
          "taxDetails": {
            "type": "array",
            "description": "A container for the tax information for the line item.<br><br><span class=\"tablenote\"><b> Note: </b>The information in this container is only returned when requested from the GB marketplace, when applicable.</span>",
            "items": {
              "$ref": "#/components/schemas/TaxDetail"
            }
          },
          "title": {
            "type": "string",
            "description": "The seller created title of the item."
          }
        },
        "description": "The type that defines the fields for an individual line item."
      },
      "LineItemInput": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "description": "The eBay identifier of an item. This ID is returned by the <b> Browse</b> and <b> Feed</b> API methods.  The ID must be in RESTful item ID format. <br><br><b> For example: </b> <code> v1|2**********6|5**********4</code> or <code>v1|1**********9|0</code>. <br> <br>For more information about item ID for RESTful APIs, see the <a href=\"/api-docs/buy/static/api-browse.html#Legacy\">Legacy API compatibility</a>.     <br> <br>Each <b> itemId</b> will become a single line item. You can have a maximum of 10 <b> itemId</b>(s) per checkout."
          },
          "quantity": {
            "type": "integer",
            "description": "The quantiy order of the line item.<br><br><span class=\"tablenote\"><b>Note:</b> If a winning bidder is purchasing an auction item, the value of the this field <b>must</b> be <code>1</code> or an error will be returned.</span>",
            "format": "int32"
          }
        },
        "description": "The type that defines the fields for a line item."
      },
      "LineItemReference": {
        "type": "object",
        "properties": {
          "lineItemId": {
            "type": "string",
            "description": "A unique eBay-assigned ID value to identify the line item in a purchase order."
          },
          "quantity": {
            "type": "integer",
            "description": "The number of individual items ordered for this line item, as specified by the buyer.",
            "format": "int32"
          }
        },
        "description": "Type the defines the fields for the line item ID and the quantity."
      },
      "OrderLineItem": {
        "type": "object",
        "properties": {
          "addonServices": {
            "type": "array",
            "description": "An array of add-on services that apply to the order line item.",
            "items": {
              "$ref": "#/components/schemas/AddonService"
            }
          },
          "authenticityVerification": {
            "description": "This container is returned for orders that are eligible for eBay's Authenticity Guarantee program. The seller ships Authenticity Guarantee program items to the authentication partner instead of the buyer. If the item is successfully authenticated, the authenticator will ship the item to the buyer.",
            "$ref": "#/components/schemas/AuthenticityVerificationProgram"
          },
          "baseUnitPrice": {
            "description": "The cost of a single item in this line item.<br><br><span class=\"tablenote\"><b> Note: </b>The price includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the <a href=\"/api-docs/static/rest-request-components.html#HTTP\"><code>X-EBAY-C-MARKETPLACE-ID</code></a> request header specifying the supported marketplace (such as <code>EBAY_GB</code>) to see VAT-inclusive pricing. For more information on VAT, refer to <a href=\"https://www.ebay.co.uk/help/listings/default/vat-obligations-eu?id=4650&st=12&pos=1&query=Your%20VAT%20obligations%20in%20the%20EU&intent=VAT\">VAT Obligations in the EU</a>.</span>",
            "$ref": "#/components/schemas/Amount"
          },
          "fees": {
            "type": "array",
            "description": "A breakdown of the fees applicable to the line item.",
            "items": {
              "$ref": "#/components/schemas/Fee"
            }
          },
          "image": {
            "description": "The URL of the item's image.",
            "$ref": "#/components/schemas/Image"
          },
          "itemId": {
            "type": "string",
            "description": "The identifier of the item."
          },
          "itemOnHold": {
            "type": "boolean",
            "description": "When this value is <code>true</code> it indicates that the item has been put on hold due to a violation of eBay Policy."
          },
          "legacyReference": {
            "description": "The container that returns fields to support using the <a href=\"https://developer.ebay.com/devzone/post-order/index.html#callindex \">Post Order API</a> for returns and cancellations. For information about what is returned in these fields and how to use the Post Order API, see <a href=\"/api-docs/buy/static/api-order.html#using\">Using the Post Order API</a>.",
            "$ref": "#/components/schemas/LegacyReference"
          },
          "lineItemId": {
            "type": "string",
            "description": "The identifier of this line item. This is created by the <a href=\"/api-docs/buy/order/resources/checkout_session/methods/initiateCheckoutSession\">initiateCheckoutSession</a> for a member and  <a href=\"/api-docs/buy/order/resources/guest_checkout_session/methods/initiateGuestCheckoutSession\">initiateGuestCheckoutSession</a> for a guest  calls."
          },
          "lineItemPaymentStatus": {
            "type": "string",
            "description": "An enumeration value that indicates the payment status of this line item. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:LineItemPaymentStatusEnum'>eBay API documentation</a>"
          },
          "lineItemStatus": {
            "type": "string",
            "description": "An enumeration value that indicates the fulfillment state of this line item.  <br><br><span class=\"tablenote\"><b>Note: </b>When there is no tracking information, this status will never change from <code>FULFILLMENT_IN_PROGRESS</code> because without tracking information eBay has no way of knowing if the order was delivered. </span> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:LineItemStatusEnum'>eBay API documentation</a>"
          },
          "netPrice": {
            "description": "The total cost for the items in this line item taking into account the quantity and applying any seller item discounts, such as Buy 1 Get 1, and any coupon that applies to this item. <br> <br><span class=\"tablenote\"><b> Note: </b> This does not include any shipping discounts, shipping costs, or seller adjustments.</span>",
            "$ref": "#/components/schemas/Amount"
          },
          "orderId": {
            "type": "string",
            "description": "The unique order ID for this line item.<br><br><b>Maximum Length:</b> 40 characters"
          },
          "promotions": {
            "type": "array",
            "description": "An array of promotions applied to the items in this line item.",
            "items": {
              "$ref": "#/components/schemas/Promotion"
            }
          },
          "quantity": {
            "type": "integer",
            "description": "The number of individual items in this line item.",
            "format": "int32"
          },
          "seller": {
            "description": "The container for information about the seller offering this item, such as the seller's user name.",
            "$ref": "#/components/schemas/Seller"
          },
          "shippingDetail": {
            "description": "Information about the shipping provider used for this line item.",
            "$ref": "#/components/schemas/ShippingDetail"
          },
          "taxDetails": {
            "type": "array",
            "description": "A container for the tax information for the line item.<br><br><span class=\"tablenote\"><b> Note: </b>The information in this container is only returned when requested from the GB marketplace, when applicable.</span>",
            "items": {
              "$ref": "#/components/schemas/TaxDetail"
            }
          },
          "title": {
            "type": "string",
            "description": "The seller created title of the item."
          }
        },
        "description": "The type that defines the fields for line item information in a purchase order."
      },
      "PaymentInstrument": {
        "type": "object",
        "properties": {
          "brand": {
            "description": "The name of the credit card company (brand).",
            "$ref": "#/components/schemas/PaymentMethodBrand"
          },
          "paymentMethodType": {
            "type": "string",
            "description": "An enumeration value that indicates the method of payment, such as credit card. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:PaymentMethodTypeEnum'>eBay API documentation</a>"
          }
        },
        "description": "The type that defines the fields for the reference information about the payment method."
      },
      "PaymentInstrumentReference": {
        "type": "object",
        "properties": {
          "externalReferenceId": {
            "type": "string",
            "description": "<b>This field is deprecated.</b>"
          },
          "lastFourDigitForCreditCard": {
            "type": "string",
            "description": "The last four digits of the credit card number being used to pay for the items."
          }
        },
        "description": "The type that defines the fields for the payment reference, such as last four digits of a credit card."
      },
      "PaymentMethod": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "Text indicating the payment type. Credit card is the only accepted payment method for Order v1. Therefore, this value will always be <code>CC</code>."
          },
          "logoImage": {
            "description": "The URL of the image of the payment method logo.",
            "$ref": "#/components/schemas/Image"
          },
          "paymentMethodBrands": {
            "type": "array",
            "description": "An array of credit card brands that can be used as the payment method.",
            "items": {
              "$ref": "#/components/schemas/PaymentMethodBrand"
            }
          },
          "paymentMethodMessages": {
            "type": "array",
            "description": "The type that defines the fields for legal messages and buyer consent verification.",
            "items": {
              "$ref": "#/components/schemas/PaymentMethodMessage"
            }
          },
          "paymentMethodType": {
            "type": "string",
            "description": "An enumeration value that indicates the method of payment, such as credit card. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:PaymentMethodTypeEnum'>eBay API documentation</a>"
          }
        },
        "description": "The type that defines the fields for the payment method."
      },
      "PaymentMethodBrand": {
        "type": "object",
        "properties": {
          "logoImage": {
            "description": "The URL of the image of the credit card company (brand).",
            "$ref": "#/components/schemas/Image"
          },
          "paymentMethodBrandType": {
            "type": "string",
            "description": "An enumeration value that indicates the credit card company (brand). For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:PaymentMethodBrandEnum'>eBay API documentation</a>"
          }
        },
        "description": "The type that defines the fields for the credit card company (brand), which can be used as the payment method."
      },
      "PaymentMethodMessage": {
        "type": "object",
        "properties": {
          "legalMessage": {
            "type": "string",
            "description": "Information that eBay is legally obligated to show to the buyer. This field can be null, in which case do nothing. But if this field is not null, the value of this field <b> must</b> appear on the checkout page. <br> <br><span class=\"tablenote\"> <b> Note: </b> This field is not used for US purchases.</span>"
          },
          "privacyPolicyWebUrl": {
            "type": "string",
            "description": "Reserved for future use. "
          },
          "requiredForUserConfirmation": {
            "type": "boolean",
            "description": "Reserved for future use. "
          },
          "userAgreementWebUrl": {
            "type": "string",
            "description": "Reserved for future use. "
          }
        },
        "description": "The type that defines the fields for legal messages and buyer consent verification."
      },
      "PricingSummary": {
        "type": "object",
        "properties": {
          "additionalSavings": {
            "description": "The total amount of the coupon discounts in the purchase order.",
            "$ref": "#/components/schemas/Amount"
          },
          "addonServiceFee": {
            "description": "The total fee for add-on services among all line items.",
            "$ref": "#/components/schemas/Amount"
          },
          "adjustment": {
            "description": "The total amount of any seller adjustments. An adjustment can be a credit or debit. This is used to catch any monetary changes to the purchase order that are not already captured in one of the other fields.",
            "$ref": "#/components/schemas/Adjustment"
          },
          "deliveryCost": {
            "description": "The shipping cost for all of the line items after any shipping discounts are applied. <br><br>Let's say there are four line items, and the shipping cost for each line item is $5. One of the line items qualifies for free shipping. The <b> deliveryCost</b> value would be $15, which is the total cost for shipping all of the line items after the discount is appiled.<br><br><span class=\"tablenote\"><b> Note: </b>The cost includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the <a href=\"/api-docs/static/rest-request-components.html#HTTP\"><code>X-EBAY-C-MARKETPLACE-ID</code></a> request header specifying the supported marketplace (such as <code>EBAY_GB</code>) to see VAT-inclusive pricing. For more information on VAT, refer to <a href=\"https://www.ebay.co.uk/help/listings/default/vat-obligations-eu?id=4650&st=12&pos=1&query=Your%20VAT%20obligations%20in%20the%20EU&intent=VAT\">VAT Obligations in the EU</a>.</span>",
            "$ref": "#/components/schemas/Amount"
          },
          "deliveryDiscount": {
            "description": "The total amount of the order shipping discounts for all of the line items, such as free shipping.<br><br>Let's say there are four line items, and the shipping cost for each line item is $5. One of the line items qualifies for free shipping. The <b> deliveryDiscounts</b> value would be 5, which is the value of the free shipping discount. <br><br><span class=\"tablenote\"> <b> Note: </b> This will always be a negative number.</span>",
            "$ref": "#/components/schemas/Amount"
          },
          "fee": {
            "description": "The total amount of any fees for all the line items, such as a recycling fee.",
            "$ref": "#/components/schemas/Amount"
          },
          "importCharges": {
            "description": "The sum of the <a href=\"https://pages.ebay.com/seller-center/shipping/global-shipping-program.html\">Global Shipping Program</a> import charges for all line items.",
            "$ref": "#/components/schemas/Amount"
          },
          "importTax": {
            "description": "This container provides the type of import tax applicable to the order, and the total amount of tax for all line items in the order.",
            "$ref": "#/components/schemas/ImportTax"
          },
          "priceDiscount": {
            "description": "The total amount of all the item discounts for all line items, such as Buy 1 Get 1 free. <br><br>Let's say there were 4 line items. One of the line items qualifies for free shipping, which is $5 and two items qualify for a Buy 1 Get 1 offer, which is a $6 and a $15 discount. The <b> priceDiscount</b> value would be 21, which is the total of the two Buy 1 Get 1 discounts. The shipping discount is not included. It is returned in the <b>deliveryDiscount</b> field. <br><br><span class=\"tablenote\"> <b> Note: </b> This will always be a negative number.</span>",
            "$ref": "#/components/schemas/Amount"
          },
          "priceSubtotal": {
            "description": "The total amount for all the line items taking into account the item quantity but before adding in taxes and shipping costs, or applying discounts, fees, and adjustments.<br><br><span class=\"tablenote\"><b> Note: </b>This price does not include the value-added tax (VAT) collected in applicable jurisdictions. For more information on VAT, refer to <a href=\"https://www.ebay.co.uk/help/listings/default/vat-obligations-eu?id=4650&st=12&pos=1&query=Your%20VAT%20obligations%20in%20the%20EU&intent=VAT\">VAT Obligations in the EU</a>.</span>",
            "$ref": "#/components/schemas/Amount"
          },
          "tax": {
            "description": "The total amount of the taxes for all the line items.",
            "$ref": "#/components/schemas/Amount"
          },
          "total": {
            "description": "The total of the purchase order. <br><br> <b>total</b> = <code> priceSubtotal</code> + <code> baseDeliveryCost</code> + <code> tax</code> + <code> importCharges</code> + <code> deliveryDiscounts</code> + <code> priceDiscount</code> + <code> adjustment</code>.  <br> <br><span class=\"tablenote\">  <b> Note: </b> <b> deliveryDiscounts</b> and <b> priceDiscount</b> are negative numbers.</span>",
            "$ref": "#/components/schemas/Amount"
          }
        },
        "description": "The type that defines the fields for the costs, discounts, and seller fees and adjustments of all the line items."
      },
      "Promotion": {
        "type": "object",
        "properties": {
          "discount": {
            "description": "The discount amount on the applied promotional offer.",
            "$ref": "#/components/schemas/Amount"
          },
          "discountPercentage": {
            "type": "string",
            "description": "<b>Note: </b>This field is not return in the purchase order methods response. "
          },
          "message": {
            "type": "string",
            "description": "The text for the promotion title, which describes the promotion. For example, Buy 1 Get 1."
          },
          "promotionCode": {
            "type": "string",
            "description": "An identifier of the promotion that was generated by the system when the promotion was created.<br><br><span class=\"tablenote\"><b>Note:</b> No data is returned in this field for the <b>getPurchaseOrder</b> and <b>getGuestPurchaseOrder</b> methods.</span>"
          },
          "promotionType": {
            "type": "string",
            "description": "Indicates the kind of promotion. Some examples are: <code>SellerDiscountedPromotionalOffer</code> and <code>COUPON</code>."
          }
        },
        "description": "The type that defines the fields for the details of an item promotion."
      },
      "ProvidedPaymentInstrument": {
        "type": "object",
        "properties": {
          "paymentInstrumentReference": {
            "description": "The container that returns the payment reference, such as last four digits of a credit card.",
            "$ref": "#/components/schemas/PaymentInstrumentReference"
          },
          "paymentMethodBrand": {
            "description": "The container that returns the name and logo of the payment company (brand), such as Visa.",
            "$ref": "#/components/schemas/PaymentMethodBrand"
          },
          "paymentMethodType": {
            "type": "string",
            "description": "An enumeration value that indicates the method of payment, such as CREDIT_CARD. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:PaymentMethodTypeEnum'>eBay API documentation</a>"
          }
        },
        "description": "The type that defines the fields for reference information about the payment method. This is returned only if you have used the <b> updatePaymentInfo</b> method to change the payment method."
      },
      "PurchaseOrder": {
        "type": "object",
        "properties": {
          "appliedCoupons": {
            "type": "array",
            "description": "The container that returns the information for the coupons that were applied in the order.<br><br><span class=\"tablenote\"><b>Note:</b> This container is not returned for the <b>getPurchaseOrder</b> and <b>getGuestPurchaseOrder</b> methods.</span>",
            "items": {
              "$ref": "#/components/schemas/Coupon"
            }
          },
          "lineItems": {
            "type": "array",
            "description": "An array of line items in the purchase order.",
            "items": {
              "$ref": "#/components/schemas/OrderLineItem"
            }
          },
          "paymentInstrument": {
            "description": "The payment method used for the purchase order. ",
            "$ref": "#/components/schemas/PaymentInstrument"
          },
          "pricingSummary": {
            "description": "The container that returns the monetary details of the order.",
            "$ref": "#/components/schemas/PricingSummary"
          },
          "purchaseOrderCreationDate": {
            "type": "string",
            "description": "The timestamp of when the purchase order was created."
          },
          "purchaseOrderId": {
            "type": "string",
            "description": "The unique identifier of the purchase order. This value was returned in the <b> purchaseOrderId</b> field by the <a href=\"/api-docs/buy/order/resources/guest_checkout_session/methods/placeOrder\">placeOrder</a> method."
          },
          "purchaseOrderPaymentStatus": {
            "type": "string",
            "description": "An enumeration value that indicates the status of the payment for the purchase order. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:PurchaseOrderPaymentStatusEnum'>eBay API documentation</a>"
          },
          "purchaseOrderStatus": {
            "type": "string",
            "description": "The container for the current status of the buyer's payment and any refund that applies to the purchase order. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:PurchaseOrderStatusEnum'>eBay API documentation</a>"
          },
          "purchaseOrderWebUrl": {
            "type": "string",
            "description": "The URL to the Order Details page on eBay."
          },
          "refundedAmount": {
            "description": "The total amount of any refunds for purchase order.",
            "$ref": "#/components/schemas/Amount"
          },
          "shippingAddress": {
            "description": "The shipping address for the purchase order.",
            "$ref": "#/components/schemas/ShippingAddress"
          },
          "shippingFulfillments": {
            "type": "array",
            "description": "An array of the shipping providers and the purchase order delivery details.",
            "items": {
              "$ref": "#/components/schemas/ShippingFulfillment"
            }
          },
          "taxDetails": {
            "type": "array",
            "description": "Detailed tax information for items included in this order.",
            "items": {
              "$ref": "#/components/schemas/TaxDetails"
            }
          },
          "warnings": {
            "type": "array",
            "description": "An array of warning messages. These type of errors do not prevent the call from executing but should be checked.",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "The type that defines the fields for a purchase order, including line items, costs and charges, payment method, and the purchase order status."
      },
      "PurchaseOrderSummary": {
        "type": "object",
        "properties": {
          "purchaseOrderHref": {
            "type": "string",
            "description": "The URI of the purchase order."
          },
          "purchaseOrderId": {
            "type": "string",
            "description": "A unique identifier of the purchase order. When a checkout session completes, a purchase order ID is generated but this does <b> not</b> indicate that the item has been paid for. <br><br><span class=\"tablenote\"><b>Note: </b>If there is a problem with the payment information, the purchase order ID will be returned and the <b>PurchaseOrderPaymentStatusEnum</b> field will return <code>FAILED</code>.</span>"
          },
          "purchaseOrderPaymentStatus": {
            "type": "string",
            "description": "An enumeration value that indicates the payment status for the purchase order. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:PurchaseOrderPaymentStatusEnum'>eBay API documentation</a>"
          },
          "warnings": {
            "type": "array",
            "description": "An array of warning messages.",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "The type that defines the fields for the summary of a purchase order."
      },
      "Region": {
        "type": "object",
        "properties": {
          "regionName": {
            "type": "string",
            "description": "A localized text string that indicates the name of the region. Taxes are generally charged at the state/province level or at the country level in the case of VAT tax. "
          },
          "regionType": {
            "type": "string",
            "description": "An enumeration value that indicates the type of region for the tax jurisdiction. <br><br><b> Valid Values: </b> <ul><li><b> STATE_OR_PROVINCE </b> - Indicates the region is a state or province within a country, such as California or New York in the US, or Ontario or Alberta in Canada.</li><li><b> COUNTRY </b> - Indicates the region is a single country.</li></ul>  Code so that your app gracefully handles any future changes to this list. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/ba:RegionTypeEnum'>eBay API documentation</a>"
          }
        },
        "description": "This type is used to provide region details for a tax jurisdiction."
      },
      "Seller": {
        "type": "object",
        "properties": {
          "feedbackPercentage": {
            "type": "string",
            "description": "The percentage of the total positive feedback."
          },
          "feedbackScore": {
            "type": "integer",
            "description": "The feedback score of the seller. This value is based on the ratings from eBay members that bought items from this seller.",
            "format": "int32"
          },
          "sellerAccountType": {
            "type": "string",
            "description": "Indicates if the seller is a business or an individual. This is determined when the seller registers with eBay. If they register for a business account, this value will be BUSINESS. If they register for a private account, this value will be INDIVIDUAL. This designation is required by the tax laws in some countries.  <br><br> This field is returned only on the following sites. <br><br> EBAY_AT,  EBAY_BE,  EBAY_CH,  EBAY_DE,  EBAY_ES,  EBAY_FR,  EBAY_GB,  EBAY_IE,   EBAY_IT,  EBAY_PL<br><br><b> Valid values:</b><br><ul><li> BUSINESS</li><li> INDIVIDUAL</li></ul>Code so that your app gracefully handles any future changes to this list. "
          },
          "username": {
            "type": "string",
            "description": "The user name created by the seller for use on eBay."
          }
        },
        "description": "The type that defines the fields for the basic seller information."
      },
      "ShipmentTrackingEvents": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "description": "A string describing the tracking event. <br><br><b> For example: </b> <code>On FedEx vehicle for delivery</code>"
          },
          "eventDate": {
            "type": "string",
            "description": "The date of the shipment tracking event.  <br><br><b>UTC Format: </b> yyyy-MM-ddThh:00:00.000Z  <br><br><b> For example: </b> 2019-03-01T12:12:00.000Z"
          },
          "eventType": {
            "type": "string",
            "description": "A normalized string for shipment tracking event. <br><br><b> For example: </b> <code>OUT_FOR_DELIVERY</code>"
          },
          "location": {
            "description": "Where the shipment tracking event occurred. <br><br><b> For example: </b> The city, state, postal code, and country of where the package was delivered.",
            "$ref": "#/components/schemas/EventLocation"
          }
        },
        "description": "The type that defines the fields for the details of a shipping event, such as <code>DELIVERED</code>."
      },
      "ShippingAddress": {
        "type": "object",
        "properties": {
          "addressLine1": {
            "type": "string",
            "description": "The first line of the street address where the item is being shipped."
          },
          "addressLine2": {
            "type": "string",
            "description": "The second line of the street address where the item is being shipped. This optional field can be used for information such as 'Suite Number' or 'Apt Number'."
          },
          "city": {
            "type": "string",
            "description": "The city of the address where the item is being shipped."
          },
          "country": {
            "type": "string",
            "description": "The two letter code representing the country of the address.  For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/ba:CountryCodeEnum'>eBay API documentation</a>"
          },
          "county": {
            "type": "string",
            "description": "The county of the address where the item is being shipped."
          },
          "phoneNumber": {
            "type": "string",
            "description": "The phone number of the person receiving the package."
          },
          "postalCode": {
            "type": "string",
            "description": "The postal code of the address where the item is being shipped."
          },
          "recipient": {
            "type": "string",
            "description": "Name of the person receiving the package."
          },
          "stateOrProvince": {
            "type": "string",
            "description": "The state or province of the address where the item is being shipped."
          }
        },
        "description": "The type that defines the fields for a shipping address. For restrictions, see <a href=\"/api-docs/buy/order/overview.html#Shipping\">Shipping restrictions</a>."
      },
      "ShippingAddressImpl": {
        "type": "object",
        "properties": {
          "addressLine1": {
            "type": "string",
            "description": "The first line of the street address. <br><br><b> Maximun characters: </b> <ul><li>AU, CA, & US: 40</li> <li>DE & GB: 35</li> <li>All other marketplaces: 50</li></ul>"
          },
          "addressLine2": {
            "type": "string",
            "description": "The second line of the street address where the item is being shipped. This optional field can be used for information such as 'Suite Number' or 'Apt Number'."
          },
          "city": {
            "type": "string",
            "description": "The city of the address."
          },
          "country": {
            "type": "string",
            "description": "The two letter code representing the country of the address.  For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/ba:CountryCodeEnum'>eBay API documentation</a>"
          },
          "county": {
            "type": "string",
            "description": "The county of the address."
          },
          "phoneNumber": {
            "type": "string",
            "description": "The phone number of the person receiving the package. <br><br><span class=\"tablenote\"><b>Note: </b> It is highly recommended that when entering the phone number you include the country code. <br><br>For example, if a US phone number is <code>4********4</code> you would enter <code>+14********4</code>. If you do not include this code, the service will use the country specified in the <b> country</b> field. <br><br>You can find the country code at <a href=\"https://countrycode.org/\">https://countrycode.org</a>.</span>"
          },
          "postalCode": {
            "type": "string",
            "description": "The postal code of the address."
          },
          "recipient": {
            "type": "string",
            "description": "Full name of the person receiving the purchase order."
          },
          "stateOrProvince": {
            "type": "string",
            "description": "The state or province of the address. <p><span class=\"tablenote\"><b>Note: </b> For the US marketplace, this is a 2 character value. For a list of these, see <a href=\"https://www.ups.com/worldshiphelp/WS15/ENU/AppHelp/Codes/State_Province_Codes.htm\">US State and Canada Province Codes</a>. </span>"
          }
        },
        "description": "The type that defines the shipping address fields.  <br> <br><span class=\"tablenote\"> <b> Note: </b>If the address cannot be validated, a warning message is be returned along with the response.</span>"
      },
      "ShippingDetail": {
        "type": "object",
        "properties": {
          "ebayShipping": {
            "type": "boolean",
            "description": "This indicates the shipping cost of the authenticated item, which the buyer paid to eBay."
          },
          "maxEstimatedDeliveryDate": {
            "type": "string",
            "description": "The end of the date range in which the purchase order is expected to be delivered to the shipping address (final destination)."
          },
          "minEstimatedDeliveryDate": {
            "type": "string",
            "description": "The beginning of the date range in which the purchase order is expected to be delivered to the shipping address  (final destination)."
          },
          "shippingCarrierCode": {
            "type": "string",
            "description": "The shipping provider, such as FedEx, or USPS for the line item."
          },
          "shippingServiceCode": {
            "type": "string",
            "description": "A name of a shipping type. For example, Priority Mail Express (provided by USPS) or FedEx International Priority (Provided by FedEx)."
          }
        },
        "description": "The type that defines the fields for the shipping information, such as delivery date estimates and shipping provider."
      },
      "ShippingFulfillment": {
        "type": "object",
        "properties": {
          "actualDeliveryDate": {
            "type": "string",
            "description": "The date the purchase order was delivered."
          },
          "lineItemReferences": {
            "type": "array",
            "description": "The container the returns the fields for the line item ID and the quantity.",
            "items": {
              "$ref": "#/components/schemas/LineItemReference"
            }
          },
          "maxEstimatedDeliveryDate": {
            "type": "string",
            "description": "The end of the date range in which the purchase order is expected to be delivered to the shipping address."
          },
          "minEstimatedDeliveryDate": {
            "type": "string",
            "description": "The beginning of the date range in which the purchase order is expected to be delivered to the shipping address."
          },
          "shipmentTrackingEvents": {
            "type": "array",
            "description": "The container that returns all the shipment tracking events.",
            "items": {
              "$ref": "#/components/schemas/ShipmentTrackingEvents"
            }
          },
          "shipmentTrackingNumber": {
            "type": "string",
            "description": "The shipping provider number associated with the purchase order that can be used to track the package."
          },
          "shipmentTrackingUrl": {
            "type": "string",
            "description": "The URL of the shipping provider's shipment tracking page."
          },
          "shippedDate": {
            "type": "string",
            "description": "The date the seller gave the purchase order to the shipping provider."
          },
          "shippingCarrierCode": {
            "type": "string",
            "description": "A name of the shipping provider, such as FedEx, or USPS."
          },
          "shippingServiceCode": {
            "type": "string",
            "description": "A name of a shipping type. For example, Priority Mail Express (provided by USPS) or FedEx International Priority (Provided by FedEx)."
          }
        },
        "description": "The type that defines the fields for the shipping details."
      },
      "ShippingOption": {
        "type": "object",
        "properties": {
          "baseDeliveryCost": {
            "description": "The shipping cost using this shipping option, for this line item, before any shipping discounts are applied.<br><br><span class=\"tablenote\"><b> Note: </b>The cost includes the value-added tax (VAT) for applicable jurisdictions when requested from supported marketplaces. In this case, users must pass the <a href=\"/api-docs/static/rest-request-components.html#HTTP\"><code>X-EBAY-C-MARKETPLACE-ID</code></a> request header specifying the supported marketplace (such as <code>EBAY_GB</code>) to see VAT-inclusive pricing. For more information on VAT, refer to <a href=\"https://www.ebay.co.uk/help/listings/default/vat-obligations-eu?id=4650&st=12&pos=1&query=Your%20VAT%20obligations%20in%20the%20EU&intent=VAT\">VAT Obligations in the EU</a>.</span>",
            "$ref": "#/components/schemas/Amount"
          },
          "deliveryDiscount": {
            "description": "The monetary value of any delivery discount. ",
            "$ref": "#/components/schemas/Amount"
          },
          "ebayShipping": {
            "type": "boolean",
            "description": "This indicates the shipping cost of the authenticated item. The cost of the shipping will be paid to eBay."
          },
          "importCharges": {
            "description": "The <a href=\"https://pages.ebay.com/seller-center/shipping/global-shipping-program.html\">Global Shipping Program</a> import charges for for this line item. <br><br><span class=\"tablenote\"> <b> Note: </b>US sellers are transitioning from GSP to eBay International Shipping (eIS), and for any seller already transitioned to eIS, import charges will be shown in the <code>ImportDuties</code> container instead.</span>",
            "$ref": "#/components/schemas/Amount"
          },
          "maxEstimatedDeliveryDate": {
            "type": "string",
            "description": "The end of the date range in which the purchase order is expected to be delivered to the shipping address."
          },
          "minEstimatedDeliveryDate": {
            "type": "string",
            "description": "The beginning of the date range in which the purchase order is expected to be delivered to the shipping address."
          },
          "selected": {
            "type": "boolean",
            "description": "Indicates if the shipping method is selected."
          },
          "shippingCarrierCode": {
            "type": "string",
            "description": "The shipping provider, such as FedEx, or USPS for the line item."
          },
          "shippingOptionId": {
            "type": "string",
            "description": "A unique ID for the selected shipping option/method."
          },
          "shippingServiceCode": {
            "type": "string",
            "description": "A name of a shipping type. For example, Priority Mail Express (provided by USPS) or FedEx International Priority (Provided by FedEx)."
          }
        },
        "description": "The type that defines the fields for the shipping options."
      },
      "TaxClassificationDetail": {
        "type": "object",
        "properties": {
          "amount": {
            "description": "A container for the currency type and monetary amount of the tax collected for an item.",
            "$ref": "#/components/schemas/Amount"
          },
          "taxType": {
            "type": "string",
            "description": "Indicates the type of tax that has been collected for the item. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:TaxType'>eBay API documentation</a>"
          }
        },
        "description": "Provides detailed information about the tax that has been collected for an item."
      },
      "TaxDetail": {
        "type": "object",
        "properties": {
          "includedInPrice": {
            "type": "boolean",
            "description": "A field that indicates whether tax was applied for the cost of the item and its shipping."
          },
          "taxJurisdiction": {
            "description": "A container that returns the tax jurisdiction information.",
            "$ref": "#/components/schemas/TaxJurisdiction"
          },
          "taxType": {
            "type": "string",
            "description": "A field that indicates the type of tax that may be collected for the item. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:TaxType'>eBay API documentation</a>"
          }
        },
        "description": "A type that defines the tax fields.<br><br><span class=\"tablenote\"><b> Note: </b>The information in these fields is only returned when requested from the GB marketplace, when applicable.</span>"
      },
      "TaxDetails": {
        "type": "object",
        "properties": {
          "amount": {
            "description": "A container for the currency type and monetary amount of the tax item.",
            "$ref": "#/components/schemas/Amount"
          },
          "taxClassification": {
            "type": "string",
            "description": "Specifies what the tax item pertains to, such as a tangible object (<code>ITEM_TAX</code>), a service (<code>SERVICE_TAX</code>), or shipping fees (<code>SHIPPING_TAX</code>). For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:TaxClassificationEnum'>eBay API documentation</a>"
          },
          "taxClassificationDetails": {
            "type": "array",
            "description": "Provides a detailed accounting, by <code>TaxType</code>, of taxes collected for each item within an order.",
            "items": {
              "$ref": "#/components/schemas/TaxClassificationDetail"
            }
          }
        },
        "description": "Provides detailed information for taxes collected for each item within an order."
      },
      "TaxJurisdiction": {
        "type": "object",
        "properties": {
          "region": {
            "description": "The region of the tax jurisdiction.",
            "$ref": "#/components/schemas/Region"
          },
          "taxJurisdictionId": {
            "type": "string",
            "description": "The identifier of the tax jurisdiction."
          }
        },
        "description": "The type that defines the fields for the tax jurisdiction details."
      },
      "UpdateAddonServicesRequest": {
        "type": "object",
        "properties": {
          "addonServices": {
            "type": "array",
            "description": "An array of add-on services for the line item specified in the <b>lineItemId</b> field.",
            "items": {
              "$ref": "#/components/schemas/AddonServiceInput"
            }
          },
          "lineItemId": {
            "type": "string",
            "description": "The unique identifier that identifies a line item in a checkout session."
          }
        },
        "description": "The type that defines the add-on services in the request."
      },
      "UpdatePaymentInformation": {
        "type": "object",
        "properties": {
          "creditCard": {
            "description": "Container for the buyer's credit card information.",
            "$ref": "#/components/schemas/CreditCard"
          }
        },
        "description": "The type that defines the fields for payment information."
      },
      "UpdateQuantity": {
        "type": "object",
        "properties": {
          "lineItemId": {
            "type": "string",
            "description": "A unique eBay-assigned ID value that identifies a line item in a purchase order."
          },
          "quantity": {
            "type": "integer",
            "description": "The number of individual items ordered in this line item, as specified by the buyer.",
            "format": "int32"
          }
        },
        "description": "The type that defines the fields used to update the quantity of a line item."
      },
      "UpdateShippingOption": {
        "type": "object",
        "properties": {
          "lineItemId": {
            "type": "string",
            "description": "A unique eBay-assigned ID value that identifies the line item in a checkout session."
          },
          "shippingOptionId": {
            "type": "string",
            "description": "A unique ID for the selected shipping option/method.<br><br><span class=\"tablenote\"><b>Note: </b> A list of valid shipping option IDs for a given line item can be retrieved using the <b>getCheckoutSession</b> or <b>initiateCheckoutSession</b> method.</span>"
          }
        },
        "description": "The type that defines the fields used to update the shipping option of a line item."
      }
    },
    "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/buy.order": "View and manage your purchases",
              "https://api.ebay.com/oauth/api_scope/buy.order.readonly": "View your order details"
            }
          }
        }
      }
    }
  }
}