Language

2Checkout Documentation

Retrieve

You must specify your API username and password using the twocheckout.Api.credentials method before calling a method in this class.

Methods

retrieve

Use to retrieve company information from your 2Checkout Site Management page.

Arguments

  • none

Returns

Returns a Python object.

Example Usage:

twocheckout.Api.credentials({'username':'APIuser1817037', 'password':'APIpass1817037'})

result = twocheckout.Company.retrieve()

Example Response:

{
   'affiliate_url': None,
   'currency_code': 'USD',
   'currency_name': 'US Dollars',
   'currency_symbol': '$',
   'demo': 'P',
   'pending_return_url': None,
   'return_method': '0',
   'return_url': 'http://localhost:51393/Orders/Return',
   'secret_word': 'tango',
   'site_category': 'Other',
   'site_description': '',
   'site_title': '',
   'soft_descriptor': 'D1817037',
   'url': 'http://localhost/',
   'vendor_id': '1817037',
   'vendor_name': 'Library Test Account'
}