openapi: 3.0.0
info:
  title: Custom Item Price
  version: 1.0.0
servers:
  - url: http://{{medusa_backend_url}}
paths:
  /store/regions:
    get:
      tags:
        - default
      summary: Get Regions
      parameters:
        - name: x-publishable-api-key
          in: header
          schema:
            type: string
          example: '{{MEDUSA_PUBLISHABLE_API_KEY}}'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /store/carts/cart_01JJS7R1KKKAJYTBECB216A9TR/line-items-metals:
    post:
      tags:
        - default
      summary: Add Item with Custom Price to Cart
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                variant_id: variant_01JJS6RZ6VX5D11C0V0FBMV4TK
                quantity: 1
      parameters:
        - name: x-publishable-api-key
          in: header
          schema:
            type: string
          example: '{{MEDUSA_PUBLISHABLE_API_KEY}}'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /store/carts:
    post:
      tags:
        - default
      summary: Create Cart
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                region_id: reg_01JJRXJX831C9MNV556MMCDVA3
      parameters:
        - name: x-publishable-api-key
          in: header
          schema:
            type: string
          example: '{{MEDUSA_PUBLISHABLE_API_KEY}}'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
