8000 Update of order line_items · Issue #18 · calatonsystems/wc-api-java · GitHub
[go: up one dir, main page]

Skip to content
Update of order line_items #18
Open
@philipdomann

Description

@philipdomann

Hi icoderman,
can you please give me an example of how I can update line_items of an order?

params.put("line_items", p); Map response = wooCommerce.update(EndpointBaseType.ORDERS.getValue(), orderId, params);

I only get the message:
{code=rest_invalid_param, message=Ungültige(r) Parameter: line_items, data={status=400, params={line_items=line_items[0] ist nicht vom Typ object.}}}

It works with Postman, when I use raw (Json) and this structure:
{"line_items": [{...}]}

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

      0