Loa Heo Vàng - Đối tác thanh toán
  1. Partner
Loa Heo Vàng - Đối tác thanh toán
  • Partner
    • Get access token for partner client
      POST
    • Refresh token
      POST
    • Send verification code to speaker device
      POST
    • Register a speaker device for a partner
      POST
    • Unregister a speaker device
      POST
    • Webhook callback endpoint for payment processor to notify transaction status
      POST
    • Update status of multiple speaker devices
      PATCH
    • Create a dynamic QR code for payment
      POST
    • Get speaker device detail
      GET
  • Partner Store
    • Update store information
      PUT
  1. Partner

Update status of multiple speaker devices

Develop Env
https://api-test.loaheovang.com
Develop Env
https://api-test.loaheovang.com
PATCH
/api/v1/partner/device/update-status
Last modified:2025-08-01 02:37:10
Maintainer:Not configured
Updates the status of multiple speaker devices associated with a partner. This endpoint allows:
1.
Updating the status of multiple devices in a single request
2.
Each device can have its own status update
3.
Only devices registered to the partner can be updated
4.
The maximum number of devices that can be updated in a single request is 100
The partner must be authenticated and have permission to manage the specified devices. The response includes information about successful and failed updates.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Header Params

Body Params application/jsonRequired

Example
{
    "devices": [
        {
            "deviceSerial": "SP123456789",
            "active": true
        }
    ]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://api-test.loaheovang.com/api/v1/partner/device/update-status' \
--header 'x-client-id;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "devices": [
        {
            "deviceSerial": "SP123456789",
            "active": true
        }
    ]
}'

Responses

🟢200OK
application/json
Result of the device status update operation
Body

Example
{
    "successCount": 3,
    "totalCount": 5,
    "failedDevices": [
        "SP123456789",
        "SP987654321"
    ],
    "errors": {
        "SP123456789": "Device not found",
        "SP987654321": "Internal server error"
    }
}
🟠400Bad Request
🟠401Unauthorized
Modified at 2025-08-01 02:37:10
Previous
Webhook callback endpoint for payment processor to notify transaction status
Next
Create a dynamic QR code for payment
Built with