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

# Update reorder request status

> Update the status of a reorder request. When accepting, creates a manifest. When reverting from accepted, cancels the linked manifest.



## OpenAPI

````yaml api-reference/v1/openapi.yaml patch /v1/admin/partners/reorders/{id}/status
openapi: 3.1.0
info:
  title: Goods API
  version: 1.0.0
  description: >-
    API for Goods grocery operations - scanner app, admin dashboard, and
    customer features
  contact:
    name: Goods Team
    url: https://goods.app
servers:
  - url: http://localhost:3000
    description: Local development
  - url: https://dev.api.switchyard.run
    description: Development
  - url: https://api.switchyard.run
    description: Production
security: []
tags:
  - name: v1
    description: API v1 - unified domain-based endpoints
  - name: Scanner
    description: Scanner app endpoints for drivers and pickers
  - name: Sweeps
    description: Sweep management - retail store pickup operations
  - name: RFC Picks
    description: Ready-for-checkout picking operations
  - name: Inventory
    description: Inventory management and barcode lookup
  - name: Admin
    description: Admin dashboard endpoints
  - name: Orders
    description: Order management
  - name: Products
    description: Product catalog management
  - name: Notifications
    description: Push, email, SMS, and Slack notification management
paths:
  /v1/admin/partners/reorders/{id}/status:
    patch:
      tags:
        - Admin - Reorder Requests
      summary: Update reorder request status
      description: >-
        Update the status of a reorder request. When accepting, creates a
        manifest. When reverting from accepted, cancels the linked manifest.
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                status:
                  type: string
                  enum:
                    - pending
                    - accepted
                    - rejected
                    - expired
                    - cancelled
                response_notes:
                  type: string
                expected_delivery_date:
                  type: string
              required:
                - status
      responses:
        '200':
          description: Status updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  request:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      partner_brand_id:
                        type: string
                        format: uuid
                      partner_company_name:
                        type: string
                      status:
                        type: string
                        enum:
                          - pending
                          - accepted
                          - rejected
                          - expired
                          - cancelled
                      requested_at:
                        type: string
                        format: date-time
                      expires_at:
                        type: string
                        format: date-time
                      responded_at:
                        type: string
                        nullable: true
                        format: date-time
                      response_notes:
                        type: string
                        nullable: true
                      manifest_id:
                        type: string
                        nullable: true
                        format: uuid
                      is_auto_generated:
                        type: boolean
                      notes:
                        type: string
                        nullable: true
                      created_by:
                        type: string
                        nullable: true
                        format: uuid
                      items:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            sellable_product_id:
                              type: string
                              format: uuid
                            product_name:
                              type: string
                            product_image_url:
                              type: string
                              nullable: true
                            requested_quantity:
                              type: integer
                            current_inventory:
                              type: integer
                            reorder_point:
                              type: integer
                              nullable: true
                            avg_daily_sales:
                              type: number
                              nullable: true
                            days_of_stock:
                              type: number
                              nullable: true
                          required:
                            - id
                            - sellable_product_id
                            - product_name
                            - product_image_url
                            - requested_quantity
                            - current_inventory
                            - reorder_point
                            - avg_daily_sales
                            - days_of_stock
                      total_requested_quantity:
                        type: integer
                    required:
                      - id
                      - partner_brand_id
                      - partner_company_name
                      - status
                      - requested_at
                      - expires_at
                      - responded_at
                      - response_notes
                      - manifest_id
                      - is_auto_generated
                      - notes
                      - created_by
                      - items
                      - total_requested_quantity
                  manifest_id:
                    type: string
                    nullable: true
                    format: uuid
                required:
                  - success
                  - request
                  - manifest_id
        '400':
          description: Invalid status transition
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - error
        '404':
          description: Request not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - error
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - error

````