Update Control Number Status

Endpoint

Description

This endpoint updates the payment status to mark a payment as paid in the system.

Authentication

Include the JWT token in the Authorization header:

Authorization: Bearer <your_jwt_token>

Request

Headers

Request Body

The request body should be a JSON object with the following field:

Field Type Required Description
id string Yes The unique identifier of the payment to update

Example Request

POST /api/v2/payment/updatePaid
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

{
    "id": "4463"
}

Response

Success Response (200 OK)

{
    "status": "OK",
    "message": "Payment status updated successfully",
    "returnData": {
        "id": "4463",
        "status": "PAID",
        "updated_at": "2025-09-23T13:45:00Z"
    }
}

Error Responses

400 Bad Request (Missing ID)

{
    "status": "ERROR",
    "message": "Payment ID is required"
}