Language

2Checkout Documentation

Ship

The Twocheckout_Sale class provides methods to retrieve and update sales and will return an Array or JSON response depending on your format specification.

Method

ship

Use to mark a sale as shipped.

Arguments

  • Array containing mark_shipped parameters in key => value pairs. Parameters -> API Mark Shipped

Returns

Returns an Array or JSON depending on your format specification.

Example Usage:

Twocheckout::username('APIuser1817037');
Twocheckout::password('APIpass1817037');

$args = array(
    'sale_id' => 4750124492,
    'tracking_number' => 'qwerty0987654321'
);

$result = Twocheckout_Sale::ship($args);

Example Response:

Array
(
    [response_code] => OK
    [response_message] => Sale marked shipped.
)