brandon14/ebay-sdk-php

View on GitHub
api-specs/buy_order_v2_oas3.yaml

Summary

Maintainability
Test Coverage
---
openapi: "3.0.0"
info:
  title: "Order API"
  description: "<span class=\"tablenote\"><b>Note:</b> The Order API (v2) currently\
    \ only supports the guest payment/checkout flow. If you need to support member\
    \ payment/checkout flow, use the <a href=\"/api-docs/buy/order_v1/resources/methods\"\
    >v1_beta 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 shoppers 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://go.developer.ebay.com/api-license-agreement"
  version: "v2.1.0"
servers:
- url: "https://apix.ebay.com{basePath}"
  description: "Production"
  variables:
    basePath:
      default: "/buy/order/v2"
- url: "https://api.ebay.com{basePath}"
  description: "Production"
  variables:
    basePath:
      default: "/buy/order/v2"
paths:
  /guest_checkout_session/{checkoutSessionId}/apply_coupon:
    post:
      tags:
      - "guest_checkout_session"
      description: "<span class=\"tablenote\"><b>Note:</b> The Order API (v2) currently\
        \ only supports the guest payment/checkout flow. If you need to support member\
        \ payment/checkout flow, use the <a href=\"/api-docs/buy/order_v1/resources/methods\"\
        >v1_beta version</a> of the Order API.</span><br /><br /><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> This method is only available to select developers approved\
        \ by business units.<br /><br />This method adds a coupon to an eBay guest\
        \ checkout session and applies it to all the eligible items in the order.<br\
        \ /><br />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.<br /><br />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.<br /><br />The URLs for this method are:<ul><li><b>Production\
        \ URL:</b> <code>https://apix.ebay.com/buy/order/v2/guest_checkout_session/{checkoutSessionId}/apply_coupon</code></li><li><b>Sandbox\
        \ URL:</b> <code>https://apix.sandbox.ebay.com/buy/order/v2/guest_checkout_session/{checkoutSessionId}/apply_coupon</code></li></ul>"
      operationId: "applyGuestCoupon"
      parameters:
      - name: "checkoutSessionId"
        in: "path"
        description: "The eBay-assigned session ID, for a specific eBay marketplace,\
          \ that is returned by the <b> initiateGuestCheckoutSession</b> 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-MARKETPLACE-ID"
        in: "header"
        description: "A header that identifies the user's business context and is\
          \ specified using a marketplace ID value.<br /><br /><span class=\"tablenote\"\
          ><b>Note:</b> This header does <i>not</i> indicate a language preference\
          \ or consumer location.</span><br /><br />See <a href=\"/api-docs/static/rest-request-components.html#marketpl\"\
          \ target=\"_blank\">Marketplace ID values</a> for a list of supported values."
        required: true
        schema:
          type: "string"
      requestBody:
        description: "The container for the fields used to apply a coupon to a guest\
          \ checkout session."
        content:
          application/json:
            schema:
              description: "The container for the fields used to apply a coupon to\
                \ a guest checkout session."
              $ref: "#/components/schemas/CouponRequest"
        required: false
      responses:
        200:
          description: "OK"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GuestCheckoutSessionResponseV2"
        400:
          description: "Bad Request"
          x-response-codes:
            errors:
              15025:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "The App is not authorized to access this resource."
              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."
              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}."
              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."
              15032:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "After using the 'initiateGuestPayment' call, you cannot\
                  \ make changes to the cart. If you need to change the cart, you\
                  \ must start over using the 'initiateGuestCheckoutSession' call."
              16024:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "The coupon provided could not be applied. You may proceed\
                  \ with this session or provide another coupon."
              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. Correct the value and resubmit the call."
              15003:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "The checkout session requested does not exist."
        500:
          description: "Internal Error"
          x-response-codes:
            errors:
              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."
              15000:
                domain: "API_ORDER"
                category: "APPLICATION"
                description: "There was a problem with an eBay internal system or\
                  \ process. Contact eBay developer support for assistance."
        403:
          description: "Access Forbidden"
        404:
          description: "Resource Not Found"
        409:
          description: "Conflict"
          x-response-codes:
            errors:
              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."
              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."
              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."
              15021:
                domain: "API_ORDER"
                category: "BUSINESS"
                description: "This checkout session cannot be updated because the\
                  \ order has already been placed."
              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."
              15027:
                domain: "API_ORDER"
                category: "BUSINESS"
                description: "The value {fieldValue} is not supported for the {fieldName}.\
                  \ The supported values are: {supportedValues}."
              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."
      security:
      - api_auth:
        - "https://api.ebay.com/oauth/api_scope/buy.guest.order"
  /guest_checkout_session/{checkoutSessionId}:
    get:
      tags:
      - "guest_checkout_session"
      description: "<span class=\"tablenote\"><b>Note:</b> The Order API (v2) currently\
        \ only supports the guest payment/checkout flow. If you need to support member\
        \ payment/checkout flow, use the <a href=\"/api-docs/buy/order_v1/resources/methods\"\
        >v1_beta version</a> of the Order API.</span><br /><br /><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> This method is only available to select developers approved\
        \ by business units.<br /><br />This method returns the details of the specified\
        \ guest checkout session. The <b>checkoutSessionId</b> is passed in as a URI\
        \ parameter and is required. This method has no request payload.<br /><br\
        \ />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.<br /><br />The URLs for this\
        \ method are:<ul><li><b>Production URL:</b> <code>https://apix.ebay.com/buy/order/v2/guest_checkout_session/{checkoutSessionId}</code></li><li><b>Sandbox\
        \ URL:</b> <code>https://apix.sandbox.ebay.com/buy/order/v2/guest_checkout_session/{checkoutSessionId}</code></li></ul>"
      operationId: "getGuestCheckoutSession"
      parameters:
      - name: "checkoutSessionId"
        in: "path"
        description: "The eBay-assigned session ID, for a specific eBay marketplace,\
          \ that is returned by the <b> initiateGuestCheckoutSession</b> 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-MARKETPLACE-ID"
        in: "header"
        description: "A header that identifies the user's business context and is\
          \ specified using a marketplace ID value.<br /><br /><span class=\"tablenote\"\
          ><b>Note:</b> This header does <i>not</i> indicate a language preference\
          \ or consumer location.</span><br /><br />See <a href=\"/api-docs/static/rest-request-components.html#marketpl\"\
          \ target=\"_blank\">Marketplace ID values</a> for a list of supported values."
        required: true
        schema:
          type: "string"
      responses:
        200:
          description: "OK"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GuestCheckoutSessionResponseV2"
          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:
              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}."
              15003:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "The checkout session requested does not exist."
        500:
          description: "Internal 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."
        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}."
      security:
      - api_auth:
        - "https://api.ebay.com/oauth/api_scope/buy.guest.order"
  /guest_checkout_session/initiate:
    post:
      tags:
      - "guest_checkout_session"
      description: "<span class=\"tablenote\"><b>Note:</b> The Order API (v2) currently\
        \ only supports the guest payment/checkout flow. If you need to support member\
        \ payment/checkout flow, use the <a href=\"/api-docs/buy/order_v1/resources/methods\"\
        >v1_beta version</a> of the Order API.</span><br /><br /><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> This method is only available to select developers approved\
        \ by business units.<br /><br />This method creates an eBay guest checkout\
        \ session, which is the first step in performing a checkout. The method returns\
        \ a <b>checkoutSessionId</b> that you use as a URI parameter in subsequent\
        \ guest 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\"\
        ><font color=\"006600\"><b>TIP:</b></font> 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><br\
        \ /><br />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.<br /><br />The URLs for this method are:<ul><li><b>Production\
        \ URL:</b> <code>https://apix.ebay.com/buy/order/v2/guest_checkout_session/initiate</code></li><li><b>Sandbox\
        \ URL:</b> <code>https://apix.sandbox.ebay.com/buy/order/v2/guest_checkout_session/initiate</code></li></ul>"
      operationId: "initiateGuestCheckoutSession"
      parameters:
      - name: "X-EBAY-C-ENDUSERCTX"
        in: "header"
        description: "A header that is used to specify the <b>affiliateCampaignId</b>,\
          \ and optionally the <b>affiliateReferenceId</b>, to enable revenue sharing\
          \ when the buyer purchases items.<br /><br /><span class=\"tablenote\"><font\
          \ color=\"006600\"><b>TIP:</b></font> See <a href=\"/api-docs/buy/static/api-browse.html#Headers\"\
          \ target=\"_blank\">Request headers</a> in the Buying Integration Guide\
          \ for more information.</span>"
        required: false
        schema:
          type: "string"
      - name: "X-EBAY-C-MARKETPLACE-ID"
        in: "header"
        description: "A header that identifies the user's business context and is\
          \ specified using a marketplace ID value.<br /><br /><span class=\"tablenote\"\
          ><b>Note:</b> This header does <i>not</i> indicate a language preference\
          \ or consumer location.</span><br /><br />See <a href=\"/api-docs/static/rest-request-components.html#marketpl\"\
          \ target=\"_blank\">Marketplace ID values</a> for a list of supported values."
        required: true
        schema:
          type: "string"
      requestBody:
        description: "The container for the fields used by the <b>initiateGuestCheckoutSession</b>\
          \ method."
        content:
          application/json:
            schema:
              description: "The container for the fields used by the <b>initiateGuestCheckoutSession</b>\
                \ method."
              $ref: "#/components/schemas/CreateGuestCheckoutSessionRequestV2"
        required: false
      responses:
        200:
          description: "OK"
          headers:
            X-EBAY-SECURITY-SIGNATURE:
              schema:
                type: "string"
                description: "A token that is used to launch the Checkout with eBay\
                  \ widget."
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GuestCheckoutSessionResponseV2"
          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."
              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."
              15007:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "The address provided may be incorrect. You may proceed\
                  \ with this address or provide a correct address."
              15055:
                domain: "API_ORDER"
                category: "BUSINESS"
                description: "The item is removed due to one or more reasons (out\
                  \ of stock, the desired quantity exceeds the quantity available,\
                  \ etc)."
        400:
          description: "Bad Request"
          x-response-codes:
            errors:
              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."
              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. Correct the value and resubmit the 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."
        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."
        409:
          description: "Conflict"
          x-response-codes:
            errors:
              20002:
                domain: "API_ORDER"
                category: "BUSINESS"
                description: "This item {itemId} is currently unavailable to buy from\
                  \ the seller."
              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."
              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."
              15013:
                domain: "API_ORDER"
                category: "BUSINESS"
                description: "The item is either out of stock, or the desired quantity\
                  \ exceeds the quantity available. If out of stock, please wait for\
                  \ seller to restock. If desired quantity exceeds available quantity,\
                  \ please reduce the quantity value and try again."
              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."
              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."
              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."
              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 reason such as, the listing has ended, this is an\
                  \ auction item, etc. 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."
              15053:
                domain: "API_ORDER"
                category: "BUSINESS"
                description: "Your desired item(s) are not available due to one or\
                  \ more reasons (out of stock, listing is an auction, listing ended,\
                  \ etc)."
              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."
      security:
      - api_auth:
        - "https://api.ebay.com/oauth/api_scope/buy.guest.order"
  /guest_checkout_session/{checkoutSessionId}/remove_coupon:
    post:
      tags:
      - "guest_checkout_session"
      description: "<span class=\"tablenote\"><b>Note:</b> The Order API (v2) currently\
        \ only supports the guest payment/checkout flow. If you need to support member\
        \ payment/checkout flow, use the <a href=\"/api-docs/buy/order_v1/resources/methods\"\
        >v1_beta version</a> of the Order API.</span><br /><br /><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> This method is only available to select developers approved\
        \ by business units.<br /><br />This method removes a coupon from an eBay\
        \ guest 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.<br /><br />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.<br /><br />The URLs for this\
        \ method are:<ul><li><b>Production URL:</b> <code>https://apix.ebay.com/buy/order/v2/guest_checkout_session/{checkoutSessionId}/remove_coupon</code></li><li><b>Sandbox\
        \ URL:</b> <code>https://apix.sandbox.ebay.com/buy/order/v2/guest_checkout_session/{checkoutSessionId}/remove_coupon</code></li></ul>"
      operationId: "removeGuestCoupon"
      parameters:
      - name: "checkoutSessionId"
        in: "path"
        description: "The eBay-assigned session ID, for a specific eBay marketplace,\
          \ that is returned by the <b> initiateGuestCheckoutSession</b> 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-MARKETPLACE-ID"
        in: "header"
        description: "A header that identifies the user's business context and is\
          \ specified using a marketplace ID value.<br /><br /><span class=\"tablenote\"\
          ><b>Note:</b> This header does <i>not</i> indicate a language preference\
          \ or consumer location.</span><br /><br />See <a href=\"/api-docs/static/rest-request-components.html#marketpl\"\
          \ target=\"_blank\">Marketplace ID values</a> for a list of supported values."
        required: true
        schema:
          type: "string"
      requestBody:
        description: "The container for the fields used by the <b>removeGuestCoupon</b>\
          \ method."
        content:
          application/json:
            schema:
              description: "The container for the fields used by the <b>removeGuestCoupon</b>\
                \ method."
              $ref: "#/components/schemas/CouponRequest"
        required: false
      responses:
        200:
          description: "OK"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GuestCheckoutSessionResponseV2"
        400:
          description: "Bad Request"
          x-response-codes:
            errors:
              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}."
              15032:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "After using the 'initiateGuestPayment' call, you cannot\
                  \ make changes to the cart. If you need to change the cart, you\
                  \ must start over using the 'initiateGuestCheckoutSession' call."
              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."
              16025:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "The coupon was not applied to this cart."
              15033:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "The payment cannot be processed because the payment\
                  \ information is invalid. You will need to create a new checkout\
                  \ session and submit corrected payment information."
              15002:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "Invalid field: {fieldName}. The indicated field contains\
                  \ an invalid value. Correct the value and resubmit the call."
              15003:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "The checkout session requested does not exist."
        500:
          description: "Internal 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."
        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}."
              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."
      security:
      - api_auth:
        - "https://api.ebay.com/oauth/api_scope/buy.guest.order"
  /guest_checkout_session/{checkoutSessionId}/update_quantity:
    post:
      tags:
      - "guest_checkout_session"
      description: "<span class=\"tablenote\"><b>Note:</b> The Order API (v2) currently\
        \ only supports the guest payment/checkout flow. If you need to support member\
        \ payment/checkout flow, use the <a href=\"/api-docs/buy/order_v1/resources/methods\"\
        >v1_beta version</a> of the Order API.</span><br /><br /><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> This method is only available to select developers approved\
        \ by business units.<br /><br />This method changes the quantity of the specified\
        \ line item in an eBay guest checkout session.<br /><br />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.<br /><br />The URLs for this\
        \ method are:<ul><li><b>Production URL:</b> <code>https://apix.ebay.com/buy/order/v2/guest_checkout_session/{checkoutSessionId}/update_quantity</code></li><li><b>Sandbox\
        \ URL:</b> <code>https://apix.sandbox.ebay.com/buy/order/v2/guest_checkout_session/{checkoutSessionId}/update_quantity</code></li></ul>"
      operationId: "updateGuestQuantity"
      parameters:
      - name: "checkoutSessionId"
        in: "path"
        description: "The eBay-assigned session ID, for a specific eBay marketplace,\
          \ that is returned by the <b> initiateGuestCheckoutSession</b> 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-MARKETPLACE-ID"
        in: "header"
        description: "A header that identifies the user's business context and is\
          \ specified using a marketplace ID value.<br /><br /><span class=\"tablenote\"\
          ><b>Note:</b> This header does <i>not</i> indicate a language preference\
          \ or consumer location.</span><br /><br />See <a href=\"/api-docs/static/rest-request-components.html#marketpl\"\
          \ target=\"_blank\">Marketplace ID values</a> for a list of supported values."
        required: true
        schema:
          type: "string"
      requestBody:
        description: "The container for the fields used by the <b>updateGuestQuantity</b>\
          \ method."
        content:
          application/json:
            schema:
              description: "The container for the fields used by the <b>updateGuestQuantity</b>\
                \ method."
              $ref: "#/components/schemas/UpdateQuantity"
        required: false
      responses:
        200:
          description: "OK"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GuestCheckoutSessionResponseV2"
        400:
          description: "Bad Request"
          x-response-codes:
            errors:
              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}."
              15032:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "After using the 'initiateGuestPayment' call, you cannot\
                  \ make changes to the cart. If you need to change the cart, you\
                  \ must start over using the 'initiateGuestCheckoutSession' call."
              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. Correct the value and resubmit the call."
              15003:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "The checkout session requested does not exist."
        500:
          description: "Internal 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."
        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}."
              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 item is either out of stock, or the desired quantity\
                  \ exceeds the quantity available. If out of stock, please wait for\
                  \ seller to restock. If desired quantity exceeds available quantity,\
                  \ please reduce the quantity value and try again."
              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."
              15053:
                domain: "API_ORDER"
                category: "BUSINESS"
                description: "Your desired item(s) are not available due to one or\
                  \ more reasons (out of stock, listing is an auction, listing ended,\
                  \ etc)."
      security:
      - api_auth:
        - "https://api.ebay.com/oauth/api_scope/buy.guest.order"
  /guest_checkout_session/{checkoutSessionId}/update_shipping_address:
    post:
      tags:
      - "guest_checkout_session"
      description: "<span class=\"tablenote\"><b>Note:</b> The Order API (v2) currently\
        \ only supports the guest payment/checkout flow. If you need to support member\
        \ payment/checkout flow, use the <a href=\"/api-docs/buy/order_v1/resources/methods\"\
        >v1_beta version</a> of the Order API.</span><br /><br /><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> This method is only available to select developers approved\
        \ by business units.<br /><br />This method changes the shipping address for\
        \ the order in an eBay guest 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><br /><br />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.<br /><br />The URLs for this method are:<ul><li><b>Production\
        \ URL:</b> <code>https://apix.ebay.com/buy/order/v2/guest_checkout_session/{checkoutSessionId}/update_shipping_address</code></li><li><b>Sandbox\
        \ URL:</b> <code>https://apix.sandbox.ebay.com/buy/order/v2/guest_checkout_session/{checkoutSessionId}/update_shipping_address</code></li></ul>"
      operationId: "updateGuestShippingAddress"
      parameters:
      - name: "checkoutSessionId"
        in: "path"
        description: "The eBay-assigned session ID, for a specific eBay marketplace,\
          \ that is returned by the <b> initiateGuestCheckoutSession</b> 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-MARKETPLACE-ID"
        in: "header"
        description: "A header that identifies the user's business context and is\
          \ specified using a marketplace ID value.<br /><br /><span class=\"tablenote\"\
          ><b>Note:</b> This header does <i>not</i> indicate a language preference\
          \ or consumer location.</span><br /><br />See <a href=\"/api-docs/static/rest-request-components.html#marketpl\"\
          \ target=\"_blank\">Marketplace ID values</a> for a list of supported values."
        required: true
        schema:
          type: "string"
      requestBody:
        description: "The container for the fields used by the <b>updateGuestShippingAddress</b>\
          \ method."
        content:
          application/json:
            schema:
              description: "The container for the fields used by the <b>updateGuestShippingAddress</b>\
                \ method."
              $ref: "#/components/schemas/ShippingAddressImpl"
        required: false
      responses:
        200:
          description: "OK"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GuestCheckoutSessionResponseV2"
          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:
              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}."
              15032:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "After using the 'initiateGuestPayment' call, you cannot\
                  \ make changes to the cart. If you need to change the cart, you\
                  \ must start over using the 'initiateGuestCheckoutSession' call."
              15048:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "The value of {fieldName} is too long. For more information,\
                  \ see the documentation for this call."
              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. Correct the value and resubmit the 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."
              15003:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "The checkout session requested does not exist."
        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."
        403:
          description: "Access Forbidden"
        404:
          description: "Resource Not Found"
        409:
          description: "Conflict"
          x-response-codes:
            errors:
              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."
              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."
      security:
      - api_auth:
        - "https://api.ebay.com/oauth/api_scope/buy.guest.order"
  /guest_checkout_session/{checkoutSessionId}/update_shipping_option:
    post:
      tags:
      - "guest_checkout_session"
      description: "<span class=\"tablenote\"><b>Note:</b> The Order API (v2) currently\
        \ only supports the guest payment/checkout flow. If you need to support member\
        \ payment/checkout flow, use the <a href=\"/api-docs/buy/order_v1/resources/methods\"\
        >v1_beta version</a> of the Order API.</span><br /><br /><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> This method is only available to select developers approved\
        \ by business units.<br /><br />This method changes the shipping method for\
        \ the specified line item in an eBay guest 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.<br /><br />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.<br /><br />The URLs for this\
        \ method are:<ul><li><b>Production URL: </b> <code>https://apix.ebay.com/buy/order/v2/guest_checkout_session/{checkoutSessionId}/update_shipping_option</code></li><li><b>Sandbox\
        \ URL:</b> <code>https://apix.sandbox.ebay.com/buy/order/v2/guest_checkout_session/{checkoutSessionId}/update_shipping_option</code></li>\
        \ </ul>"
      operationId: "updateGuestShippingOption"
      parameters:
      - name: "checkoutSessionId"
        in: "path"
        description: "The eBay-assigned session ID, for a specific eBay marketplace,\
          \ that is returned by the <b> initiateGuestCheckoutSession</b> 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-MARKETPLACE-ID"
        in: "header"
        description: "A header that identifies the user's business context and is\
          \ specified using a marketplace ID value.<br /><br /><span class=\"tablenote\"\
          ><b>Note:</b> This header does <i>not</i> indicate a language preference\
          \ or consumer location.</span><br /><br />See <a href=\"/api-docs/static/rest-request-components.html#marketpl\"\
          \ target=\"_blank\">Marketplace ID values</a> for a list of supported values."
        required: true
        schema:
          type: "string"
      requestBody:
        description: "The container for the fields used by the <b>updateGuestShippingOption</b>\
          \ method."
        content:
          application/json:
            schema:
              description: "The container for the fields used by the <b>updateGuestShippingOption</b>\
                \ method."
              $ref: "#/components/schemas/UpdateShippingOption"
        required: false
      responses:
        200:
          description: "OK"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GuestCheckoutSessionResponseV2"
        400:
          description: "Bad Request"
          x-response-codes:
            errors:
              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}."
              15032:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "After using the 'initiateGuestPayment' call, you cannot\
                  \ make changes to the cart. If you need to change the cart, you\
                  \ must start over using the 'initiateGuestCheckoutSession' call."
              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. Correct the value and resubmit the call."
              15003:
                domain: "API_ORDER"
                category: "REQUEST"
                description: "The checkout session requested does not exist."
        500:
          description: "Internal 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."
        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}."
              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."
      security:
      - api_auth:
        - "https://api.ebay.com/oauth/api_scope/buy.guest.order"
  /guest_purchase_order/{purchaseOrderId}:
    get:
      tags:
      - "guest_purchase_order"
      description: "<span class=\"tablenote\"><b>Note:</b> The Order API (v2) currently\
        \ only supports the guest payment/checkout flow. If you need to support member\
        \ payment/checkout flow, use the <a href=\"/api-docs/buy/order_v1/resources/methods\"\
        >v1_beta version</a> of the Order API.</span><br /><br /><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> This method is only available to select developers approved\
        \ by business units.<br /><br />This method retrieves the details about a\
        \ specific guest 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, discounts and credits.<br\
        \ /><br />The <b>purchaseOrderId</b> is passed in as a URI parameter and is\
        \ required.<br /><br /><span class=\"tablenote\"><b>Note:</b> The <b>purchaseOrderId</b>\
        \ value is returned in the call-back URL that is sent through the new eBay\
        \ pay widget. For more information about eBay managed payments and the new\
        \ Order API payment flow, see <a href=\"/api-docs/buy/static/api-order.html\"\
        >Order API</a> in the Buying Integration Guide.</span><br /><br />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>.<br\
        \ /><br />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.<br /><br />The URLs for this method are:<ul><li><b>Production\
        \ URL:</b> <code>https://api.ebay.com/buy/order/v2/guest_purchase_order/{purchaseOrderId}</code></li><li><b>Sandbox\
        \ URL:</b> <code>https://api.sandbox.ebay.com/buy/order/v2/guest_purchase_order/{purchaseOrderId}</code></li></ul>"
      operationId: "getGuestPurchaseOrder"
      parameters:
      - name: "purchaseOrderId"
        in: "path"
        description: "The unique identifier of a purchase order made by a guest buyer,\
          \ for which details are to be retrieved.<br /><br /><span class=\"tablenote\"\
          ><b>Note:</b> This value is returned in the response URL that is sent through\
          \ the new eBay pay widget. For more information about eBay managed payments\
          \ and the new Order API payment flow, see <a href=\"/api-docs/buy/static/api-order.html\"\
          >Order API</a> in the Buying Integration Guide.</span>"
        required: true
        schema:
          type: "string"
      responses:
        200:
          description: "OK"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GuestPurchaseOrderV2"
        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."
        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."
        403:
          description: "Access Forbidden"
        404:
          description: "Not Found"
      security:
      - api_auth:
        - "https://api.ebay.com/oauth/api_scope/buy.guest.order"
    servers:
    - url: "https://api.ebay.com{basePath}"
      description: "Production"
      variables:
        basePath:
          default: "/buy/order/v2"
