Skip to content

Option_Retrieve

Jacob McConnell edited this page Jun 10, 2014 · 2 revisions

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

##Methods

###retrieve

Use to retrieve an existing option.

####Arguments

####Returns

Returns a ProductOption object.

####Example Usage:

ProductOption option = TwocheckoutOption.retrieve(option_id);

####Example Response (toJson):

{
   "option_id" : "4774467875",
   "option_name" : "Example Option",
   "option_values" : [
      {
         "option_value_id" : "4774467878",
         "option_value_name" : "Test",
         "option_value_surcharge" : "1.00"
      }
   ]
}

Clone this wiki locally