Skip to content

Update store by ID

PATCH
/v1/stores/{store_id}
curl --request PATCH \
--url https://api.loyx.se/partners/v1/stores/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "address": { "city": "example", "country": "example", "postal_code": "example", "region": "example", "street1": "example", "street2": "example" }, "contact": { "email": "hello@example.com", "phone": "example", "website": "https://example.com" }, "external_ids": {}, "external_store_id": "example", "geo": { "latitude": 1, "longitude": 1 }, "icon": { "content_type": "image/png", "url": "https://example.com" }, "logo": { "content_type": "image/png", "url": "https://example.com" }, "name": "example", "org_number": "example", "status": "example", "tags": [ "example" ], "timezone": "example", "type": "example", "vat_number": "example" }'

Partially update a store. Only include the fields you want to change. Omitted fields are left unchanged. Set a field to null to clear it.

store_id
required
Store Id

The store’s internal UUID.

string format: uuid

The store’s internal UUID.

Idempotency-Key
Any of:
string

Optional. When provided, retrying with the same key returns the original result.

Media typeapplication/json
StoreUpdateRequest

Request schema for partially updating a store.

All fields are optional. Only provided fields are applied.

object
address
Any of:
AddressInput

Nordic-compatible address input.

object
city
required
City
string
>= 1 characters <= 100 characters
country
required
Country
string
>= 2 characters <= 2 characters
postal_code
required
Postal Code
string
>= 1 characters <= 20 characters
region
Any of:
string
<= 100 characters
street1
required
Street1
string
>= 1 characters <= 255 characters
street2
Any of:
string
<= 255 characters
contact
Any of:
StoreContactInput

Store contact details.

object
email
Any of:
string format: email
phone
Any of:
string
/^\+[1-9]\d{1,14}$/
website
Any of:
string format: uri
>= 1 characters
external_ids
Any of:
object
key
additional properties
any
external_store_id
Any of:
string
>= 1 characters <= 255 characters
geo
Any of:
GeoLocationInput

GPS coordinate input.

object
latitude
required
Latitude
number
>= -90 <= 90
longitude
required
Longitude
number
>= -180 <= 180
icon
Any of:
StoreMediaInput

Logo/icon URL reference.

object
content_type
Content Type
string
default: image/png
url
required
Url
string format: uri
>= 1 characters
logo
Any of:
StoreMediaInput

Logo/icon URL reference.

object
content_type
Content Type
string
default: image/png
url
required
Url
string format: uri
>= 1 characters
name
Any of:
string
>= 1 characters <= 255 characters
org_number
Any of:
string
<= 50 characters
status
Any of:
string
tags
Any of:
Array<string>
<= 20 items
timezone
Any of:
string
type
Any of:
string
vat_number
Any of:
string
<= 50 characters

The updated store.

Media typeapplication/json
StoreResponse

Full store response — excludes company_id.

object
_id
required
Id
string format: uuid
address
Any of:
AddressResponse

Address in response.

object
city
required
City
string
country
required
Country
string
postal_code
required
Postal Code
string
region
Any of:
string
street1
required
Street1
string
street2
Any of:
string
contact
Any of:
StoreContactResponse

Contact info in response.

object
email
Any of:
string
phone
Any of:
string
website
Any of:
string
created_at
required
Created At
string format: date-time
external_ids
External Ids
object
key
additional properties
string
external_store_id
Any of:
string
geo
Any of:
GeoLocationResponse

Geo location in response.

object
latitude
required
Latitude
number
longitude
required
Longitude
number
icon
Any of:
StoreMediaResponse

Media reference in response.

object
content_type
required
Content Type
string
url
required
Url
string
logo
Any of:
StoreMediaResponse

Media reference in response.

object
content_type
required
Content Type
string
url
required
Url
string
name
required
Name
string
org_number
Any of:
string
status
required
Status
string
tags
Tags
Array<string>
timezone
required
Timezone
string
type
required
Type
string
updated_at
required
Updated At
string format: date-time
vat_number
Any of:
string

Example generated

{
"_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"address": {
"city": "example",
"country": "example",
"postal_code": "example",
"region": "example",
"street1": "example",
"street2": "example"
},
"contact": {
"email": "example",
"phone": "example",
"website": "example"
},
"created_at": "2026-04-15T12:00:00Z",
"external_ids": {
"additionalProperty": "example"
},
"external_store_id": "example",
"geo": {
"latitude": 1,
"longitude": 1
},
"icon": {
"content_type": "example",
"url": "example"
},
"logo": {
"content_type": "example",
"url": "example"
},
"name": "example",
"org_number": "example",
"status": "example",
"tags": [
"example"
],
"timezone": "example",
"type": "example",
"updated_at": "2026-04-15T12:00:00Z",
"vat_number": "example"
}

missing_token, invalid_authorization_header or invalid_token: get a new access token and retry once.

Media typeapplication/json
ErrorResponse

