POST https://openapi.rogo.com.vn/api/v2.0/iot-core/warranty/activate
Idempotent. Activating the same token twice returns the first activation with alreadyActivated: true rather than failing — a retry after a timeout must not become a second warranty or an error your user sees. The first activation keeps the record: a later call cannot reassign its user or change its term.
Body
Field
Type
Required
Description
typeActive
serial \
mac
Yes
activationId
string
Yes
The token itself — the serial, or the MAC. Unique per partner: activating the same one twice returns the first activation rather than creating a second.
userId
string
Yes
The end user, as you identify them. Stored as given and never changed afterwards, so it stays the person who activated even if the device later changes hands.
typeDevice
smart \
nonsmart
Yes
activatedAt
string
No
ISO-8601. Defaults to now.
expiredAt
string
No
ISO-8601, when your own system already resolved the end of the term. Send this or durationMonths, never both. Sending neither records a warranty whose length is not yet known.
durationMonths
number
No
Whole months from the activation, when we are the ones who must work it out.
source
app-add-device \
app-qr \
import \
productId
string
No
batchId
string
No
factoryId
string
No
externalRef
object
No
Whatever your own system answered, kept verbatim so a disagreement later can be traced to what it actually said.
meta
object
No
Anything specific to you — for a consumable, which unit it went into.
GET https://openapi.rogo.com.vn/api/v2.0/iot-core/warranty/{typeActive}/{activationId}
Nothing found means nothing was activated under this token. It does not mean the token is counterfeit — only whoever holds the inventory can answer that.