Referral Codes

Validate Referral Code

GET
/referral_codes/validate.json

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.

For more information, see Understanding Referrals in the product documentation.

Authorization

BasicAuth
AuthorizationBasic <token>

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

In: header

Query Parameters

code*string

The referral code you are trying to validate

Response Body

application/json

application/json

curl -X GET "https://example.com/referral_codes/validate.json?code=string"
{  "referral_code": {    "id": 1032514,    "site_id": 31615,    "subscription_id": 16254270,    "code": "9b6cdw"  }}