ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • Parameters

      • request: NextRequest
      • __namedParameters: { params: Promise<{ id: string }> }

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  client: | {
                      code: string;
                      email: string
                      | null;
                      id: string;
                      name: string;
                      phone: string | null;
                  }
                  | null;
                  datesValidatedByUser: | {
                      email: string;
                      id: string;
                      name: string
                      | null;
                  }
                  | null;
                  finishedProduct: {
                      client: { code: string; id: string; name: string }
                      | null;
                      code: string;
                      description: string | null;
                      id: string;
                      name: string;
                  };
                  lines: (
                      {
                          finishedProduct: { code: string; id: string; name: string }
                          | null;
                          purchaseOrder:
                              | {
                                  expectedDate: (...)
                                  | (...);
                                  id: string;
                                  number: string;
                                  orderDate: Date;
                                  status: string;
                                  totalAmount: number;
                              }
                              | null;
                          rawMaterial: | {
                              code: string;
                              cost: number;
                              id: string;
                              name: string;
                              supplier: (...)
                              | (...);
                              supplierId: (...) | (...);
                          }
                          | null;
                          supplier: { code: string; id: string; name: string }
                          | null;
                          unitOfMeasure:
                              | { code: string; id: string; name: string; symbol: (...)
                              | (...) }
                              | null;
                      } & {}
                  )[];
                  responsibleUser: | { email: string; id: string; name: string
                  | null }
                  | null;
                  routing:
                      | {
                          economicBatch: number
                          | null;
                          endDate: Date | null;
                          finishedProduct: { code: string; name: string };
                          id: string;
                          manufacturingMultiple: number | null;
                          minimumManufacturingQty: number | null;
                          name: string;
                          operations: {
                              code: string;
                              id: string;
                              name: string;
                              sequence: number | null;
                          }[];
                          referenceQuantity: number;
                          startDate: Date
                          | null;
                          status: RoutingStatus;
                      }
                      | null;
                  salesOrderLine: | {
                      id: string;
                      quantity: number;
                      salesOrder: {
                          clientOrderNumber: string
                          | null;
                          id: string;
                          number: string;
                      };
                  }
                  | null;
              } & {},
          >,
      >