/
Mark Traffic Fines as Pai...
Marks one or more traffic fines as paid on behalf of a customer. The merchant declares that they received the gross amount (net fine + vendor fee) from the customer and wishes to clear the fines with AARTO.
Calling this endpoint will result in a Whoosh invoice for the gross transaction value of all fines marked paid, issued at the end of each billing cycle.
Recommended: Call
ValidateMarkTrafficFinesAsPaidfirst to confirm the correct amount before calling this endpoint.
Security
ApiKeyAuth
Merchant-side reference to tie the result to an order.
Example:"myreference"
- Mock serverhttps://docs.amabills.co.za/_mock/openapi/v1/TrafficFine/MarkTrafficFineAsPaid
- Testinghttps://api-test.amabills.co.za/api/v1/TrafficFine/MarkTrafficFineAsPaid
- Productionhttps://api.amabills.co.za/api/v1/TrafficFine/MarkTrafficFineAsPaid
curl -i -X POST \
https://docs.amabills.co.za/_mock/openapi/v1/TrafficFine/MarkTrafficFineAsPaid \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"paymentReference": "myreference",
"paymentType": "CARD",
"finesPaid": [
{
"noticeNumber": "0240060000000458",
"amount": 1614,
"currency": "ZAR"
}
]
}'Response
{ "success": 1, "reference": "myreference", "result": { "orderId": "b89a1717-5266-43c7-93cc-7e51c0fe01fb", "grossAmntPaid": 1614, "netFinesAmntPaid": 1600, "vendorFeeAmntPaid": 14, "merchantFeePaid": 7.5, "finesPaid": [ … ] } }