Validates whether a referral code is valid and applicable within your site. This method is useful for validating referral codes that are entered by a customer.
Full documentation on how to use the referrals feature in the Advanced Billing UI can be located here.
If the referral code is valid the status code will be 200 and the referral code will be returned. If the referral code is invalid, a 404 response will be returned.
The username is a Maxio Chargify API key and the password is x. Basic authentication works only with the US and EU environments, which connect to chargify.com directly. The Maxio API Gateway environment does not accept Basic authentication.
In: header
The referral code you are trying to validate
application/json
application/json
curl -X GET -G \ --url 'https://subdomain.chargify.com/referral_codes/validate.json' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -d 'code=code'