Skip to main content

Products

The catalogue of what you charge for, item by item, before it becomes a plan or an invoice line. Publish, archive and restore control visibility without destroying history.

CommandHTTPDescription
products listGET /v1/productsList products
products createPOST /v1/productsCreate a product
products getGET /v1/products/{id}Get a product
products updatePATCH /v1/products/{id}Update a product
products deleteDELETE /v1/products/{id}Archive a product (soft delete)
products archivePOST /v1/products/{id}/archiveArchive a product
products publishPOST /v1/products/{id}/publishPublish a product
products restorePOST /v1/products/{id}/restoreRestore an archived product
products bulk-archive createPOST /v1/products/bulk-archiveArchive products in bulk
products bulk-change-company createPOST /v1/products/bulk-change-companyChange products' company in bulk
products bulk-delete createPOST /v1/products/bulk-deleteDelete products in bulk
products bulk-move-group createPOST /v1/products/bulk-move-groupMove products to another group
products bulk-visibility createPOST /v1/products/bulk-visibilityChange visibility in bulk
products reorder createPOST /v1/products/reorderReorder products
products reorder updatePUT /v1/products/reorderReorder products (PUT /reorder)

Examples​

--params carries query and path parameters (id, page, filters); --json carries the request body; --fields limits which fields come back — worth using on every list/get to save context. See Global flags for the full reference.

# List products
kobana billing products list \
--fields "id,public_id,external_id,organization_id,company_id"

# Get a product
kobana billing products get --params '{"id": "PRODUCT_ID"}'

# Create a product
kobana billing products create --json '{"name": "NAME", "slug": "SLUG"}'

# Update a product
kobana billing products update \
--params '{"id": "PRODUCT_ID"}' \
--json '{"name": "NAME", "slug": "SLUG", "description": "DESCRIPTION"}'

# Archive a product
kobana billing products archive --params '{"id": "PRODUCT_ID"}'

# Archive a product (soft delete)
kobana billing products delete --params '{"id": "PRODUCT_ID"}' --dry-run

Next steps​