Developer Docs

Developer Docs

  • Getting Started
  • SubscriptionJS
  • REST API
  • Webhooks
  • Code Samples
  • UseCases
  • Request a Demo

›Discounts

Introduction

  • Introduction

Contracts

  • Adding contract for new customer
  • Adding contract for existing customer
  • Adding future contract without invoicing
  • Up/-downgrading to a plan variant
  • Terminate a contract with notice
  • Terminate a contract without notice

Components

    Component subscriptions

    • Concept
    • Adding/removing
    • In-/decreasing quantity
    • Override for components

    Metered usage components

    • Concept
    • Bill metered usage
    • Override for metered usage

Discounts

  • Adding discounts
  • Adding discounts via coupon

Miscellaneous

  • Rated items
  • Email Notification Template

Adding discounts via coupon

Coupon codes can be added to signup and upgrade orders by adding a coupon code. The discount the coupon code is assigned to will be applied.

Sample request

POST /Orders


  "TriggerInterimBilling": false,
  "Cart": {
    "PlanVariantId": "5e53dab7443e551674956705",
    "InheritStartDate": false,
    "CouponCode": "ABCDEF"
  },
  "Customer": {
    "CompanyName": "ACME Inc.",
    "FirstName": "John",
    "LastName": "Doe",
    "VatId": "DE424324234",
    "EmailAddress": "john.doe@example.com",
    "Address": {
      "AddressLine1": "c/o Coworking Ltd.",
      "Street": "Zschopauer Straße",
      "HouseNumber": "42",
      "PostalCode": "10123",
      "City": "Berlin",
      "Country": "DE"
    },
    "Hidden": false
  },
  "PreviewAfterTrial": false
}
Last updated on 4/1/2021 by AxelDuenninger
← Adding discountsRated items →
Docs
Getting StartedAPI Reference
Resource
Help CenterSupportBlogTutorials
Start with billwerk
Test for free
Request a Demo
Already started?
billwerk Sandboxbillwerk Production
billwerk GmbH
© Made with ❤ in Germany for Europe by billwerk GmbH | 2022
Imprint
|
Data Privacy Rules
|
Disclaimer