Prices

Update a price

Updates a price by ID.

PUT
/prices/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

Price payload

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://api.sandbox.billingrails.com/v1/prices/prc_IhMUl3rrZ3" \  -H "Content-Type: application/json" \  -d '{    "amount": 5000  }'
{
  "price": {
    "object": "price",
    "id": "prc_IhMUl3rrZ3",
    "model": "flat",
    "currency": "USD",
    "amount": 5000,
    "interval": {
      "frequency": 1,
      "unit": "month"
    },
    "bill_timing": "advance",
    "created_at": "2025-02-14T17:33:40.843Z"
  }
}