Create or Update Coupon Currency Prices

API Docs by APIMATIC
Advanced Billing APIAPI EndpointsCoupons

Create or Update Coupon Currency Prices
#

This endpoint allows you to create and/or update 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.

PUT /coupons/{coupon_id}/currency_prices.json
Authentication

This endpoint requires BasicAuth

BasicAuth
BasicAuth
Required

Set authorization parameters for BasicAuth

Required
string

The username to use with basic authentication

  • is a required field
Required
string

The password to use with basic authentication

  • is a required field

API Code Playground

Endpoint Arguments
Parameters
Required
Required
Number
Template

The Advanced Billing id of the coupon


Responses

  • 200
  • 422

OK

application/json

There is no example available for this content type.
  • HTTP
  • Java
  • .NET
  • PHP
  • Python
  • Ruby
  • TypeScript
  • Go
  • Request
  • Response
curl -X PUT \
  --url 'https://subdomain.chargify.com/coupons/162/currency_prices.json'  \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "currency_prices": [
    {
      "currency": "EUR",
      "price": 10
    },
    {
      "currency": "GBP",
      "price": 9
    }
  ]
}'