-
Notifications
You must be signed in to change notification settings - Fork 17
Sale_Comment
Jacob McConnell edited this page Jun 9, 2014
·
2 revisions
You must specify your API username and password using the twocheckout.Api.credentials
method before calling a method in this class.
##Method
###comment
Use to add a comment to a sale.
####Arguments
- dictionary Parameters
- Dictionary containing create_comment parameters. Parameters -> API Create Comment
####Returns
Returns a Python object.
####Example Usage:
twocheckout.Api.credentials({'username':'APIuser1817037', 'password':'APIpass1817037'})
params = {
'sale_id': 4774467596,
'sale_comment': 'test'
}
sale = twocheckout.Sale.find(params)
result = sale.comment(params)
print result
####Example Response:
{
u'response_code': u'OK',
u'response_message': u'Created comment successfully.'
}
Please feel free to contact 2Checkout directly for assistance with your integration.