Create a store
How to create a store via API
To create a new store, send a POST request to the /api/2026-05/stores endpoint, passing the resource arguments in the request body.
Request
POST https://yourdomain.commercelayer.io/api/2026-05/stores
Arguments
type
string
Required
attributes.name
string
Required
attributes.code
string
Optional
attributes.payment_setting_ids
array
Optional
attributes.union_payment_settings
boolean
Optional, default is 'false'
attributes.shipment_policy
string
Optional, default is 'auto_delivered'
attributes.reference
string
Optional
attributes.reference_origin
string
Optional
attributes.metadata
object
Optional
relationships.market
object
Required
relationships.merchant
object
Optional
relationships.stock_location
object
Optional
Example
The following request creates a new store:
On success, the API responds with a 201 Created status code, returning the created resource object:
Last updated