API Integration
The submerchant feature uses the HUB2 API. The available endpoints are listed in the following documentation:API Submerchant
Authentication
Your integration uses the same HUB2 API keys for authentication. The key must have the following permissions:Api.submerchant_createApi.submerchant_listApi.submerchant_update
Api.payment_intent_create, Api.transfer_create).
Permissions configuration
API Endpoints
Submerchants
POST /submerchants: create a submerchant.nameanddescriptionare required;address,zipcode,city,phoneNumberandlegalInfoare optional. Example:
PATCH /submerchants/{submerchantId}: update a submerchantGET /submerchants: list your submerchants
id. Keep it to process transactions on behalf of the submerchant.
Transactions for a submerchant
To create a payment or a transfer for a submerchant, call the usual payment or transfer endpoints with your own API key and set theMerchantId header to the submerchant id. The transaction is booked for the submerchant and its subMerchantId field is filled in.
