> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shoppex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Fulfill an order line item

> Delivers content for one line item on a completed order. A dynamic-delivery webhook may acknowledge the original delivery request with `{ "status": "pending" }` and later push the final content through this endpoint.



## OpenAPI

````yaml /openapi.json post /dev/v1/orders/{id}/items/{itemId}/fulfill
openapi: 3.0.3
info:
  title: Shoppex Developer API
  description: Mintlify-compatible Developer API reference for Shoppex.
  version: 1.0.0
  contact:
    name: Shoppex Support
    email: support@shoppex.io
    url: https://shoppex.io
servers:
  - url: https://api.shoppex.io
security:
  - bearerAuth: []
paths:
  /dev/v1/orders/{id}/items/{itemId}/fulfill:
    post:
      tags:
        - Orders
      summary: Fulfill an order line item
      description: >-
        Delivers content for one line item on a completed order. A
        dynamic-delivery webhook may acknowledge the original delivery request
        with `{ "status": "pending" }` and later push the final content through
        this endpoint.
      operationId: postDevV1OrdersByIdItemsByItemIdFulfill
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: itemId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: >-
                At least one content field (`message`, `codes`, `links`, or
                `files`) is required.
              properties:
                message:
                  type: string
                  description: Text content to deliver to the buyer.
                codes:
                  type: array
                  description: License keys or other redeemable codes.
                  items:
                    type: string
                links:
                  type: array
                  description: HTTP or HTTPS links to deliver to the buyer.
                  items:
                    type: object
                    required:
                      - url
                    properties:
                      label:
                        type: string
                      url:
                        type: string
                files:
                  type: array
                  description: Shop-owned attachment IDs to deliver to the buyer.
                  items:
                    type: object
                    required:
                      - attachment_id
                    properties:
                      attachment_id:
                        type: string
                notify_customer:
                  type: boolean
                  description: Whether to email the buyer. Defaults to true.
          multipart/form-data:
            schema:
              type: object
              description: >-
                At least one content field (`message`, `codes`, `links`, or
                `files`) is required.
              properties:
                message:
                  type: string
                  description: Text content to deliver to the buyer.
                codes:
                  type: array
                  description: License keys or other redeemable codes.
                  items:
                    type: string
                links:
                  type: array
                  description: HTTP or HTTPS links to deliver to the buyer.
                  items:
                    type: object
                    required:
                      - url
                    properties:
                      label:
                        type: string
                      url:
                        type: string
                files:
                  type: array
                  description: Shop-owned attachment IDs to deliver to the buyer.
                  items:
                    type: object
                    required:
                      - attachment_id
                    properties:
                      attachment_id:
                        type: string
                notify_customer:
                  type: boolean
                  description: Whether to email the buyer. Defaults to true.
          text/plain:
            schema:
              type: object
              description: >-
                At least one content field (`message`, `codes`, `links`, or
                `files`) is required.
              properties:
                message:
                  type: string
                  description: Text content to deliver to the buyer.
                codes:
                  type: array
                  description: License keys or other redeemable codes.
                  items:
                    type: string
                links:
                  type: array
                  description: HTTP or HTTPS links to deliver to the buyer.
                  items:
                    type: object
                    required:
                      - url
                    properties:
                      label:
                        type: string
                      url:
                        type: string
                files:
                  type: array
                  description: Shop-owned attachment IDs to deliver to the buyer.
                  items:
                    type: object
                    required:
                      - attachment_id
                    properties:
                      attachment_id:
                        type: string
                notify_customer:
                  type: boolean
                  description: Whether to email the buyer. Defaults to true.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    required:
                      - line_item_id
                      - delivery_status
                      - delivered_at
                      - delivered_items
                    properties:
                      line_item_id:
                        type: string
                      delivery_status:
                        type: string
                        enum:
                          - DELIVERED
                      delivered_at:
                        type: string
                      delivered_items:
                        type: object
            multipart/form-data:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    required:
                      - line_item_id
                      - delivery_status
                      - delivered_at
                      - delivered_items
                    properties:
                      line_item_id:
                        type: string
                      delivery_status:
                        type: string
                        enum:
                          - DELIVERED
                      delivered_at:
                        type: string
                      delivered_items:
                        type: object
            text/plain:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    required:
                      - line_item_id
                      - delivery_status
                      - delivered_at
                      - delivered_items
                    properties:
                      line_item_id:
                        type: string
                      delivery_status:
                        type: string
                        enum:
                          - DELIVERED
                      delivered_at:
                        type: string
                      delivered_items:
                        type: object
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: array
                        items:
                          type: object
                          required:
                            - field
                            - message
                          properties:
                            field:
                              type: string
                            message:
                              type: string
        '403':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: array
                        items:
                          type: object
                          required:
                            - field
                            - message
                          properties:
                            field:
                              type: string
                            message:
                              type: string
        '404':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: array
                        items:
                          type: object
                          required:
                            - field
                            - message
                          properties:
                            field:
                              type: string
                            message:
                              type: string
        '422':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: array
                        items:
                          type: object
                          required:
                            - field
                            - message
                          properties:
                            field:
                              type: string
                            message:
                              type: string
        '429':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: array
                        items:
                          type: object
                          required:
                            - field
                            - message
                          properties:
                            field:
                              type: string
                            message:
                              type: string
        '500':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                      details:
                        type: array
                        items:
                          type: object
                          required:
                            - field
                            - message
                          properties:
                            field:
                              type: string
                            message:
                              type: string
      deprecated: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Use your Shoppex API key in the Authorization header.

````