Prices
Update Price
Changed onUpdates a price. Only active, nickname and metadata can change. Any other field is rejected.
Archiving:
Set active to false to archive the price. Subscriptions that already use it keep their copy of its values. A subscription cannot start from an archived price or switch to it.
put/prices/{id}
Request
- Base URLhttps://api.monei.com/v1
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"active": true,
"nickname": "Monthly",
"metadata": {
"systemId": "12345"
}
}Response
A price object
Example response
{
"id": "3c5a1f8e-2b7d-4e9a-9c41-7d2e6b0f5a13",
"productId": "8f2c6d1a-4b3e-4f7a-9d2c-1e5b7a9c3f60",
"currency": "EUR",
"unitAmount": 1990,
"type": "RECURRING",
"recurring": {
"interval": "month",
"intervalCount": 1,
"trialPeriodDays": 7
},
"active": true,
"nickname": "Monthly",
"metadata": {
"systemId": "12345"
},
"createdAt": 1636366897,
"updatedAt": 1636366897
}Changes
- info
endpoint added
- info