Mobypark API Docs
Home
Home
  1. Payments/Billing
  • Auth
    • Account
      • /profile
      • /logout
      • /profile
    • Parking Lots
      • /parking-lots
      • /parking-lots/{parking-lot_id}/sessions/start
      • /parking-lots/{parking-lot_id}/sessions/stop
      • /parking-lots
      • /parking-lots/{parkinglot_id}
      • /parking-lots/{parkinglot_id}/sessions
      • /parking-lots/{parkinglot_id}/sessions/{parking_session_id}
      • /parking-lots/{parkinglot_id} (ADMIN)
      • /parking-lots/{parkinglot_id}/sessions/{parking_session_id} (ADMIN)
      • /parking-lots/{parkinglot_id} (ADMIN)
    • Payments/Billing
      • /payments
        POST
      • /payments/refund
        POST
      • /billing
        GET
      • /billing/{username} (ADMIN)
        GET
      • /payments
        GET
      • /payments/{username} (ADMIN)
        GET
      • /payments/{transaction_id}
        PUT
    • Vehicles
      • /vehicles
      • /vehicles/{license_plate}/entry
      • /vehicles
      • /vehicles/{vehicle_id}/history
      • /vehicles/{vehicle_id}/reservations
      • /vehicles/{license_id} (ADMIN)
      • /vehicles/{vehicle_id}
      • /vehicles/{username}
    • Reservations
      • /reservations (USER)
      • /reservations (ADMIN)
      • /reservations/{reservation_id}
      • /reservations/{reservation_id}
      • /reservations/{reservation_id}
  • NoAuth
    • Account
      • /login
      • /register
  • Schemas
    • Billing Object
    • Parkinglot Object
    • Parking Session Object
    • Payment Object
    • Reservation Object
    • Vehicle Object
  1. Payments/Billing

/payments/refund

POST
/payments/refund

Request

Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Body Params application/json

Examples

Responses

🟢201Created
application/json
Body

🟠403Access Denied
🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/payments/refund' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "transaction": "7e0aa22e-d96a-4afc-b257-usbdb127bah12",
    "amount": 250
}'
Response Response Example
201 - Success
{
    "status": "Success",
    "payment": {
        "transaction": "7e0aa22e-d96a-4afc-b257-usbdb127bah12",
        "amount": -250,
        "coupled_to": "7e0aa22e-d96a-4afc-b257-e05c228nasm12",
        "processed_by": "(admin user name)",
        "created_at": "(creation date)",
        "completed": "completion date",
        "hash": "(genereted hash code)"
    }
}
Modified at 2025-10-07 13:35:40
Previous
/payments
Next
/billing
Built with