Language

2Checkout Documentation

Create

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

Method

create

Use to create a product.

Arguments

  • dictionary Parameters

Returns

Returns a Python object.

Example Usage:

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

params = {
    'name': 'Example Product',
    'price': 1.00
    }

result = twocheckout.Product.create(params)

Example Response:

{
    u'assigned_product_id': u'442',
    u'product_id': u'4837117980',
    u'response_code': u'OK',
    u'response_message': u'Product successfully created'
}