Braintree a PayPal Service
  • Support Articles
  • Developer Docs
  • GraphQL Docs & Tools
Get Help
Sandbox:Sign UpLog In

Production Control Panel

  • Log In

Become a Merchant

  • Contact Sales
  • About
  • Get Started
  • Guides
  • Reference

We've launched our GraphQL API

See the docs
Client References
  • Android
  • iOS
  • JavaScript v3
    • Best Practices and Troubleshooting
    • Browser Support
    • Configuration
    • Credit Cards
    • Hosted Fields
    • PayPal
Server-Side API Requests
    • All
    • Create
    • Delete
    • Find
    • Update
    • Register Domain
    • Registered Domains
    • Unregister Domain
    • Generate
    • Create
    • Delete
    • Expiring Between
    • Find
    • Update
    • Create
    • Search
    • Create
    • Delete
    • Find
    • Search
    • Update
    • All
    • Accept
    • Add File Evidence
    • Add Text Evidence
    • Finalize
    • Find
    • Remove Evidence
    • Search
    • Create
    • All
    • Create
    • Create For Currency
    • Find
    • Update
    • Create
    • Delete
    • Find
    • Grant
    • Revoke
    • Update
    • Create
    • Find
    • All
    • Create
    • Find
    • Update
    • Transaction Level Fees
    • Generate
    • Cancel
    • Create
    • Find
    • Retry Charge
    • Search
    • Update
    • Adjust Authorization
    • Cancel Release
    • Find
    • Hold in Escrow
    • Refund
    • Release from Escrow
    • Sale
    • Search
    • Submit For Partial Settlement
    • Submit For Settlement
    • Update Details
    • Void
    • clone_transaction
    • Find All
Server-Side Response Objects
  • Add-On
  • Address
  • Amex Express Checkout Card
  • Android Pay Card
  • Apple Pay Card
  • Apple Pay Options
  • Credit Card
  • Credit Card Verification
  • Customer
  • Discount
  • Dispute
  • Document Upload
  • Google Pay Card
  • Masterpass Card
  • Merchant Account
  • Payment Method
  • Payment Method Nonce
  • Paypal Account
  • Plan
  • Samsung Pay Card
  • Sepa Debit Account
  • Settlement Batch Summary
  • Subscription
  • Transaction
  • Transaction Level Fee Report Row
  • Transaction Line Item
  • US Bank Account
  • US Bank Account Verification
  • Venmo Account
  • Visa Checkout Card
Forward API
  • Overview
  • Config
  • Direct tokenization
  • Forward
  • Functions
  • Server errors
  • Tokenization
  • Tokenization errors
  • Transformation errors
  • Validation errors
  • Variables
  • Vault errors
General
  • Best Practices
  • Braintree IP Addresses
  • Class-Level vs Instance Methods
  • Countries
  • Currencies
  • Enterprise Third-Party Plugins
  • Exceptions
    • Overview
    • Required Fields
    • Merchant Advice Codes
    • Authorization
    • Settlement
    • AVS and CVV
  • Proxy Servers
  • Result Objects
    • Search Fields
    • Search Results
  • Server SDK Deprecation Policy
  • Server SDK Migration Guide
  • Statuses
  • Testing
  • Upgrade to Braintree SDKs
    • Overview
    • Validation Errors
    • Overview
    • Account Updater
    • Braintree Auth
    • Disbursement
    • Dispute
    • Fraud Protection
    • Grant API
    • Local Payment Methods
    • OAuth
    • Payment Method
    • Sub-merchant Account
    • Subscription
    • Test
    • Transaction

Discount

Discount: All

  • Current Braintree SDKs
  • Java
  • .NET
  • Node.js
  • PHP
  • Python
  • Ruby

Returns a collection of Discount objects.

  1. Ruby
discounts = gateway.discount.all

If the discount can't be found, it will raise a Braintree::NotFoundError.

See also

  • Recurring billing add-ons and discounts
Get help from a human

Submit a request for help with your Braintree sandbox or production account.

Get Help
Get Started
  • Integration Guide
  • Tutorial (Preview)
  • Checkout UIs
  • Example Integrations
Basics
  • Client Authorization
  • Payment Method Nonces
  • Transactions
  • Payment Methods
  • Transactions
Payment Method Types
  • Overview
  • ACH Direct Debit
  • Apple Pay
  • Credit Cards
  • Google Pay
  • PayPal
  • Samsung Pay
  • Venmo
  • Secure Remote Commerce
Tools
  • 3D Secure
  • Premium Fraud Management Tools
  • Client SDK
  • Disputes
  • Payment Request API
  • Reports
  • Webhooks
Checkout UI
  • Drop-in UI
  • Hosted Fields
Additional Features
  • Braintree Auth (Beta)
  • Braintree Marketplace
  • Grant API (Beta)
  • OAuth (Beta)
  • PayPal Here
  • Recurring Billing
API Reference
  • Client References
  • Server-side API Requests
  • Server-side Response Objects
  • General
  • Braintreepayments.com
  • |
  • Support Articles
  • Status
Braintree is a service of PayPal. © 2023 PayPal Privacy Policy | Legal

We’ll use cookies to improve and customize your experience if you continue to browse. Is it OK if we also use cookies to show you personalized ads? Learn more and manage your cookies