Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
Merge pull request #124 from chargify/api-referral-codes
Browse files Browse the repository at this point in the history
Documenting API for referral code validation
  • Loading branch information
npverni committed Nov 17, 2015
2 parents 40d8f8f + fbd85ec commit 9d5c6fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doculab/docs/api-coupons.textile
Expand Up @@ -110,7 +110,7 @@ Response: The coupon resource

h2. Validating a Coupon via the API

You can verify if an specific coupon code is valid using the @validate@ method. This method is useful for validating coupon codes that are entered by a customer. If the coupon is found and is valid, the coupon will be returned with a 200 status code.
You can verify if a specific coupon code is valid using the @validate@ method. This method is useful for validating coupon codes that are entered by a customer. If the coupon is found and is valid, the coupon will be returned with a 200 status code.

h3. Validate

Expand Down
11 changes: 11 additions & 0 deletions doculab/docs/api-referral-codes.textile
@@ -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.

1 change: 1 addition & 0 deletions doculab/meta/table_of_contents.rb
Expand Up @@ -141,6 +141,7 @@
page "API: Product Families"
page "API: Products"
page "API: Quantity Component Allocations", :permalink => "api-quantity-allocations"
page "API: Referral Codes"
page "API: Refunds"
page "API: Refunds - External", :permalink => "api-refunds-external"
page "API: Renewal Preview"
Expand Down

0 comments on commit 9d5c6fb

Please sign in to comment.