Updates a product’s name, description, or metadata.
Path Parameters
The unique identifier of the product
Request Body
A description of the product
Whether the product is active
Custom metadata for the product
Response
Unique identifier for the product
The merchant’s unique identifier
Whether the product is active
ISO 8601 timestamp when the product was created
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
Invalid or missing authentication token
An unexpected error occurred on the server
Authentication
This endpoint requires Bearer token authentication.