ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • POST(
          request: NextRequest,
      ): Promise<
          | NextResponse<{ success: boolean; error: string; scannedCode: any }>
          | NextResponse<
              {
                  success: boolean;
                  warehouse: {
                      id: string;
                      code: string;
                      name: string;
                      address: string
                      | null;
                      city: string | null;
                      isActive: boolean;
                      label: string;
                      totalLocations: number;
                      locations: any;
                  };
                  location: | {
                      id: string;
                      code: string;
                      name: string;
                      rack: string
                      | null;
                      level: string | null;
                      position: string | null;
                      status: string;
                      label: string;
                  }
                  | null;
              },
          >
          | NextResponse<{ success: boolean; error: string; details: string }>,
      >

      POST /api/tablet/warehouses/scan

      Scanner un code d'emplacement et récupérer l'entrepôt associé

      Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ success: boolean; error: string; scannedCode: any }>
          | NextResponse<
              {
                  success: boolean;
                  warehouse: {
                      id: string;
                      code: string;
                      name: string;
                      address: string
                      | null;
                      city: string | null;
                      isActive: boolean;
                      label: string;
                      totalLocations: number;
                      locations: any;
                  };
                  location: | {
                      id: string;
                      code: string;
                      name: string;
                      rack: string
                      | null;
                      level: string | null;
                      position: string | null;
                      status: string;
                      label: string;
                  }
                  | null;
              },
          >
          | NextResponse<{ success: boolean; error: string; details: string }>,
      >