-
Notifications
You must be signed in to change notification settings - Fork 12
Coupon_Update
Jacob McConnell edited this page Jun 6, 2014
·
2 revisions
The CouponService class provides methods to create, retrieve, update and delete coupons.
##Method
###update
Use to update an existing coupon.
####Arguments
- TwoCheckoutConfig - Set your ApiUsername and ApiPassword.
- CouponUpdateServiceOptions Object containing update coupon attributes
####Returns
Returns a TwocheckoutResponse object.
####Example Usage:
var ServiceObject = new CouponService();
var ArgsObject = new CouponCreateServiceOptions();
ArgsObject.coupon_code = time;
ArgsObject.date_expire = "2099-12-22";
ArgsObject.type = "shipping";
var result = ServiceObject.Create(ArgsObject);
####Example Response:
{TwoCheckout.TwoCheckoutResponse}
response_code: "OK"
response_message: "Coupon updated successfully"
coupon_code: "DOTNETSHIPPING"
Please feel free to contact 2Checkout directly for assistance with your integration.