ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • POST(
          request: NextRequest,
      ): Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  success: boolean;
                  location: {
                      id: string;
                      code: string;
                      name: string;
                      rack: string
                      | null;
                      level: string | null;
                      position: string | null;
                      warehouse: { code: string; id: string; name: string };
                  };
                  status: string;
                  isOccupied: boolean;
                  totalQuantity: number;
                  currentStock: {
                      id: string;
                      quantity: number;
                      unit: string;
                      date: Date;
                      reference: string;
                      product: { code: string; id: string; name: string }
                      | null
                      | undefined;
                      lotNumber: string | undefined;
                  }[];
                  summary: {
                      locationName: string;
                      locationCode: string;
                      warehouseName: string;
                      rackInfo: string;
                      status: string;
                      occupiedQuantity: number;
                      stockItemsCount: number;
                  };
              },
          >,
      >

      Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  success: boolean;
                  location: {
                      id: string;
                      code: string;
                      name: string;
                      rack: string
                      | null;
                      level: string | null;
                      position: string | null;
                      warehouse: { code: string; id: string; name: string };
                  };
                  status: string;
                  isOccupied: boolean;
                  totalQuantity: number;
                  currentStock: {
                      id: string;
                      quantity: number;
                      unit: string;
                      date: Date;
                      reference: string;
                      product: { code: string; id: string; name: string }
                      | null
                      | undefined;
                      lotNumber: string | undefined;
                  }[];
                  summary: {
                      locationName: string;
                      locationCode: string;
                      warehouseName: string;
                      rackInfo: string;
                      status: string;
                      occupiedQuantity: number;
                      stockItemsCount: number;
                  };
              },
          >,
      >