POST /companies/{companyId}/campaignManagement
Creates a new donation campaign, to give shoppers the option to donate to a nonprofit organization when making a payment. A campaign can be for online payments, in-person payments, or both online and in-person payments.
To make this request, your API credential must have the following role:
- Management API—Campaign Management read and write
Servers
- https://management-test.adyen.com/v3
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
companyId |
String | Yes |
The unique identifier of the company account. |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
online |
Object | No |
The settings for online donations collected as part of the campaign. |
online.donationType |
String | No |
The type of donation to collect from the shopper. Possible values:
Valid values:
|
online.defaultAmount |
Object | No |
The default amount for donations. |
online.defaultAmount.currencyCode |
String | Yes |
The three-character ISO currency code. |
online.defaultAmount.amounts[] |
Array | Yes |
The donation amounts in minor units. The list must contain at least one amount and no more than three amounts. |
online.merchantAccounts[] |
Array | No |
The merchant accounts for this sales channel that are associated with the donation campaign. |
online.storeIds[] |
Array | No |
The Adyen-generated unique identifiers of stores for this sales channel that are associated with the donation campaign. |
name |
String | Yes |
The name of the donation campaign. |
accountHolderIds[] |
Array | No |
The unique identifiers of the account holders associated with the donation campaign. |
nonprofitCauseId |
String | Yes |
The unique identifier of the nonprofit cause that the campaign supports. |
inPerson |
Object | No |
The settings for in-person donations collected as part of the campaign. |
inPerson.donationType |
String | No |
The type of donation to collect from the shopper. Possible values:
Valid values:
|
inPerson.defaultAmount |
Object | No |
The default amount for donations. |
inPerson.defaultAmount.currencyCode |
String | Yes |
The three-character ISO currency code. |
inPerson.defaultAmount.amounts[] |
Array | Yes |
The donation amounts in minor units. The list must contain at least one amount and no more than three amounts. |
inPerson.displayTextField |
String | Yes |
The text shown on the payment terminal, either the name or the cause of the nonprofit organization. Valid values:
|
inPerson.presentCardTimeoutMs |
Integer | No |
Required if |
inPerson.merchantAccounts[] |
Array | No |
The merchant accounts for this sales channel that are associated with the donation campaign. |
inPerson.storeIds[] |
Array | No |
The Adyen-generated unique identifiers of stores for this sales channel that are associated with the donation campaign. |
inPerson.promptTimeoutMs |
Integer | No |
The time, in milliseconds, that the terminal waits for the shopper to make a selection on the donation screen. Defaults to 10000 (10 seconds). Range: 5000 to 15000. |
inPerson.donationFlow |
String | Yes |
The interaction flow for in-person donations. Possible values:
Valid values:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.