Skip to content

Sale_Comment

Jacob McConnell edited this page Jun 11, 2014 · 3 revisions

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

##Method

###comment

Use to add a comment to a sale.

####Arguments

  • object - Object containing sale parameters. Parameters -> API Create Comment
  • callback - Function to be called on success/error

####Returns

Result Object

####Example Usage:

args = {
    sale_id: "4774380224",
    sale_comment: "nodejs test"
};

tco.sales.comment(args, function (error, data) {
    if (error) {
        console.log(error);
    } else {
        console.log(data.response_code);
    }
});

####Example Response:

{
    "response_code": "OK",
    "response_message": "Created comment successfully."
}
Clone this wiki locally