bigcommerce-api-python icon indicating copy to clipboard operation
bigcommerce-api-python copied to clipboard

Order field "custom_status" update returns an error

Open catokx opened this issue 5 years ago • 2 comments

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

catokx avatar Apr 02 '19 15:04 catokx

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)?

karen-white avatar Apr 15 '19 21:04 karen-white

@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??...

naishal avatar Oct 03 '20 10:10 naishal