Update Payment Details
This endpoint allows you to update payment details for a specific reference number and payment method.
POST Request
Request url:
https://admin.parking4you.co.uk/api/v1.0/payments/update
Example Request url:
https://admin.parking4you.co.uk/api/v1.0/payments/update?key=orgapikey&multi_mode_reference_no=MM-P4U-1-564***&reference_no[]=P4U-1-564***&payment_type=Visa credit card&payment_method=stripe&transaction_id=pi_3PX45******************&amount=84.94&discount=0.00&valet_charges=0.00&extra_charges=0.00
This endpoint allows you to update payment details for a specific reference number and payment method.
Query Params Description:
- key: The API key for authentication.
- multi_mode_reference_no (string, required): The multi-mode reference number.
- reference_no(array of strings, required): An array of reference numbers.
- payment_type (string, required): The type of payment (e.g. Visa credit card).
- payment_method (string, required): The payment method (e.g. stripe).
- transaction_id (string, required): The payment transaction ID.
- amount (number, required): The payment amount.
- discount (number, required): The discount amount.
- valet_charges (number, required): The valet charges.
- extra_charges (number, required): Any extra charges.
| Parameter | Type | Position | Required | Value |
|---|---|---|---|---|
| key | String |
Params |
Required |
p4u************* |
| multi_mode_reference_no | String |
Params |
Required |
MM-P4U-1-564*** |
| reference_no[] | String |
Params |
Required |
P4U-1-564*** |
| payment_type | String |
Params |
Required |
Visa credit card |
| payment_method | String |
Params |
Required |
stripe |
| transaction_id | String |
Params |
Required |
pi_3PX45XP7************ |
| amount | Decimal |
Params |
Required |
84.94 |
| discount | Decimal |
Params |
optional |
0.00 |
| valet_charges | String |
Params |
optional |
0.00 |
| extra_charges | Decimal |
Params |
optional |
0.00 |
| admin_charges | Decimal |
Params |
optional |
0.00 |
Request Template:
{
"key": "string",
"multi_mode_reference_no": "string",
"reference_no": [],
"payment_type": "string",
"transaction_id": "string",
"amount": "decimal",
"discount": "decimal",
"valet_charges": "decimal",
"extra_charges": "decimal"
}
Response
Response Body:
- success (boolean): Indicates if the request was successful.
- response_code (integer): The code indicating the status of the response.
- message (string): Any additional message related to the response.
- data (array): Additional data related to the booking, such as multi-mode reference number and reference number.
Please note that the actual values for the product information will be returned in the response, but have been omitted for privacy and security reasons.
{
"success": true,
"response_code": 200,
"message": "successful",
"data": [
{
"id": 74****,
"reference_no": "P4U-1-564***",
"third_party_reference": "",
"multi_mode": "MM-P4U-1-564***",
"booking_details": [
{
/* ======= Booking Details ======= */
}
]
}
]
}