Notify Payment Result

Last Updated on : 2023-06-15 05:27:56

The parking lot will be notified of the payment result of a specified order based on the order number. After receiving a notification of successful payment, the parking lot will open the barrier gate and let a vehicle pass.

API address

POST: /v1.0/parking-control/{device_id}/fees/{order_number}/pay

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe ID of a specified device in the parking lot.
order_numberStringuritrueThe number of a specified order.

Description of body

Parameter nameTypeINRequiredDescription
order_noString trueThe number of a specified order.
paid_amountInteger trueThe payment amount. Unit: cent.
pay_methodInteger trueThe payment method. Valid values:
  • 1: Alipay.
  • 2: WeChat.
  • 3: bank card.
  • 4: cash.
  • 5: others.
payer_nameString falseThe payer's name.
payer_mobileString trueThe payer's mobile phone number.
pay_timeLong trueThe time when the order is paid.

Return parameter

Parameter nameTypeDescription
resultCmdIssueResultResponseThe returned result.

Description of result

Parameter nameTypeDescription
snStringThe command record ID.

Request example

POST: /v1.0/parking-control/6ce****/fees/123****/pay

Return example

{
    "result": {
        "sn": "135****"
    },
    "t": 1652779976771,
    "success": true
}

Error code

For more information, see error code.