PUT
/
api
/
v1
/
prices
/
{id}
Update Price
curl --request PUT \
  --url https://app.flowglad.com/api/v1/prices/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "price": {
    "intervalUnit": "day",
    "name": "<string>",
    "intervalCount": 123,
    "type": "<string>",
    "trialPeriodDays": 123,
    "setupFeeAmount": 123,
    "isDefault": true,
    "unitPrice": 123,
    "usageEventsPerUnit": null,
    "productId": "<string>",
    "active": true,
    "startsWithCreditTrial": true,
    "slug": "<string>",
    "overagePriceId": "<string>",
    "usageMeterId": null,
    "id": "<string>"
  }
}'
{
  "price": {
    "id": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "createdByCommit": "<string>",
    "updatedByCommit": "<string>",
    "livemode": true,
    "intervalUnit": "day",
    "name": "<string>",
    "intervalCount": "<any>",
    "type": "<string>",
    "trialPeriodDays": "<any>",
    "setupFeeAmount": "<any>",
    "isDefault": true,
    "unitPrice": "<any>",
    "usageEventsPerUnit": "<any>",
    "productId": "<string>",
    "active": true,
    "currency": "USD",
    "startsWithCreditTrial": "<any>",
    "slug": "<string>",
    "overagePriceId": "<any>",
    "usageMeterId": "<any>"
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required

Body

application/json
price
object
required

Response

Successful response

price
object
required