components:
  schemas:
    Adjustment:
      type: "object"
      properties:
        amount:
          description: "The container that returns the amount and currency of an adjustment."
          $ref: "#/components/schemas/Amount"
        label:
          type: "string"
          description: "The text indicating what the adjustment was for."
      description: "A type that defines the fields for seller adjustments. An adjustment\
        \ can be a credit or debit."
    Amount:
      type: "object"
      properties:
        currency:
          type: "string"
          description: "The currency used in the monetary transaction. Generally,\
            \ this is the currency used by the country of the eBay site offering the\
            \ item. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/bas:CurrencyCodeEnum'>eBay\
            \ API documentation</a>"
        value:
          type: "string"
          description: "The amount of the currency specified in the <b>currency</b>\
            \ field. The value of the <b>currency</b> defaults to the standard currency\
            \ used by the country of the eBay site offering the item."
      description: "A container defining the monetary value of an amount, in the currency\
        \ used on the eBay site that offers the item, and the conversion of that value\
        \ into another currency."
    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 Guarantee verification inspection.<br /><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: "An enumerated value that indicates whether the order line\
            \ item has passed or failed the Authenticity Guarantee verification inspection,\
            \ or whether the inspection and/or results are still pending.<br /><br\
            \ /><span class=\"tablenote\"><b>Note:</b> This field is conditionally\
            \ returned when the purchase is complete.</span><br /><br /><b>Valid Values:</b><ul><li><code>PENDING</code></li><li><code>PASSED</code></li><li><code>FAILED</code></li><li><code>INELIGIBLE</code></li></ul>\
            \ 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: "A type that provides the status and outcome of an order line item\
        \ going through the Authenticity Guarantee verification process."
    Coupon:
      type: "object"
      properties:
        redemptionCode:
          type: "string"
          description: "The coupon redemption code."
      description: "A 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>getGuestPurchaseOrder</b> method.</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: "A type that defines the fields for the coupon information used\
        \ in the request."
    CreateGuestCheckoutSessionRequestV2:
      type: "object"
      properties:
        contactEmail:
          type: "string"
          description: "The buyer's email address."
        lineItemInputs:
          type: "array"
          description: "An array used to define the line item(s) and desired quantity\
            \ for an eBay guest checkout session.<br /><br /><b>Maximum:</b> 10 line\
            \ items"
          items:
            $ref: "#/components/schemas/LineItemInput"
        shippingAddress:
          description: "A container that defines the shipping address for an eBay\
            \ guest checkout session.<br /><br />The Order API supports only domestic\
            \ shipping. For example, an item purchased on the <code>EBAY_DE</code>\
            \ 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: "A type that defines the fields used to create an eBay guest checkout\
        \ session."
    Error:
      type: "object"
      properties:
        category:
          type: "string"
          description: "This string value indicates the error category. There are\
            \ three categories of errors: request errors, application errors, and\
            \ system errors."
        domain:
          type: "string"
          description: "The name of the primary system where the error occurred. This\
            \ is relevant for application errors."
        errorId:
          type: "integer"
          description: "A unique code that identifies the particular error or warning\
            \ that occurred. Your application can use error codes as identifiers in\
            \ your customized error-handling algorithms."
          format: "int32"
        inputRefIds:
          type: "array"
          description: "An array of reference IDs that identify the specific request\
            \ elements most closely associated to the error or warning, if any."
          items:
            type: "string"
        longMessage:
          type: "string"
          description: "A detailed description of the condition that caused the error\
            \ or warning, and information on what what must be done to correct the\
            \ problem."
        message:
          type: "string"
          description: "A description of the condition that caused the error or warning."
        outputRefIds:
          type: "array"
          description: "An array of reference IDs that identify the specific response\
            \ elements most closely associated to the error or warning, if any."
          items:
            type: "string"
        parameters:
          type: "array"
          description: "An array of warning and error messages that return one or\
            \ more variables contextual information about the error or warning. This\
            \ is often the field or value that triggered the error or warning."
          items:
            $ref: "#/components/schemas/ErrorParameter"
        subdomain:
          type: "string"
          description: "The name of the subdomain in which the error or warning occurred."
      description: "A type that defines the fields for the error messages."
    ErrorParameter:
      type: "object"
      properties:
        name:
          type: "string"
          description: "The name of the input field that caused an issue with the\
            \ method request."
        value:
          type: "string"
          description: "The actual value that was passed in for the element specified\
            \ in the <b>name</b> field."
      description: "An array of name/value pairs that provide details regarding the\
        \ error."
    Fee:
      type: "object"
      properties:
        amount:
          description: "A container for the currency type and monetary amount of the\
            \ fee 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 associated with the line item."
    GuestCheckoutSessionResponseV2:
      type: "object"
      properties:
        appliedCoupons:
          type: "array"
          description: "A container that returns the information for the coupons that\
            \ were applied in the guest checkout session."
          items:
            $ref: "#/components/schemas/Coupon"
        checkoutSessionId:
          type: "string"
          description: "The eBay-assigned guest checkout session ID. This ID is created\
            \ after a successful <b>initiateGuestCheckoutSession</b> call."
        lineItems:
          type: "array"
          description: "An array of line items associated with the guest checkout\
            \ session."
          items:
            $ref: "#/components/schemas/LineItem"
        pricingSummary:
          description: "A container that breaks down the costs for the order, including\
            \ total cost, shipping cost, tax, fees, and any discounts."
          $ref: "#/components/schemas/PricingSummaryV2"
        shippingAddress:
          description: "A container that returns the address to which the purchase\
            \ order will be shipped."
          $ref: "#/components/schemas/ShippingAddress"
        warnings:
          type: "array"
          description: "An array of errors or warnings that were generated during\
            \ the method processing."
          items:
            $ref: "#/components/schemas/Error"
      description: "Guest session response v2 "
    GuestPurchaseOrderV2:
      type: "object"
      properties:
        lineItems:
          type: "array"
          description: "An array of line items in the order."
          items:
            $ref: "#/components/schemas/OrderLineItemV2"
        pricingSummary:
          description: "A container that breaks down the costs for the order, including\
            \ total cost, shipping cost, tax, fees, and any discounts."
          $ref: "#/components/schemas/PricingSummary"
        purchaseOrderCreationDate:
          type: "string"
          description: "The creation date of the purchase order."
        purchaseOrderId:
          type: "string"
          description: "The unique identifier of the purchase order."
        purchaseOrderPaymentStatus:
          type: "string"
          description: "A container that returns 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>"
        purchaseOrderStatus:
          type: "string"
          description: "An enumeration value that indicates 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>"
        refundedAmount:
          description: "The total amount of any refunds for the purchase order."
          $ref: "#/components/schemas/Amount"
        warnings:
          type: "array"
          description: "A container for any warning messages."
          items:
            $ref: "#/components/schemas/Error"
      description: "A type that defines the fields for a guest purchase order."
    Image:
      type: "object"
      properties:
        imageUrl:
          type: "string"
          description: "The URL for the image."
      description: "A container that returns the URL for an image."
    ImportChargesV2:
      type: "object"
      properties:
        amount:
          description: "The amount of the import charge."
          $ref: "#/components/schemas/Amount"
        applicableChargeType:
          type: "string"
          description: "The type of charge to apply to the order, such as import duties.\
            \ For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/chk:ApplicableChargeTypeEnum'>eBay\
            \ API documentation</a>"
      description: "A type that defines the import charges that apply to an order."
    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: "An enumeration value that indicates the type of import tax\
            \ applicable to the order. Currently, the only applicable import tax is\
            \ the <i>Goods and Services</i> tax (indicated with <code>GST</code>).\
            \ The Goods and Services tax is only applicable to orders for the eBay\
            \ Australia marketplace. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/gct:ImportTaxTypeEnum'>eBay\
            \ API documentation</a>"
      description: "This container defines 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.<br /><br /><b>\
            \ Restriction:</b> The Post Order API can be used only with eBay member\
            \ checkouts."
        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>.<br /><br /><b>Restriction:</b> The Post\
            \ Order API can be used only with eBay member checkouts."
        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.<br /><br /><b>Restriction:</b>\
            \ The Post Order API can be used only with eBay member checkouts."
      description: "A 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.<br /><br /><b> Restriction:</b>\
        \ The Post Order API can be used only with eBay member checkouts."
    LineItem:
      type: "object"
      properties:
        authenticityVerification:
          description: "A container 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 quantity of the line item. This is the\
            \ starting point for computing the price during the 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."
          $ref: "#/components/schemas/Image"
        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 is 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 IDs for RESTful APIs, see <a href=\"/api-docs/buy/static/api-browse.html#Legacy\"\
            >Legacy API compatibility</a>."
        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 line item, taking into account the\
            \ quantity, any seller item discounts, and any coupon that applies.<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 line item."
          items:
            $ref: "#/components/schemas/Promotion"
        quantity:
          type: "integer"
          description: "The quantity ordered for the line item."
          format: "int32"
        seller:
          description: "A 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 shipping options that are available for the line\
            \ item. By default, the first one will be selected.<br /><br /><span class=\"\
            tablenote\"><b>Note:</b> The <b>updateGuestShippingOption</b> method can\
            \ be used to change the shipping option.</span>"
          items:
            $ref: "#/components/schemas/ShippingOption"
        taxDetails:
          type: "array"
          description: "A container that returns the tax information for the line\
            \ item."
          items:
            $ref: "#/components/schemas/TaxDetail"
        title:
          type: "string"
          description: "The seller-created title of the item."
      description: "A type that defines the fields for an individual line item."
    LineItemInput:
      type: "object"
      properties:
        itemId:
          type: "string"
          description: "The unique eBay-assigned 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 IDs for RESTful APIs, see <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.<br /><br /><b>Maximum:</b>10 per checkout"
        quantity:
          type: "integer"
          description: "The quantity ordered in this line item."
          format: "int32"
      description: "A type that defines the fields for a line item."
    OrderLineItemV2:
      type: "object"
      properties:
        authenticityVerification:
          description: "A container that 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 quantity of the 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: "An eBay-assigned URL of the item image."
          $ref: "#/components/schemas/Image"
        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."
        legacyReference:
          description: "A 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>.<br /><br /><b>Note:</b> The Post Order API can be used only\
            \ with eBay member checkouts."
          $ref: "#/components/schemas/LegacyReference"
        lineItemId:
          type: "string"
          description: "A unique eBay-assigned ID value that identifies a line item\
            \ in a checkout session. This is created by the <a href=\"/api-docs/buy/order/resources/guest_checkout_session/methods/initiateGuestCheckoutSession\"\
            >initiateGuestCheckoutSession</a>."
        lineItemPaymentStatus:
          type: "string"
          description: "An enumeration value that indicates the payment status of\
            \ the 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, the status will never change\
            \ from <code>FULFILLMENT_IN_PROGRESS</code>; without tracking information,\
            \ eBay has no way of knowing whether 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 line item, taking into account the\
            \ quantity, any seller item discounts, and any coupon that applies.<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"
        orderId:
          type: "string"
          description: "The unique order ID for the line item.<br /><br /><b>Maximum\
            \ Length:</b> 40 characters"
        promotions:
          type: "array"
          description: "An array of promotions applied to the line item."
          items:
            $ref: "#/components/schemas/Promotion"
        quantity:
          type: "integer"
          description: "The quantity ordered for the line item."
          format: "int32"
        seller:
          description: "A container for information about the seller offering this\
            \ item, such as the seller's user name."
          $ref: "#/components/schemas/Seller"
        shippingDetail:
          description: "A container for information about the shipping details of\
            \ the order."
          $ref: "#/components/schemas/ShippingDetail"
        taxDetails:
          type: "array"
          description: "A container for the tax information for the line item."
          items:
            $ref: "#/components/schemas/TaxDetail"
        title:
          type: "string"
          description: "The seller-created title of the item."
      description: "A type that defines the fields for line item information in a\
        \ purchase order."
    PricingSummary:
      type: "object"
      properties:
        additionalSavings:
          description: "The total amount of the coupon discounts in the purchase order."
          $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 order that are not already captured in one of the other fields."
          $ref: "#/components/schemas/Adjustment"
        deliveryCost:
          description: "The delivery cost for all of the line items, after any delivery\
            \ discounts are applied.<br /><br />For example, there are four line items,\
            \ and the delivery cost for each line item is $5. One of the line items\
            \ qualifies for free delivery. The <b>deliveryCost</b> would be $15, which\
            \ is the total cost for delivering all of the line items after the discount\
            \ is 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 total amount of the order delivery discounts for all of\
            \ the line items, such as free shipping."
          $ref: "#/components/schemas/Amount"
        fee:
          description: "The total amount of any fees for all the line items in the\
            \ order, such as a recycling fee."
          $ref: "#/components/schemas/Amount"
        importCharges:
          description: "The sum of all <a href=\"https://pages.ebay.com/seller-center/shipping/global-shipping-program.html\"\
            >Global Shipping Program</a> import charges, for all the line items in\
            \ the order."
          $ref: "#/components/schemas/Amount"
        importTax:
          description: "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 discount amount for all line items in the order.<br\
            \ /><br />For example, there are four line items in the order. Two of\
            \ the line items qualify for a <i>Buy 1, Get 1</i> offer, which is a $6\
            \ and a $15 discount. The <b>priceDiscount</b> value returned would be\
            \ 21, which is the total of the two discounts.<br /><br /><span class=\"\
            tablenote\"><b>Note:</b> Delivery discount amounts, if applicable, are\
            \ not reflected in the value returned in this field.</span>"
          $ref: "#/components/schemas/Amount"
        priceSubtotal:
          description: "The total cost for all line items in the order, taking into\
            \ account the item quantity, but before adding taxes and delivery costs,\
            \ or applying discounts, fees, and adjustments.<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"
        tax:
          description: "The total amount of taxes for all line items in the order."
          $ref: "#/components/schemas/Amount"
        total:
          description: "The total cost of the order, which includes: (<b>priceSubtotal</b>\
            \ - <b>priceDiscount</b>) + <b>deliveryCost</b> + <b>tax</b> +/- <b>adjustment</b>\
            \ + <b>fee</b> + <b>importCharges</b> - <b>additionalSavings</b>."
          $ref: "#/components/schemas/Amount"
      description: "A type that returns cost details for all of the line items in\
        \ the order, such as tax, item price, delivery cost, and discounts."
    PricingSummaryV2:
      type: "object"
      properties:
        additionalSavings:
          description: "The total amount of the coupon discounts in the purchase order."
          $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 order that are not already captured in one of the other fields."
          $ref: "#/components/schemas/Adjustment"
        deliveryCost:
          description: "The delivery cost for all of the line items, after any delivery\
            \ discounts are applied.<br /><br />For example, there are four line items,\
            \ and the delivery cost for each line item is $5. One of the line items\
            \ qualifies for free delivery. The <b>deliveryCost</b> would be $15, which\
            \ is the total cost for delivering all of the line items after the discount\
            \ is 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"
        fee:
          description: "The total amount of any fees for all the line items in the\
            \ order, such as a recycling fee."
          $ref: "#/components/schemas/Amount"
        importCharges:
          description: "The sum of all <a href=\"https://pages.ebay.com/seller-center/shipping/global-shipping-program.html\"\
            >Global Shipping Program</a> import charges, for all the line items in\
            \ the order."
          $ref: "#/components/schemas/ImportChargesV2"
        importTax:
          description: "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 discount amount for all line items in the order.<br\
            \ /><br />For example, there are four line items in the order. Two of\
            \ the line items qualify for a <i>Buy 1, Get 1</i> offer, which is a $6\
            \ and a $15 discount. The <b>priceDiscount</b> value returned would be\
            \ 21, which is the total of the two discounts.<br /><br /><span class=\"\
            tablenote\"><b>Note:</b> Delivery discount amounts, if applicable, are\
            \ not reflected in the value returned in this field.</span>"
          $ref: "#/components/schemas/Amount"
        priceSubtotal:
          description: "The total cost for all line items in the order, taking into\
            \ account the item quantity, but before adding taxes and delivery costs,\
            \ or applying discounts, fees, and adjustments.<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"
        tax:
          description: "The total amount of taxes for all line items in the order."
          $ref: "#/components/schemas/Amount"
        total:
          description: "The total cost of the order, which includes: (<b>priceSubtotal</b>\
            \ - <b>priceDiscount</b>) + <b>deliveryCost</b> + <b>tax</b> +/- <b>adjustment</b>\
            \ + <b>fee</b> + <b>importCharges</b> - <b>additionalSavings</b>."
          $ref: "#/components/schemas/Amount"
      description: "A type that returns cost details for all of the line items in\
        \ the order, such as tax, item price, delivery cost, and discounts."
    Promotion:
      type: "object"
      properties:
        discount:
          description: "The details regarding the monetary value of the promotional\
            \ discount.<br /><br /><span class=\"tablenote\"><b>Note:</b> eBay Bucks\
            \ are not supported.</span>"
          $ref: "#/components/schemas/Amount"
        message:
          type: "string"
          description: "The text for the promotion title, which describes the promotion."
        promotionType:
          type: "string"
          description: "The kind of promotion. Some examples are: <code>SellerDiscountedPromotionalOffer</code>\
            \ and <code>COUPON</code>."
      description: "A container that returns the details of an item promotion."
    Recipient:
      type: "object"
      properties:
        firstName:
          type: "string"
          description: "The first name of the person receiving the purchase order."
        lastName:
          type: "string"
          description: "The last name of the person receiving the purchase order."
      description: "A container that defines the full name of the person receiving\
        \ the 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><code>STATE_OR_PROVINCE</code></li><li><code>COUNTRY</code></li></ul>\
            \ For implementation help, refer to <a href='https://developer.ebay.com/api-docs/buy/order/types/bas:RegionTypeEnum'>eBay\
            \ API documentation</a>"
      description: "A type that provides region details for a tax jurisdiction."
    Seller:
      type: "object"
      properties:
        username:
          type: "string"
          description: "The user name created by the seller for use on eBay."
      description: "A type that identifies the seller."
    ShippingAddress:
      type: "object"
      properties:
        addressLine1:
          type: "string"
          description: "The first line of the street address where the item is being\
            \ shipped.<br /><br /><b>Maximum:</b><ul><li>40 characters for AU, CA,\
            \ and US marketplaces</li><li>35 characters for DE and GB marketplaces</li><li>50\
            \ characters for all other marketplaces</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'.<br /><br /><b>Maximum:</b><ul><li>40 characters\
            \ for AU, CA, and US marketplaces</li><li>35 characters for DE and GB\
            \ marketplaces</li><li>50 characters for all other marketplaces</li></ul>"
        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/bas: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.<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 where the item is being shipped.<br\
            \ /><br /><span class=\"tablenote\"><b>Note:</b> This is optional when\
            \ shipping to EBAY_HK (Hong Kong).</span>"
        recipient:
          description: "The name of the person receiving the package."
          $ref: "#/components/schemas/Recipient"
        stateOrProvince:
          type: "string"
          description: "The state or province of the address.<br /><br /><span class=\"\
            tablenote\"><b>Note:</b> For the US marketplace, this is a two-character\
            \ value. For a list of valid values, 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: "A type that defines the fields for a shipping address. For restrictions,\
        \ see <a href=\"/api-docs/buy/order/overview.html#Shipping\">Shipping restrictions</a>.<br\
        \ /><br /><span class=\"tablenote\"><b>Note:</b> If the address cannot be\
        \ validated, a warning message will be returned.</span>"
    ShippingAddressImpl:
      type: "object"
      properties:
        addressLine1:
          type: "string"
          description: "The first line of the street address where the item is being\
            \ shipped.<br /><br /><b>Maximum:</b><ul><li>40 characters for AU, CA,\
            \ and US marketplaces</li><li>35 characters for DE and GB marketplaces</li><li>50\
            \ characters for all other marketplaces</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'.<br /><br /><b>Maximum:</b><ul><li>40 characters\
            \ for AU, CA, and US marketplaces</li><li>35 characters for DE and GB\
            \ marketplaces</li><li>50 characters for all other marketplaces</li></ul>"
        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/bas: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.<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 where the item is being shipped.<br\
            \ /><br /><span class=\"tablenote\"><b>Note:</b> This is optional when\
            \ shipping to EBAY_HK (Hong Kong).</span>"
        recipient:
          description: "The name of the person receiving the package."
          $ref: "#/components/schemas/Recipient"
        stateOrProvince:
          type: "string"
          description: "The state or province of the address.<br /><br /><span class=\"\
            tablenote\"><b>Note:</b> For the US marketplace, this is a two-character\
            \ value. For a list of valid values, 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: "A 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 returned along with the response.</span>"
    ShippingDetail:
      type: "object"
      properties:
        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 for the line item, such as FedEx or\
            \ USPS."
        shippingServiceCode:
          type: "string"
          description: "The name of the shipping service option. For example, Priority\
            \ Mail Express (provided by USPS) or FedEx International Priority (Provided\
            \ by FedEx)."
      description: "A type that defines the fields for the shipping information, such\
        \ as delivery date estimates and shipping provider."
    ShippingOption:
      type: "object"
      properties:
        baseDeliveryCost:
          description: "The delivery cost using this shipping option, for this line\
            \ item, before any delivery 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 discounts."
          $ref: "#/components/schemas/Amount"
        importCharges:
          description: "The <a href=\"https://pages.ebay.com/seller-center/shipping/global-shipping-program.html\"\
            >Global Shipping Program</a> import charges for this line item."
          $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: "A field that indicates whether the shipping method is selected."
        shippingCarrierCode:
          type: "string"
          description: "The shipping provider for the line item, such as FedEx or\
            \ USPS."
        shippingOptionId:
          type: "string"
          description: "A unique ID for the selected shipping option/method."
        shippingServiceCode:
          type: "string"
          description: "The name of the shipping service code. For example, Priority\
            \ Mail Express (provided by USPS) or FedEx International Priority (Provided\
            \ by FedEx)."
      description: "A type that defines the fields for the shipping options."
    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."
    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."
    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: "A 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."
      description: "A 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:
        clientCredentials:
          tokenUrl: "https://api.ebay.com/identity/v1/oauth2/token"
          scopes:
            https://api.ebay.com/oauth/api_scope/buy.guest.order: "Purchase eBay items\
              \ off eBay"