Skip to content

Order field "custom_status" update returns an error #82

Open

Description

@catokx

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

Activity

  1. karen-white commented on Apr 15, 2019

    @karen-white
    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)?

  2. naishal commented on Oct 3, 2020

    @naishal

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions