Skip to main content
PUT
/
stores
/
{storeId}
Update a store
curl --request PUT \
  --url https://api.komerza.com/stores/{storeId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "prependProductNameToReceipt": true,
  "currencyCode": "<string>",
  "isAutomaticReviewsEnabled": true
}
'
{
  "success": true,
  "message": "<string>",
  "code": "<string>",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "dateCreated": "2023-11-07T05:31:56Z",
    "name": "<string>",
    "description": "<string>",
    "url": "\n                store\n            ",
    "urlHistory": [
      "<string>"
    ],
    "domain": "<string>",
    "lastCustomDomainUpdate": "2023-11-07T05:31:56Z",
    "products": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "dateCreated": "2023-11-07T05:31:56Z",
        "variants": [
          {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "dateCreated": "2023-11-07T05:31:56Z",
            "name": "<string>",
            "productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "cost": 50000,
            "deliveryTypes": [
              "<string>"
            ],
            "files": [
              {
                "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                "dateCreated": "2023-11-07T05:31:56Z",
                "friendlyName": "<string>",
                "ipAddress": "<string>",
                "userId": "<string>"
              }
            ],
            "minimumQuantity": 123,
            "maximumQuantity": 123,
            "order": 123,
            "imageNames": [
              "<string>"
            ],
            "stock": 123,
            "stockMode": 0,
            "customFields": [
              {
                "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                "dateCreated": "2023-11-07T05:31:56Z",
                "variantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                "label": "<string>",
                "identifier": "<string>",
                "type": "<string>",
                "isRequired": true,
                "options": [
                  {
                    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                    "dateCreated": "2023-11-07T05:31:56Z",
                    "customFieldId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                    "label": "<string>",
                    "value": "<string>",
                    "order": 1073741823
                  }
                ],
                "placeholder": "<string>",
                "hint": "<string>"
              }
            ],
            "dynamicUrl": "<string>",
            "deliveryMessage": "<string>",
            "metadata": "<string>"
          }
        ],
        "name": "<string>",
        "description": "<string>",
        "visibility": 0,
        "imageNames": [
          "<string>"
        ],
        "storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "userId": "<string>",
        "shouldBlockVpns": true,
        "order": 123,
        "isBestSeller": true,
        "blacklistedPaymentGateways": [
          "<string>"
        ],
        "additionalFees": {},
        "slug": "<string>",
        "metadata": "<string>"
      }
    ],
    "categories": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "dateCreated": "2023-11-07T05:31:56Z",
        "name": "<string>",
        "visibility": 0,
        "order": 123,
        "storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "products": [
          {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "dateCreated": "2023-11-07T05:31:56Z",
            "categoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "category": "<unknown>",
            "productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "product": {
              "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "dateCreated": "2023-11-07T05:31:56Z",
              "variants": [
                {
                  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                  "dateCreated": "2023-11-07T05:31:56Z",
                  "name": "<string>",
                  "productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                  "storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                  "cost": 50000,
                  "deliveryTypes": [
                    "<string>"
                  ],
                  "files": [
                    {
                      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                      "dateCreated": "2023-11-07T05:31:56Z",
                      "friendlyName": "<string>",
                      "ipAddress": "<string>",
                      "userId": "<string>"
                    }
                  ],
                  "minimumQuantity": 123,
                  "maximumQuantity": 123,
                  "order": 123,
                  "imageNames": [
                    "<string>"
                  ],
                  "stock": 123,
                  "stockMode": 0,
                  "customFields": [
                    {
                      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                      "dateCreated": "2023-11-07T05:31:56Z",
                      "variantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                      "label": "<string>",
                      "identifier": "<string>",
                      "type": "<string>",
                      "isRequired": true,
                      "options": [
                        {
                          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                          "dateCreated": "2023-11-07T05:31:56Z",
                          "customFieldId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                          "label": "<string>",
                          "value": "<string>",
                          "order": 1073741823
                        }
                      ],
                      "placeholder": "<string>",
                      "hint": "<string>"
                    }
                  ],
                  "dynamicUrl": "<string>",
                  "deliveryMessage": "<string>",
                  "metadata": "<string>"
                }
              ],
              "name": "<string>",
              "description": "<string>",
              "visibility": 0,
              "imageNames": [
                "<string>"
              ],
              "storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "userId": "<string>",
              "shouldBlockVpns": true,
              "order": 123,
              "isBestSeller": true,
              "blacklistedPaymentGateways": [
                "<string>"
              ],
              "additionalFees": {},
              "slug": "<string>",
              "metadata": "<string>"
            },
            "order": 123
          }
        ],
        "slug": "<string>"
      }
    ],
    "userId": "<string>",
    "coupons": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "dateCreated": "2023-11-07T05:31:56Z",
        "code": "<string>",
        "uses": 123,
        "maximumUses": 50000000,
        "isEnabled": true,
        "storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "percentageDecrease": 50,
        "amountDecrease": 50000,
        "variantIds": [
          "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        ],
        "expirationDate": "2023-11-07T05:31:56Z"
      }
    ],
    "webhookSecret": "<string>",
    "currencyCode": "<string>",
    "prependProductNameToReceipt": true,
    "isAutomaticReviewsEnabled": true,
    "isCustomerBalanceEnabled": true,
    "isInactive": true,
    "builderRepository": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "dateCreated": "2023-11-07T05:31:56Z",
      "messages": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "dateCreated": "2023-11-07T05:31:56Z",
          "repositoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "role": "<string>",
          "completionTokens": 123,
          "promptTokens": 123,
          "totalTokens": 123,
          "externalId": "<string>",
          "annotations": "<string>",
          "content": "<string>",
          "revisionId": "<string>",
          "ipAddress": "<string>"
        }
      ],
      "websites": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "dateCreated": "2023-11-07T05:31:56Z",
          "repositoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "fileData": "aSDinaTvuI8gbWludGxpZnk=",
          "fileDataHash": "<string>",
          "compressedSize": 123,
          "size": 123
        }
      ],
      "userId": "<string>",
      "storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "monthlyTokens": 123,
      "consumedAllTokens": true,
      "usage": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "dateCreated": "2023-12-25",
          "platformTotalTokens": 123,
          "totalTokens": 123,
          "inputTokens": 123,
          "outputTokens": 123,
          "repositoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "repository": "<unknown>"
        }
      ],
      "machines": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "dateCreated": "2023-11-07T05:31:56Z",
          "isTerminated": true,
          "source": "<string>",
          "sourceId": "<string>",
          "name": "<string>",
          "privateIpAddress": "<string>",
          "events": [
            {
              "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "dateCreated": "2023-11-07T05:31:56Z",
              "source": "<string>",
              "type": "<string>",
              "message": "<string>",
              "machineId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
            }
          ],
          "storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "repositoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "userId": "<string>"
        }
      ],
      "urlId": "<string>",
      "externalId": "<string>",
      "description": "<string>",
      "currentWebsiteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "currentWebsite": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "dateCreated": "2023-11-07T05:31:56Z",
        "repositoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "fileData": "aSDinaTvuI8gbWludGxpZnk=",
        "fileDataHash": "<string>",
        "compressedSize": 123,
        "size": 123
      },
      "snapshot": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "dateCreated": "2023-11-07T05:31:56Z",
        "repositoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "size": 123,
        "chatIndex": "<string>",
        "files": {},
        "summary": "<string>"
      },
      "consumedAt": "2023-11-07T05:31:56Z"
    },
    "customDomain": "<string>",
    "affiliateOptions": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "dateCreated": "2023-11-07T05:31:56Z",
      "isEnabled": true,
      "defaultReturnPercentage": 123,
      "isPublicRegistrationEnabled": true,
      "isLinkEditingEnabled": true,
      "canConvertAffiliateBalance": true,
      "defaultPercentageOff": 123
    },
    "storeBrandOptions": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "dateCreated": "2023-11-07T05:31:56Z",
      "storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "isAutomaticCurrencyConversionEnabled": true,
      "bannerFileName": "<string>",
      "iconFileName": "<string>",
      "accentColor": "<string>"
    },
    "notificationOptions": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "dateCreated": "2023-11-07T05:31:56Z",
      "discordWebhookUrl": "<string>"
    },
    "maintenanceReason": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Your API key goes here

Path Parameters

storeId
string<uuid>
required

The ID of the store to update.

Body

application/json

The form containing the new data to update the store with.

Form for updating or creating a store. This version is returned for authenticated API endpoints, any public endpoint will use a PublicStore or PublicStoreReference

name
string
required

The name of the store as shown on the users store page

Required string length: 3 - 32
description
string
required

The store description, shown on the store home page underneath the title

Maximum string length: 4096
prependProductNameToReceipt
boolean
required

Whether the name of the product should be prepended to the start of delivery receipts to customers

currencyCode
string
required

The ISO-compliant fiat currency code that is preferred for the store, defaults to USD

isAutomaticReviewsEnabled
boolean
required

Whether automatic review leaving is enabled

Response

The object was successfully updated.

Represents a default generic response for API endpoints.

success
boolean
required

Indicates whether the operation or response was successful.

message
string | null

A descriptive message providing additional context or information about the response.

code
string | null

The error code (if there was an error) to use when referencing the error

data
object

Represents a storefront that contains products that will be sold under it's name