Projects
Sell through many apps and websites from one account, and filter everything by project.
What a project is
A project is one app or website you sell through. One account can hold many, and one project can hold a website, an iOS app and an Android app together. Products and store apps belong to a project; their sales, subscriptions and events carry its project_id, so you can see each app’s numbers on their own in the dashboard and filter everything in the API.
Create a project
curl https://billing-sandbox-api.munimtech.com/v1/projects \
-H "Authorization: Bearer $MUNIM_BILLING_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Acme Notes", "kind": "ios", "url": "https://acmenotes.app", "color": "#2563eb"}'const project = await munim.projects.create({
name: 'Acme Notes',
kind: 'ios',
url: 'https://acmenotes.app',
color: '#2563eb',
})namestringrequired- Usually the app's name.
kindstringwebsite,ios,android,desktop,gameorother.urlstring- https:// address.
icon_urlstring- https:// icon.
colorstring- #rrggbb, for charts.
metadataobject- Up to 20 keys.
Project
{
"id": "prj_…",
"object": "project",
"name": "Acme Notes",
"kind": "ios",
"url": "https://acmenotes.app",
"icon_url": null,
"color": "#2563eb",
"status": "active",
"metadata": {},
"products": 3,
"store_apps": 1,
"created_at": 1764460800000
}Change one with POST /v1/projects/:id (any field above, or status: "archived").
Move things into a project
Give new products a project_id when you create them, or move existing products and store apps. Their past sales move with them, in the background (about a minute).
curl https://billing-sandbox-api.munimtech.com/v1/projects/prj_…/assign \
-H "Authorization: Bearer $MUNIM_BILLING_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{"product_ids": ["pro_…", "pro_…"], "store_app_ids": ["app_…"]}'const { project, moved } = await munim.projects.assign('prj_…', {
product_ids: ['pro_…', 'pro_…'],
store_app_ids: ['app_…'],
})
// moved: { products: 2, store_apps: 1 }Filter by project
| Where | How |
|---|---|
| Lists | ?project_id=prj_… on products, checkouts, transactions and subscriptions. |
| Exports and reports | project_id on exports, reports and schedules. |
| Events and webhooks | project_id on the events feed and on a webhook endpoint. Account-wide events (payouts, reports) still come through. |
| Your database | project_id when connecting a sync: only that project’s rows. |