Language

2Checkout Documentation

Contact

You must specify your API username and password when creating your 2checkout-node object (named ‘tco’ in these examples) before calling this method.

Description

Use to retrieve your contact information.

Arguments

  • callback - Function to be called on success/error

Returns

  • Contact Object

Example Usage:

tco.account.contact(function (error, data) {
    if (error) {
        console.log(error);
    } else {
        console.log(data.response_code);
    }
});

Example Response:

{
    "response_code": "OK",
    "response_message": "contact info retrieved",
    "vendor_contact_info": {
        "2co_account_level_id": "3",
        "customer_service_email": "support@fake-company.com",
        "customer_service_phone": "555-555-5555",
        "customer_service_phone_ext": "null",
        "mailing_address_1": "​855 Grandview Avenue",
        "mailing_address_2": "Suite 11",
        "mailing_address_id": "2436561523",
        "mailing_city": "Columbus",
        "mailing_country_code": "USA",
        "mailing_postal_code": "43215",
        "mailing_state": "OH",
        "office_email": "no-reply@fake-company.com",
        "office_phone": "555-555-5555",
        "office_phone_ext": null,
        "physical_address_1": "​855 Grandview Avenue",
        "physical_address_2": "Suite 11",
        "physical_address_id": "2436561526",
        "physical_city": "Columbus",
        "physical_country_code": "USA",
        "physical_postal_code": "43215",
        "physical_state": "OH",
        "vendor_id": "123456"
    }
}