Update a virtual coupon

PUT: /wp-json/coupons/v1/virtualcoupons/‌{virtual_coupon_id}

Requirements:

  • Logged-in user

  • user role with manage_woocommerce user capability

Method

Endpoint

PUT

/wp-json/coupons/v1/virtualcoupons/‌{virtual_coupon_id}

Query Parameters

Required

Type

Description

status

no

string

Valid virtual coupon status: pending or used

date_created

no

string

Date and time of virtual coupon was created

date_expire

no

string

Date and time for virtual coupon to be marked as expired.

user_id

no

integer

Customer ID

date_format

no

string

Date format of the provided date values

Last updated