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

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

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  addresses: {
                      city: string
                      | null;
                      country: string | null;
                      id: string;
                      isDefault: boolean;
                      postalCode: string | null;
                      state: string | null;
                      street: string | null;
                  }[];
                  company: { id: string; name: string }
                  | null;
                  contacts: {
                      email: string | null;
                      firstName: string;
                      id: string;
                      isDefault: boolean;
                      lastName: string;
                      phone: string | null;
                      position: string | null;
                  }[];
                  currency: { id: string; name: string; symbol: string }
                  | null;
                  deliveryNotes: {
                      createdAt: Date;
                      deliveryDate: Date;
                      id: string;
                      number: string;
                      status: string;
                  }[];
                  files: {
                      createdAt: Date;
                      filename: string;
                      id: string;
                      mimetype: string;
                      size: number;
                      url: string;
                  }[];
                  legalIdentifiers: {
                      country: string
                      | null;
                      id: string;
                      type: string;
                      value: string;
                  }[];
                  stockMovements: {
                      date: Date;
                      id: string;
                      quantity: number;
                      reference: string;
                      type: StockMovementType;
                  }[];
              } & {},
          >,
      >