Mark orders as shipped
Use markShipped to programmatically confirm the delivery of an order with physical products.
Requirements
You can confirm the shipment only for orders with tangible products. You cannot mark as shipped orders that are no longer authorized (have been reversed).
Request parameters
RefNo
Required (string) The system-generated order reference.
TrackingNumber
Optional (string) Tracking number that customers can use for checking the delivery of their products.
Comment
Optional (string) Additional information displayed in the delivery confirmation email sent to end-users.
StopCustomerNotification
Optional (boolean) Possible values:
TRUE - to send a notice informing customers of product shipment.
FALSE - will not trigger a customer notification
Request sample
require('PATH_TO_AUTH');
$RefNo = "789527422";
$TrackingNumber = '921840912';
$StopCustomerNotification = 1;
$Comment = "We send this note to confirm the shipment of your products.";
$jsonRpcRequest = new stdClass();
$jsonRpcRequest->jsonrpc = '2.0';
$jsonRpcRequest->method = 'markShipped';
$jsonRpcRequest->params = array($sessionID, $RefNo, $TrackingNumber, $StopCustomerNotification, $Comment);
$jsonRpcRequest->id = $i++;
$markOrderAsShipped = callRPC($jsonRpcRequest, $host);
var_dump($markOrderAsShipped);Response
Last updated
Was this helpful?