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

# Fulfill an order

> Allocate labels against an order’s remaining quantity. Send the order number as `OrderID` and include at least one entry in `References`.

If the request times out, check the order before retrying.



## OpenAPI

````yaml /openapi/openapi.json patch /Inventory/FulfillOrder
openapi: 3.1.0
info:
  title: Aiyoti Integration API
  description: Create, retrieve, update, and manage the tracking lifecycle of assets.
  version: 0.0.1
servers:
  - url: '{BaseURL}'
    variables:
      BaseURL:
        default: '{{BaseURL}}'
        description: >-
          Base URL provided when you create API credentials in the Aiyoti
          platform.
security: []
tags:
  - name: Assets / Shipments
    description: Create, list, retrieve, edit, annotate, and delete assets.
  - name: Locations
    description: Manage saved areas and find assets within them.
  - name: Carriers
    description: Look up the carriers available to an account.
  - name: Labels
    description: Look up the labels available for new assets.
  - name: Accounts
    description: Find and manage account records.
  - name: Users
    description: Look up user records.
  - name: Events
    description: Look up event types and query event history.
  - name: Webhooks
    description: Configure subscriptions to Aiyoti events.
  - name: Inventory
    description: Check label stock and look up label SKUs.
paths:
  /Inventory/FulfillOrder:
    patch:
      tags:
        - Inventory
      summary: Fulfill an order
      description: >-
        Allocate labels against an order’s remaining quantity. Send the order
        number as `OrderID` and include at least one entry in `References`.


        If the request times out, check the order before retrying.
      operationId: fulfill_order_Inventory_FulfillOrder_patch
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FulfillOrder'
            examples:
              example:
                summary: Fulfill an order
                value:
                  OrderID: EXAMPLE-ORDER
                  References:
                    - Labels:
                        - 100002
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                type: object
              example:
                Code: 200
                Message: Success
                OrderNo: EXAMPLE-ORDER
        '400':
          description: >-
            Request rejected. Check your credentials, account access, and
            request parameters.
        '422':
          description: Request validation failed. Check required fields and value types.
      security:
        - clientId: []
          apiKey: []
components:
  schemas:
    FulfillOrder:
      properties:
        OrderID:
          type: string
          description: Order number returned when an order is created.
        References:
          items:
            $ref: '#/components/schemas/_PickedLabels'
          type: array
      type: object
      required:
        - OrderID
        - References
    _PickedLabels:
      properties:
        Labels:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
        StaringLabel:
          anyOf:
            - type: integer
            - type: 'null'
        Quantity:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
  securitySchemes:
    clientId:
      type: apiKey
      in: header
      name: ClientID
    apiKey:
      type: apiKey
      in: header
      name: ApiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.