openapi: 3.0.0
info:
  title: WildFork- CART API's
  version: 1.0.0
servers:
  - url: http://{{baseurl}}{{uri}}{{resource}}
  - url: http://{{baseurl}}
tags:
  - name: subscription
  - name: subscription > autoship
  - name: reservation
  - name: item
  - name: item > {line}
  - name: fulfillment
  - name: available
  - name: available > windows
  - name: address
  - name: address > shipping
  - name: address > billing
  - name: reorder
  - name: discount
  - name: discount > {discountCode}
  - name: /
  - name: mini
paths:
  /subscription/autoship:
    post:
      tags:
        - subscription > autoship
      summary: Create new cart from original order
      description: Create new cart from original order
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                originalOrderId: '4600037982'
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
        - name: Ocp-Apim-Subscription-Key
          in: header
          schema:
            type: string
          example: '{{Ocp-Apim-Subscription-Key}}'
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                id: <string>
                orderNumber: <string>
                lineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                removedLineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                tipReceived: <long>
                shippingTotal: <long>
                rawShippingTotal: <long>
                taxTotal: <long>
                subTotal: <long>
                rawSubTotal: <long>
                currencyType: <string>
                totalPrice: <long>
                shippingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                billingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                addresses:
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                discountCode: <string>
                shippingEligibility:
                  eligibilityThreshold: <integer>
                  eligibilityAmountRemaining: <integer>
                discountAmount: <long>
                subscription:
                  interval: <long>
                deliveryMethod: <string>
                fulfillmentType: <string>
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
            application/json:
              schema:
                type: object
              example:
                errors:
                  - code: WF_CART_010
                    message: Error in processing the request
  /subscription:
    put:
      tags:
        - subscription
      summary: insert or update the subscription interval to the cart
      description: insert or update the subscription interval to the cart
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                interval: Jun 05, 2024
      parameters:
        - name: X-WILDFORK-CART-ID
          in: header
          schema:
            type: string
          example: d62fe0cd-fa2e-4f4f-80e3-a95e3522dcb5
        - name: X-WILDFORK-LOCALE
          in: header
          schema:
            type: string
          example: en-CA
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
        - name: Ocp-Apim-Subscription-Key
          in: header
          schema:
            type: string
          example: '{{Ocp-Apim-Subscription-Key}}'
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                id: <string>
                orderNumber: <string>
                lineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                removedLineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                tipReceived: <long>
                shippingTotal: <long>
                rawShippingTotal: <long>
                taxTotal: <long>
                subTotal: <long>
                rawSubTotal: <long>
                currencyType: <string>
                totalPrice: <long>
                shippingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                billingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                addresses:
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                discountCode: <string>
                shippingEligibility:
                  eligibilityThreshold: <integer>
                  eligibilityAmountRemaining: <integer>
                discountAmount: <long>
                subscription:
                  interval: <long>
                deliveryMethod: <string>
                fulfillmentType: <string>
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
    delete:
      tags:
        - subscription
      summary: remove the subscription interval from the cart
      description: remove the subscription interval from the cart
      parameters:
        - name: X-WILDFORK-CART-ID
          in: header
          schema:
            type: string
          example: <string>
        - name: X-WILDFORK-LOCALE
          in: header
          schema:
            type: string
          example: <string>
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                id: <string>
                orderNumber: <string>
                lineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                removedLineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                tipReceived: <long>
                shippingTotal: <long>
                rawShippingTotal: <long>
                taxTotal: <long>
                subTotal: <long>
                rawSubTotal: <long>
                currencyType: <string>
                totalPrice: <long>
                shippingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                billingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                addresses:
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                discountCode: <string>
                shippingEligibility:
                  eligibilityThreshold: <integer>
                  eligibilityAmountRemaining: <integer>
                discountAmount: <long>
                subscription:
                  interval: <long>
                deliveryMethod: <string>
                fulfillmentType: <string>
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
  /reservation:
    put:
      tags:
        - reservation
      summary: Reserve in-store
      description: Reserve cart items in-store
      requestBody:
        content: {}
      parameters:
        - name: X-WILDFORK-CART-ID
          in: header
          schema:
            type: string
          description: '(Required) '
          example: <string>
        - name: X-WILDFORK-LOCALE
          in: header
          schema:
            type: string
          example: <string>
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                id: <string>
                orderNumber: <string>
                lineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                removedLineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                tipReceived: <long>
                shippingTotal: <long>
                rawShippingTotal: <long>
                taxTotal: <long>
                subTotal: <long>
                rawSubTotal: <long>
                currencyType: <string>
                totalPrice: <long>
                shippingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                billingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                addresses:
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                discountCode: <string>
                shippingEligibility:
                  eligibilityThreshold: <integer>
                  eligibilityAmountRemaining: <integer>
                discountAmount: <long>
                subscription:
                  interval: <long>
                deliveryMethod: <string>
                fulfillmentType: <string>
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
  /item/{line}:
    post:
      tags:
        - item > {line}
      summary: Update an item in cart
      description: Updating quantity  of item to the CommerceTools cart
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                quantity: <integer>
                sku: <string>
      parameters:
        - name: X-WILDFORK-CART-ID
          in: header
          schema:
            type: string
          description: '(Required) '
          example: <string>
        - name: X-WILDFORK-LOCALE
          in: header
          schema:
            type: string
          example: <string>
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
        - name: line
          in: path
          schema:
            type: string
          required: true
          example: <string>
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                id: <string>
                orderNumber: <string>
                lineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                removedLineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                tipReceived: <long>
                shippingTotal: <long>
                rawShippingTotal: <long>
                taxTotal: <long>
                subTotal: <long>
                rawSubTotal: <long>
                currencyType: <string>
                totalPrice: <long>
                shippingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                billingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                addresses:
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                discountCode: <string>
                shippingEligibility:
                  eligibilityThreshold: <integer>
                  eligibilityAmountRemaining: <integer>
                discountAmount: <long>
                subscription:
                  interval: <long>
                deliveryMethod: <string>
                fulfillmentType: <string>
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
    delete:
      tags:
        - item > {line}
      summary: Remove an item from cart
      description: Remove an Item from Cart
      parameters:
        - name: X-WILDFORK-CART-ID
          in: header
          schema:
            type: string
          description: '(Required) '
          example: <string>
        - name: X-WILDFORK-LOCALE
          in: header
          schema:
            type: string
          example: <string>
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
        - name: line
          in: path
          schema:
            type: string
          required: true
          example: <string>
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                id: <string>
                orderNumber: <string>
                lineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                removedLineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                tipReceived: <long>
                shippingTotal: <long>
                rawShippingTotal: <long>
                taxTotal: <long>
                subTotal: <long>
                rawSubTotal: <long>
                currencyType: <string>
                totalPrice: <long>
                shippingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                billingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                addresses:
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                discountCode: <string>
                shippingEligibility:
                  eligibilityThreshold: <integer>
                  eligibilityAmountRemaining: <integer>
                discountAmount: <long>
                subscription:
                  interval: <long>
                deliveryMethod: <string>
                fulfillmentType: <string>
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
  /item:
    put:
      tags:
        - item
      summary: Add an item to cart
      description: Adding an item to the CommerceTools cart
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                quantity: <integer>
                sku: <string>
      parameters:
        - name: X-WILDFORK-CART-ID
          in: header
          schema:
            type: string
          example: <string>
        - name: X-WILDFORK-STORE-ID
          in: header
          schema:
            type: string
          example: <string>
        - name: X-WILDFORK-LOCALE
          in: header
          schema:
            type: string
          example: <string>
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                id: <string>
                orderNumber: <string>
                lineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                removedLineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                tipReceived: <long>
                shippingTotal: <long>
                rawShippingTotal: <long>
                taxTotal: <long>
                subTotal: <long>
                rawSubTotal: <long>
                currencyType: <string>
                totalPrice: <long>
                shippingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                billingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                addresses:
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                discountCode: <string>
                shippingEligibility:
                  eligibilityThreshold: <integer>
                  eligibilityAmountRemaining: <integer>
                discountAmount: <long>
                subscription:
                  interval: <long>
                deliveryMethod: <string>
                fulfillmentType: <string>
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
  /fulfillment:
    put:
      tags:
        - fulfillment
      summary: Set the Fulfillment Center for the cart
      description: Set the Fulfillment Center for the cart
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                zipcode: <string>
                storeId: <string>
                fulfillmentType: <string>
                pickupDetails:
                  firstName: <string>
                  lastName: <string>
                  email: <string>
                  phone: <string>
      parameters:
        - name: X-WILDFORK-CART-ID
          in: header
          schema:
            type: string
          description: '(Required) '
          example: <string>
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                store:
                  id: <string>
                  name: <string>
                  google360Url: <string>
                  timeZone: <string>
                  distance: <integer>
                  shippingTypes:
                    - <string>
                    - <string>
                  curbsidePickup: <boolean>
                  deliveryType: <string>
                  shippingLevel:
                    - <string>
                    - <string>
                  channel: <string>
                  address:
                    id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                subscriptionEligible: <boolean>
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '404':
          description: Not Found
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "store": {
                    "id": "<string>",
                    "name": "<string>",
                    "google360Url": "<string>",
                    "timeZone": "<string>",
                    "distance": "<integer>",
                    "shippingTypes": [
                      "<string>",
                      "<string>"
                    ],
                    "curbsidePickup": "<boolean>",
                    "deliveryType": "<string>",
                    "shippingLevel": [
                      "<string>",
                      "<string>"
                    ],
                    "channel": "<string>",
                    "address": {
                      "id": "<string>",
                      "firstName": "<string>",
                      "lastName": "<string>",
                      "address1": "<string>",
                      "address2": "<string>",
                      "city": "<string>",
                      "state": "<string>",
                      "postalCode": "<string>",
                      "country": "<string>",
                      "phone": "<string>",
                      "email": "<string>"
                    }
                  },
                  "subscriptionEligible": "<boolean>"
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
  /available/windows:
    put:
      tags:
        - available > windows
      summary: Select Fulfillment Window
      description: Select Fulfillment Window
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                id: <string>
                deliveryInstructions: <string>
                isGift: <boolean>
                giftMessage: <string>
      parameters:
        - name: X-WILDFORK-CART-ID
          in: header
          schema:
            type: string
          description: '(Required) '
          example: <string>
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                windows:
                  - id: <string>
                    startTime: <long>
                    endTime: <long>
                    expiration: <long>
                    fulfillmentType: <string>
                    available: <boolean>
                    carrierName: <string>
                    serviceLevel: <string>
                  - id: <string>
                    startTime: <long>
                    endTime: <long>
                    expiration: <long>
                    fulfillmentType: <string>
                    available: <boolean>
                    carrierName: <string>
                    serviceLevel: <string>
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example: {}
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
  /address/shipping:
    put:
      tags:
        - address > shipping
      summary: Add Shipping Address
      description: Add shipping address to cart
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                address:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                customerEmail: <string>
                saveAddress: <boolean>
      parameters:
        - name: X-WILDFORK-CART-ID
          in: header
          schema:
            type: string
          description: '(Required) '
          example: <string>
        - name: X-WILDFORK-LOCALE
          in: header
          schema:
            type: string
          example: <string>
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                address:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                modified: <boolean>
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '404':
          description: Not Found
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example: {}
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
  /address/billing:
    put:
      tags:
        - address > billing
      summary: Add Billing Address
      description: Add billing address to cart
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                sameAsShipping: <boolean>
                address:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                saveAddress: <boolean>
      parameters:
        - name: X-WILDFORK-CART-ID
          in: header
          schema:
            type: string
          description: '(Required) '
          example: <string>
        - name: X-WILDFORK-LOCALE
          in: header
          schema:
            type: string
          example: <string>
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                address:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                modified: <boolean>
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
  /reorder:
    post:
      tags:
        - reorder
      summary: Create new cart from previous order
      description: Create new cart from previous order
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                originalOrderId: <string>
      parameters:
        - name: X-WILDFORK-LOCALE
          in: header
          schema:
            type: string
          example: <string>
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                id: <string>
                orderNumber: <string>
                lineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                removedLineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                tipReceived: <long>
                shippingTotal: <long>
                rawShippingTotal: <long>
                taxTotal: <long>
                subTotal: <long>
                rawSubTotal: <long>
                currencyType: <string>
                totalPrice: <long>
                shippingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                billingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                addresses:
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                discountCode: <string>
                shippingEligibility:
                  eligibilityThreshold: <integer>
                  eligibilityAmountRemaining: <integer>
                discountAmount: <long>
                subscription:
                  interval: <long>
                deliveryMethod: <string>
                fulfillmentType: <string>
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
  /discount/{discountCode}:
    delete:
      tags:
        - discount > {discountCode}
      summary: Remove discount code from a Cart
      description: Remove discount code from a Cart, recalculate cart amount(s).
      parameters:
        - name: X-WILDFORK-CART-ID
          in: header
          schema:
            type: string
          description: '(Required) '
          example: <string>
        - name: X-WILDFORK-LOCALE
          in: header
          schema:
            type: string
          example: <string>
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
        - name: discountCode
          in: path
          schema:
            type: string
          required: true
          example: <string>
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                id: <string>
                orderNumber: <string>
                lineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                removedLineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                tipReceived: <long>
                shippingTotal: <long>
                rawShippingTotal: <long>
                taxTotal: <long>
                subTotal: <long>
                rawSubTotal: <long>
                currencyType: <string>
                totalPrice: <long>
                shippingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                billingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                addresses:
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                discountCode: <string>
                shippingEligibility:
                  eligibilityThreshold: <integer>
                  eligibilityAmountRemaining: <integer>
                discountAmount: <long>
                subscription:
                  interval: <long>
                deliveryMethod: <string>
                fulfillmentType: <string>
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
  /discount:
    post:
      tags:
        - discount
      summary: Apply the discount code to cart
      description: Applying Discount code to cart
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                discountCode: <string>
      parameters:
        - name: X-WILDFORK-CART-ID
          in: header
          schema:
            type: string
          description: '(Required) '
          example: <string>
        - name: X-WILDFORK-LOCALE
          in: header
          schema:
            type: string
          example: <string>
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                id: <string>
                orderNumber: <string>
                lineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                removedLineItems:
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                  - id: <string>
                    name: <string>
                    weightText: <string>
                    perUnitPriceText: <string>
                    itemPiecesText: <string>
                    totalPrice: <long>
                    rawTotalPrice: <long>
                    quantity: <integer>
                    productImageUrl: <string>
                    sku: <string>
                    slug: <string>
                    isFixedPrice: <boolean>
                tipReceived: <long>
                shippingTotal: <long>
                rawShippingTotal: <long>
                taxTotal: <long>
                subTotal: <long>
                rawSubTotal: <long>
                currencyType: <string>
                totalPrice: <long>
                shippingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                billingAddress:
                  id: <string>
                  firstName: <string>
                  lastName: <string>
                  address1: <string>
                  address2: <string>
                  city: <string>
                  state: <string>
                  postalCode: <string>
                  country: <string>
                  phone: <string>
                  email: <string>
                addresses:
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                  - id: <string>
                    firstName: <string>
                    lastName: <string>
                    address1: <string>
                    address2: <string>
                    city: <string>
                    state: <string>
                    postalCode: <string>
                    country: <string>
                    phone: <string>
                    email: <string>
                discountCode: <string>
                shippingEligibility:
                  eligibilityThreshold: <integer>
                  eligibilityAmountRemaining: <integer>
                discountAmount: <long>
                subscription:
                  interval: <long>
                deliveryMethod: <string>
                fulfillmentType: <string>
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
  /:
    get:
      tags:
        - /
      summary: Get Cart By Id - checkInvenFalse
      parameters:
        - name: X-WILDFORK-CART-ID
          in: header
          schema:
            type: string
          description: '(Required) '
          example: d62fe0cd-fa2e-4f4f-80e3-a95e3522dcb5
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
        - name: Ocp-Apim-Subscription-Key
          in: header
          schema:
            type: string
          example: '{{Ocp-Apim-Subscription-Key}}'
        - name: checkInventory
          in: query
          schema:
            type: boolean
          example: 'false'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /mini:
    get:
      tags:
        - mini
      summary: Get Limited Display Cart By Id
      description: Fetch a limited display cart from CommerceTools
      parameters:
        - name: X-WILDFORK-CART-ID
          in: header
          schema:
            type: string
          description: '(Required) '
          example: d62fe0cd-fa2e-4f4f-80e3-a95e3522dcb5
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
        - name: Ocp-Apim-Subscription-Key
          in: header
          schema:
            type: string
          example: '{{Ocp-Apim-Subscription-Key}}'
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              examples:
                example-0:
                  summary: OK
                  value:
                    id: <string>
                    lineItemCount: <integer>
                    currencyType: <string>
                    totalPrice: <long>
                example-1:
                  summary: Get Limited Display Cart By Id
                  value:
                    id: 2477686b-9520-43a6-ac54-08b447a9db0d
                    lineItemCount: 3
                    currencyType: CAD
                    totalPrice: 23784
        '400':
          description: Bad Request
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '401':
          description: Unauthorized
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
        '500':
          description: Internal Server Error
          headers:
            Content-Type:
              schema:
                type: string
                example: '*/*'
          content:
            text/plain:
              schema:
                type: string
              example: |-
                {
                  "errors": [
                    {
                      "code": "<string>",
                      "message": "<string>"
                    },
                    {
                      "code": "<string>",
                      "message": "<string>"
                    }
                  ]
                }
