A platform needs to do things for its merchants: run a transaction, pull a report, board an integration. It does not need their credentials.
X-Acting-As-Client-Id names the merchant. You keep authenticating as yourself.
Three headers, and only the third changes.
Api-Key: $d48045e5-f017-4633-a5e7-4efb56f70afa
Client-Id: CLIENT-01KFDKXMQ637EKEAY410MSQSXB
X-Acting-As-Client-Id: CLIENT-01KFDKXMQ637ETEAY410MSQTUHApi-Key and Client-Id stay the reseller's. The request is then carried out as though the named client had made it: its integrations are used, its transactions are created, and a report returns its data.
The header is accepted on every operation in the API.
It works from a parent to its own children, and no further. Naming a client you do not own is rejected. Ownership is the client's parent_id relationship — see How accounts work.
A merchant never sends it. Merchants have no children, so there is nobody to act as. A merchant calling for itself omits the header entirely.
Sending your own client ID is not the same as omitting the header. This is the one that catches people. It reads like a harmless no-op, and some operations reject it. If you mean "act as myself", leave the header out.
POST /v1/clients cannot use it, because the client you would be acting as does not exist yet.
Boarding works the other way round: you authenticate as the reseller and set parent_id in the body to your own client ID. See Create and update a client.
Boarding a merchant and taking its first payment, as a platform:
POST /v1/clientswithparent_idset to your ID. No acting header. Store theapi_keyandidit returns.POST /v1/integrationswithX-Acting-As-Client-Idset to the new client, or withclientin the body naming it.POST /v1/transactionswithX-Acting-As-Client-Idset to the new client. The transaction belongs to the merchant, routed through the merchant's integration.GET /v1/transactionswith the same header to read that merchant's activity alone — or without it, plusclient_idas a filter, to read across your portfolio.