POST /v1/coupons/{coupon}

Updates the metadata of a coupon. Other coupon details (currency, duration, amount_off) are, by design, not editable.

Servers

Path parameters

Name Type Required Description
coupon String Yes

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/x-www-form-urlencoded"

Request body fields

Name Type Required Description
name String No

Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the id is shown if name is not set.

expand[] Array No

Specifies which fields in the response should be expanded.

currency_options Object No

Coupons defined in each available currency option (only supported if the coupon is amount-based). Each key must be a three-letter ISO currency code and a supported currency.

currency_options.name Object No
currency_options.name.amount_off Integer Yes
metadata No

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.