プロモーションコードを更新する


エラー

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

ステータスコード エラーコード 説明
404 promotion-code.not-found No promotion code was found meeting the requirements. Make sure to use the right promotionCodeId and API key. test objects can only be accessed using test keys and live object with live keys. 条件に合うプロモーションコードが見つかりませんでした。正しい promotionCodeId と API キーを使用してください。テスト モードのオブジェクトには、テストキーを使用してのみアクセスすることができ、ライブ モードのオブジェクトには、ライブキーを使用してのみアクセスできます。
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The id of the promotion code to update.

Body Params

Update Promotion Code

boolean

Has the value true if the promotion code 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.

Responses

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