Skip to content

Get a Braintree Promo Code

Request

Gets a Braintree promo code.

Security
CookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Query
codestringrequired

Promo code to lookup by ID.

paymentFormstringrequired

Payment form to lookup by slug.

cURL
curl -i -X GET \
  'https://demo-site/blaize/payment/braintree/promo-code?code=string&paymentForm=string' \
  -b blaize_session=YOUR_API_KEY_HERE

Responses

OK

Headers
any
Bodyapplication/json
codestringrequired

The promo code identifier.

Example:"promo-123"
discountnumberrequired

The discount amount.

Example:20
paymentOptionsArray of objects(promo-code-payment-options)required

The list of payment options.

Response
{ "code": "promo-123", "discount": 20, "paymentOptions": [ { … } ] }