Language

2Checkout Documentation

Ship

You must specify your API username and password using the Twocheckout.apiusername & Twocheckout.apipassword class variables before calling a method in this class.

Method

ship

Use to mark a sale as shipped.

Arguments

  • hash Parameters

Returns

Returns a TwocheckoutResponse object.

Example Usage:

Sale sale = TwocheckoutSale.retrieve("4831096515");
HashMap params = new HashMap();
params.put("tracking_number", "test");

TwocheckoutResponse result = sale.ship(params);

Example Response (toJson):

{
  "response_code" : "OK",
  "response_message" : "Sale marked shipped."
}