The onboarding endpoints enable you, the partner, to programmatically onboard new merchants to Afterpay. Once a merchant has been successfully onboarded, they can use various Afterpay products such as Pay by Installments (PBI) and Pay Monthly (PM).
The following example shows a create onboarding request. It directs Afterpay to onboard a new merchant with the online channel enabled.
The “settlementContractId” refers to the bank account that Afterpay settles funds to for payments and refunds processed for this specific merchant. This value is typically country and channel specific. The Afterpay team generates this value based on information provided by you, the partner.
The “businessType” field is an optional field; however, other fields are conditionally required based on the value of this field. More specifically, if “businessType” is a public corporation or nonprofit, the “owners.firstName” and “owners.lastName” fields become optional. Otherwise, these fields are required. The table below shows the valid business types based on country:
These fields are important as they are utilized to provide relevant support channels for customers that have made an Afterpay payment with a particular merchant. Providing quick access to this information provides an excellent customer experience and can mitigate disputes volume by promoting direct merchant-customer relationships.
If parameters.channels.online and parameters.channel.instoreCard are not provided, Afterpay by default enables the online channel and disables the in store channel. If either channel is explicitly enabled, Afterpay requires the other channel to be explicitly enabled. For example, if parameters.channels.online is enabled, parameters.channel.instoreCard must also be set to true. Otherwise, Afterpay by default sets parameters.channel.instoreCard to false.
Currently, Afterpay doesn’t support programmatic merchant offboarding. If you need to offboard a merchant from Afterpay, please contact the Afterpay team for manual action.