communityID. Product responses expose category as a readable name and hide internal-only fields, voucher codes, and custom redemption options.vouchers is empty, send vouchers: [] and voucherExpireDate: "". Duplicate voucher codes within the same product return 409.curl --location --request PUT 'https://adss-integration.returning.ai/apis/products/507f1f77bcf86cd799439031' \
--header 'Authorization: Bearer XXXXXX' \
--header 'Content-Type: application/json' \
--data '{
"name": "Premium Voucher",
"description": "<p>Premium access reward.</p>",
"image": "https://example.com/images/premium-voucher.png",
"price": 100,
"categoryName": "Premium Rewards",
"discountPrice": 90,
"isDiscountEnabled": false,
"discountStartDate": null,
"discountEndDate": null,
"userInformation": {
"isEnabled": false,
"shouldCollectName": false,
"shouldCollectPhone": false,
"shouldCollectAddress": false
},
"shouldPrioritiesExpiringVouchers": false,
"shouldDisplayRemainingQuantity": true,
"expiringVoucherHighlight": {
"isEnabled": false,
"duration": 7,
"timeframe": "days"
},
"isArchived": false,
"redemptionInstructions": "<p>Show this voucher at checkout.</p>",
"productPermission": [],
"isProductAccessEnabled": false,
"purchaseStatusOverrideName": null,
"vouchers": [
"VOUCHER-003",
"VOUCHER-004"
],
"voucherExpireDate": "2026-12-31T00:00:00.000Z"
}'{
"meta": {
"status": "success",
"statusCode": 200
},
"message": "Update product success.",
"data": {
"_id": "507f1f77bcf86cd799439031",
"communityID": "6502c9e514a3e564c5c09c0a",
"name": "Premium Voucher",
"description": "<p>Premium access reward.</p>",
"image": "https://example.com/images/premium-voucher.png",
"price": 100,
"category": "Premium Rewards",
"stocks": 4,
"discountPrice": 90,
"isDiscountEnabled": false,
"discountStartDate": null,
"discountEndDate": null,
"userInformation": {
"isEnabled": false,
"shouldCollectName": false,
"shouldCollectPhone": false,
"shouldCollectAddress": false
},
"shouldPrioritiesExpiringVouchers": false,
"shouldDisplayRemainingQuantity": true,
"expiringVoucherHighlight": {
"isEnabled": false,
"duration": 7,
"timeframe": "days"
},
"isArchived": false,
"totalOrders": 0,
"redemptionInstructions": "<p>Show this voucher at checkout.</p>",
"productPermission": [],
"isProductAccessEnabled": false,
"purchaseStatusOverride": {
"isEnabled": false,
"status": null
},
"createdAt": "2026-06-09T00:00:00.000Z",
"updatedAt": "2026-06-09T00:00:00.000Z"
}
}