Skip to main content

Overview

Service Provider subscribes “DELIVERY_REFUND_REQUESTED” event in AccessRC. So when a refund delivery event is created in AccessRC, system sends a webhook call to the callback service of the Service Provider.
⚠️ Warning
Not implemented yet.

Webhook Request Payload

{
    "deliveryId":"6fd1ca79-1a5d-4bd9-a4c9-b41c48ff6b7a"
}

Webhook Response Payload

200 Response

A successful callback response from the Service Provider’s callback service.
{
    "status": "success",
    "message": "Callback successfully received",
    "data": {
        "deliveryId":"6fd1ca79-1a5d-4bd9-a4c9-b41c48ff6b7a",
    }
}

400 Response

If the validation fails or there is a bad request, the response will be:
{
    "status": "failed",
    "error": {
        "code": 400,
        "message": "Validation failed. Please check your input.",
        "type": "BadRequest"
    }
}

401 Response

If the verification fails, the response will be:
{
    "status": "failed",
    "error": {
        "code": 401,
        "message": "Verification failed",
        "type": "Unauthorized"
    }
}

500 Response

In case of an internal server error, the response will be:
{
    "status": "failed",
    "error": {
        "code": 500,
        "message": "Internal Server Error",
        "type": "Exception"
    }
}