Approval

Approve changing the activation of the shop.

post
Body
taskIdstringRequired

ID of Task

Example: 0x0001be96d74202df38fd21462ffcef10dfe0fcbd7caa3947689a3903e8b6b874
approvalbooleanRequired

If this value is true, the change is accepted; if false, the change is rejected.

Example: true
signaturestringRequired

Signature of shop owner

Example: 0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b
Responses
200Success
application/json
post
POST /v1/shop/status/approval HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 242

{
  "taskId": "0x0001be96d74202df38fd21462ffcef10dfe0fcbd7caa3947689a3903e8b6b874",
  "approval": true,
  "signature": "0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b"
}
200Success
{
  "code": 0,
  "data": {
    "taskId": "0x6d335fe57648a92b6024be84fd4f265fb497366a916f5a28a5f2a04e523d9c7b",
    "shopId": "0x0001be96d74202df38fd21462ffcef10dfe0fcbd7caa3947689a3903e8b6b874",
    "status": 1,
    "terminalId": "KIOSK0001",
    "taskStatus": 0,
    "timestamp": 1722948039,
    "txHash": "0xe5502185d39057bd82e6dde675821b87313570df77d3e23d8e5712bd5f3fa6b6"
  },
  "error": {
    "message": "Failed to check the validity of parameters"
  }
}