Remove a merchant's logo
BuildingIn development for the v1 API. The contract is set; the route is not served yet.
Removes the merchant's own logo; its page and emails show its company's again (or none). Removing a logo that is not there is a 204 too. Emails already sent keep showing the old logo.
Needs the branding:write scope.
oauth2 branding:writeAuthorizationBearer <token>OAuth 2.0 client credentials. Exchange your client_id and client_secret at /oauth/token of the environment for a bearer token valid for one hour. The playground of every operation asks for your own client and keeps it in your browser tab only.
Scope: branding:write
id*stringThe merchant id.
^mer_[0-7][0-9a-hjkmnp-tv-z]{25}$Removed
curl -X DELETE 'https://api.dev.b2b.heru.app/v1/branding/merchants/mer_01m4xnvf23ecb963n48h2j9vxz/logo'Upload a merchant's logoPUT
Uploads the merchant's logo, a PNG or an SVG, and makes it the logo of its invoicing page and emails. - **PNG**: at most 2048 px a side; heru re-encodes it, which drops metadata, and the result must fit the size cap (256 KiB). - **SVG**: plain shapes, gradients and text only, within the same cap. heru refuses, instead of cleaning, a file with scripts, event handlers, `foreignObject`, images, links, animations or references outside the file. Export it as plain SVG. JPEG and any other format are refused. The logo is served from an immutable public URL that does not name the merchant. Needs the `branding:write` scope.
Get a merchant's brandGET
Returns the brand heru applies to the merchant's invoicing page and emails: each field is the merchant's own value or, when it set none, its company's, then its organization's. `sources` says where each field comes from; `default` means heru's own (the field is `null`). Needs the `branding:read` scope.