The products API lets you build a catalog of the goods and services you sell. Once you create a product, you can reference it by ID when adding line items to invoices or building checkout links — saving you from re-entering details each time. Products support physical goods, digital downloads, and services, with optional tax and discount configuration. All routes require authentication.Documentation Index
Fetch the complete documentation index at: https://docs.dubupay.com/llms.txt
Use this file to discover all available pages before exploring further.
Product object
Unique product identifier (UUID).
Product name.
Optional description of the product (up to 2,000 characters).
Product type. One of
physical, digital, or service.Unit price in the product’s currency.
Currency of the price. One of
NGN or USD. Defaults to your account’s default currency.One of
active, inactive, or archived. Only active products can be used in new invoices and checkout links.Optional stock count.
null means unlimited stock.Up to 10 image URLs associated with this product.
How tax is applied:
none, percentage, or fixed.Tax amount. Interpreted as a percentage when
tax_type is percentage, or as a fixed currency amount when fixed.How discounts are applied:
none, percentage, or fixed.Discount amount. Interpreted as a percentage or fixed amount depending on
discount_type.ISO 8601 creation timestamp.
ISO 8601 last-updated timestamp.
Create a product
Request body
Product name. Maximum 255 characters.
Optional product description. Maximum 2,000 characters.
Product type:
physical, digital, or service.Unit price. Must be a positive number.
NGN or USD. Defaults to your account currency.Stock count. Omit for unlimited stock.
Array of image URLs. Maximum 10 items.
none, percentage, or fixed. Defaults to none.Tax amount. Required when
tax_type is not none.none, percentage, or fixed. Defaults to none.Discount amount. Required when
discount_type is not none.Example
201 Created with the new product object.
List products
Query parameters
Filter by status:
active, inactive, or archived.Full-text search across product names.
Page number (1-indexed). Defaults to
1.Results per page. Maximum
100.Example
Get a product
Path parameters
UUID of the product.
Example
Update a product
Path parameters
UUID of the product to update.
Request body
All fields are optional. You can updatestatus to archived to retire a product without deleting it.
New product name.
New description. Pass
null to clear it.physical, digital, or service.active, inactive, or archived.New unit price.
NGN or USD.Updated stock count. Pass
null for unlimited.Example
Delete a product
status to archived instead if you want to retain historical data.
Path parameters
UUID of the product to delete.
Example
200 OK on success.