クーポンを更新する


エラー

すべての API エンドポイントに当てはまる エラー に加え、以下はクーポンの更新時にのみ返されるエラーです。

ステータスコード エラーコード 説明
404 coupon.not-found 条件に合うクーポンが見つかりませんでした。正しい couponId と API キーを使用してください。テストモードのオブジェクトには、テストキーを使用してのみアクセスすることができ、ライブモードのオブジェクトには、ライブキーを使用してのみアクセスできます。
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The unique identifier of the Coupon object.

Body Params

Update Coupon

boolean

Has the value true if the coupon is active and can be used, or the value false if it is not.

metadata
object

Set of up to 20 key-value pairs that you can attach to the object.

string
length between 1 and 80

The coupon's name, meant to be displayable to the customer.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json