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

Feedback for “Metafields” #675

Open
jaredSiebert opened this issue Nov 20, 2024 · 2 comments
Open

Feedback for “Metafields” #675

jaredSiebert opened this issue Nov 20, 2024 · 2 comments

Comments

@jaredSiebert
Copy link

Please outline the OAuth scope requirements for these two endpoints:

Get Customer Metafields List
https://developer.bigcommerce.com/docs/rest-management/customers/metafields#get-customer-metafields-list

Get Customer Metafields
https://developer.bigcommerce.com/docs/rest-management/customers/metafields#get-customer-metafields

/stores/{store_hash}/v3/customers/{customerId}/metafields/{metafieldId} requires more permission than /stores/{store_hash}/v3/customers/{customerId}/metafields and it's not clear which OAuth permissions are required or why there is even a difference

@bc-traciporter
Copy link
Collaborator

Hello @jaredSiebert
I just performed the two requests using the same OAuth Scope. There is no difference. The Authentication details are the same.

@jaredSiebert
Copy link
Author

jaredSiebert commented Nov 22, 2024

Thanks for getting back to me - I've reviewed the authorization listed for both endpoints and when using read-only settings I can access /customers/{custId}/metafields, but /customers/{custId}/metafields/{metafieldId} returns a 403

You are correct that if I use the OAuth scope of modify for customers, both endpoints work, but it does still seem strange that using read-only I can list all metafields for a customer but not retrieve a metafield by Id

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

2 participants