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

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

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  lines: (
                      { salesOrderLine: { finishedProduct: (...)
                      | (...) } & {} } & {}
                  )[];
                  materialChecks: (
                      {
                          purchaseOrder: | {
                              expectedDate: (...)
                              | (...);
                              id: string;
                              number: string;
                              status: string;
                          }
                          | null;
                          rawMaterial: {
                              code: string;
                              id: string;
                              minStockLevel: number;
                              name: string;
                          };
                      } & {}
                  )[];
                  salesOrder: {
                      client: {
                          code: string;
                          email: string
                          | null;
                          id: string;
                          name: string;
                          phone: string | null;
                      };
                      lines: (
                          {
                              finishedProduct: (...)
                              | (...);
                              unitOfMeasure: (...) | (...);
                              unitOfPrice: (...) | (...);
                          } & {}
                      )[];
                  } & {};
              } & {},
          >,
      >