Skip to main content
POST
Import a client

Authorizations

Authorization
string
header
required

Body

application/json
name
string
required
Required string length: 1 - 80
externalId
string | null

Id of the client outside LeanPay, chosen by the integrator. Optional, strongly recommended: it is the key of the import, and it is returned on every read. null or empty: the client has no external id.

Maximum string length: 80

Response

201 - application/json

The imported client.

id
string<uuid>
required

Id of the client.

tenantId
string<uuid>
required
externalId
string | null
required

Id of the client outside LeanPay. null when the client has none.

name
string
required

Name of the client.

createdAt
string<date-time>
required

Date the client was created.

updatedAt
string<date-time>
required

Date the client was last updated.