Skip to main content
PUT
/
stores
/
{storeId}
/
products
/
{productId}
/
variants
/
{variantId}
/
delivery
Update variant delivery settings
curl --request PUT \
  --url https://api.komerza.com/stores/{storeId}/products/{productId}/variants/{variantId}/delivery \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "requireDiscordAuthorization": true,
  "deliveryTypes": [
    "<string>"
  ],
  "dynamicUrl": "<string>",
  "deliveryMessage": "<string>",
  "subscriptionPeriod": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "code": "<string>",
  "data": {
    "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>"
  }
}

Authorizations

Authorization
string
header
required

Your API key goes here

Path Parameters

storeId
string<uuid>
required

The store’s unique identifier.

productId
string<uuid>
required

The product’s unique identifier.

variantId
string<uuid>
required

The variant’s unique identifier.

Body

The form containing new delivery parameters.

The form used to create a product variant.

requireDiscordAuthorization
boolean
required

If true, the buyer must authorize via Discord.

deliveryTypes
string[]
required

Enabled delivery types. Valid values: license_keys, dynamic, keyauth, instructions, files.

dynamicUrl
string<uri> | null

URL for dynamic fulfillment (when using the "dynamic" delivery type).

Maximum string length: 2048
deliveryMessage
string | null

Optional message shown on delivery.

Maximum string length: 4096
subscriptionPeriod
string<date-span> | null

Subscription billing period. Null for one-time products.

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 configurable variant associated with a product, containing various properties such as pricing, stock, delivery options, and custom fields.