Introduction
The Sound Box API permits the use of a small portable speaker that is internally linked to the mobile device via software. This API is being used to play music on sound box devices.
Sound Box Play Music API
Request Method :: POST |
Headers
Content-Type: application/JSON |
client_id: To be shared during integration |
client_secret: To be shared during integration |
Request Body Parameters
Parameters | Parameter description with validations and examples |
Attribute type | Mandatory/ Not Mandatory |
device_sl_no | Need to pass sound box device serial number E.g. - WLING02110000849 |
String | Mandatory |
amount | Transaction amount. E.g. - 711 | Integer | Mandatory |
language | Language- can be (Hindi/English) | String | Mandatory |
product_name | Product code (AEPS/UPI/MATM/DMT) | String | Mandatory |
device_type | The device type E.g. - QS1/QS2 | String | Mandatory |
Sample Request body
{ "device_sl_no": "WLING02110000849", "amount": 711, "language": "HINDI", "product_name": "UPI", "device_type": "QS1" } |
Response Body Parameters
Parameters | Parameter description with examples | Data type |
message | Message. Describes the result of the transaction. E.g. - Message Successfully sent (SUCCESS) Unsuccessful (FAILED) |
String |
Sample Response Body
SUCCESS
{ "message": "Message Successfully sent" } |
FAILED
{ "message": "Unsuccessful" } |