NodeRings Docs

Update Addon

Update an addon (allows changing price and currency)

PATCH
/v1/addons/{id}
Authorization<token>

Bearer token

In: header

X-Organization-ID<token>

Tenant or organization identifier

In: header

Path Parameters

idstring
currency?string
unitAmount?string

Decimal string with 6 decimal places precision

percentageValue?number
Formatdouble
zeroBaseFallbackAmount?string

Decimal string with 6 decimal places precision

Response Body

application/json

curl -X PATCH "https://api.nrings.io/v1/addons/{id}" \  -H "Authorization: Bearer {your_token}" \  -H "X-Organization-ID: {your_org_id}" \  -H "Content-Type: application/json" \  -d '{  "currency": "string",  "unitAmount": "string",  "percentageValue": 0,  "zeroBaseFallbackAmount": "string"}'
{
  "success": true
}