Paycose Docs
Product
PATCH/products/{product_id}

Update

Update product metadata (name, active, description, erp_reference, image). All fields are optional; only provided fields are updated.

Prices are managed separately via /prices — this endpoint does not touch them.

Requires: Bearer token, X-Country header.

Request

Example

curl -X PATCH 'https://api.paycose.com/api/v1/app1/platform/wallet/products/{{product_id}}' \
  -H 'X-Session-Token: {{session_token}}' \
  -H 'X-Country: {{country}}' \
  -H 'X-Test-Mode: {{x_test_mode}}' \
  -d '{
  "name": "Premium Plan (Updated)",
  "active": true,
  "description": "Updated description",
  "erp_reference": "ERP-PREMIUM-001",
  "image": "https://example.com/premium-v2.jpg",
  "labels": [
    "<string>"
  ]
}'

Headers

NameValueDescription
X-Session-Token{{session_token}}
X-Country{{country}}
X-Test-Mode{{x_test_mode}}true=wallet_test, false=wallet_live (default). Toggle the x_test_mode collection variable to flip every applicable request.

Body

NameTypeValue
namestringPremium Plan (Updated)
activebooleantrue
descriptionstringUpdated description
erp_referencestringERP-PREMIUM-001
imagestringhttps://example.com/premium-v2.jpg
labelsarray[1]
{
  "name": "Premium Plan (Updated)",
  "active": true,
  "description": "Updated description",
  "erp_reference": "ERP-PREMIUM-001",
  "image": "https://example.com/premium-v2.jpg",
  "labels": [
    "<string>"
  ]
}

Responses

200200 OK

Headers

NameValue
Content-Typeapplication/json

Body

{
  "id": "<string>",
  "object": "<string>",
  "resource": "<string>",
  "created_at": "<RFC3339 timestamp>",
  "errors": [
    {
      "code": "<string>",
      "message": "<string>"
    }
  ],
  "next_action": [
    {
      "type": "<string>",
      "title": "<string>",
      "description": "<string>",
      "i18n_key": "<string>",
      "url": "<string>",
      "client_secret": "<string>",
      "payment_method": "<string>",
      "qr_data": "<string>"
    }
  ]
}
400400 Bad Request

Headers

NameValue
Content-Typeapplication/json

Body

{
  "object": "error",
  "code": "<string>",
  "key": "<string>",
  "i18n_key": "<string>",
  "message": "<string>",
  "request_id": "<string>"
}

On this page