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 contact information from your 2Checkout Contact Information page.

Arguments

  • none

Returns

Returns a Python object.

Example Usage:

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

result = twocheckout.Contact.retrieve()

Example Response:

{
   '2co_account_level_id': '1',
   'customer_service_email': 'no-reply@2checkout.com',
   'customer_service_phone': '6149212450',
   'customer_service_phone_ext': '0',
   'mailing_address_1': '​855 Grandview Avenue',
   'mailing_address_2': 'Suite 11',
   'mailing_address_id': '4774374395',
   'mailing_city': 'Columbus',
   'mailing_country_code': 'USA',
   'mailing_postal_code': '43215',
   'mailing_state': 'OH',
   'mid': 'BOFA',
   'office_email': 'no-reply@2checkout.com',
   'office_phone': '6149212450',
   'office_phone_ext': '0',
   'physical_address_1': '​855 Grandview Avenue',
   'physical_address_2': 'Suite 11',
   'physical_address_id': '4774374398',
   'physical_city': 'Columbus',
   'physical_country_code': 'USA',
   'physical_postal_code': '43215',
   'physical_state': 'OH',
   'vendor_id': '1817037'
}