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

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

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  currency: { code: string; id: string; symbol: string }
                  | null;
                  lines: (
                      {
                          rawMaterial: {
                              code: string;
                              description: string
                              | null;
                              id: string;
                              name: string;
                              unitOfMeasure: { code: ...; id: ...; name: ... } | null;
                          };
                      } & {}
                  )[];
                  stockMovements: {
                      date: Date;
                      id: string;
                      notes: string
                      | null;
                      quantity: number;
                      type: StockMovementType;
                  }[];
                  supplier: {
                      addresses: {
                          city: string
                          | null;
                          country: string | null;
                          postalCode: string | null;
                          state: string | null;
                          street: string | null;
                      }[];
                      code: string;
                      email: string
                      | null;
                      id: string;
                      name: string;
                      phone: string | null;
                  };
              } & {},
          >,
      >