WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] REST API PUT change order status (3 posts)

  1. RenzoF
    Member
    Posted 5 months ago #

    Hi,

    I am trying to update an order status via REST api though I am getting

    Missing parameter data

    Any ideas?

    WC 2.1.2
    user has read and write permissions for wc api
    reading works fine for order and products
    format: https://localhost/wc-api/v1/orders/1947?status=cancelled (plus authorization headers)

    Thanks

    https://wordpress.org/plugins/woocommerce/

  2. RenzoF
    Member
    Posted 5 months ago #

    Nevermind got it.
    If anyone has the same issue the solution put the data in the request as JSON

    eg:
    {
    "status":"cancelled"
    }

    Great documentation here
    http://www.skyverge.com/woocommerce-rest-api-docs.html#orders/order-properties

    cheers

  3. usul27
    Member
    Posted 5 months ago #

    Hi,

    I'm having the same problem. Can you post how your HTTP request looks like?

    Thank you
    Daniel

Reply

You must log in to post.

About this Plugin

About this Topic

Tags