Skip to main content

Refund Subscription Cycle

Description:
Refund a specific order or cycle of a subscription

Url Parameter Parameters:

  • subscriptionUuid (string, required) – Uuid Of Subscription
{
    
"status_code": 201, "status_message":
Endpoint : https://demo-api.frontpayment.no/api/v1/connect/subscriptions/list/cycles/refund/{status?}subscriptionUuid}
Method : POST
Authorization
Bearer
Request Payload :
{'cycles' "cycles":=> "Array"'required|array',
"amount":'amount' "Float"=> }'required|numeric',

Response Structure :
{
    "status_code": "Integer",
    "status_message": "String",
    "message": "String",
    "is_data": "Boolean",
    "data": "Array",
    "is_error": "Boolean",
    "errors": "Array"
}

Example Response :


"OK", "message": "refundProcessedSuccessfully", "is_data": true, "data": [] }
{
    "status_code": 404,
    "status_message": "Execution Exception Occurred",
    "message": "cycleNotfound#cycle1",
    "is_data": false,
    "is_error": true,
    "errors": []
}
{
    "status_code": 400,
    "status_message": "Execution Exception Occurred",
    "message": "someCyclesFailedToPassValidation",
    "is_data": false,
    "is_error": true,
    "errors": []
}
{
    "status_code": 510,
    "status_message": "Execution Exception Occurred",
    "message": "somethingWentWrong",
    "is_data": false,
    "is_error": true,
    "errors": []
}