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

Order field "custom_status" update returns an error #82

Open
catokx opened this issue Apr 2, 2019 · 2 comments
Open

Order field "custom_status" update returns an error #82

catokx opened this issue Apr 2, 2019 · 2 comments

Comments

@catokx
Copy link

catokx commented Apr 2, 2019

Expected behavior

when i do something lile this
BCPYTHONCLIENT.Orders.get(10).update(custom_status='Completed')
update succefully

Actual behavior

resturns an errror
bigcommerce.exception.ClientRequestException: 400 Bad Request @ orders/10: b'[{"status":400,"message":"The field 'custom_status' is not supported by this resource."}]'

Steps to reproduce behavior

@karen-white
Copy link
Contributor

It would be good to get a few more details about what you're trying to do. The "custom_status" field on an order reflects a custom status label, if one of the default status labels has been renamed. Are you trying to rename the custom label? Or change the order's status to reflect a change in state (Awaiting fulfillment > Completed)?

@naishal
Copy link

naishal commented Oct 3, 2020

@catokx @karen-white
I am getting same error when i do the following:
i have passed email_id and order_id in function.....
customer = api_client.Customers.all(email=email_id)[0]
orders = api_client.Orders.all(customer_id=customer.id, id=order_id)
The above gives error- the field 'id' is not supported by this resource.

Instead when i do the following it runs perfectly:
customer = api_client.Customers.all(email=email_id)[0]
orders = api_client.Orders.all(customer_id=customer.id)

Can you please help me out??...

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

3 participants