Skip to main content
POST
/
api
/
canary
/
products
Create Product
curl --request POST \
  --url https://api.cashful.africa/api/canary/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "currency": "<string>",
  "metadata": {
    "sku": "PROD-001",
    "category": "electronics"
  }
}
'
{
  "id": "product_001",
  "merchantId": "merchant_456",
  "name": "Airtime",
  "description": "Mobile phone airtime",
  "amount": 5000,
  "currency": "ZAR",
  "active": true,
  "imageId": "file_abc123xyz",
  "imageUrl": "https://my-bucket.s3.af-south-1.amazonaws.com/merchant_123/1736951234567-a1b2c3-airtime.png",
  "metadata": {
    "category": "telecom",
    "provider": "vodacom"
  },
  "createdAt": "2025-01-15T10:30:00.000Z",
  "updatedAt": "2025-01-15T10:30:00.000Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Product details

name
string
required

The name of the product

currency
string
required

The three-letter ISO 4217 currency code

metadata
object
required

Optional custom metadata

Example:
{
"sku": "PROD-001",
"category": "electronics"
}
merchantId
string

The ID of the merchant whose balance is being requested. If omitted, defaults to the authenticated merchant.

description
string

A description of the product

amount
number

The price of the product in the smallest currency unit

active
boolean

Whether the product is active

imageId
string

The ID of the product image file

Response

Product created successfully

id
string
required

Unique identifier

createdAt
string<date-time>
required
updatedAt
string<date-time>
required
merchantId
string
required
name
string
required
currency
string
required
active
boolean
required
metadata
object
required
Example:
{ "sku": "PROD-001" }
deletedAt
string<date-time>
description
string
amount
number
imageId
string

The ID of the product image file

imageUrl
string

The public URL of the product image