Update product

PUT /self/{shopId}/v2/products/{productId}

Path parameters

application/json

Body

Responses

  • 200

    Product updated

PUT /self/{shopId}/v2/products/{productId}
curl \
 -X PUT https://dev.sellpass.io/self/{shopId}/v2/products/{productId} \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"title":"string","shortDescription":"string","description":"string","variants":[{"id":42,"title":"string","description":"string","shortDescription":"string","priceDetails":{"amount":42.0,"currency":"string"},"gateways":[{"gateway":0,"rules":{"blockVpn":true},"price":{"amount":42.0,"currency":"string"}}],"productType":0,"asDynamic":{"stock":42,"externalUrl":"string","minAmount":42,"maxAmount":42,"isInternal":true},"asSerials":{"delimiter":"string","serials":"string","minAmount":42,"maxAmount":42,"removeDuplicates":true},"asService":{"stock":42,"text":"string","minAmount":42,"maxAmount":42},"customerNote":"string","redirectUrl":"string","customFields":[{"id":42,"type":1,"name":"string","required":true,"valueString":"string","placeholder":"string","regex":"string","valueInt":42,"valueBool":true}],"warranty":{"text":"string","durationSeconds":42},"discordSocialConnectSettings":{"enabled":true,"required":true,"beforePurchaseRequireRoles":{"guildId":"string","roleIds":["string"]},"beforePurchaseServer":{"guildId":"string","roleIds":["string"]},"afterPurchaseServer":{"guildId":"string","roleIds":["string"]}}}],"path":"string","seo":{"metaTitle":"string","metaDescription":"string"},"unlisted":true,"private":true,"onHold":true,"isInternal":true}'
Request example
{
  "title": "string",
  "shortDescription": "string",
  "description": "string",
  "variants": [
    {
      "id": 42,
      "title": "string",
      "description": "string",
      "shortDescription": "string",
      "priceDetails": {
        "amount": 42.0,
        "currency": "string"
      },
      "gateways": [
        {
          "gateway": 0,
          "rules": {
            "blockVpn": true
          },
          "price": {
            "amount": 42.0,
            "currency": "string"
          }
        }
      ],
      "productType": 0,
      "asDynamic": {
        "stock": 42,
        "externalUrl": "string",
        "minAmount": 42,
        "maxAmount": 42,
        "isInternal": true
      },
      "asSerials": {
        "delimiter": "string",
        "serials": "string",
        "minAmount": 42,
        "maxAmount": 42,
        "removeDuplicates": true
      },
      "asService": {
        "stock": 42,
        "text": "string",
        "minAmount": 42,
        "maxAmount": 42
      },
      "customerNote": "string",
      "redirectUrl": "string",
      "customFields": [
        {
          "id": 42,
          "type": 1,
          "name": "string",
          "required": true,
          "valueString": "string",
          "placeholder": "string",
          "regex": "string",
          "valueInt": 42,
          "valueBool": true
        }
      ],
      "warranty": {
        "text": "string",
        "durationSeconds": 42
      },
      "discordSocialConnectSettings": {
        "enabled": true,
        "required": true,
        "beforePurchaseRequireRoles": {
          "guildId": "string",
          "roleIds": [
            "string"
          ]
        },
        "beforePurchaseServer": {
          "guildId": "string",
          "roleIds": [
            "string"
          ]
        },
        "afterPurchaseServer": {
          "guildId": "string",
          "roleIds": [
            "string"
          ]
        }
      }
    }
  ],
  "path": "string",
  "seo": {
    "metaTitle": "string",
    "metaDescription": "string"
  },
  "unlisted": true,
  "private": true,
  "onHold": true,
  "isInternal": true
}