bigcommerce-api-python
bigcommerce-api-python copied to clipboard
Order field "custom_status" update returns an error
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
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)?
@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??...