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

Example in repo no longer working since v5.0 #139

Open
toddheslin opened this issue Aug 25, 2023 · 1 comment
Open

Example in repo no longer working since v5.0 #139

toddheslin opened this issue Aug 25, 2023 · 1 comment

Comments

@toddheslin
Copy link

Expected Behavior

The following example from the readme should work:

courier-node/README.md

Lines 831 to 834 in 041a204

await courier.users.put("<USER_ID>", {
accounts: [{ account_id: "ACCOUNT_ID", profile: { foo: "bar" } }],
profile: { name: "John Doe" },
});

Actual Behavior

Receiving 400 error:

 {
    message: 'must NOT have additional properties',
    type: 'invalid_request_error'
  }

Steps to Reproduce the Problem

  1. Make request as per readme
  2. Catch thrown response
  3. Inspect response

Specifications

  • Version: 5.0
  • Platform: node18
  • Subsystem: macos
@jmarbutt
Copy link

jmarbutt commented Dec 6, 2023

It looks like none of the examples are correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants