Coupons

Create / Update Currency Prices

PUT
/coupons/{coupon_id}/currency_prices.json

Creates and/or updates currency prices for an existing coupon. Multiple prices can be created or updated in a single request but each of the currencies must be defined on the site level already and the coupon must be an amount-based coupon, not percentage.

Currency pricing for coupons must mirror the setup of the primary coupon pricing - if the primary coupon is percentage based, you will not be able to define pricing in non-primary currencies.

Authorization

BasicAuth
AuthorizationBasic <token>

The username is a Maxio Chargify API key. The password is x.

In: header

Path Parameters

coupon_id*integer

The Advanced Billing id of the coupon

Request Body

application/json

currency_prices*array<>

Response Body

application/json

application/json

curl -X PUT "https://example.com/coupons/0/currency_prices.json" \  -H "Content-Type: application/json" \  -d '{    "currency_prices": [      {        "currency": "EUR",        "price": 10      },      {        "currency": "GBP",        "price": 9      }    ]  }'
{  "currency_prices": [    {      "id": 0,      "currency": "string",      "price": 0,      "coupon_id": 0    }  ]}