For the complete documentation index, see llms.txt. This page is also available as Markdown.

Collection and Plan

This page covers the Collection and Plan feature. For step-by-step instructions on creating a subscription → Create Subscription Merchant Initiate and Customer Initiate

Collection and Plan is the foundation of the Subscriptions feature. Before creating a subscription, you need to define your products or services through a Collection, set pricing and billing cycles through Plans, configure applicable Taxes, and optionally create Coupons for discounts.

📦 Hierarchical Product Structure

Organize your products in a Collection (product or service offering) that contains multiple Plans (pricing packages) — making it easy to manage a complex product catalog.

💲 Six Pricing Models

Choose from Flat Fee, Per Unit, Tiered, Volume, Stairstep, or Open Amount — to match exactly how your business calculates charges.

🔁 Recurring and One-Off Charge Plan Types

Each plan can be configured as either a Recurring Plan — which generates a new invoice automatically at every billing interval — or a One-Off Charge — which issues a single invoice and grants the customer access for a defined Access Period (including Lifetime).

🖼️ Plan Image for Pricing Table

Upload an image for each plan that is displayed on the Pricing Table — the customer-facing plan selection page. A visual plan card helps customers quickly identify and choose the right package when self-subscribing.

🔢 Stock Control per Plan

Limit the number of subscriptions available for a plan by configuring a stock count. Stock is consumed only when a new subscription is created — not on renewal cycles — making it suitable for capacity-limited offerings such as cohort-based courses or limited membership slots.

🧾 Flexible Tax Configuration

Add a tax configuration to a collection that is automatically applied on every invoice, separate from the plan price.

🔖 Discount via Coupon

Create discount coupons scoped to a Collection. Control the discount type, validity period, member eligibility, redemption limit per subscription, and whether the discount applies to the full invoice or selected plans only.

How It Works

1

Create a Collection

Create a Collection as the container for your product or service. Configure the Invoice Term (payment deadline) and Grace Period (buffer after due date) that will apply to all plans within this collection.

Example: Collection "School Tuition 2025" — Invoice Term 15 days, Grace Period 7 days.

2

Add Plans

Add one or more Plans to the Collection. For each plan, configure the pricing model (Flat Fee, Per Unit, Tiered, Volume, Stairstep, or Open Amount) and the billing cycle (Recurring or One-Off Charge).

Example: Plan "Monthly Tuition" — Flat Fee IDR 500,000, Recurring, Every Month, ends after 12 bills.

3

Create Coupons (Optional)

Create Coupons scoped to the Collection to offer discounts to specific members or promotions. Configure the discount type, stock, redemption limit per subscription, validity period, and whether the discount applies to the full invoice or selected plans only.

Example: Coupon "NEWSTUDENT10" — 10% off, stock 100, applies for the first 3 billing cycles per subscription, valid for the current academic year.

4

Configure Tax (Optional)

Create a Tax and associate it with the Collection. Tax is applied automatically on top of the plan price on every invoice — no manual calculation needed at billing time.

Example: Tax "VAT 11%" — applied to all invoices in "School Tuition 2025".

5

Apply to a Subscription

Select the Collection and Plan when creating a Subscription to link a customer (Member) to your product. Apply Tax and Coupon if applicable. The subscription inherits the billing schedule and pricing — invoices are issued automatically from this point.

Example: Subscribe student Rachma to "Monthly Tuition" starting September 1, ends after 12 bills, with VAT 11% and coupon "NEWSTUDENT10" applied.

Capability Details

What is a Collection?

A Collection represents a product or service offering. It acts as a container for Plans, Coupons, and Taxes — and defines the Invoice Term and Grace Period that apply to all plans within it.


View Collection List

Navigate to Subscription and Billing → Collection → Collection to see all collections. The list displays the collection name, collection ID, total plan, total add on, total coupon, and creation date.


Create Collection

1

Navigate to Subscription and Billing → Collection → Collection

2

Create the collection

Click Create Collection

3

Fill in the collection details

Fill in the Collection Name — must be unique within your merchant account — and Description

4

Configure Invoice Term

Configure Invoice Term — the time window between invoice issuance and the payment due date:

Invoice Issued
Invoice Term
Due Date

July 5

Due upon receipt

July 5, 23:59

July 5

15 days

July 20, 23:59

July 5

End of month

July 30, 23:59

5

Configure Grace Period

