-
Notifications
You must be signed in to change notification settings - Fork 16
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
- string option_id
- Parameters -> API Detail Option
####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"
}
]
}Please feel free to contact 2Checkout directly for assistance with your integration.