Zum Hauptinhalt springen

Creates or Updates Pricing for an Extension

PUT/contributors/{contributorId}/extensions/{extensionId}/pricing/
v2
PUT
extension-update-extension-pricing

The Pricing is needed to publish paid extensions.

Request

  • extensionIdstring (uuid)
    required
    Beispiel:"907a24e9-0723-4566-b584-86578419e983"
  • contributorIdstring
    required

Responses

application/json

The Pricing has been updated.

  • extensionIdstring (uuid)
  • priceChangeConsequenceobject
    • contributorConsequencestring (one of: NONE, EDIT_BLOCK)
      required

      Description of the consequence for the Extension from the perspective of the contributor. Values: * "NONE": No consequence. * "EDIT_BLOCK": The Extension will be blocked for editing by the contributor for 30 days.

    • globalCustomerConsequencestring (one of: NONE, INFO, CONFIRM_REQUIRED)
      required

      Description of the consequence for all Customers of the Extension. Values: * "NONE": No consequence. * "INFO": Customers will be informed about the upcoming changes to their contracts. * "CONFIRM_REQUIRED": Customers will have to confirm or select the accepted changes to their contracts within 30 days or their contracts will be automatically cancelled.

    • variantConsequencesarray of object
      required
      • Array[
      • *object
        • consequencestring (one of: NONE, INFO, CONFIRM_REQUIRED)

          The individual consequence for customers of a specific variant of the Extension. Values: * "NONE": No consequence. * "INFO": Customers will be informed about the upcoming changes to their contracts. * "CONFIRM_REQUIRED": Customers will have to confirm or select the accepted changes to their contracts within 30 days or their contracts will be automatically cancelled.

        • variantKeystring

          The key of the variant of the Extension.

      • ]

Usage examples

$ curl \
--fail \
--location \
-X PUT \
-d '{"dryRun":true,"priceInCents":123}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/contributors/string/extensions/f0f86186-0a5a-45b2-aa33-502777496347/pricing