Closed michaelfranzl closed 11 years ago
get_coupons -> payload -> exclude_product_ids
It is a weird string but get_supported_attributes defines it as an Array. Here the raw response:
{ "action": "woocommerce_json_api", "proc": "get_coupons", "arguments": { "token": "1234" }, "status": true, "errors": [], "warnings": [], "notifications": [], "payload": [ { "id": "21", "code": "cc1", "slug": "cc1", "type": "shop_coupon", "publishing": "publish", "discount_type": "fixed_cart", "value": "10", "is_exclusive": "yes", "limit": "100", "product_ids": "s:100:\"s:92:\"s:84:\"s:76:\"s:68:\"s:60:\"s:52:\"s:44:\"s:36:\"s:28:\"s:20:\"s:12:\"s:5:\"16,15\";\";\";\";\";\";\";\";\";\";\";\";\";", "exclude_product_ids": "19", "expiry_date": "2013-09-25", "is_before_tax": "yes", "is_shipping_free": "", "will_exclude_sale_products": "yes", "product_category_ids": [ 13, 14 ], "exclude_product_category_ids": [ 13, 14 ], "minimum_total": "3", "customer_email": [ "a@b.c", "d@e.g" ] } ], "payload_length": 1 }
I'll look into, you might need to resave the item as it looks like the product ids got corrupted...
get_coupons -> payload -> exclude_product_ids
It is a weird string but get_supported_attributes defines it as an Array. Here the raw response: