WordPress.org

Forums

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

  1. RenzoF
    Member
    Posted 1 year 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 1 year 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 1 year ago #

    Hi,

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

    Thank you
    Daniel

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags