Skip to content

Intercom::BadRequestError: found unpermitted parameter #607

@ortizedgar-buda

Description

@ortizedgar-buda

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions