---
updatedAt: 2026-11-12T11:24:23.000Z
agentTools:
  projectIndex: https://docs.decentro.tech/llms.txt
---

# Enach - Mandate Management API

This API is used to manage the mandate. Merchants can perform the actions like cancel the mandate.

## Overview

The Mandate Management API allows merchants to manage existing Enach mandates.

Only mandates with statuses **ACTIVE** or **REGISTERED** are eligible for cancellation.

Future-dated presentations for successfully cancelled mandates are automatically cancelled and commissions are refunded.

Mandate status is updated to Cancelled on successful cancellation or reverted back to Active / Registered on failure.

Merchants will receive callbacks for **Cancellation\_Pending** and **Cancelled** statuses in same mandate registration callback endpoint.

Ensured merchants can track cancellation progress using the existing **Mandate Status API**.

**Allowed Mandate Statuses for Cancellation:**

* ACTIVE
* REGISTERED

Any other status (e.g., CANCELLED, EXPIRED) will result in an error.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "decfin-staging",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://staging.api.decentro.tech"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/v3/payments/enach/mandate/manage": {
      "post": {
        "summary": "Enach - Mandate Management API",
        "description": "This API is used to manage the mandate. Merchants can perform the actions like cancel the mandate.",
        "operationId": "enach-mandate-management-api",
        "parameters": [
          {
            "name": "client_id",
            "in": "header",
            "description": "Decentro assigned client_id during on boarding.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "client_secret",
            "in": "header",
            "description": "Decentro assigned client_secret during on boarding.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "reference_id",
                  "action",
                  "decentro_mandate_id"
                ],
                "properties": {
                  "reference_id": {
                    "type": "string",
                    "description": "Unique identifier passed at every request"
                  },
                  "action": {
                    "type": "string",
                    "description": "This param is used to define the type of action the API to perform. Accepted values are Cancel or Update.",
                    "default": "CANCEL"
                  },
                  "decentro_mandate_id": {
                    "type": "string",
                    "description": "This param will accept the decentro mandate id to perform the defined action."
                  }
                }
              },
              "examples": {
                "Success - Cancel Action": {
                  "value": {
                    "action": "CANCEL",
                    "reference_id": "XXXXXXX",
                    "decentro_mandate_id": "XXXXXXXXXX"
                  }
                },
                "Failure - Invalid Action Type": {
                  "value": {
                    "action": "DELETE",
                    "reference_id": "XXXXXXX",
                    "decentro_mandate_id": "XXXXXXXXXX"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Success - Cancelled Action": {
                    "value": "{\n    \"decentro_txn_id\": \"AFA596C579A64300A036B8093273DE49\",\n    \"api_status\": \"SUCCESS\",\n    \"message\": \"Successfully processed mandate cancellation request.\",\n    \"data\": {\n        \"decentro_mandate_id\": \"10ED96CEBA8C4A93A58810A6E8171096\",\n        \"mandate_status\": \"CANCELLATION_PENDING\",\n        \"mandate_status_description\": \"Mandate cancellation request has been initiated\"\n    },\n    \"response_key\": \"success_mandate_action\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "decentro_txn_id": {
                      "type": "string",
                      "example": "AFA596C579A64300A036B8093273DE49"
                    },
                    "api_status": {
                      "type": "string",
                      "example": "SUCCESS"
                    },
                    "message": {
                      "type": "string",
                      "example": "Successfully processed mandate cancellation request."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "decentro_mandate_id": {
                          "type": "string",
                          "example": "10ED96CEBA8C4A93A58810A6E8171096"
                        },
                        "mandate_status": {
                          "type": "string",
                          "example": "CANCELLATION_PENDING"
                        },
                        "mandate_status_description": {
                          "type": "string",
                          "example": "Mandate cancellation request has been initiated"
                        }
                      }
                    },
                    "response_key": {
                      "type": "string",
                      "example": "success_mandate_action"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Failure - Invalid Action Type": {
                    "value": "{\n    \"decentro_txn_id\": \"E56F148189BA45DEB14495BAF0B82BA4\",\n    \"api_status\": \"FAILURE\",\n    \"message\": \"Invalid action type provided. Accepted value is CANCEL.\",\n    \"response_key\": \"error_invalid_action_type\"\n}"
                  },
                  "Failure - Mandate not active": {
                    "value": "{\n    \"decentro_txn_id\": \"A18B03E0CBAB45FFB9C50F7503BC1832\",\n    \"api_status\": \"FAILURE\",\n    \"message\": \"Mandate must be in an ACTIVE or a PAUSED state to proceed.\",\n    \"response_key\": \"error_mandate_not_active_or_paused\"\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Failure - Invalid Action Type",
                      "type": "object",
                      "properties": {
                        "decentro_txn_id": {
                          "type": "string",
                          "example": "E56F148189BA45DEB14495BAF0B82BA4"
                        },
                        "api_status": {
                          "type": "string",
                          "example": "FAILURE"
                        },
                        "message": {
                          "type": "string",
                          "example": "Invalid action type provided. Accepted value is CANCEL."
                        },
                        "response_key": {
                          "type": "string",
                          "example": "error_invalid_action_type"
                        }
                      }
                    },
                    {
                      "title": "Failure - Mandate not active",
                      "type": "object",
                      "properties": {
                        "decentro_txn_id": {
                          "type": "string",
                          "example": "A18B03E0CBAB45FFB9C50F7503BC1832"
                        },
                        "api_status": {
                          "type": "string",
                          "example": "FAILURE"
                        },
                        "message": {
                          "type": "string",
                          "example": "Mandate must be in an ACTIVE or a PAUSED state to proceed."
                        },
                        "response_key": {
                          "type": "string",
                          "example": "error_mandate_not_active_or_paused"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```