# List all manufacturing orders

Returns a list of manufacturing orders you’ve previously created.
  The manufacturing orders are returned in sorted order, with the most recent manufacturing orders appearing first.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "RESOURCES",
    "version": "1.0.0",
    "description": "public api"
  },
  "servers": [
    {
      "url": "https://api.katanamrp.com/v1"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "paths": {
    "/manufacturing_orders": {
      "get": {
        "summary": "List all manufacturing orders",
        "tags": [
          "Manufacturing order"
        ],
        "description": "Returns a list of manufacturing orders you’ve previously created.\n  The manufacturing orders are returned in sorted order, with the most recent manufacturing orders appearing first.",
        "operationId": "getAllManufacturingOrders",
        "parameters": [
          {
            "name": "ids",
            "required": false,
            "description": "Filters manufacturing orders by an array of IDs",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "in": "query"
          },
          {
            "name": "status",
            "required": false,
            "description": "Filters manufacturing orders by a status.",
            "schema": {
              "enum": [
                "NOT_STARTED",
                "BLOCKED",
                "IN_PROGRESS",
                "DONE"
              ]
            },
            "in": "query"
          },
          {
            "name": "order_no",
            "required": false,
            "description": "Filters manufacturing orders by an order number.",
            "schema": {
              "type": "string"
            },
            "in": "query"
          },
          {
            "name": "location_id",
            "required": false,
            "description": "Filters manufacturing orders by location.",
            "schema": {
              "type": "number"
            },
            "in": "query"
          },
          {
            "name": "is_linked_to_sales_order",
            "required": false,
            "description": "Filters based on whether a manufacturing order is linked to a sales order or not.",
            "schema": {
              "type": "boolean"
            },
            "in": "query"
          },
          {
            "name": "include_deleted",
            "required": false,
            "description": "Soft-deleted data is excluded from result set by default. Set to true to include it.",
            "schema": {
              "type": "boolean"
            },
            "in": "query"
          },
          {
            "name": "limit",
            "required": false,
            "description": "Used for pagination (default is 50)",
            "schema": {
              "type": "string"
            },
            "in": "query"
          },
          {
            "name": "page",
            "required": false,
            "description": "Used for pagination (default is 1)",
            "schema": {
              "type": "string"
            },
            "in": "query"
          },
          {
            "name": "created_at_min",
            "required": false,
            "description": "Minimum value for created_at range. Must be compatible with ISO 8601 format",
            "schema": {
              "type": "string"
            },
            "in": "query"
          },
          {
            "name": "created_at_max",
            "required": false,
            "description": "Maximum value for created_at range. Must be compatible with ISO 8601 format",
            "schema": {
              "type": "string"
            },
            "in": "query"
          },
          {
            "name": "updated_at_min",
            "required": false,
            "description": "Minimum value for updated_at range. Must be compatible with ISO 8601 format",
            "schema": {
              "type": "string"
            },
            "in": "query"
          },
          {
            "name": "updated_at_max",
            "required": false,
            "description": "Maximum value for updated_at range. Must be compatible with ISO 8601 format",
            "schema": {
              "type": "string"
            },
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "List all materials",
            "headers": {
              "X-Pagination": {
                "description": "Pagination metadata",
                "schema": {
                  "type": "object",
                  "properties": {
                    "total_records": {
                      "type": "number"
                    },
                    "total_pages": {
                      "type": "number"
                    },
                    "offset": {
                      "type": "number"
                    },
                    "page": {
                      "type": "number"
                    },
                    "first_page": {
                      "type": "boolean"
                    },
                    "last_page": {
                      "type": "boolean"
                    }
                  }
                }
              },
              "X-Ratelimit-Limit": {
                "description": "Number of requests available for this application.",
                "schema": {
                  "type": "number"
                }
              },
              "X-Ratelimit-Remaining": {
                "description": "Number of requests remaining in quota.",
                "schema": {
                  "type": "number"
                }
              },
              "X-Ratelimit-Reset": {
                "description": "The timestamp when the quota will reset.",
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "id": 21400,
                      "status": "NOT_STARTED",
                      "order_no": "SO-2 / 1",
                      "variant_id": 1418016,
                      "planned_quantity": 1,
                      "actual_quantity": null,
                      "batch_transactions": [],
                      "location_id": 2327,
                      "order_created_date": "2021-09-01T07:49:29.000Z",
                      "done_date": null,
                      "production_deadline_date": "2021-10-18T08:00:00.000Z",
                      "additional_info": "",
                      "is_linked_to_sales_order": true,
                      "ingredient_availability": "IN_STOCK",
                      "total_cost": 0,
                      "total_actual_time": 0,
                      "total_planned_time": 18000,
                      "sales_order_id": 1,
                      "sales_order_row_id": 1,
                      "sales_order_delivery_deadline": "2021-09-01T07:49:29.813Z",
                      "material_cost": 10,
                      "created_at": "2021-09-01T07:49:29.813Z",
                      "updated_at": "2021-10-15T14:05:47.625Z",
                      "subassemblies_cost": 10,
                      "operations_cost": 10,
                      "deleted_at": null,
                      "serial_numbers": [
                        {
                          "id": 1,
                          "transaction_id": "eb4da756-0842-4495-9118-f8135f681234",
                          "serial_number": "SN1",
                          "resource_type": "Production",
                          "resource_id": 2,
                          "transaction_date": "2023-02-10T10:06:14.435Z"
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Make sure you've entered your API token correctly.",
            "headers": {
              "X-Ratelimit-Limit": {
                "description": "Number of requests available for this application.",
                "schema": {
                  "type": "number"
                }
              },
              "X-Ratelimit-Remaining": {
                "description": "Number of requests remaining in quota.",
                "schema": {
                  "type": "number"
                }
              },
              "X-Ratelimit-Reset": {
                "description": "The timestamp when the quota will reset.",
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "statusCode": 401,
                  "name": "UnauthorizedError",
                  "message": "Unauthorized"
                }
              }
            }
          },
          "429": {
            "description": "The rate limit has been reached. Please try again later.",
            "headers": {
              "X-Ratelimit-Limit": {
                "description": "Number of requests available for this application.",
                "schema": {
                  "type": "number"
                }
              },
              "X-Ratelimit-Remaining": {
                "description": "Number of requests remaining in quota.",
                "schema": {
                  "type": "number"
                }
              },
              "X-Ratelimit-Reset": {
                "description": "The timestamp when the quota will reset.",
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "statusCode": 429,
                  "name": "TooManyRequests",
                  "message": "Too Many Requests"
                }
              }
            }
          },
          "500": {
            "description": "The server encountered an error. If this persists, please contact support",
            "headers": {
              "X-Ratelimit-Limit": {
                "description": "Number of requests available for this application.",
                "schema": {
                  "type": "number"
                }
              },
              "X-Ratelimit-Remaining": {
                "description": "Number of requests remaining in quota.",
                "schema": {
                  "type": "number"
                }
              },
              "X-Ratelimit-Reset": {
                "description": "The timestamp when the quota will reset.",
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "statusCode": 500,
                  "name": "InternalServerError",
                  "message": "Internal Server Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "x-explorer-enabled": false,
  "x-samples-enabled": true,
  "x-samples-languages": [
    "curl",
    "node",
    "go",
    "ruby",
    "python",
    "php"
  ],
  "x-headers": [
    {
      "key": "Authorization",
      "value": "Bearer <Your api key>"
    }
  ]
}
```