{ "success": false, "error": { "status": 404, "code": "PRODUCT_NOT_FOUND", "message": "Product not found" }, "data": null }
Edit a product
curl -X PATCH https://api.transaction.gg/merchant/product/edit \ -H "Authorization: Bearer jwt_token" \ -H "Content-Type: application/json" \ -d '{ "productId": "prod_X4dUuzsMaruQ4UsX", "name": "Updated Product Name", "description": "Updated description", "active": true }'
{ "success": true, "data": { "id": "prod_X4dUuzsMaruQ4UsX", "name": "Updated Product Name", "description": "Updated description", "active": true, "updatedAt": "2024-01-01T00:00:00Z" } }