wc-api-ruby icon indicating copy to clipboard operation
wc-api-ruby copied to clipboard

Add metadata to existing coupon

Open pbmolini opened this issue 3 years ago • 0 comments

Hello, I try with the following and I get no errors

@wc_api_client.put("coupons/42", { meta_data: [{ key: "email", value: "[email protected]" }] })

but then nothing changes on the Coupon

@wc_api_client.get("coupons/42")['meta_data']
=> nil

What am I doing wrong?

pbmolini avatar Apr 12 '22 11:04 pbmolini