Memento Payments
Search…
⌃K

Devices

The device object

Attribute
Type
Description
id
uuid
The unique identifier for the device.
make
string
The device make.
model
string
The device model.
os_name
string
The name of the OS running on the device.
os_version
string
The version of the OS running on the device.

Get a device

Get the a user's device.
Request
Response
GET /v1/devices/{id}
200 OK
Returns a device object.

Update a device

Update a user's device.
Request
Response
PUT /v1/devices/{id}
Attribute
Type
Description
id
uuid
The unique identifier for the device. required
make
string
The device make. required
model
string
The device model. required
os_name
string
The name of the OS running on the device. required
os_version
string
The version of the OS running on the device. required
apn_device_token
string
Token for the Apple Push Notification service.
gcm_device_token
string
Token for the Firebase Cloud Messaging service.
{
"os_version": "14.1"
}
200 OK
Returns a device object.

Add push notification token

Add a APNs (iOS) or FCM (Android) push notification token to the current device.
Request
Response
POST /v1/devices/{id}/tokens
Attribute
Type
Description
Type
string
The push notification network, either ios or android. required
Token
string
The token received from the push notification network.
{
"type": "ios",
"token": "00fc13adff785122b4ad28809a3420982341241421348097878e577c991de8f0"
}
Last modified 1yr ago