Set a taxpayer's Business Card

put
https://api.wafeq.com/ae/v1/taxpayers/business-card

Set the Business Card of the taxpayer in x-ae-taxpayer-id: the name, country and
identifiers its Peppol Directory entry shows. The Peppol Directory is a public search
index that lets other businesses find the taxpayer on Peppol. Wafeq lists every
taxpayer when it finishes onboarding, with the name from the FTA.

This replaces the whole card, and the listing shows it after you call
POST /taxpayers/directory. The card is public. Only the card changes; how other
businesses reach the taxpayer on Peppol stays the same. Needs the invoices:write scope.

Returns 404 if the taxpayer hasn't finished onboarding. In the response,
published: true means the card was saved.

Body Params
entitiesarray of objectsrequired

The businesses on the card: at least one, usually just the taxpayer.

Headers
string | null
stringrequired

Taxpayer ID (txpay_…) that granted your organization access. Required with an organization API key; optional with a taxpayer access token, which already names its taxpayer. Use the taxpayer ID, not its TIN.

string | null

Grant ID (tgr_…) to act through, with an organization API key. The request then has exactly that grant's scopes and fails once the grant is revoked. Without it, the key acts through all of the organization's active grants on the taxpayer.

Response