Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intercom::BadRequestError: found unpermitted parameter #607

Open
ortizedgar-buda opened this issue Jul 6, 2023 · 0 comments
Open

Intercom::BadRequestError: found unpermitted parameter #607

ortizedgar-buda opened this issue Jul 6, 2023 · 0 comments

Comments

@ortizedgar-buda
Copy link

Version info

  • intercom-ruby version: 3.5.26
  • Ruby version: 2.7.8p225

Expected behavior

The tracking should pass normally.

Actual behavior

It fails because in the metadata there are parameters called base_amount and quote_amount that it doesn't seem to like.

Steps to reproduce

    def intercom
      @intercom ||= Intercom::Client.new(token: ENV['INTERCOM_ACCESS_TOKEN'])
    end

    intercom.events.create(
      user_id: 123,
      event_name: 'event',
      created_at: Time.now.to_i,
      metadata: {
          base_amount: [2_000, 'A'],
          quote_amount: [2_000, 'B'],
        }
    )

Logs

Intercom::BadRequestError
found unpermitted parameters: :base_amount, :quote_amount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant