Backend API

Fields
idobjectId

Unique identifier for the coupon code.

codestringauto

Code used to apply the coupon to a cart, order or subscription. A validation error will be returned if the code is not valid.

date_createddateauto

Date and time the coupon code was created.

date_updateddateauto

Date and time the coupon code was last updated.

gen_idobjectId

Unique ID corresponding to a coupon code generation.

ordersOrder

Expandable list of orders that have applied the coupon code.

parent_idobjectIdrequired

ID of the parent coupon, if applicable.

parentCoupon

Expandable link to the parent coupon.

subscriptionsSubscription

Expandable list of subscriptions that have applied the coupon code.

use_countint

Number of times the coupon code has been used.

The coupon code model
{
 "gen_id": "62b5cdffd7ad010018c66249",
 "parent_id": "62b5cdff2e40ab001ac27240",
 "use_count": 0,
 "date_created": "2022-06-24T14:45:20.941Z",
 "use_total": 0,
 "code": "PNB83100017",
 "id": "62b5ce0079c5d80012fe5f65"
}