This repository has been archived by the owner on Mar 20, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from chargify/api-referral-codes
Documenting API for referral code validation
- Loading branch information
Showing
3 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
h2. Validating Referral Codes via the API | ||
|
||
You can verify if a referral code is valid using the @validate@ method. This method is useful for validating referral codes that are entered by a customer. | ||
|
||
h3. Validate | ||
|
||
URL: @https://<subdomain>.chargify.com/referral_codes/validate.<format>?code=<referral_code>@ | ||
Method: @GET@ | ||
Required Parameters: code | ||
Response: 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 returnd. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters