Skip to content

Creates or updates a device by ID

Request

POST {{baseURL}}/pay-api/v1/devices

This endpoint creates or updates a device by ID.

See Also:
To retrieve devices, see GET /pay-api/v1/devices.
To generate a tap-to-pay token for a device, see POST /pay-api/v1/devices/tap-to-pay/jwt.
To retrieve a device by ID, see GET /pay-api/v1/devices/{deviceId}.
To activate tap-to-pay for a device, see POST /pay-api/v1/devices/{deviceId}/tap-to-pay/activate.

Security
Bearer
Bodyapplication/json
deviceIdstring or null

Specifies the device identifier.

Example: 7aafd09f-b3e6-43fb-b815-5db3bf7f1452

Example:"7aafd09f-b3e6-43fb-b815-5db3bf7f1452"
deviceNamestring or null

Specifies the device name.

Example: iPhone12,1

Example:"iPhone12,1"
curl -i -X POST \
  https://developer.flute.com/_mock/api-reference/pay-api/v1/devices \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "deviceId": "7aafd09f-b3e6-43fb-b815-5db3bf7f1452",
    "deviceName": "iPhone12,1"
  }'

Responses

OK

Bodyapplication/json
deviceIdstring or null

Indicates the device identifier.

Example: 7aafd09f-b3e6-43fb-b815-5db3bf7f1452

Example:"7aafd09f-b3e6-43fb-b815-5db3bf7f1452"
Response
{ "deviceId": "7aafd09f-b3e6-43fb-b815-5db3bf7f1452" }