Standard error response format.

object
error
required
ErrorDetail

Error detail structure (Stripe-like format).

object
code
required
Code

Machine-readable error code

string
details
Any of:
Array<object>
FieldErrorDetail

One failing field of a validation error.

object
message
required
Message

Why the value was refused

string
param
required
Param

Dotted path of the field, e.g. items.0.unit_price.value

string
doc_url
Any of:
string
message
required
Message

Human-readable error message

string
param
Any of:
string
type
required
Type

Error type category

string
request_id
Any of:
string

Example generated

{
"error": {
"code": "example",
"details": [
{
"message": "example",
"param": "example"
}
],
"doc_url": "example",
"message": "example",
"param": "example",
"type": "example"
},
"request_id": "example"
}

insufficient_scope: the API key lacks the scope this route needs.

Media typeapplication/json
ErrorResponse

Standard error response format.

object
error
required
ErrorDetail

Error detail structure (Stripe-like format).

object
code
required
Code

Machine-readable error code

string
details
Any of:
Array<object>
FieldErrorDetail

One failing field of a validation error.

object
message
required
Message

Why the value was refused

string
param
required
Param

Dotted path of the field, e.g. items.0.unit_price.value

string
doc_url
Any of:
string
message
required
Message

Human-readable error message

string
param
Any of:
string
type
required
Type

Error type category

string
request_id
Any of:
string

Example generated

{
"error": {
"code": "example",
"details": [
{
"message": "example",
"param": "example"
}
],
"doc_url": "example",
"message": "example",
"param": "example",
"type": "example"
},
"request_id": "example"
}

Store not found.

Media typeapplication/json
ErrorResponse

Standard error response format.

object
error
required
ErrorDetail

Error detail structure (Stripe-like format).

object
code
required
Code

Machine-readable error code

string
details
Any of:
Array<object>
FieldErrorDetail

One failing field of a validation error.

object
message
required
Message

Why the value was refused

string
param
required
Param

Dotted path of the field, e.g. items.0.unit_price.value

string
doc_url
Any of:
string
message
required
Message

Human-readable error message

string
param
Any of:
string
type
required
Type

Error type category

string
request_id
Any of:
string

Example generated

{
"error": {
"code": "example",
"details": [
{
"message": "example",
"param": "example"
}
],
"doc_url": "example",
"message": "example",
"param": "example",
"type": "example"
},
"request_id": "example"
}

Validation Error

Media typeapplication/json
ErrorResponse

Standard error response format.

object
error
required
ErrorDetail

Error detail structure (Stripe-like format).

object
code
required
Code

Machine-readable error code

string
details
Any of:
Array<object>
FieldErrorDetail

One failing field of a validation error.

object
message
required
Message

Why the value was refused

string
param
required
Param

Dotted path of the field, e.g. items.0.unit_price.value

string
doc_url
Any of:
string
message
required
Message

Human-readable error message

string
param
Any of:
string
type
required
Type

Error type category

string
request_id
Any of:
string

Example generated

{
"error": {
"code": "example",
"details": [
{
"message": "example",
"param": "example"
}
],
"doc_url": "example",
"message": "example",
"param": "example",
"type": "example"
},
"request_id": "example"
}

rate_limit_exceeded: wait Retry-After seconds.

Media typeapplication/json
ErrorResponse

Standard error response format.

object
error
required
ErrorDetail

Error detail structure (Stripe-like format).

object
code
required
Code

Machine-readable error code

string
details
Any of:
Array<object>
FieldErrorDetail

One failing field of a validation error.

object
message
required
Message

Why the value was refused

string
param
required
Param

Dotted path of the field, e.g. items.0.unit_price.value

string
doc_url
Any of:
string
message
required
Message

Human-readable error message

string
param
Any of:
string
type
required
Type

Error type category

string
request_id
Any of:
string

Example generated

{
"error": {
"code": "example",
"details": [
{
"message": "example",
"param": "example"
}
],
"doc_url": "example",
"message": "example",
"param": "example",
"type": "example"
},
"request_id": "example"
}

internal_server_error or database_error (type internal_error): our fault. Retry with backoff; quote request_id.

Media typeapplication/json
ErrorResponse

Standard error response format.

object
error
required
ErrorDetail

Error detail structure (Stripe-like format).

object
code
required
Code

Machine-readable error code

string
details
Any of:
Array<object>
FieldErrorDetail

One failing field of a validation error.

object
message
required
Message

Why the value was refused

string
param
required
Param

Dotted path of the field, e.g. items.0.unit_price.value

string
doc_url
Any of:
string
message
required
Message

Human-readable error message

string
param
Any of:
string
type
required
Type

Error type category

string
request_id
Any of:
string

Example generated

{
"error": {
"code": "example",
"details": [
{
"message": "example",
"param": "example"
}
],
"doc_url": "example",
"message": "example",
"param": "example",
"type": "example"
},
"request_id": "example"
}