---
updatedAt: 2025-10-31T16:43:32.000Z
agentTools:
  projectIndex: https://dev.iugu.com/llms.txt
---

# Suspender Assinatura

Suspende uma Assinatura.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "assinaturas",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.iugu.com/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "query",
        "name": "api_token"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/subscriptions/{id}/suspend": {
      "post": {
        "summary": "Suspender Assinatura",
        "description": "Suspende uma Assinatura.",
        "operationId": "suspender-assinatura",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ID da Assinatura",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"id\": \"13D9CB0C2DA4427A8D0DAA76F10F4248\",\n  \"suspended\": true,\n  \"plan_identifier\": \"Trimestral\",\n  \"price_cents\": 300,\n  \"currency\": \"BRL\",\n  \"features\": {\n    \"Trimestral\": {\n      \"name\": \"Trimestre\",\n      \"value\": 400\n    }\n  },\n  \"customer_name\": \"documentação\",\n  \"customer_email\": \"teste@teste.com\",\n  \"cycled_at\": \"2024-05-15\",\n  \"credits_min\": 0,\n  \"credits_cycle\": null,\n  \"payable_with\": \"credit_card\",\n  \"ignore_due_email\": true,\n  \"max_cycles\": 4,\n  \"cycles_count\": 0,\n  \"recent_invoices\": [\n    {\n      \"id\": \"E29D43A77F6949E89B883959463FA50D\",\n      \"due_date\": \"2024-05-15\",\n      \"status\": \"canceled\",\n      \"total\": \"R$ 114,11\",\n      \"secure_url\": \"https://checkout.iugu.com/invoices/e29d43a7-7f69-49e8-9b88-3959463fa50d-5ca2\"\n    }\n  ],\n  \"subitems\": [\n    {\n      \"id\": \"5281AD7F7F7A4CB381ED699E202C9936\",\n      \"description\": \"Teste Descrição\",\n      \"quantity\": 1,\n      \"price_cents\": 11111,\n      \"recurrent\": false,\n      \"price\": \"R$ 111,11\",\n      \"total\": \"R$ 111,11\"\n    }\n  ],\n  \"logs\": [\n    {\n      \"id\": \"24A3BB31015F4D4B9AB594DB2AEF453E\",\n      \"description\": \"Assinatura Suspensa\",\n      \"notes\": \"Assinatura Suspensa \",\n      \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-05-15\\\"],\\\"updated_at\\\":[\\\"2024-05-15T16:13:27-03:00\\\",\\\"2024-05-15T16:13:53-03:00\\\"]}\",\n      \"created_at\": \"2024-05-15T16:13:54-03:00\"\n    },\n    {\n      \"id\": \"D00E0A9ED00B4B0698E152382682255E\",\n      \"description\": \"Fatura criada\",\n      \"notes\": \"Fatura criada com os items:  1x Ativação de Assinatura: Plano Trismestral = R$ 3,00;1x Teste Descrição = R$ 111,11;\",\n      \"subscription_changes\": \"{\\\"features\\\":[{},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"plan_identifier\\\":[null,\\\"Trimestral\\\"],\\\"customer_id\\\":[null,\\\"D15B9AA0D8964D6EBBC6F9B11A49B442\\\"],\\\"expires_at\\\":[null,\\\"2024-05-15\\\"],\\\"credits_based\\\":[null,false],\\\"ignore_due_email\\\":[null,true],\\\"two_step\\\":[true,false],\\\"soft_descriptor_light\\\":[null,\\\"Teste\\\"],\\\"price_cents\\\":[0,300],\\\"interval\\\":[null,4],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card\\\"],\\\"max_cycles\\\":[0,4],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-05-15T16:13:24-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-05-15T16:13:24-03:00\\\"],\\\"id\\\":[null,\\\"13D9CB0C2DA4427A8D0DAA76F10F4248\\\"]}\",\n      \"created_at\": \"2024-05-15T16:13:27-03:00\"\n    },\n    {\n      \"id\": \"D5942C96BA8841569EF53CC5A0C1E9B4\",\n      \"description\": \"Assinatura Criada\",\n      \"notes\": \"Assinatura Criada \",\n      \"subscription_changes\": \"{\\\"features\\\":[{},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"plan_identifier\\\":[null,\\\"Trimestral\\\"],\\\"customer_id\\\":[null,\\\"D15B9AA0D8964D6EBBC6F9B11A49B442\\\"],\\\"expires_at\\\":[null,\\\"2024-05-15\\\"],\\\"credits_based\\\":[null,false],\\\"ignore_due_email\\\":[null,true],\\\"two_step\\\":[true,false],\\\"soft_descriptor_light\\\":[null,\\\"Teste\\\"],\\\"price_cents\\\":[0,300],\\\"interval\\\":[null,4],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card\\\"],\\\"max_cycles\\\":[0,4],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-05-15T16:13:24-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-05-15T16:13:24-03:00\\\"],\\\"id\\\":[null,\\\"13D9CB0C2DA4427A8D0DAA76F10F4248\\\"]}\",\n      \"created_at\": \"2024-05-15T16:13:24-03:00\"\n    }\n  ],\n  \"custom_variables\": [\n    {\n      \"name\": \"Teste name\",\n      \"value\": null\n    }\n  ],\n  \"expires_at\": \"2024-05-15\",\n  \"created_at\": \"2024-05-15T16:13:24-03:00\",\n  \"updated_at\": \"2024-05-15T16:13:53-03:00\",\n  \"customer_id\": \"D15B9AA0D8964D6EBBC6F9B11A49B442\",\n  \"plan_name\": \"Plano Trismestral\",\n  \"customer_ref\": \"documentação\",\n  \"plan_ref\": \"Plano Trismestral\",\n  \"active\": false,\n  \"two_step\": false,\n  \"suspend_on_invoice_expired\": true,\n  \"in_trial\": null,\n  \"credits\": 0,\n  \"credits_based\": false\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "13D9CB0C2DA4427A8D0DAA76F10F4248"
                    },
                    "suspended": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "plan_identifier": {
                      "type": "string",
                      "example": "Trimestral"
                    },
                    "price_cents": {
                      "type": "integer",
                      "example": 300,
                      "default": 0
                    },
                    "currency": {
                      "type": "string",
                      "example": "BRL"
                    },
                    "features": {
                      "type": "object",
                      "properties": {
                        "Trimestral": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "example": "Trimestre"
                            },
                            "value": {
                              "type": "integer",
                              "example": 400,
                              "default": 0
                            }
                          }
                        }
                      }
                    },
                    "customer_name": {
                      "type": "string",
                      "example": "documentação"
                    },
                    "customer_email": {
                      "type": "string",
                      "example": "teste@teste.com"
                    },
                    "cycled_at": {
                      "type": "string",
                      "example": "2024-05-15"
                    },
                    "credits_min": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "credits_cycle": {},
                    "payable_with": {
                      "type": "string",
                      "example": "credit_card"
                    },
                    "ignore_due_email": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "max_cycles": {
                      "type": "integer",
                      "example": 4,
                      "default": 0
                    },
                    "cycles_count": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "recent_invoices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "E29D43A77F6949E89B883959463FA50D"
                          },
                          "due_date": {
                            "type": "string",
                            "example": "2024-05-15"
                          },
                          "status": {
                            "type": "string",
                            "example": "canceled"
                          },
                          "total": {
                            "type": "string",
                            "example": "R$ 114,11"
                          },
                          "secure_url": {
                            "type": "string",
                            "example": "https://checkout.iugu.com/invoices/e29d43a7-7f69-49e8-9b88-3959463fa50d-5ca2"
                          }
                        }
                      }
                    },
                    "subitems": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "5281AD7F7F7A4CB381ED699E202C9936"
                          },
                          "description": {
                            "type": "string",
                            "example": "Teste Descrição"
                          },
                          "quantity": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "price_cents": {
                            "type": "integer",
                            "example": 11111,
                            "default": 0
                          },
                          "recurrent": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "price": {
                            "type": "string",
                            "example": "R$ 111,11"
                          },
                          "total": {
                            "type": "string",
                            "example": "R$ 111,11"
                          }
                        }
                      }
                    },
                    "logs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "24A3BB31015F4D4B9AB594DB2AEF453E"
                          },
                          "description": {
                            "type": "string",
                            "example": "Assinatura Suspensa"
                          },
                          "notes": {
                            "type": "string",
                            "example": "Assinatura Suspensa "
                          },
                          "subscription_changes": {
                            "type": "string",
                            "example": "{\"suspended\":[false,true],\"suspended_at\":[null,\"2024-05-15\"],\"updated_at\":[\"2024-05-15T16:13:27-03:00\",\"2024-05-15T16:13:53-03:00\"]}"
                          },
                          "created_at": {
                            "type": "string",
                            "example": "2024-05-15T16:13:54-03:00"
                          }
                        }
                      }
                    },
                    "custom_variables": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "example": "Teste name"
                          },
                          "value": {}
                        }
                      }
                    },
                    "expires_at": {
                      "type": "string",
                      "example": "2024-05-15"
                    },
                    "created_at": {
                      "type": "string",
                      "example": "2024-05-15T16:13:24-03:00"
                    },
                    "updated_at": {
                      "type": "string",
                      "example": "2024-05-15T16:13:53-03:00"
                    },
                    "customer_id": {
                      "type": "string",
                      "example": "D15B9AA0D8964D6EBBC6F9B11A49B442"
                    },
                    "plan_name": {
                      "type": "string",
                      "example": "Plano Trismestral"
                    },
                    "customer_ref": {
                      "type": "string",
                      "example": "documentação"
                    },
                    "plan_ref": {
                      "type": "string",
                      "example": "Plano Trismestral"
                    },
                    "active": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "two_step": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "suspend_on_invoice_expired": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "in_trial": {},
                    "credits": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "credits_based": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```