Core APIProducts

Update product variant

puthttps://core-api.ancon.io/api/v1/Tenants/{tenantId}/Products/{productId}/variants/{variantId}
View .mdOpenAPI

Authorization

  • Access-Tokenheaderrequired

    Tenant- or outlet-level token from the backoffice. See Get started.

Path parameters

  • tenantIdstring (uuid)required
  • productIdstring (uuid)required
  • variantIdstring (uuid)required

Header parameters

  • correlationIdstring

    Correlation Id for the request

Request body application/json

  • namestringrequired
  • isMainProductVariantbooleanrequired
  • isOpenPricebooleanrequired
  • variantPriceobjectrequired
    2 fields in variantPrice
    • unitPricenumber (double)

      Gets or sets the price per unit. For example 10 per piece. Or 50 per cl. It depends on the unit of the product.

    • additionalPricenumber (double)

      Gets or sets the additional price. For example 50 per cl + 10 additional price.

  • materialCostobject | null
    2 fields in materialCost
    • unitPricenumber (double)

      Gets or sets the price per unit. For example 10 per piece. Or 50 per cl. It depends on the unit of the product.

    • additionalPricenumber (double)

      Gets or sets the additional price. For example 50 per cl + 10 additional price.

  • positioninteger (int32)required

Responses

200OKapplication/json
  • messagestring | null
400Bad Requestapplication/json
  • messagestring | null
  • errorCodestring (uuid)
  • additionalDataany | null
401Unauthorizedapplication/json
  • messagestring | null
404Not Foundapplication/json
  • messagestring | null
  • errorCodestring (uuid)
423Lockedapplication/json
  • objectIdstring (uuid)
  • objectTypestring | null
  • timeoutstring | null
  • reasonstring | null