Configure Grace Period — a buffer after the due date where no penalties apply and the service remains active:

Due Date
Grace Period
Grace Period End

July 5, 23:59

No grace period

July 5, 23:59

15 days

July 20, 23:59

6

Save

Click Save


Edit Collection

1

Open the edit action

In the collection list, click the icon on the collection to edit

2

Select Edit

You can edit the collection name and description

3

Click Save

Invoice Term and Grace Period cannot be changed after a collection has active subscriptions. Create a new collection if different terms are required.


See Detail

Click the icon on a collection and select See Detail to view the full collection configuration — including all associated plans, coupons, and taxes.


✅ Usage examples:

  • "School Tuition 2025" — collection for all school billing packages in 2025

  • "Gym Membership" — collection for monthly and annual gym membership plans

  • "Property Rental" — collection for boarding house or shophouse rental packages


Use Cases

Customer POV
Use Case Details

Description A school has several billing packages for regular students, boarding students, and students with extracurricular activities.

Solution A single Collection "Tuition 2025" with multiple Plans: "Regular", "Boarding", and "Regular + Extracurricular" — each with its own price and cycle. Coupon "NEWSTUDENT10" gives new students 10% off for the first 3 months.

How It Works Create Collection → add Plan per package → assign VAT 11% as tax → create welcome coupon → link to subscription per student.

Features Used Collection, Plan (Flat Fee, Recurring), Tax, Coupon

Merchant & Customer Experience

Merchant View

Merchants configure the entire product structure from the DOKU Dashboard:

  • Manage Collections at Subscription and Billing → Collection → Collection

  • Manage Plans at Subscription and Billing → Collection → Plan

  • Manage Taxes at Subscription and Billing → Collection → Tax

  • Manage Coupons at Subscription and Billing → Collection → Coupon

  • All configurations are immediately available when creating a Subscription

Customer View

Customers do not interact directly with Collections or Plans. They only see the result of these configurations through:

  • Pricing Table — the plan selection page shared by the merchant, where applicable coupons can be entered at checkout

  • Invoice — which shows the plan name, applied coupon discount, applied tax, and total amount due

Terms & Conditions

  • A single subscription can only contain plans from one Collection

  • Plans with active subscriptions cannot be deleted — they can only be deactivated

  • Tax is not included in the plan price and is always added on top on the invoice

  • Plan prices can be decimal values; for IDR currency, prices are rounded up on the invoice

  • Coupons are scoped to a specific Collection — they cannot be applied across different collections

  • Coupon stock is consumed on a first-come, first-served basis — once exhausted, no new subscriptions can redeem it

  • A coupon with a limited redemption type stops applying automatically after the configured number of cycles — no manual action is needed

FAQ

How many plans can be included in one subscription?

A single subscription can contain a maximum of 10 plans, provided all plans come from the same Collection and have identical billing cycles.

What happens to existing subscriptions if a plan is deactivated?

Existing subscriptions are not affected — they continue renewing as usual. Deactivation only prevents new subscriptions from using that plan.

Can I change the price of a plan that already has active subscriptions?

No. If a plan has active subscriptions, only the name, image, and description can be edited. To change the price, duplicate the plan, update the price on the new plan, and use the new plan for future subscriptions.

What is the difference between One-Off Charge and Recurring Plan?

A Recurring Plan generates a new invoice automatically at every billing interval (e.g., every month) for the duration of the subscription. A One-Off Charge generates a single invoice only once — after payment, the customer has access for the configured Access Period (e.g., 3 months) and no further invoices are issued.

Is tax calculated before or after a coupon discount is applied?

Tax is always calculated after the coupon discount is applied. The invoice calculation order is: plan price → coupon discount deducted → subtotal → tax added on subtotal → final total.

Can a coupon be applied to only some plans in a subscription, not all?

Yes. When creating a coupon, set Apply Coupon To to Selected Items and specify which plans the discount applies to. Plans not selected are invoiced at their full price.

What happens when a coupon's stock runs out?

Once the stock limit is reached, the coupon is no longer available for new subscriptions to redeem. Subscriptions that have already applied the coupon continue to receive the discount for their configured redemption duration — existing redemptions are not affected.

Can I restrict a coupon to a specific member?

Yes. When creating a coupon, set the Member field to a specific member instead of All. Only that member's subscriptions will be able to apply the coupon.

Last updated

Was this helpful?