Skip to content

Sale_Active

Craig Christenson edited this page Oct 26, 2012 · 1 revision

2Checkout's back office API allows you to retrieve sale information. You must specify your API username and password using the TwocheckoutConfig.ApiUsername & TwocheckoutConfig.ApiPassword class variables before calling a method in this class. The TwocheckoutSale class provides methods to retrieve and update sales and will return a JSON object.

##Method

###active

Use to return all active recurring lineitem_id's on a sale.

####Arguments

  • Dictionary<string, string> Parameters
  • Dictionary containing sale_id parameter.

####Returns

Returns result as HashMap.

####Example Usage:

var dictionary = new Dictionary<string, string>();
dictionary.Add("sale_id", "4785609712");

String result = TwocheckoutSale.Active(dictionary);

####Example Response:

{
  "lineitem_id0": "4785609745",
  "lineitem_id1": "4785609754",
  "lineitem_id2": "4785609763"
}
Clone this wiki locally