Skip to navigation

Create a brand version

Starts a draft: a copy of basedOn (the version in use when left out), with any fields sent applied, and checks it. There’s at most one draft; when one exists this fails with resource_exists, and the message names it.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Headers

Paid-BetaenumRequired

This endpoint is in the brand=v1 beta. Send this header to use it.

Allowed values:

Request

Body
basedOnstringOptional1-255 characters

The version to start from; the one in use when left out. The new draft copies it, then applies the other fields sent.

colorsobjectOptional
The colours to change. A colour left out is kept.
designsobjectOptional
The designs to change. A surface left out is kept.
fontobjectOptional
The typeface for headings and text. Figures stay in a monospaced face so they line up.
iconobjectOptional

The square icon, or null for none.

logoOnDarkobjectOptional

The logo for dark backgrounds, or null for none.

metadatamap from strings to stringsOptional

String key-value pairs of your own, up to 500 characters per value. Always updatable.

namestring or nullOptional1-255 characters
Your label for the version.

Response

201
idstring

The brand version’s brv_ ID.

objectenum

The type of object. Always brandVersion.

Allowed values:
createdAtdatetime
When the object was created.
basedOnstring or null1-255 characters
The version this one started as a copy of.
checkobject
Paid's check of the documents this version renders. A version is finalized only when it passes.
colorsobject
The brand's two colours.
designsobject

A design per kind of document Paid sends your customers. Today documents (invoices and credit notes); other surfaces get a key of their own as they open up. Surfaces without one use the brand values alone.

finalizedAtdatetime or null
When the version was finalized.
fontobject
The typeface for headings and text. Figures stay in a monospaced face so they line up.
iconobject

The square icon, or null for none: the payment page then shows the logo and Paid’s own tab icon.

livemodeboolean

true for an object on a live account, false on a test account.

logoOnDarkobject

The logo for dark backgrounds, or null for none: documents then print logo whatever is behind it.

metadatamap from strings to strings

String key-value pairs of your own, up to 500 characters per value. Always updatable.

namestring or null1-255 characters
Your label for the version, shown in the version list. Never printed on documents.
numberinteger or null

The version’s number, 1 for the first, given when it’s finalized; null for a draft.

statusenum

draft while it can change; final once finalized, after which it never changes.

Allowed values:
updatedAtdatetime
When the object was last changed.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error