Skip to content

Create refund line_item data #17

@danielhoey

Description

@danielhoey

The data required to create a refund with line_items is not documented correctly. It suggests that the data should be line item properties, eg:

{
  "order_refund": {
  ...
  "line_items": [{"id":1, "total": "10", ...}]
  }
}

but the data that the API expects is:

{
  "order_refund": {
  ...
  "line_items": {1: {"refund_total": "10", "refund_tax": "0", "qty": 1}]
  }
}

(http://woothemes.github.io/woocommerce-rest-api-docs/#create-a-refund-for-an-order)

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