Skip to main content
PATCH
/
api
/
canary
/
products
/
{id}
Updates a product’s name, description, or metadata.

Path Parameters

id
string
required
The unique identifier of the product

Request Body

name
string
The product name
description
string
A description of the product
amount
number
The product price
active
boolean
Whether the product is active
metadata
object
Custom metadata for the product

Response

Success
id
string
Unique identifier for the product
merchantId
string
The merchant’s unique identifier
name
string
The product name
description
string
Product description
amount
number
Product price
currency
string
Currency code
active
boolean
Whether the product is active
metadata
object
Custom metadata
createdAt
string
ISO 8601 timestamp when the product was created
updatedAt
string
ISO 8601 timestamp when the product was last updated

Example Request

{
  "name": "Airtime",
  "description": "Mobile phone airtime - Updated",
  "amount": 5000,
  "active": true,
  "metadata": {
    "category": "telecom",
    "provider": "vodacom",
    "updated": true
  }
}

Example Response

{
  "id": "product_001",
  "merchantId": "merchant_456",
  "name": "Airtime",
  "description": "Mobile phone airtime - Updated",
  "amount": 5000,
  "currency": "ZAR",
  "active": true,
  "metadata": {
    "category": "telecom",
    "provider": "vodacom",
    "updated": true
  },
  "createdAt": "2025-01-15T10:30:00.000Z",
  "updatedAt": "2025-01-15T11:00:00.000Z"
}

Error Responses

Bad Request
Invalid request body
Unauthorized
Invalid or missing authentication token
Not Found
Product not found
Internal Server Error
An unexpected error occurred on the server

Authentication

This endpoint requires Bearer token authentication.