Skip to main content
POST
Create a product

Authorizations

Authorization
string
header
default:easner_sk_test_…
required

A secret key, easner_sk_test_… or easner_sk_live_…, as Authorization: Bearer. Each key has one business, one mode and fixed scopes. Transfer routes also accept a transfer's easner_ta_… secret for the customer.

Headers

Idempotency-Key
string

Up to 255 characters. Keys are scoped to your business and mode. Longer is 400 invalid_idempotency_key. Honoured only on the operations marked idempotent.

Maximum string length: 255

Body

application/json
name
string
required
Maximum string length: 200
description
string
Maximum string length: 1000
image_url
string<uri>

A full https address.

tax_code
string

A tax code like txcd_10000000.

Pattern: ^txcd_\d{8}$
active
boolean
default:true

Response

The product made by an earlier call with the same Idempotency-Key.

object
any
required
id
string<uuid>
required
livemode
boolean
required
name
string
required
active
boolean
required
created
string<date-time>
required
updated_at
string<date-time>
required
description
string | null
image_url
string<uri> | null
tax_code
string | null