change_order_status


POST /change_order_status

Updates the status of a Sale Order according to specific user-defined criteria.

            {
                "api_credentials": {
                "token": "XXXX"
                },
                "order": {
                    "order_type": "SalesOrder",
                    "order_code_365": "00100002",
                    "order_status_code_365": "TBCHECHECKED",
                    "user_code": "your_user_code",
                    "reason": "your reason for the status change"
                }
            }
        

Updates the status of a Purchase Order according to specific user-defined criteria.

            {
                "api_credentials": {
                "token": "XXXX"
                },
                "order": {
                    "order_type": "PurchaseOrder",
                    "order_code_365": "00100002",
                    "order_status_code_365": "TBCHECHECKED",
                    "user_code": "your_user_code",
                    "reason": "your reason for the order status change"
                }
            }
        


field type description
api_credentials
token string Credentials provided by Powersoft that allow access to the API
order
order_type string Order Type. Only 'SalesOrder' and 'PurchaseOrder' values are accepted. Required.
order_code_365 string 365 order code. Required.
order_status_code_365 string 365 order status code. Required.
user_code string Your user code or name responsible for performing the status change, limited to a maximum of 36 characters. Required.
reason string Your reason for the order status change. Required.

Returns

Returns the standard api_response object. The Powersoft365 order code is returned in the response_id field.