クーポン
クーポンを更新する
有効期限、割引、資格を更新します。
PATCH
/coupons/{id}coupons:writeリクエスト
idstring · pathリソース識別子。必須marketplacestring · bodyマーケットプレイス。オプションcodestring · bodyクーポンコード。オプションdescriptionstring · body説明。オプションvaluestring · body提示された価値。オプションminimumnumber · body最低注文数。オプションvalid_untilstring · bodyISO の有効性。オプションtypestring · bodyクーポンタイプ。オプションdiscountnumber · bodyパーセンテージまたは割引額。オプションcapnumber · body割引上限。オプションcategoriesarray · body対象となるカテゴリー。オプションverifiedboolean · bodyクーポンを確認済みとしてマークします。オプションactiveboolean · bodyクーポンを有効化またはアーカイブします。オプション例
curl
curl -X PATCH 'https://achadu.com/api/v1/coupons/resource_id' \
+ -H 'Authorization: Bearer ach_live_...' \
+ -H 'Accept: application/json' \
+ -H 'Content-Type: application/json' \
+ --data '{
"marketplace": "string",
"code": "string",
"description": "string"
}'答え
200操作が完了しました4xxコード、メッセージ、request_id のエラー