After your user selects a capital offer, you can make an API request to configure the grant for the user. Your user accepts the Terms of Service for the grant after you configure it. Adyen pays out the funds after acceptance and approval of the grant.
Requirements
Before you begin, take into account the following requirements, limitations, and preparations.
| Requirement | Description |
|---|---|
| Integration type | You must have an Adyen for Platforms integration that supports Capital. |
| API credentials | You must have a Balance Platform API key (for example, ws[_123456]@BalancePlatform.[YourBalancePlatform]) to access the Capital API. Your API credential must have the following roles:
|
| Capabilities | Make sure that your user has the following capabilities:
|
| Webhooks | Subscribe to the following webhooks: |
| Limitations | Currently, only one disbursement per grant is allowed. We are working on enabling multiple disbursements to different balance accounts. |
| Setup steps | Before you begin, make sure:
|
1. Configure a grant
To renew an active grant, see Renew a grant.
To configure a grant:
-
Make a POST /grants request, specifying the following parameters:
Parameter Type Required Description counterparty.balanceAccountId String The unique identifier of the balance account that belongs to the receiving account holder. Pass this parameter if you choose to pay out to the balance account of the user.
IfbalanceAccountIdis not provided in the request, the grant is paid out to the account holder's primaryBalanceAccount.counterparty.transferInstrumentId String The unique identifier of the transfer instrument that belongs to the legal entity of the account holder. Pass this parameter if you choose to pay out to the transfer instrument of the user. If you do not provide transferInstrumentId, the funds stay in the balance account.grantAccountId String The unique identifier of the grant account. Reach out to your Adyen contact to get this value. grantOfferId String The unique identifier of the capital offer that has been selected by the user. Get this value from the idin the static offers response, or in the response when you create a static offer from a dynamic offer.Required
Conditionally required
The following example shows how to configure a grant that Adyen pays out to the specified balance account.
-
In the response, note the following parameters:
Parameter Description balances An object that contains the grant balances. id The unique identifier of the grant. grantAccountId The identifier of the grant account used to account for the grant. grantOfferId The unique identifier for the related capital offer, which determines the grant conditions. counterparty An object that contains the details of the receiving account holder. status The status of the grant.
Requests using POST /grants are processed asynchronously. You will receive a response to your API request, but you must wait for the webhook to know the final result of a request.
2. Get the Terms of Service accepted
Your user must accept the Terms of Service for each loan or advance. This applies to both business loans and merchant cash advances. Your user can accept only after you configure the grant, because Adyen determines the required Terms of Service type at that point. To get the Terms of Service accepted, follow the steps in Show the Terms of Service.
Adyen pays out the grant after acceptance and approval.
3. Get updates
Adyen sends the webhook messages for the following event types to your server to update you about the grant and fund transfer status.
| Event type | Description |
|---|---|
| balancePlatform.grants.created | The grant has been configured. |
| balancePlatform.grants.updated | The grant status or required actions have changed, for example, when the SignTermsOfService action is added or resolved, or when the grant is paid in full, reconfigured, or written off. The SignTermsOfService action is currently only available for platforms in the merchant cash advance pilot. |
| balancePlatform.transfer.created | The outgoing or incoming grant transfer request has been received. |
| balancePlatform.transfer.updated | The outgoing or incoming grant transfer request has been authorized and/or booked. |
| balancePlatform.transaction.created | The funds have been paid out to the balance account or the payment instrument. |
To keep track of webhooks, make sure that your server can receive and accept webhooks.