On This Page
Limited Availability
Authorization Code Grant
Use the
authorization code grant
when another organization must sign in and grant
consent for your application to access the Cybersource
APIs on their
behalf. Your application can only perform tasks determined by the scopes set by the
consenting organization. To act on-behalf of an organization, your application must
request an access token and then continually request refresh tokens.Available Organization Types
This table lists the different organization types that can use the delegated access
integration and possible business examples for using it.
Available Organization Types | Business Example |
|---|---|
Acquirer or Reseller Partner (Portfolio Manager) | A bank or reseller portal initiates refunds or views
reporting data for merchants. A centralized platform manages access for multiple merchant
businesses. |
AI Agent Enabler | An AI agent performs payment operations, dispute handling, or
reconciliation for consenting merchants. |
Technology Partner (Solution Provider) | A SaaS platform accesses payment or reporting APIs on behalf
of merchants. |
How it Works
These are the tasks that all organizations and applications must complete in order to
successfully use delegated access:
- The merchant accesses your application to begin integrating to it.
- Your application redirects the merchant to theBusiness Centerusing a URL that you configured. For more information, see Obtain Merchant Authorization.
- The merchant logs in and grants your application permission to act on their behalf.
- Cybersourceredirects the merchant to your application using the URL you registered during signup with an authorization code appended to the URL.
- Your application receives an authorization code that is appended to the redirect URL.
- Your application uses the authorization code to request an access and refresh token fromCybersource. For more information, see Request Access and Refresh Token.
- Cybersourceresponds with an access and refresh token.
- Your application uses the access token to send API requests toCybersourceon behalf of the merchant. For more information, see Send API Request on Behalf of Merchant.
- Your application uses the refresh token to request a new set of access and refresh tokens when your current access token expires. Request new access and refresh tokens as often as you need to in order to maintain your merchant access. For more information, see Renew Access and Refresh Token.