alipay.ams.transportation.reportEvent
The reportEvent API enables the merchant to report code-scanning events to Alipay+.
- Bus scenarios: Submit one report when the passenger boards.
- Metro/Subway scenarios: Submit two reports: one at station entry and one at station exit.
Request parameters
transportationEvents TransportationEvent REQUIRED
A list of transportation events.
Response parameters
result ResultInfo REQUIRED
The result of the business processing, including the result status, result code, and result message.
API Explorer
Request
Request Body
Response
Response Body
How to handle the result
You might receive different results from Alipay+. Follow the instructions below to handle the result.
result.resultStatus | result.resultCode | Result status |
|
| Successful |
|
| Failed |
| Multiple possible values exist, such as | Unknown |
No result received | N/A | Unknown |
Result/Error codes
| Code | Value | Message | Further action |
|---|---|---|---|
| SUCCESS | S | Success | N/A |
| PARAM_ILLEGAL | F | Illegal parameters. For example, non-numeric input, invalid date. |
|
| UNKNOWN_EXCEPTION | U | An API call failed, which is caused by unknown reasons. | Retry the API call. |
| SYSTEM_ERROR | U | A system error occurred. | Retry the API call. |