---
updatedAt: 2026-10-12T08:44:52.000Z
agentTools:
  projectIndex: https://valorapi.readme.io/llms.txt
---

# De-Activate Subscription

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "ecommerce-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://securelink-staging.valorpaytech.com:443/"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/?de-activate-sub-1": {
      "post": {
        "summary": "De-Activate Subscription",
        "description": "",
        "operationId": "de-activate-sub-1",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "appid",
                  "appkey",
                  "epi",
                  "txn_type",
                  "subscription_id"
                ],
                "properties": {
                  "appid": {
                    "type": "string",
                    "description": "Merchant APP ID (Alphanumeric - Length of 32 chars)",
                    "default": "h6tSvf0Cz7fSB86B44bkLEplS15AsWYo"
                  },
                  "appkey": {
                    "type": "string",
                    "description": "Merchant APP Key (Alphanumeric - Length of 32 chars)",
                    "default": "zOKj0LUOiW4L9jFRrMbMiJQ5KxQEpSMm"
                  },
                  "epi": {
                    "type": "string",
                    "description": "EPI is an end point identifier, Identify the device on valor infrastructure, it's a 10 digit number starts with 2",
                    "default": "2412333540"
                  },
                  "txn_type": {
                    "type": "string",
                    "description": "Txn type should be \"deactivateSubscription\"",
                    "default": "deactivateSubscription"
                  },
                  "subscription_id": {
                    "type": "string",
                    "description": "Subscription id (length of max 11 chars)",
                    "default": "25163"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error_no\": \"S00\",\n  \"status\": \"OK\",\n  \"msg\": \"SUCCESS\",\n  \"desc\": \"SUBSCRIPTION DEACTIVATED SUCCESSFULLY\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_no": {
                      "type": "string",
                      "example": "S00"
                    },
                    "status": {
                      "type": "string",
                      "example": "OK"
                    },
                    "msg": {
                      "type": "string",
                      "example": "SUCCESS"
                    },
                    "desc": {
                      "type": "string",
                      "example": "SUBSCRIPTION DEACTIVATED SUCCESSFULLY"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error_no\": \"E59\",\n  \"mesg\": \"PROCESSING ERROR\",\n  \"msg\": \"PROCESSING ERROR\",\n  \"desc\": \"SUBSCRIPTION ID IS ALREADY DEACTIVATED OR COMPLETED\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_no": {
                      "type": "string",
                      "example": "E59"
                    },
                    "mesg": {
                      "type": "string",
                      "example": "PROCESSING ERROR"
                    },
                    "msg": {
                      "type": "string",
                      "example": "PROCESSING ERROR"
                    },
                    "desc": {
                      "type": "string",
                      "example": "SUBSCRIPTION ID IS ALREADY DEACTIVATED OR COMPLETED"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```