PUT
/
products
/
{id}
curl --request PUT \
  --url https://sandbox-api.billingrails.com/v1/products/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "code": "<string>",
  "sku": "<string>",
  "status": "active",
  "model": "<string>",
  "currency": "<string>",
  "amount": 1,
  "description": "<string>",
  "image_url": "<string>"
}'
{
  "product": {
    "object": "product",
    "id": "prod_IhMUl3rrZ3",
    "created_at": "2025-02-14T17:33:40.843Z",
    "status": "active",
    "name": "Premium Plan",
    "code": "premium_plan",
    "sku": "PREM-001",
    "description": "Premium subscription plan",
    "vendor": "Billingrails",
    "model": "subscription",
    "currency": "NGN",
    "amount": 5000,
    "image_url": "https://example.com/premium.jpg"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json

Product payload

The body is of type object.

Response

200 - application/json

Product updated

The response is of type object.