PATCH
/
products
/
activate
/
{productId}
curl --request PATCH \
  --url https://waas-staging.cafeone.ng/api/v1/products/activate/{productId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "productId": "<string>"
}'

Path Parameter

productId
string
required

The ID of the product to activate.
Example: ‘1404e81a-0bf1-11f0-a8a9-6045bd97b81d’

Response

✅ Success Response

Status Code: 200 OK

{
  "code": "00",
  "success": true,
  "message": "Updated Successfully",
  "data": {
    "id": "a52f7163-ff67-11ef-a8a9-6045bd97b81d",
    "name": "TO_WALLET_TRANSFER",
    "organizationId": "e678b629-fb56-11ef-a8a9-6045bd97b81d",
    "description": "For wallet to wallet transfer",
    "direction": "C",
    "isActive": True,
    "dateCreated": "2025-03-12T17:30:08"
  }
}

❌ Error Responses


- **Status Code**: **400 Bad Request**

{
  "code": "400",
  "success": false,
  "message": "There is nothing to do as Product status is currently True",
  "data": null
}