Skip to navigation

Apply a discount code

Checks status, expiration, redemption limit, office and plan, then re-prices the quote on the server. Any ineligible code returns 422 discount_not_applicable (one reason for all); repeated failures are rate limited. The redemption is counted when the FieldRoutes subscription is created.

Authentication

Path parameters

signupIdstringRequired

Request

This endpoint expects an object.
codestringRequired1-100 characters

Response

New quote
quoteIdstring<=255 characters
catalogVersionstring<=255 characters
lineslist of objects
initialTotalCentsinteger>=0
Amount in US cents.
recurringTotalCentsinteger>=0
Amount in US cents.
recurringPeriodenum
Allowed values:
termsVersionstringOptional<=255 characters
discountCodestringOptional<=255 characters
expiresAtdatetimeOptional

Errors

404
Not Found Error
409
Conflict Error
410
Gone Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error