openapi: 3.2.0 info: title: assinaturas Subscriptions API version: '1.0' servers: - url: https://api.iugu.com/v1 security: - sec0: [] tags: - name: Subscriptions paths: /subscriptions: post: summary: Criar Assinatura description: Cria uma Assinatura. Para mais informações sobre como criar uma assinatura operationId: criar-assinatura requestBody: content: application/json: schema: type: object required: - customer_id properties: plan_identifier: type: string description: Identificador do Plano. Só é enviado para assinaturas que não são credits_based customer_id: type: string description: ID do Cliente expires_at: type: string description: 'Data de Vencimento da Assinatura (Formato: ''AAAA-MM-DD''). Define a data da primeira cobrança. As cobranças seguintes são calculadas automaticamente a partir dessa data, conforme o intervalo do plano vinculado (ex.: mensal, anual).' format: date splits: type: array description: Regras de divisão (Split Payment) para todas as Faturas geradas por esta Assinatura. items: properties: recipient_account_id: type: string description: ID da Conta que receberá o split. **Não inserir o account_id da conta que requisitará este endpoint**. cents: type: integer description: Valor fixo, em **centavos**, a serem enviados à esta conta. format: int32 percent: type: number description: Porcentagem do **valor total** da fatura a ser dividido para o `recepient_account_id`. format: float permit_aggregated: type: boolean description: Se `true`, permite utilizar Splits tanto do tipo `percent` quanto `cents`. bank_slip_cents: type: integer description: Valor a ser dividido se a fatura for paga por **Boleto Bancário** — `bank_slip`. format: int32 bank_slip_percent: type: number description: Percentual do **valor total** da fatura a ser dividido se for paga por **Boleto Bancário** — `bank_slip`. format: float credit_card_cents: type: integer description: Valor fixo, em **centavos**, a ser dividido se a fatura for paga por **Cartão de Crédito** — `credit_card`. format: int32 credit_card_percent: type: number description: Percentual do **valor total** da fatura a ser dividido se for paga por **Cartão de Crédito** — `credit_card`. format: float pix_cents: type: integer description: Valor fixo, em **centavos**, a ser dividido se a fatura for paga por **PIX** — `pix`. format: int32 pix_percent: type: number description: Percentual do **valor total** da fatura a ser dividido se for paga por **PIX** — `pix`. format: float credit_card_1x_cents: type: integer description: Valor, **em centavos**, a ser dividido se a fatura for paga em `1x` (à vista) no **Cartão de Crédito**. format: int32 credit_card_2x_cents: type: integer description: Valor, em **centavos**, a ser dividido se a fatura for paga em `2x` no **Cartão de Crédito**. format: int32 credit_card_3x_cents: type: integer description: Valor, em **centavos**, a ser dividido se a fatura for paga em `3x` no **Cartão de Crédito**. format: int32 credit_card_4x_cents: type: integer description: Valor, em **centavos**, a ser dividido se a fatura for paga em `4x` no **Cartão de Crédito**. format: int32 credit_card_5x_cents: type: integer description: Valor, em **centavos**, a ser dividido se a fatura for paga em `5x` no **Cartão de Crédito**. format: int32 credit_card_6x_cents: type: integer description: Valor, em **centavos**, a ser dividido se a fatura for paga em `6x` no **Cartão de Crédito**. format: int32 credit_card_7x_cents: type: integer description: Valor, em **centavos**, a ser dividido se a fatura for paga em `7x` no **Cartão de Crédito**. format: int32 credit_card_8x_cents: type: integer description: Valor, em **centavos**, a ser dividido se a fatura for paga em `8x` no **Cartão de Crédito**. format: int32 credit_card_9x_cents: type: integer description: Valor, em **centavos**, a ser dividido se a fatura for paga em `4x` no **Cartão de Crédito**. format: int32 credit_card_10x_cents: type: integer description: Valor, em **centavos**, a ser dividido se a fatura for paga em `10x` no **Cartão de Crédito**. format: int32 credit_card_11x_cents: type: integer description: Valor, em **centavos**, a ser dividido se a fatura for paga em `11x` no **Cartão de Crédito**. format: int32 credit_card_12x_cents: type: integer description: Valor, em **centavos**, a ser dividido se a fatura for paga em `12x` no **Cartão de Crédito**. format: int32 credit_card_1x_percent: type: number description: Percentual do **valor total** da fatura a ser dividido se for paga em `1x` (á vista) no **Cartão de Crédito**. format: float credit_card_2x_percent: type: number description: Percentual do **valor total** da fatura a ser dividido se for paga em `2x` no **Cartão de Crédito**. format: float credit_card_3x_percent: type: number description: Percentual do **valor total** da fatura a ser dividido se for paga em `3x` no **Cartão de Crédito**. format: float credit_card_4x_percent: type: number description: Percentual do **valor total** da fatura a ser dividido se for paga em `4x` no **Cartão de Crédito**. format: float credit_card_5x_percent: type: number description: Percentual do **valor total** da fatura a ser dividido se for paga em `5x` no **Cartão de Crédito**. format: float credit_card_6x_percent: type: number description: Percentual do **valor total** da fatura a ser dividido se for paga em `6x` no **Cartão de Crédito**. format: float credit_card_7x_percent: type: number description: Percentual do **valor total** da fatura a ser dividido se for paga em `7x` no **Cartão de Crédito**. format: float credit_card_8x_percent: type: number description: Percentual do **valor total** da fatura a ser dividido se for paga em `8x` no **Cartão de Crédito**. format: float credit_card_9x_percent: type: number description: Percentual do **valor total** da fatura a ser dividido se for paga em `9x` no **Cartão de Crédito**. format: float credit_card_10x_percent: type: number description: Percentual do **valor total** da fatura a ser dividido se for paga em `10x` no **Cartão de Crédito**. format: float credit_card_11x_percent: type: number description: Percentual do **valor total** da fatura a ser dividido se for paga em `11x` no **Cartão de Crédito**. format: float credit_card_12x_percent: type: number description: Percentual do **valor total** da fatura a ser dividido se for paga em `12x` no **Cartão de Crédito**. format: float type: object only_on_charge_success: type: boolean description: Apenas Cria a Assinatura se a Cobrança for bem sucedida. Isso só funciona caso o cliente já tenha uma forma de pagamento padrão cadastrada. Não enviar "expires_at". ignore_due_email: type: boolean description: Desabilita o envio de emails notificando o vencimento de uma fatura em assinaturas que podem ser pagas com boleto bancário payable_with: type: array description: 'Método de pagamento que será disponibilizado para as Faturas desta Assinatura (all, credit_card, bank_slip ou pix). Obs: Dependendo do valor, este atributo será herdado, pois a prioridade é herdar o valor atribuído ao Plano desta Assinatura; caso este esteja atribuído o valor ‘all’, o sistema considerará o payable_with da Assinatura; se não, o sistema considerará o payable_with do Plano' items: type: string automatic_pix: type: object properties: journey: type: integer description: 'Tipo de jornada: `3` ou `4`.
- Jornada 3: QRCode com primeiro pagamento - Cria recorrência junto com a primeira cobrança imediata.
- Jornada 4: QRCode de pagamento com proposta de criar recorrência para cobranças imediatas ou futuras.' frequency: type: string description: Frequência das cobranças (**Exemplo:** `weekly`, `monthly`, `quarterly`, `semiannual`, `annual`).
**Importante:** Deve ser compatível com o intervalo do plano. recurrence_beginning: type: string format: date description: 'Data de início da recorrência (deve ser futura, formato: ''AAAA-MM-DD'').' contract_number: type: string description: Identificador do contrato/pedido. Máx. 35 caracteres. Alguns PSPs Pagadores podem recusar contratos com o mesmo número já ativos end_date: type: string format: date description: 'Data de encerramento da recorrência junto ao BACEN (Formato: ''AAAA-MM-DD''). Não encerra a assinatura iugu, os dois precisam ser alinhados pelo lojista' retry_policy: type: string description: Política de retentativa do PIX Automático description: Ao utilizar o objeto `automatic_pix`, o cliente informado no `customer_id` deve possuir nome e CPF/CNPJ cadastrados, a assinatura não possui o objeto `payer`. Se necessário, atualize o cadastro pelo endpoint [Editar Cliente](https://dev.iugu.com/reference/alterar-cliente). required: - frequency - recurrence_beginning - contract_number - journey credits_based: type: boolean description: É uma assinatura baseada em créditos? booleano price_cents: type: integer description: Preço em centavos da recarga para assinaturas baseadas em crédito format: int32 credits_cycle: type: integer description: Quantidade de créditos adicionados a cada ciclo, só enviado para assinaturas credits_based format: int32 credits_min: type: integer description: 'Quantidade de créditos que ativa o ciclo, por ex: Efetuar cobrança cada vez que a assinatura tenha apenas 1 crédito sobrando. Esse 1 crédito é o credits_min' format: int32 subitems: type: array description: Adiciona itens de cobrança a mais na assinatura do cliente. "price_cents" valor mínimo 100. Limite de 30 subitems items: properties: description: type: string description: Descrição do Item price_cents: type: integer description: Preço em Centavos. Valores negativos entram como desconto no total das Faturas criadas pela Assinatura. "price_cents" valor mínimo 100. format: int32 quantity: type: integer description: Quantidade format: int32 recurrent: type: boolean description: Item recorrente? booleano type: object custom_variables: type: array description: Variáveis Personalizadas items: properties: name: type: string description: Nome da Variável value: type: string description: Valor da Variável type: object two_step: type: boolean description: Habilita/Desabilita transações em duas etapas para a assinatura (precisa ter o da conta ativado para usar) suspend_on_invoice_expired: type: boolean description: Quando uma assinatura tem uma fatura expirada, se esse campo estiver como FALSE, assinatura não será suspensa. (porém é necessário ajustar a data de vencimento para seguir com o ciclo. only_charge_on_due_date: type: boolean description: Somente efetua a cobrança do primeiro ciclo no dia do vencimento. Por padrão, ao criar uma assinatura e a data atual esteja menor que o billing_days da conta ou do plano, será cobrado. soft_descriptor_light: type: string description: Altera a descrição da cobrança no cartão de crédito do cliente final (Até 12 caracteres). Caso não seja enviado, será utilizada a descrição configurada na conta. return_url: type: string description: Cliente é redirecionado para essa URL após efetuar o pagamento da Fatura pela página de Fatura da Iugu. responses: '200': description: '200' content: application/json: examples: Result: value: "{\n \"id\": \"282BF13F9DBF4D3D8C5D344FEA370F78\",\n \"suspended\": false,\n \"plan_identifier\": \"basicplan\",\n \"price_cents\": 1000,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"José\",\n \"customer_email\": \"jose_silva@teste.com\",\n \"cycled_at\": \"2024-04-29\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"credit_card\",\n \"bank_slip\",\n \"pix\"\n ],\n \"ignore_due_email\": null,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"011709254C2347ACAFFCB6C80097917E\",\n \"due_date\": \"2024-04-29\",\n \"status\": \"pending\",\n \"total\": \"R$ 10,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/01170925-4c23-47ac-affc-b6c80097917e-5455\"\n }\n ],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"F56499BE161746078628C13601437A0A\",\n \"description\": \"Fatura criada\",\n \"notes\": \"Fatura criada com os items: 1x Ativação de Assinatura: Plano Básico = R$ 10,00;\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"basicplan\\\"],\\\"customer_id\\\":[null,\\\"796B9E7392444DAA971D3F1E0BE83F89\\\"],\\\"price_cents\\\":[0,1000],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"created_at\\\":[null,\\\"2024-04-29T12:03:57-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-04-29T12:03:57-03:00\\\"],\\\"id\\\":[null,\\\"282BF13F9DBF4D3D8C5D344FEA370F78\\\"]}\",\n \"created_at\": \"2024-04-29T12:04:00-03:00\"\n },\n {\n \"id\": \"29D1B58DB67041358BD3A85B421D0D73\",\n \"description\": \"Assinatura Criada\",\n \"notes\": \"Assinatura Criada \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"basicplan\\\"],\\\"customer_id\\\":[null,\\\"796B9E7392444DAA971D3F1E0BE83F89\\\"],\\\"price_cents\\\":[0,1000],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"created_at\\\":[null,\\\"2024-04-29T12:03:57-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-04-29T12:03:57-03:00\\\"],\\\"id\\\":[null,\\\"282BF13F9DBF4D3D8C5D344FEA370F78\\\"]}\",\n \"created_at\": \"2024-04-29T12:03:57-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-04-29T12:03:57-03:00\",\n \"updated_at\": \"2024-04-29T12:04:00-03:00\",\n \"customer_id\": \"796B9E7392444DAA971D3F1E0BE83F89\",\n \"plan_name\": \"Plano Básico\",\n \"customer_ref\": \"José\",\n \"plan_ref\": \"Plano Básico\",\n \"active\": true,\n \"two_step\": true,\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: 282BF13F9DBF4D3D8C5D344FEA370F78 suspended: type: boolean example: false default: true plan_identifier: type: string example: basicplan price_cents: type: integer example: 1000 default: 0 currency: type: string example: BRL features: type: object properties: {} customer_name: type: string example: José customer_email: type: string example: jose_silva@teste.com cycled_at: type: string example: '2024-04-29' credits_min: type: integer example: 0 default: 0 credits_cycle: {} payable_with: type: array items: type: string example: credit_card ignore_due_email: {} max_cycles: type: integer example: 0 default: 0 cycles_count: type: integer example: 0 default: 0 recent_invoices: type: array items: type: object properties: id: type: string example: 011709254C2347ACAFFCB6C80097917E due_date: type: string example: '2024-04-29' status: type: string example: pending total: type: string example: R$ 10,00 secure_url: type: string example: https://checkout.iugu.com/invoices/01170925-4c23-47ac-affc-b6c80097917e-5455 subitems: type: array items: type: object properties: {} logs: type: array items: type: object properties: id: type: string example: F56499BE161746078628C13601437A0A description: type: string example: Fatura criada notes: type: string example: 'Fatura criada com os items: 1x Ativação de Assinatura: Plano Básico = R$ 10,00;' subscription_changes: type: string example: '{"plan_identifier":[null,"basicplan"],"customer_id":[null,"796B9E7392444DAA971D3F1E0BE83F89"],"price_cents":[0,1000],"interval":[null,1],"interval_type":[null,"months"],"payable_with":[null,"credit_card,bank_slip,pix"],"created_at":[null,"2024-04-29T12:03:57-03:00"],"updated_at":[null,"2024-04-29T12:03:57-03:00"],"id":[null,"282BF13F9DBF4D3D8C5D344FEA370F78"]}' created_at: type: string example: '2024-04-29T12:04:00-03:00' custom_variables: type: array items: type: object properties: {} expires_at: {} created_at: type: string example: '2024-04-29T12:03:57-03:00' updated_at: type: string example: '2024-04-29T12:04:00-03:00' customer_id: type: string example: 796B9E7392444DAA971D3F1E0BE83F89 plan_name: type: string example: Plano Básico customer_ref: type: string example: José plan_ref: type: string example: Plano Básico active: type: boolean example: true default: true two_step: type: boolean example: true 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 '404': description: '404' content: application/json: examples: Customer Not Found: value: "{\n \"errors\": \"Customer Not Found\"\n}" schema: type: object properties: errors: type: string example: Customer Not Found '422': description: '422' content: application/json: examples: Plan Identifier Is Invalid: value: "{\n \"errors\": {\n \"plan_identifier\": [\n \"is invalid\"\n ]\n }\n}" schema: type: object properties: errors: type: object properties: plan_identifier: type: array items: type: string example: is invalid tags: - Subscriptions get: summary: Listar Assinaturas description: 'Retorna uma lista com as assinaturas geradas pela sua conta, ordenadas pela data de criação, da mais nova para a mais antiga. O campo totalItems indica a quantidade de registros retornados nesta página (igual ao tamanho de items ). Para detectar o fim da listagem, compare items.length com limit : se for menor, não há mais páginas.' operationId: listar-assinaturas parameters: - name: limit in: query description: Limita em até 100 o número de registros listados. schema: type: integer format: int32 - name: start in: query description: Quantos registros pular do início da pesquisa, utilizado para paginação schema: type: integer format: int32 - name: created_at_from in: query description: Registros criados a partir do momento passado no parâmetro schema: type: string format: date - name: created_at_to in: query description: Registros criados até o momento passado no parâmetro schema: type: string format: date - name: query in: query description: Texto para pesquisa. Ao utilizar, deve-se usar paginação (limit, start, etc) schema: type: string - name: updated_since in: query description: Registros atualizados desde o momento passado no parâmetro schema: type: string format: date - in: query name: 'updated_until ' schema: type: string format: date description: Registros atualizados até o momento passado no parâmetro - name: customer_id in: query description: ID do Cliente schema: type: string - name: status_filter in: query description: Usado para filtrar as assinaturas pelo status (due, active, suspended) schema: type: string - name: plan_identifier in: query description: Identificador único de plano, usado para filtrar assinaturas. schema: type: string responses: '200': description: '200' content: application/json: examples: Result: value: "{\n \"items\": [\n {\n \"id\": \"282BF13F9DBF4D3D8C5D344FEA370F78\",\n \"suspended\": false,\n \"plan_identifier\": \"basicplan\",\n \"price_cents\": 5,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"Nome do cliente\",\n \"customer_email\": \"teste@teste.com\",\n \"cycled_at\": \"2024-04-29\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"pix\",\n \"credit_card\",\n \"bank_slip\"\n ],\n \"ignore_due_email\": true,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"011709254C2347ACAFFCB6C80097917E\",\n \"due_date\": \"2024-04-29\",\n \"status\": \"expired\",\n \"total\": \"R$ 10,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/01170925-4c23-47ac-affc-b6c80097917e-5455\"\n }\n ],\n \"subitems\": [\n {\n \"id\": \"A2CBB12B5A164E60A05AD0A3FE0C26D4\",\n \"description\": \"descrição\",\n \"quantity\": 1,\n \"price_cents\": 1,\n \"recurrent\": false,\n \"price\": \"R$ 0,01\",\n \"total\": \"R$ 0,01\"\n }\n ],\n \"logs\": [\n {\n \"id\": \"6D22ABE205B04AEF84A286C22C74EFE9\",\n \"description\": \"Error creating invoice\",\n \"notes\": \"Errors: Total deve ser maior que 1\",\n \"subscription_changes\": \"{}\",\n \"created_at\": \"2024-05-14T13:28:16-03:00\"\n },\n {\n \"id\": \"D9642DD2A2ED47128C74671157AC8DBB\",\n \"description\": \"Subscription Updated\",\n \"notes\": \"Subscription Updated \",\n \"subscription_changes\": \"{\\\"price_cents\\\":[1000,5],\\\"expires_at\\\":[null,\\\"2024-05-14\\\"],\\\"suspended\\\":[true,false],\\\"ignore_due_email\\\":[null,true],\\\"payable_with\\\":[\\\"credit_card,bank_slip,pix\\\",\\\"pix,credit_card,bank_slip\\\"],\\\"two_step\\\":[true,false],\\\"soft_descriptor_light\\\":[null,\\\"Descriptor\\\"],\\\"updated_at\\\":[\\\"2024-04-30T11:26:41-03:00\\\",\\\"2024-05-13T15:14:19-03:00\\\"]}\",\n \"created_at\": \"2024-05-13T15:14:20-03:00\"\n },\n {\n \"id\": \"5AFF173B9099405B97C789B7EDB9F108\",\n \"description\": \"Subscription Suspended\",\n \"notes\": \"Subscription Suspended \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-04-30\\\"],\\\"updated_at\\\":[\\\"2024-04-29T12:04:00-03:00\\\",\\\"2024-04-30T11:26:41-03:00\\\"]}\",\n \"created_at\": \"2024-04-30T11:26:41-03:00\"\n },\n {\n \"id\": \"F56499BE161746078628C13601437A0A\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Ativação de Assinatura: Plano Básico = R$ 10,00;\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"basicplan\\\"],\\\"customer_id\\\":[null,\\\"796B9E7392444DAA971D3F1E0BE83F89\\\"],\\\"price_cents\\\":[0,1000],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"created_at\\\":[null,\\\"2024-04-29T12:03:57-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-04-29T12:03:57-03:00\\\"],\\\"id\\\":[null,\\\"282BF13F9DBF4D3D8C5D344FEA370F78\\\"]}\",\n \"created_at\": \"2024-04-29T12:04:00-03:00\"\n },\n {\n \"id\": \"29D1B58DB67041358BD3A85B421D0D73\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"basicplan\\\"],\\\"customer_id\\\":[null,\\\"796B9E7392444DAA971D3F1E0BE83F89\\\"],\\\"price_cents\\\":[0,1000],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"created_at\\\":[null,\\\"2024-04-29T12:03:57-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-04-29T12:03:57-03:00\\\"],\\\"id\\\":[null,\\\"282BF13F9DBF4D3D8C5D344FEA370F78\\\"]}\",\n \"created_at\": \"2024-04-29T12:03:57-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": \"2024-05-14\",\n \"created_at\": \"2024-04-29T12:03:57-03:00\",\n \"updated_at\": \"2024-05-14T13:28:15-03:00\",\n \"customer_id\": \"796B9E7392444DAA971D3F1E0BE83F89\",\n \"plan_name\": \"Plano Básico\",\n \"customer_ref\": \"José\",\n \"plan_ref\": \"Plano Básico\",\n \"active\": true,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"2B36BA9065A34A7A8295FA301335FF31\",\n \"suspended\": true,\n \"plan_identifier\": \"basicplan\",\n \"price_cents\": 1000,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"Jão da Silva\",\n \"customer_email\": \"teste@teste.com\",\n \"cycled_at\": \"2024-05-06\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"credit_card\",\n \"pix\"\n ],\n \"ignore_due_email\": null,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"13F33B4950514E868FD24D2DC5721D35\",\n \"due_date\": \"2024-05-11\",\n \"status\": \"expired\",\n \"total\": \"R$ 10,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/13f33b49-5051-4e86-8fd2-4d2dc5721d35-be4d\"\n }\n ],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"E583A6AD17364F58B72BF9EA13A0982A\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Ativação de Assinatura: Plano Básico = R$ 10,00;\",\n \"subscription_changes\": \"{}\",\n \"created_at\": \"2024-05-06T09:20:25-03:00\"\n },\n {\n \"id\": \"7E9CDFD1B9C246FDB3DA374E5FFB775A\",\n \"description\": \"Subscription Suspended\",\n \"notes\": \"Subscription Suspended \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-05-06\\\"],\\\"updated_at\\\":[\\\"2024-04-29T11:48:09-03:00\\\",\\\"2024-05-06T09:19:59-03:00\\\"]}\",\n \"created_at\": \"2024-05-06T09:19:59-03:00\"\n },\n {\n \"id\": \"D3CFD52420C24D9C8454140779FAD0EA\",\n \"description\": \"Error creating invoice\",\n \"notes\": \"Errors: Payer cpf cnpj não pode ficar em branco\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"basicplan\\\"],\\\"customer_id\\\":[null,\\\"2074A47210264DC496A3BD865D5CA92D\\\"],\\\"price_cents\\\":[0,1000],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"created_at\\\":[null,\\\"2024-04-29T11:48:09-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-04-29T11:48:09-03:00\\\"],\\\"id\\\":[null,\\\"2B36BA9065A34A7A8295FA301335FF31\\\"]}\",\n \"created_at\": \"2024-04-29T11:48:09-03:00\"\n },\n {\n \"id\": \"6CF27FA7BFD54A029895B46EA3ACE1E8\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"basicplan\\\"],\\\"customer_id\\\":[null,\\\"2074A47210264DC496A3BD865D5CA92D\\\"],\\\"price_cents\\\":[0,1000],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"created_at\\\":[null,\\\"2024-04-29T11:48:09-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-04-29T11:48:09-03:00\\\"],\\\"id\\\":[null,\\\"2B36BA9065A34A7A8295FA301335FF31\\\"]}\",\n \"created_at\": \"2024-04-29T11:48:09-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-04-29T11:48:09-03:00\",\n \"updated_at\": \"2024-05-06T09:20:25-03:00\",\n \"customer_id\": \"2074A47210264DC496A3BD865D5CA92D\",\n \"plan_name\": \"Plano Básico\",\n \"customer_ref\": \"Jão da Silva\",\n \"plan_ref\": \"Plano Básico\",\n \"active\": false,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"7E7224280AA44E98BCBFAB3CC2F8950D\",\n \"suspended\": false,\n \"plan_identifier\": \"trimestral2\",\n \"price_cents\": 300,\n \"currency\": \"BRL\",\n \"features\": {\n \"Trimestral\": {\n \"name\": \"Trimestre\",\n \"value\": 400\n }\n },\n \"customer_name\": \"Teste\",\n \"customer_email\": \"teste@email.com\",\n \"cycled_at\": \"2024-03-01\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"pix\",\n \"credit_card\",\n \"bank_slip\"\n ],\n \"ignore_due_email\": null,\n \"max_cycles\": 4,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"17CE1B09BBA74318A9715A262CFD896B\",\n \"due_date\": \"2024-03-01\",\n \"status\": \"expired\",\n \"total\": \"R$ 3,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/17ce1b09-bba7-4318-a971-5a262cfd896b-ede9\"\n }\n ],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"48DCDC40F19C48688E1E83DDCE5D4E74\",\n \"description\": \"Subscription Updated\",\n \"notes\": \"Subscription Updated \",\n \"subscription_changes\": \"{\\\"two_step\\\":[true,false],\\\"suspend_on_invoice_expired\\\":[true,false],\\\"updated_at\\\":[\\\"2024-03-01T15:20:03-03:00\\\",\\\"2024-03-14T15:21:12-03:00\\\"]}\",\n \"created_at\": \"2024-03-14T15:21:12-03:00\"\n },\n {\n \"id\": \"4CBDA40F84224AB397AE9FD2A36C5F9B\",\n \"description\": \"Error creating bank slip but forced creation to credit card\",\n \"notes\": \"Bank slip errors: Payer cpf cnpj não pode ficar em branco\",\n \"subscription_changes\": \"{\\\"features\\\":[{},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"plan_identifier\\\":[null,\\\"trimestral2\\\"],\\\"customer_id\\\":[null,\\\"FE6F9952DD144939ADA599947AA938A5\\\"],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"price_cents\\\":[0,300],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"max_cycles\\\":[0,4],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-03-01T15:20:02-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-03-01T15:20:02-03:00\\\"],\\\"id\\\":[null,\\\"7E7224280AA44E98BCBFAB3CC2F8950D\\\"]}\",\n \"created_at\": \"2024-03-01T15:20:03-03:00\"\n },\n {\n \"id\": \"39B70CEC831A4C4A9B4D19CA59C565E8\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Ativação de Assinatura: Plano Trismestral = R$ 3,00;\",\n \"subscription_changes\": \"{\\\"features\\\":[{},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"plan_identifier\\\":[null,\\\"trimestral2\\\"],\\\"customer_id\\\":[null,\\\"FE6F9952DD144939ADA599947AA938A5\\\"],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"price_cents\\\":[0,300],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"max_cycles\\\":[0,4],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-03-01T15:20:02-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-03-01T15:20:02-03:00\\\"],\\\"id\\\":[null,\\\"7E7224280AA44E98BCBFAB3CC2F8950D\\\"]}\",\n \"created_at\": \"2024-03-01T15:20:03-03:00\"\n },\n {\n \"id\": \"C7F835CA8237409FB670751BB7A69FD7\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"features\\\":[{},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"plan_identifier\\\":[null,\\\"trimestral2\\\"],\\\"customer_id\\\":[null,\\\"FE6F9952DD144939ADA599947AA938A5\\\"],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"price_cents\\\":[0,300],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"max_cycles\\\":[0,4],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-03-01T15:20:02-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-03-01T15:20:02-03:00\\\"],\\\"id\\\":[null,\\\"7E7224280AA44E98BCBFAB3CC2F8950D\\\"]}\",\n \"created_at\": \"2024-03-01T15:20:02-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-03-01T15:20:02-03:00\",\n \"updated_at\": \"2024-03-14T15:21:12-03:00\",\n \"customer_id\": \"FE6F9952DD144939ADA599947AA938A5\",\n \"plan_name\": \"Plano Trismestral\",\n \"customer_ref\": \"Nome\",\n \"plan_ref\": \"Plano Trismestral\",\n \"active\": true,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"FFDAFB6AA30F43FEAD1DEFB426977866\",\n \"suspended\": true,\n \"plan_identifier\": \"basic_plan\",\n \"price_cents\": 2590,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"Nome Teste\",\n \"customer_email\": \"teste@email.com\",\n \"cycled_at\": \"2024-02-27\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": \"credit_card\",\n \"ignore_due_email\": null,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"56B5EB1CF4834B6E976BAD53C219E063\",\n \"due_date\": \"2024-02-27\",\n \"status\": \"expired\",\n \"total\": \"R$ 25,90\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/56b5eb1c-f483-4b6e-976b-ad53c219e063-2842\"\n }\n ],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"E17C2680D8924D0BB21CA73726C3247A\",\n \"description\": \"Subscription Suspended\",\n \"notes\": \"Subscription Suspended \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-03-28\\\"],\\\"updated_at\\\":[\\\"2024-02-27T15:28:50-03:00\\\",\\\"2024-03-28T01:41:46-03:00\\\"]}\",\n \"created_at\": \"2024-03-28T01:41:46-03:00\"\n },\n {\n \"id\": \"ABE66097563145C69D7458762A4068A9\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Ativação de Assinatura: Plano teste = R$ 25,90;\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"basic_plan\\\"],\\\"customer_id\\\":[null,\\\"FE6F9952DD144939ADA599947AA938A5\\\"],\\\"price_cents\\\":[0,2590],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card\\\"],\\\"created_at\\\":[null,\\\"2024-02-27T15:28:50-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-27T15:28:50-03:00\\\"],\\\"id\\\":[null,\\\"FFDAFB6AA30F43FEAD1DEFB426977866\\\"]}\",\n \"created_at\": \"2024-02-27T15:28:50-03:00\"\n },\n {\n \"id\": \"A57DED97CFE64934B5D352509437C37B\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"basic_plan\\\"],\\\"customer_id\\\":[null,\\\"FE6F9952DD144939ADA599947AA938A5\\\"],\\\"price_cents\\\":[0,2590],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card\\\"],\\\"created_at\\\":[null,\\\"2024-02-27T15:28:50-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-27T15:28:50-03:00\\\"],\\\"id\\\":[null,\\\"FFDAFB6AA30F43FEAD1DEFB426977866\\\"]}\",\n \"created_at\": \"2024-02-27T15:28:50-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-02-27T15:28:50-03:00\",\n \"updated_at\": \"2024-03-28T01:41:46-03:00\",\n \"customer_id\": \"FE6F9952DD144939ADA599947AA938A5\",\n \"plan_name\": \"Plano teste \",\n \"customer_ref\": \"Nome\",\n \"plan_ref\": \"Plano teste \",\n \"active\": false,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"60D2A430EF1042CBAC8F9EBAEADB5155\",\n \"suspended\": true,\n \"plan_identifier\": \"basic_plan\",\n \"price_cents\": 2590,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"Nome Teste\",\n \"customer_email\": \"teste@email.com\",\n \"cycled_at\": \"2024-02-27\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"pix\",\n \"credit_card\",\n \"bank_slip\"\n ],\n \"ignore_due_email\": null,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"D1C3BEBC78B740A1AC2AC38EB1F5080B\",\n \"due_date\": \"2024-02-27\",\n \"status\": \"expired\",\n \"total\": \"R$ 25,90\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/d1c3bebc-78b7-40a1-ac2a-c38eb1f5080b-c734\"\n }\n ],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"22590EF2D1DA41E993CFA0FA6B6A672B\",\n \"description\": \"Subscription Suspended\",\n \"notes\": \"Subscription Suspended \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-03-28\\\"],\\\"updated_at\\\":[\\\"2024-02-27T15:26:26-03:00\\\",\\\"2024-03-28T01:03:53-03:00\\\"]}\",\n \"created_at\": \"2024-03-28T01:03:53-03:00\"\n },\n {\n \"id\": \"D26845789D5E424DAD66620ECB7CD29F\",\n \"description\": \"Error creating bank slip but forced creation to credit card\",\n \"notes\": \"Bank slip errors: Payer cpf cnpj não pode ficar em branco\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"basic_plan\\\"],\\\"customer_id\\\":[null,\\\"FE6F9952DD144939ADA599947AA938A5\\\"],\\\"price_cents\\\":[0,2590],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"created_at\\\":[null,\\\"2024-02-27T15:26:26-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-27T15:26:26-03:00\\\"],\\\"id\\\":[null,\\\"60D2A430EF1042CBAC8F9EBAEADB5155\\\"]}\",\n \"created_at\": \"2024-02-27T15:26:26-03:00\"\n },\n {\n \"id\": \"71B60482AC0447CB91022E1D894962FD\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Ativação de Assinatura: Plano teste = R$ 25,90;\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"basic_plan\\\"],\\\"customer_id\\\":[null,\\\"FE6F9952DD144939ADA599947AA938A5\\\"],\\\"price_cents\\\":[0,2590],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"created_at\\\":[null,\\\"2024-02-27T15:26:26-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-27T15:26:26-03:00\\\"],\\\"id\\\":[null,\\\"60D2A430EF1042CBAC8F9EBAEADB5155\\\"]}\",\n \"created_at\": \"2024-02-27T15:26:26-03:00\"\n },\n {\n \"id\": \"0245882405DA48E79F7C1100D6F52868\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"basic_plan\\\"],\\\"customer_id\\\":[null,\\\"FE6F9952DD144939ADA599947AA938A5\\\"],\\\"price_cents\\\":[0,2590],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"created_at\\\":[null,\\\"2024-02-27T15:26:26-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-27T15:26:26-03:00\\\"],\\\"id\\\":[null,\\\"60D2A430EF1042CBAC8F9EBAEADB5155\\\"]}\",\n \"created_at\": \"2024-02-27T15:26:26-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-02-27T15:26:26-03:00\",\n \"updated_at\": \"2024-03-28T01:03:53-03:00\",\n \"customer_id\": \"FE6F9952DD144939ADA599947AA938A5\",\n \"plan_name\": \"Plano test\",\n \"customer_ref\": \"Nome\",\n \"plan_ref\": \"Plano teste\",\n \"active\": false,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"EA6E6602E3B5472987F91C5FF21E3D4F\",\n \"suspended\": true,\n \"plan_identifier\": \"plano d\",\n \"price_cents\": 10000,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"Teste\",\n \"customer_email\": \"teste@email.com\",\n \"cycled_at\": \"2024-02-27\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": \"credit_card\",\n \"ignore_due_email\": null,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"4E77F589FAA4428F84D668E9515F14DD\",\n \"due_date\": \"2024-02-27\",\n \"status\": \"expired\",\n \"total\": \"R$ 100,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/4e77f589-faa4-428f-84d6-68e9515f14dd-7423\"\n }\n ],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"BF6BCAAB2FF44AFF8DF3B74D8A0673FF\",\n \"description\": \"Subscription Suspended\",\n \"notes\": \"Subscription Suspended \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-03-28\\\"],\\\"updated_at\\\":[\\\"2024-02-27T15:14:10-03:00\\\",\\\"2024-03-28T02:32:48-03:00\\\"]}\",\n \"created_at\": \"2024-03-28T02:32:48-03:00\"\n },\n {\n \"id\": \"EA10A41B339F4F818DB7E980B6EDF45C\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Ativação de Assinatura: teste name = R$ 100,00;\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano d\\\"],\\\"customer_id\\\":[null,\\\"6E691A0616E84062BE2A4AE9E3986806\\\"],\\\"payable_with\\\":[null,\\\"credit_card\\\"],\\\"price_cents\\\":[0,10000],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-27T15:14:09-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-27T15:14:09-03:00\\\"],\\\"id\\\":[null,\\\"EA6E6602E3B5472987F91C5FF21E3D4F\\\"]}\",\n \"created_at\": \"2024-02-27T15:14:09-03:00\"\n },\n {\n \"id\": \"D7D423A25D5D48E39FF9E265236DC6EA\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano d\\\"],\\\"customer_id\\\":[null,\\\"6E691A0616E84062BE2A4AE9E3986806\\\"],\\\"payable_with\\\":[null,\\\"credit_card\\\"],\\\"price_cents\\\":[0,10000],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-27T15:14:09-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-27T15:14:09-03:00\\\"],\\\"id\\\":[null,\\\"EA6E6602E3B5472987F91C5FF21E3D4F\\\"]}\",\n \"created_at\": \"2024-02-27T15:14:09-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-02-27T15:14:09-03:00\",\n \"updated_at\": \"2024-03-28T02:32:48-03:00\",\n \"customer_id\": \"6E691A0616E84062BE2A4AE9E3986806\",\n \"plan_name\": \"teste name\",\n \"customer_ref\": \"teste\",\n \"plan_ref\": \"teste name\",\n \"active\": false,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"437013B3259D423693D53A130F1549D7\",\n \"suspended\": true,\n \"plan_identifier\": \"plano d\",\n \"price_cents\": 10000,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"Teste\",\n \"customer_email\": \"teste@email.com\",\n \"cycled_at\": \"2024-02-27\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"credit_card\",\n \"bank_slip\",\n \"pix\"\n ],\n \"ignore_due_email\": null,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"F426DC70E7D94580BA5517B1597757DD\",\n \"due_date\": \"2024-02-27\",\n \"status\": \"expired\",\n \"total\": \"R$ 100,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/f426dc70-e7d9-4580-ba55-17b1597757dd-76fd\"\n }\n ],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"0C3AF93502B745D4B9E92C11EC864FAA\",\n \"description\": \"Subscription Suspended\",\n \"notes\": \"Subscription Suspended \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-03-28\\\"],\\\"updated_at\\\":[\\\"2024-02-27T15:12:24-03:00\\\",\\\"2024-03-28T02:47:00-03:00\\\"]}\",\n \"created_at\": \"2024-03-28T02:47:00-03:00\"\n },\n {\n \"id\": \"21AC935A0AFD4FC384D6B6217A98CB85\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Ativação de Assinatura: teste name = R$ 100,00;\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano d\\\"],\\\"customer_id\\\":[null,\\\"6E691A0616E84062BE2A4AE9E3986806\\\"],\\\"price_cents\\\":[0,10000],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-27T15:12:23-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-27T15:12:23-03:00\\\"],\\\"id\\\":[null,\\\"437013B3259D423693D53A130F1549D7\\\"]}\",\n \"created_at\": \"2024-02-27T15:12:24-03:00\"\n },\n {\n \"id\": \"D60EABE68F5248BBB8CD9EAF6AF4DB56\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano d\\\"],\\\"customer_id\\\":[null,\\\"6E691A0616E84062BE2A4AE9E3986806\\\"],\\\"price_cents\\\":[0,10000],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-27T15:12:23-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-27T15:12:23-03:00\\\"],\\\"id\\\":[null,\\\"437013B3259D423693D53A130F1549D7\\\"]}\",\n \"created_at\": \"2024-02-27T15:12:23-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-02-27T15:12:23-03:00\",\n \"updated_at\": \"2024-03-28T02:47:00-03:00\",\n \"customer_id\": \"6E691A0616E84062BE2A4AE9E3986806\",\n \"plan_name\": \"teste name\",\n \"customer_ref\": \"teste\",\n \"plan_ref\": \"teste name\",\n \"active\": false,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"86CA0E87455A44AE85E450E32A34A05C\",\n \"suspended\": true,\n \"plan_identifier\": \"plano d\",\n \"price_cents\": 10000,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"Nome do Cliente\",\n \"customer_email\": \"js@email.com\",\n \"cycled_at\": \"2024-02-27\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": \"bank_slip\",\n \"ignore_due_email\": null,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"C2A08C59BA034AC5832D0E21F9885F91\",\n \"due_date\": \"2024-02-27\",\n \"status\": \"expired\",\n \"total\": \"R$ 100,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/c2a08c59-ba03-4ac5-832d-0e21f9885f91-e375\"\n }\n ],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"7EBD518AFB6D44C4BDABADB0AD395D46\",\n \"description\": \"Subscription Suspended\",\n \"notes\": \"Subscription Suspended \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-03-28\\\"],\\\"updated_at\\\":[\\\"2024-02-27T14:47:02-03:00\\\",\\\"2024-03-28T02:35:28-03:00\\\"]}\",\n \"created_at\": \"2024-03-28T02:35:28-03:00\"\n },\n {\n \"id\": \"BC670484061C4FB4A7527F291EDE2035\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Ativação de Assinatura: teste name = R$ 100,00;\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano d\\\"],\\\"customer_id\\\":[null,\\\"65AE63D5EE704523AB863EE224CB8994\\\"],\\\"payable_with\\\":[null,\\\"bank_slip\\\"],\\\"price_cents\\\":[0,10000],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-27T14:47:02-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-27T14:47:02-03:00\\\"],\\\"id\\\":[null,\\\"86CA0E87455A44AE85E450E32A34A05C\\\"]}\",\n \"created_at\": \"2024-02-27T14:47:02-03:00\"\n },\n {\n \"id\": \"3080F89FD57B42F5B5D84B94573FC837\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano d\\\"],\\\"customer_id\\\":[null,\\\"65AE63D5EE704523AB863EE224CB8994\\\"],\\\"payable_with\\\":[null,\\\"bank_slip\\\"],\\\"price_cents\\\":[0,10000],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-27T14:47:02-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-27T14:47:02-03:00\\\"],\\\"id\\\":[null,\\\"86CA0E87455A44AE85E450E32A34A05C\\\"]}\",\n \"created_at\": \"2024-02-27T14:47:02-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-02-27T14:47:02-03:00\",\n \"updated_at\": \"2024-03-28T02:35:28-03:00\",\n \"customer_id\": \"65AE63D5EE704523AB863EE224CB8994\",\n \"plan_name\": \"teste name\",\n \"customer_ref\": \"Nome do Cliente\",\n \"plan_ref\": \"teste name\",\n \"active\": false,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"1409005A60344475A4A5DCACCD478274\",\n \"suspended\": true,\n \"plan_identifier\": \"plano d\",\n \"price_cents\": 10000,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"Nome do Cliente\",\n \"customer_email\": \"js@email.com\",\n \"cycled_at\": \"2024-02-27\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"credit_card\",\n \"bank_slip\",\n \"pix\"\n ],\n \"ignore_due_email\": null,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"B61A7CAD277A4A0FA6092F87255D7C75\",\n \"due_date\": \"2024-02-27\",\n \"status\": \"expired\",\n \"total\": \"R$ 100,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/b61a7cad-277a-4a0f-a609-2f87255d7c75-774c\"\n }\n ],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"F5B18D01671C4B3BA54099B44C6E9AB3\",\n \"description\": \"Subscription Suspended\",\n \"notes\": \"Subscription Suspended \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-03-28\\\"],\\\"updated_at\\\":[\\\"2024-02-27T14:40:11-03:00\\\",\\\"2024-03-28T03:01:39-03:00\\\"]}\",\n \"created_at\": \"2024-03-28T03:01:39-03:00\"\n },\n {\n \"id\": \"F29E12B2E53D41E2B21600B54A6316BA\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Ativação de Assinatura: teste name = R$ 100,00;\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano d\\\"],\\\"customer_id\\\":[null,\\\"65AE63D5EE704523AB863EE224CB8994\\\"],\\\"price_cents\\\":[0,10000],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-27T14:40:01-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-27T14:40:01-03:00\\\"],\\\"id\\\":[null,\\\"1409005A60344475A4A5DCACCD478274\\\"]}\",\n \"created_at\": \"2024-02-27T14:40:11-03:00\"\n },\n {\n \"id\": \"E303BDEF3F6F40328347B851DD8894D3\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano d\\\"],\\\"customer_id\\\":[null,\\\"65AE63D5EE704523AB863EE224CB8994\\\"],\\\"price_cents\\\":[0,10000],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-27T14:40:01-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-27T14:40:01-03:00\\\"],\\\"id\\\":[null,\\\"1409005A60344475A4A5DCACCD478274\\\"]}\",\n \"created_at\": \"2024-02-27T14:40:02-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-02-27T14:40:01-03:00\",\n \"updated_at\": \"2024-03-28T03:01:39-03:00\",\n \"customer_id\": \"65AE63D5EE704523AB863EE224CB8994\",\n \"plan_name\": \"teste name\",\n \"customer_ref\": \"Nome do Cliente\",\n \"plan_ref\": \"teste name\",\n \"active\": false,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"CC11190F907747DFA3A3DEAC2BA2FEED\",\n \"suspended\": true,\n \"plan_identifier\": \"trimestral2\",\n \"price_cents\": 300,\n \"currency\": \"BRL\",\n \"features\": {\n \"Trimestral\": {\n \"name\": \"Trimestre\",\n \"value\": 400\n }\n },\n \"customer_name\": \"Teste\",\n \"customer_email\": \"teste@teste.com\",\n \"cycled_at\": \"2024-02-26\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"credit_card\",\n \"bank_slip\",\n \"pix\"\n ],\n \"ignore_due_email\": null,\n \"max_cycles\": 4,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"7614BDE8B991419F99AEB7BD0828F2FE\",\n \"due_date\": \"2024-02-26\",\n \"status\": \"expired\",\n \"total\": \"R$ 3,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/7614bde8-b991-419f-99ae-b7bd0828f2fe-cdd8\"\n }\n ],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"266FF06AC1684207967B5CCBAA67C0F8\",\n \"description\": \"Subscription Suspended\",\n \"notes\": \"Subscription Suspended \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-03-27\\\"],\\\"updated_at\\\":[\\\"2024-02-26T11:45:55-03:00\\\",\\\"2024-03-27T02:16:41-03:00\\\"]}\",\n \"created_at\": \"2024-03-27T02:16:41-03:00\"\n },\n {\n \"id\": \"5D5D82CD7D164AC5B478897D3D585901\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"features\\\":[{},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"plan_identifier\\\":[null,\\\"trimestral2\\\"],\\\"customer_id\\\":[null,\\\"628FEE4CD5B24008B833DC5A04D5BB23\\\"],\\\"price_cents\\\":[0,300],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"max_cycles\\\":[0,4],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-26T11:45:55-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-26T11:45:55-03:00\\\"],\\\"id\\\":[null,\\\"CC11190F907747DFA3A3DEAC2BA2FEED\\\"]}\",\n \"created_at\": \"2024-02-26T11:45:55-03:00\"\n },\n {\n \"id\": \"1E878F31A5DB4013BEDA493FD6D86761\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Ativação de Assinatura: Plano Trismestral = R$ 3,00;\",\n \"subscription_changes\": \"{\\\"features\\\":[{},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"plan_identifier\\\":[null,\\\"trimestral2\\\"],\\\"customer_id\\\":[null,\\\"628FEE4CD5B24008B833DC5A04D5BB23\\\"],\\\"price_cents\\\":[0,300],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"max_cycles\\\":[0,4],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-26T11:45:55-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-26T11:45:55-03:00\\\"],\\\"id\\\":[null,\\\"CC11190F907747DFA3A3DEAC2BA2FEED\\\"]}\",\n \"created_at\": \"2024-02-26T11:45:55-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-02-26T11:45:55-03:00\",\n \"updated_at\": \"2024-03-27T02:16:41-03:00\",\n \"customer_id\": \"628FEE4CD5B24008B833DC5A04D5BB23\",\n \"plan_name\": \"Plano Trismestral\",\n \"customer_ref\": \"Teste\",\n \"plan_ref\": \"Plano Trismestral\",\n \"active\": false,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"323591FB84504528AE3CA0FE13C92458\",\n \"suspended\": true,\n \"plan_identifier\": \"trimestral2\",\n \"price_cents\": 300,\n \"currency\": \"BRL\",\n \"features\": {\n \"Trimestral\": {\n \"name\": \"Trimestre\",\n \"value\": 400\n }\n },\n \"customer_name\": \"Teste\",\n \"customer_email\": \"teste@teste.com\",\n \"cycled_at\": \"2024-02-26\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"credit_card\",\n \"bank_slip\",\n \"pix\"\n ],\n \"ignore_due_email\": null,\n \"max_cycles\": 4,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"3CE5696234624834B6F473869CE7277E\",\n \"due_date\": \"2024-02-26\",\n \"status\": \"expired\",\n \"total\": \"R$ 3,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/3ce56962-3462-4834-b6f4-73869ce7277e-3855\"\n }\n ],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"382AFBB8A3CB4AC9B6306999D242A358\",\n \"description\": \"Subscription Suspended\",\n \"notes\": \"Subscription Suspended \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-03-27\\\"],\\\"updated_at\\\":[\\\"2024-02-26T11:39:14-03:00\\\",\\\"2024-03-27T03:43:31-03:00\\\"]}\",\n \"created_at\": \"2024-03-27T03:43:31-03:00\"\n },\n {\n \"id\": \"AB0534C0EB7247DEB0BBC15800B71386\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Ativação de Assinatura: Plano Trismestral = R$ 3,00;\",\n \"subscription_changes\": \"{\\\"features\\\":[{},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"plan_identifier\\\":[null,\\\"trimestral2\\\"],\\\"customer_id\\\":[null,\\\"2201AAD64F4B4404A505F0C6C196A054\\\"],\\\"price_cents\\\":[0,300],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"max_cycles\\\":[0,4],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-26T11:39:14-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-26T11:39:14-03:00\\\"],\\\"id\\\":[null,\\\"323591FB84504528AE3CA0FE13C92458\\\"]}\",\n \"created_at\": \"2024-02-26T11:39:14-03:00\"\n },\n {\n \"id\": \"7AE99F794229443D9BABEC3533A4EC15\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"features\\\":[{},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"plan_identifier\\\":[null,\\\"trimestral2\\\"],\\\"customer_id\\\":[null,\\\"2201AAD64F4B4404A505F0C6C196A054\\\"],\\\"price_cents\\\":[0,300],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"max_cycles\\\":[0,4],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-26T11:39:14-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-26T11:39:14-03:00\\\"],\\\"id\\\":[null,\\\"323591FB84504528AE3CA0FE13C92458\\\"]}\",\n \"created_at\": \"2024-02-26T11:39:14-03:00\"\n },\n {\n \"id\": \"3CDE0F995EF042A7918B0846E0071443\",\n \"description\": \"Error creating bank slip but forced creation to credit card\",\n \"notes\": \"Bank slip errors: Payer cpf cnpj não pode ficar em branco\",\n \"subscription_changes\": \"{\\\"features\\\":[{},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"plan_identifier\\\":[null,\\\"trimestral2\\\"],\\\"customer_id\\\":[null,\\\"2201AAD64F4B4404A505F0C6C196A054\\\"],\\\"price_cents\\\":[0,300],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"max_cycles\\\":[0,4],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-26T11:39:14-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-26T11:39:14-03:00\\\"],\\\"id\\\":[null,\\\"323591FB84504528AE3CA0FE13C92458\\\"]}\",\n \"created_at\": \"2024-02-26T11:39:14-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-02-26T11:39:14-03:00\",\n \"updated_at\": \"2024-03-27T03:43:31-03:00\",\n \"customer_id\": \"2201AAD64F4B4404A505F0C6C196A054\",\n \"plan_name\": \"Plano Trismestral\",\n \"customer_ref\": \"Teste\",\n \"plan_ref\": \"Plano Trismestral\",\n \"active\": false,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"2DFA9B2360AD41EB915FC5E56A7CA27A\",\n \"suspended\": false,\n \"plan_identifier\": \"trimestral2\",\n \"price_cents\": 300,\n \"currency\": \"BRL\",\n \"features\": {\n \"Trimestral\": {\n \"name\": \"Trimestre\",\n \"value\": 400\n }\n },\n \"customer_name\": \"Teste iugu\",\n \"customer_email\": \"teste@email.com\",\n \"cycled_at\": null,\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"credit_card\",\n \"bank_slip\",\n \"pix\"\n ],\n \"ignore_due_email\": null,\n \"max_cycles\": 4,\n \"cycles_count\": 0,\n \"recent_invoices\": [],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"9494BF9E43FA4166B173C8E5C34D495B\",\n \"description\": \"Error creating invoice\",\n \"notes\": \"Errors: Payer cpf cnpj não pode ficar em branco\",\n \"subscription_changes\": \"{\\\"features\\\":[{},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"plan_identifier\\\":[null,\\\"trimestral2\\\"],\\\"customer_id\\\":[null,\\\"CD861F7FBE7B4731B7C7F62DDE52C0D1\\\"],\\\"price_cents\\\":[0,300],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"max_cycles\\\":[0,4],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-22T10:25:01-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-22T10:25:01-03:00\\\"],\\\"id\\\":[null,\\\"2DFA9B2360AD41EB915FC5E56A7CA27A\\\"]}\",\n \"created_at\": \"2024-02-22T10:25:01-03:00\"\n },\n {\n \"id\": \"79DD7D8EEF1E4707AFE72E06969263E6\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"features\\\":[{},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"plan_identifier\\\":[null,\\\"trimestral2\\\"],\\\"customer_id\\\":[null,\\\"CD861F7FBE7B4731B7C7F62DDE52C0D1\\\"],\\\"price_cents\\\":[0,300],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"max_cycles\\\":[0,4],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-22T10:25:01-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-22T10:25:01-03:00\\\"],\\\"id\\\":[null,\\\"2DFA9B2360AD41EB915FC5E56A7CA27A\\\"]}\",\n \"created_at\": \"2024-02-22T10:25:01-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-02-22T10:25:01-03:00\",\n \"updated_at\": \"2024-02-22T10:25:01-03:00\",\n \"customer_id\": \"CD861F7FBE7B4731B7C7F62DDE52C0D1\",\n \"plan_name\": \"Plano Trismestral\",\n \"customer_ref\": \"Teste iugu\",\n \"plan_ref\": \"Plano Trismestral\",\n \"active\": true,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"A2291056BC674610B78D1255ACD44B24\",\n \"suspended\": false,\n \"plan_identifier\": \"trimestral2\",\n \"price_cents\": 300,\n \"currency\": \"BRL\",\n \"features\": {\n \"Trimestral\": {\n \"name\": \"Trimestre\",\n \"value\": 400\n }\n },\n \"customer_name\": \"Teste\",\n \"customer_email\": \"teste@teste.com\",\n \"cycled_at\": null,\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": \"bank_slip\",\n \"ignore_due_email\": null,\n \"max_cycles\": 4,\n \"cycles_count\": 0,\n \"recent_invoices\": [],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"EA260E6C2E1645379E1FBC33B9511703\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"features\\\":[{},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"plan_identifier\\\":[null,\\\"trimestral2\\\"],\\\"customer_id\\\":[null,\\\"2201AAD64F4B4404A505F0C6C196A054\\\"],\\\"expires_at\\\":[null,\\\"2024-02-08\\\"],\\\"payable_with\\\":[null,\\\"bank_slip\\\"],\\\"price_cents\\\":[0,300],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"max_cycles\\\":[0,4],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-08T15:07:01-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-08T15:07:01-03:00\\\"],\\\"id\\\":[null,\\\"A2291056BC674610B78D1255ACD44B24\\\"]}\",\n \"created_at\": \"2024-02-08T15:07:01-03:00\"\n },\n {\n \"id\": \"3DB669A4D29D41BDB6D14A9C995118F6\",\n \"description\": \"Error creating invoice\",\n \"notes\": \"Errors: Payer cpf cnpj não pode ficar em branco\",\n \"subscription_changes\": \"{\\\"features\\\":[{},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"plan_identifier\\\":[null,\\\"trimestral2\\\"],\\\"customer_id\\\":[null,\\\"2201AAD64F4B4404A505F0C6C196A054\\\"],\\\"expires_at\\\":[null,\\\"2024-02-08\\\"],\\\"payable_with\\\":[null,\\\"bank_slip\\\"],\\\"price_cents\\\":[0,300],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"max_cycles\\\":[0,4],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-08T15:07:01-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-08T15:07:01-03:00\\\"],\\\"id\\\":[null,\\\"A2291056BC674610B78D1255ACD44B24\\\"]}\",\n \"created_at\": \"2024-02-08T15:07:01-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": \"2024-02-08\",\n \"created_at\": \"2024-02-08T15:07:01-03:00\",\n \"updated_at\": \"2024-02-08T15:07:01-03:00\",\n \"customer_id\": \"2201AAD64F4B4404A505F0C6C196A054\",\n \"plan_name\": \"Plano Trismestral\",\n \"customer_ref\": \"Teste\",\n \"plan_ref\": \"Plano Trismestral\",\n \"active\": true,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"DC233DF269A44CDE88B3ADE0B7A1E741\",\n \"suspended\": true,\n \"plan_identifier\": \"trimestral2\",\n \"price_cents\": 300,\n \"currency\": \"BRL\",\n \"features\": {\n \"Trimestral\": {\n \"name\": \"Trimestre\",\n \"value\": 400\n }\n },\n \"customer_name\": \"Teste\",\n \"customer_email\": \"teste@teste.com\",\n \"cycled_at\": \"2024-02-02\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": \"credit_card\",\n \"ignore_due_email\": false,\n \"max_cycles\": 4,\n \"cycles_count\": 1,\n \"recent_invoices\": [\n {\n \"id\": \"BBF9D30502D740B4B140C8CA6DEFA4FB\",\n \"due_date\": \"2024-02-02\",\n \"status\": \"expired\",\n \"total\": \"R$ 3,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/bbf9d305-02d7-40b4-b140-c8ca6defa4fb-3f34\"\n }\n ],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"9CFD39A2BF5E4DEE88315086C7CC24FF\",\n \"description\": \"Subscription Suspended\",\n \"notes\": \"Subscription Suspended \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-03-03\\\"],\\\"updated_at\\\":[\\\"2024-02-02T13:53:40-03:00\\\",\\\"2024-03-03T01:31:23-03:00\\\"]}\",\n \"created_at\": \"2024-03-03T01:31:23-03:00\"\n },\n {\n \"id\": \"19AC19BD2D8947F7AC3975078C13982C\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Assinatura: Plano Trismestral = R$ 3,00;\",\n \"subscription_changes\": \"{\\\"cycles_count\\\":[0,1],\\\"updated_at\\\":[\\\"2024-02-02T10:19:13-03:00\\\",\\\"2024-02-02T13:53:39-03:00\\\"]}\",\n \"created_at\": \"2024-02-02T13:53:40-03:00\"\n },\n {\n \"id\": \"35EAEE1B24A540F2A7A3897E5BF97A7C\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"features\\\":[{},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"plan_identifier\\\":[null,\\\"trimestral2\\\"],\\\"customer_id\\\":[null,\\\"2201AAD64F4B4404A505F0C6C196A054\\\"],\\\"expires_at\\\":[null,\\\"2024-02-02\\\"],\\\"credits_based\\\":[null,false],\\\"ignore_due_email\\\":[null,false],\\\"payable_with\\\":[null,\\\"credit_card\\\"],\\\"price_cents\\\":[0,300],\\\"interval\\\":[null,3],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"max_cycles\\\":[0,4],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-02T10:19:13-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-02T10:19:13-03:00\\\"],\\\"id\\\":[null,\\\"DC233DF269A44CDE88B3ADE0B7A1E741\\\"]}\",\n \"created_at\": \"2024-02-02T10:19:13-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": \"2024-02-02\",\n \"created_at\": \"2024-02-02T10:19:13-03:00\",\n \"updated_at\": \"2024-03-03T01:31:23-03:00\",\n \"customer_id\": \"2201AAD64F4B4404A505F0C6C196A054\",\n \"plan_name\": \"Plano Trismestral\",\n \"customer_ref\": \"Teste\",\n \"plan_ref\": \"Plano Trismestral\",\n \"active\": false,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"4BD07265FDF247F8820CAE580A573968\",\n \"suspended\": false,\n \"plan_identifier\": \"trimestral2\",\n \"price_cents\": 300,\n \"currency\": \"BRL\",\n \"features\": {\n \"Trimestral\": {\n \"name\": \"Trimestre\",\n \"value\": 400\n }\n },\n \"customer_name\": \"Teste\",\n \"customer_email\": \"teste@teste.com\",\n \"cycled_at\": null,\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"pix\",\n \"credit_card\",\n \"bank_slip\"\n ],\n \"ignore_due_email\": false,\n \"max_cycles\": 4,\n \"cycles_count\": 0,\n \"recent_invoices\": [],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"853FF41EE67A4F9DB29F67E09471564F\",\n \"description\": \"Error creating invoice\",\n \"notes\": \"Errors: Payer cpf cnpj não pode ficar em branco\",\n \"subscription_changes\": \"{}\",\n \"created_at\": \"2024-02-02T13:42:46-03:00\"\n },\n {\n \"id\": \"7FEEE8826DE74EB59C457D249FE4148D\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"features\\\":[{},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"plan_identifier\\\":[null,\\\"trimestral2\\\"],\\\"customer_id\\\":[null,\\\"2201AAD64F4B4404A505F0C6C196A054\\\"],\\\"expires_at\\\":[null,\\\"2024-02-02\\\"],\\\"ignore_due_email\\\":[null,false],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"price_cents\\\":[0,300],\\\"interval\\\":[null,4],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"max_cycles\\\":[0,4],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-02T10:06:26-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-02T10:06:26-03:00\\\"],\\\"id\\\":[null,\\\"4BD07265FDF247F8820CAE580A573968\\\"]}\",\n \"created_at\": \"2024-02-02T10:06:26-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": \"2024-02-02\",\n \"created_at\": \"2024-02-02T10:06:26-03:00\",\n \"updated_at\": \"2024-02-02T10:06:27-03:00\",\n \"customer_id\": \"2201AAD64F4B4404A505F0C6C196A054\",\n \"plan_name\": \"Plano Trismestral\",\n \"customer_ref\": \"Teste\",\n \"plan_ref\": \"Plano Trismestral\",\n \"active\": true,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"A7B28D306CC74E80AF8DD4912C38623E\",\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\": \"Teste\",\n \"customer_email\": \"teste@teste.com\",\n \"cycled_at\": \"2024-02-02\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": \"credit_card\",\n \"ignore_due_email\": null,\n \"max_cycles\": 4,\n \"cycles_count\": 1,\n \"recent_invoices\": [\n {\n \"id\": \"6F3C047462414C39A221BBCDDA65734D\",\n \"due_date\": \"2024-02-02\",\n \"status\": \"expired\",\n \"total\": \"R$ 4,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/6f3c0474-6241-4c39-a221-bbcdda65734d-9027\"\n }\n ],\n \"subitems\": [\n {\n \"id\": \"6791A474E8734686B2CCED57C6A48F41\",\n \"description\": \"teste\",\n \"quantity\": 1,\n \"price_cents\": 100,\n \"recurrent\": true,\n \"price\": \"R$ 1,00\",\n \"total\": \"R$ 1,00\"\n }\n ],\n \"logs\": [\n {\n \"id\": \"14AEAC734AA24DD7B0508318E10DC4B4\",\n \"description\": \"Subscription Suspended\",\n \"notes\": \"Subscription Suspended \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-03-03\\\"],\\\"updated_at\\\":[\\\"2024-02-02T13:49:42-03:00\\\",\\\"2024-03-03T01:14:47-03:00\\\"]}\",\n \"created_at\": \"2024-03-03T01:14:47-03:00\"\n },\n {\n \"id\": \"81CBEC2DD52640B4A204246E1850526A\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x teste = R$ 1,00;1x Assinatura: Plano Trismestral = R$ 3,00;\",\n \"subscription_changes\": \"{\\\"cycles_count\\\":[0,1],\\\"updated_at\\\":[\\\"2024-02-02T09:59:28-03:00\\\",\\\"2024-02-02T13:49:40-03:00\\\"]}\",\n \"created_at\": \"2024-02-02T13:49:42-03:00\"\n },\n {\n \"id\": \"5799D53AC3C54F7DA8CCF7319A1DC7A3\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"features\\\":[{},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"plan_identifier\\\":[null,\\\"trimestral\\\"],\\\"customer_id\\\":[null,\\\"2201AAD64F4B4404A505F0C6C196A054\\\"],\\\"expires_at\\\":[null,\\\"2024-02-02\\\"],\\\"payable_with\\\":[null,\\\"credit_card\\\"],\\\"price_cents\\\":[0,300],\\\"interval\\\":[null,4],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"max_cycles\\\":[0,4],\\\"invoice_max_installments\\\":[null,3],\\\"created_at\\\":[null,\\\"2024-02-02T09:59:28-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-02T09:59:28-03:00\\\"],\\\"id\\\":[null,\\\"A7B28D306CC74E80AF8DD4912C38623E\\\"]}\",\n \"created_at\": \"2024-02-02T09:59:28-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": \"2024-02-02\",\n \"created_at\": \"2024-02-02T09:59:28-03:00\",\n \"updated_at\": \"2024-03-03T01:14:47-03:00\",\n \"customer_id\": \"2201AAD64F4B4404A505F0C6C196A054\",\n \"plan_name\": \"Plano Trismestral\",\n \"customer_ref\": \"Teste\",\n \"plan_ref\": \"Plano Trismestral\",\n \"active\": false,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"61BDE835232B4B5592055C8A513DE00C\",\n \"suspended\": false,\n \"plan_identifier\": \"plano e\",\n \"price_cents\": 1000,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"Teste\",\n \"customer_email\": \"teste@teste.com\",\n \"cycled_at\": null,\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"pix\",\n \"credit_card\",\n \"bank_slip\"\n ],\n \"ignore_due_email\": true,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"C55693FC76CA4C9DAE0B60DE957F8AC1\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano e\\\"],\\\"customer_id\\\":[null,\\\"796B9E7392444DAA971D3F1E0BE83F89\\\"],\\\"expires_at\\\":[null,\\\"2024-02-01\\\"],\\\"ignore_due_email\\\":[null,true],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"price_cents\\\":[0,1000],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,12],\\\"created_at\\\":[null,\\\"2024-02-01T16:43:57-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-01T16:43:57-03:00\\\"],\\\"id\\\":[null,\\\"61BDE835232B4B5592055C8A513DE00C\\\"]}\",\n \"created_at\": \"2024-02-01T16:43:57-03:00\"\n },\n {\n \"id\": \"A1F0BA684C7B4C78A990E86A2F29D369\",\n \"description\": \"Error creating invoice\",\n \"notes\": \"Errors: Payer cpf cnpj não pode ficar em branco\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano e\\\"],\\\"customer_id\\\":[null,\\\"796B9E7392444DAA971D3F1E0BE83F89\\\"],\\\"expires_at\\\":[null,\\\"2024-02-01\\\"],\\\"ignore_due_email\\\":[null,true],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"price_cents\\\":[0,1000],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,12],\\\"created_at\\\":[null,\\\"2024-02-01T16:43:57-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-02-01T16:43:57-03:00\\\"],\\\"id\\\":[null,\\\"61BDE835232B4B5592055C8A513DE00C\\\"]}\",\n \"created_at\": \"2024-02-01T16:43:57-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": \"2024-02-01\",\n \"created_at\": \"2024-02-01T16:43:57-03:00\",\n \"updated_at\": \"2024-02-01T16:43:57-03:00\",\n \"customer_id\": \"796B9E7392444DAA971D3F1E0BE83F89\",\n \"plan_name\": \"Alteração de plano\",\n \"customer_ref\": \"teste\",\n \"plan_ref\": \"Alteração de plano\",\n \"active\": true,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"50792BF7F833484C89572501E787AB26\",\n \"suspended\": false,\n \"plan_identifier\": \"plano d\",\n \"price_cents\": 10000,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"Teste\",\n \"customer_email\": \"teste@teste.com\",\n \"cycled_at\": null,\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"pix\",\n \"credit_card\",\n \"bank_slip\"\n ],\n \"ignore_due_email\": null,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [],\n \"subitems\": [\n {\n \"id\": \"82F15CEBE2E54832ABD4EEFA88540424\",\n \"description\": \"Item um\",\n \"quantity\": 1,\n \"price_cents\": 1000,\n \"recurrent\": true,\n \"price\": \"R$ 10,00\",\n \"total\": \"R$ 10,00\"\n }\n ],\n \"logs\": [\n {\n \"id\": \"8A6EF56C529A4630BE81025FFCB11D82\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano d\\\"],\\\"price_cents\\\":[null,10000],\\\"customer_id\\\":[null,\\\"7EC27F7731364282818EDDADEAF048E8\\\"],\\\"credits_based\\\":[null,false],\\\"credits_min\\\":[null,0],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"two_step\\\":[true,false],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,12],\\\"created_at\\\":[null,\\\"2024-01-19T14:10:14-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-01-19T14:10:14-03:00\\\"],\\\"id\\\":[null,\\\"50792BF7F833484C89572501E787AB26\\\"]}\",\n \"created_at\": \"2024-01-19T14:10:14-03:00\"\n },\n {\n \"id\": \"08B3253846944423913245EEBF128845\",\n \"description\": \"Error creating invoice\",\n \"notes\": \"Errors: Payer cpf cnpj não pode ficar em branco\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano d\\\"],\\\"price_cents\\\":[null,10000],\\\"customer_id\\\":[null,\\\"7EC27F7731364282818EDDADEAF048E8\\\"],\\\"credits_based\\\":[null,false],\\\"credits_min\\\":[null,0],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"two_step\\\":[true,false],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,12],\\\"created_at\\\":[null,\\\"2024-01-19T14:10:14-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-01-19T14:10:14-03:00\\\"],\\\"id\\\":[null,\\\"50792BF7F833484C89572501E787AB26\\\"]}\",\n \"created_at\": \"2024-01-19T14:10:14-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-01-19T14:10:14-03:00\",\n \"updated_at\": \"2024-01-19T14:10:14-03:00\",\n \"customer_id\": \"7EC27F7731364282818EDDADEAF048E8\",\n \"plan_name\": \"teste name\",\n \"customer_ref\": \"Teste\",\n \"plan_ref\": \"teste name\",\n \"active\": true,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"46CE1A6EB06F4833B939902264635006\",\n \"suspended\": false,\n \"plan_identifier\": \"plano d\",\n \"price_cents\": 10000,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"Nome Teste\",\n \"customer_email\": \"teste@teste.com\",\n \"cycled_at\": null,\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"pix\",\n \"credit_card\",\n \"bank_slip\"\n ],\n \"ignore_due_email\": null,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [],\n \"subitems\": [\n {\n \"id\": \"53109B28D1244DA289B0A1FA9DA03EA4\",\n \"description\": \"Item um\",\n \"quantity\": 1,\n \"price_cents\": 1000,\n \"recurrent\": true,\n \"price\": \"R$ 10,00\",\n \"total\": \"R$ 10,00\"\n }\n ],\n \"logs\": [\n {\n \"id\": \"E0652546FBE54D5C96A54752AA79B60B\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano d\\\"],\\\"price_cents\\\":[null,10000],\\\"customer_id\\\":[null,\\\"7EC27F7731364282818EDDADEAF048E8\\\"],\\\"credits_based\\\":[null,false],\\\"credits_min\\\":[null,0],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"two_step\\\":[true,false],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,12],\\\"created_at\\\":[null,\\\"2024-01-19T14:06:41-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-01-19T14:06:41-03:00\\\"],\\\"id\\\":[null,\\\"46CE1A6EB06F4833B939902264635006\\\"]}\",\n \"created_at\": \"2024-01-19T14:06:41-03:00\"\n },\n {\n \"id\": \"AC6C2266132B49048E3A34FB6D1D8D38\",\n \"description\": \"Error creating invoice\",\n \"notes\": \"Errors: Payer cpf cnpj não pode ficar em branco\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano d\\\"],\\\"price_cents\\\":[null,10000],\\\"customer_id\\\":[null,\\\"7EC27F7731364282818EDDADEAF048E8\\\"],\\\"credits_based\\\":[null,false],\\\"credits_min\\\":[null,0],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"two_step\\\":[true,false],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,12],\\\"created_at\\\":[null,\\\"2024-01-19T14:06:41-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-01-19T14:06:41-03:00\\\"],\\\"id\\\":[null,\\\"46CE1A6EB06F4833B939902264635006\\\"]}\",\n \"created_at\": \"2024-01-19T14:06:41-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-01-19T14:06:41-03:00\",\n \"updated_at\": \"2024-01-19T14:06:42-03:00\",\n \"customer_id\": \"7EC27F7731364282818EDDADEAF048E8\",\n \"plan_name\": \"teste name\",\n \"customer_ref\": \"Teste\",\n \"plan_ref\": \"teste name\",\n \"active\": true,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"49C9133DBE4D469EBD729CB5F7D739E4\",\n \"suspended\": true,\n \"plan_identifier\": \"plano d\",\n \"price_cents\": 10000,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"Teste\",\n \"customer_email\": \"teste@teste.com\",\n \"cycled_at\": \"2024-05-06\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"pix\",\n \"credit_card\"\n ],\n \"ignore_due_email\": null,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"12EFF215ABFB439B83BD3032F7C022E5\",\n \"due_date\": \"2024-05-11\",\n \"status\": \"expired\",\n \"total\": \"R$ 110,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/12eff215-abfb-439b-83bd-3032f7c022e5-56e2\"\n }\n ],\n \"subitems\": [\n {\n \"id\": \"4C6760F6B59C441AA2E5A721FE09DA8A\",\n \"description\": \"Item um\",\n \"quantity\": 1,\n \"price_cents\": 1000,\n \"recurrent\": true,\n \"price\": \"R$ 10,00\",\n \"total\": \"R$ 10,00\"\n }\n ],\n \"logs\": [\n {\n \"id\": \"544327BB5CF8481B95AF57C1383779BA\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Ativação de Assinatura: teste name = R$ 100,00;1x Item um = R$ 10,00;\",\n \"subscription_changes\": \"{}\",\n \"created_at\": \"2024-05-06T09:43:44-03:00\"\n },\n {\n \"id\": \"2DC0EB3905ED4FC4A3E82846AE609985\",\n \"description\": \"Subscription Suspended\",\n \"notes\": \"Subscription Suspended \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-05-06\\\"],\\\"updated_at\\\":[\\\"2024-01-19T08:06:41-03:00\\\",\\\"2024-05-06T09:42:55-03:00\\\"]}\",\n \"created_at\": \"2024-05-06T09:42:55-03:00\"\n },\n {\n \"id\": \"98940A213C2845F39F96E2AE5E45302A\",\n \"description\": \"Error creating invoice\",\n \"notes\": \"Errors: Payer cpf cnpj não pode ficar em branco\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano d\\\"],\\\"price_cents\\\":[null,10000],\\\"customer_id\\\":[null,\\\"7EC27F7731364282818EDDADEAF048E8\\\"],\\\"credits_based\\\":[null,false],\\\"credits_min\\\":[null,0],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"two_step\\\":[true,false],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,12],\\\"created_at\\\":[null,\\\"2024-01-19T08:06:41-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-01-19T08:06:41-03:00\\\"],\\\"id\\\":[null,\\\"49C9133DBE4D469EBD729CB5F7D739E4\\\"]}\",\n \"created_at\": \"2024-01-19T08:06:41-03:00\"\n },\n {\n \"id\": \"8D04D61CD7184F7387BC0DF58BEBFAB6\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano d\\\"],\\\"price_cents\\\":[null,10000],\\\"customer_id\\\":[null,\\\"7EC27F7731364282818EDDADEAF048E8\\\"],\\\"credits_based\\\":[null,false],\\\"credits_min\\\":[null,0],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"two_step\\\":[true,false],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,12],\\\"created_at\\\":[null,\\\"2024-01-19T08:06:41-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-01-19T08:06:41-03:00\\\"],\\\"id\\\":[null,\\\"49C9133DBE4D469EBD729CB5F7D739E4\\\"]}\",\n \"created_at\": \"2024-01-19T08:06:41-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-01-19T08:06:41-03:00\",\n \"updated_at\": \"2024-05-06T09:43:44-03:00\",\n \"customer_id\": \"7EC27F7731364282818EDDADEAF048E8\",\n \"plan_name\": \"teste name\",\n \"customer_ref\": \"Teste\",\n \"plan_ref\": \"teste name\",\n \"active\": false,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"E7987502DAB040BAAA5466896B85606E\",\n \"suspended\": true,\n \"plan_identifier\": \"Plano D\",\n \"price_cents\": 10000,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"novo nome\",\n \"customer_email\": \"novo_email@email.com\",\n \"cycled_at\": \"2024-01-03\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"pix\",\n \"credit_card\",\n \"bank_slip\"\n ],\n \"ignore_due_email\": null,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"8BA357C5CD2443BFB86E4E50CCD40E8A\",\n \"due_date\": \"2024-01-03\",\n \"status\": \"expired\",\n \"total\": \"R$ 110,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/8ba357c5-cd24-43bf-b86e-4e50ccd40e8a-5b6f\"\n }\n ],\n \"subitems\": [\n {\n \"id\": \"10D5690A1AF04D13AD22B437B354E774\",\n \"description\": \"Item um\",\n \"quantity\": 1,\n \"price_cents\": 1000,\n \"recurrent\": true,\n \"price\": \"R$ 10,00\",\n \"total\": \"R$ 10,00\"\n }\n ],\n \"logs\": [\n {\n \"id\": \"C5755AADFD834D7587A436F0ECA87F87\",\n \"description\": \"Subscription Suspended\",\n \"notes\": \"Subscription Suspended \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-02-02\\\"],\\\"updated_at\\\":[\\\"2024-01-03T10:41:55-03:00\\\",\\\"2024-02-02T11:00:27-03:00\\\"]}\",\n \"created_at\": \"2024-02-02T11:00:27-03:00\"\n },\n {\n \"id\": \"EAC22D84BD454CD299BCA189F7199756\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Item um = 10.00 BRL;1x Subscription Activation: teste name = 100.00 BRL;\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"Plano D\\\"],\\\"price_cents\\\":[null,10000],\\\"customer_id\\\":[null,\\\"11ACC17CF1BD4805B491C5739C95F374\\\"],\\\"credits_based\\\":[null,false],\\\"credits_min\\\":[null,0],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"two_step\\\":[true,false],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,12],\\\"created_at\\\":[null,\\\"2024-01-03T10:41:52-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-01-03T10:41:52-03:00\\\"],\\\"id\\\":[null,\\\"E7987502DAB040BAAA5466896B85606E\\\"]}\",\n \"created_at\": \"2024-01-03T10:41:55-03:00\"\n },\n {\n \"id\": \"5A1105877A444CD7878FE5ED91E8C6DD\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"Plano D\\\"],\\\"price_cents\\\":[null,10000],\\\"customer_id\\\":[null,\\\"11ACC17CF1BD4805B491C5739C95F374\\\"],\\\"credits_based\\\":[null,false],\\\"credits_min\\\":[null,0],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"two_step\\\":[true,false],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,12],\\\"created_at\\\":[null,\\\"2024-01-03T10:41:52-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-01-03T10:41:52-03:00\\\"],\\\"id\\\":[null,\\\"E7987502DAB040BAAA5466896B85606E\\\"]}\",\n \"created_at\": \"2024-01-03T10:41:52-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-01-03T10:41:52-03:00\",\n \"updated_at\": \"2024-02-02T11:00:27-03:00\",\n \"customer_id\": \"11ACC17CF1BD4805B491C5739C95F374\",\n \"plan_name\": \"teste name\",\n \"customer_ref\": \"novo nome\",\n \"plan_ref\": \"teste name\",\n \"active\": false,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"7A3775FFD6B74AAE85BA999CBCC5C52D\",\n \"suspended\": true,\n \"plan_identifier\": \"Plano D\",\n \"price_cents\": 200,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"novo nome\",\n \"customer_email\": \"novo_email@email.com\",\n \"cycled_at\": \"2024-01-03\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"pix\",\n \"credit_card\",\n \"bank_slip\"\n ],\n \"ignore_due_email\": null,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"6B5C694D16EA4AF2AE6B76702694A38A\",\n \"due_date\": \"2024-01-03\",\n \"status\": \"canceled\",\n \"total\": \"R$ 100,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/6b5c694d-16ea-4af2-ae6b-76702694a38a-279d\"\n },\n {\n \"id\": \"06B4C3F969884CD0A0F56F056D94737F\",\n \"due_date\": \"2024-01-03\",\n \"status\": \"canceled\",\n \"total\": \"R$ 110,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/06b4c3f9-6988-4cd0-a0f5-6f056d94737f-43f8\"\n }\n ],\n \"subitems\": [\n {\n \"id\": \"A5478B53B0D94EAF8EFF83BE4CC37D01\",\n \"description\": \"Item um\",\n \"quantity\": 1,\n \"price_cents\": 1000,\n \"recurrent\": true,\n \"price\": \"R$ 10,00\",\n \"total\": \"R$ 10,00\"\n },\n {\n \"id\": \"46922BEA1E0E4CDF9F61FD2EC8C8A4F3\",\n \"description\": \"Item um\",\n \"quantity\": 1,\n \"price_cents\": 1000,\n \"recurrent\": true,\n \"price\": \"R$ 10,00\",\n \"total\": \"R$ 10,00\"\n }\n ],\n \"logs\": [\n {\n \"id\": \"98200A463A6A47FC9DBD7525C7BDAE7E\",\n \"description\": \"Subscription Suspended\",\n \"notes\": \"Subscription Suspended \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-01-03\\\"],\\\"updated_at\\\":[\\\"2024-01-03T10:41:22-03:00\\\",\\\"2024-01-03T10:41:39-03:00\\\"]}\",\n \"created_at\": \"2024-01-03T10:41:39-03:00\"\n },\n {\n \"id\": \"BFEFC6F80F9B44AD9F509CF1D019C61E\",\n \"description\": \"Subscription Updated\",\n \"notes\": \"Subscription Updated \",\n \"subscription_changes\": \"{}\",\n \"created_at\": \"2024-01-03T10:41:22-03:00\"\n },\n {\n \"id\": \"B4137A1B9A1E4037BF615D954593B786\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Mudança de Plano: teste name = R$ 100,00;\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[\\\"Plano D\\\",\\\"plano d\\\"],\\\"price_cents\\\":[200,10000],\\\"updated_at\\\":[\\\"2024-01-03T10:41:21-03:00\\\",\\\"2024-01-03T10:41:22-03:00\\\"]}\",\n \"created_at\": \"2024-01-03T10:41:22-03:00\"\n },\n {\n \"id\": \"2AA45C7E68B947D0B5DD517619163899\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Item um = R$ 10,00;1x Ativação de Assinatura: teste name = R$ 100,00;\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"Plano D\\\"],\\\"price_cents\\\":[null,10000],\\\"customer_id\\\":[null,\\\"11ACC17CF1BD4805B491C5739C95F374\\\"],\\\"credits_based\\\":[null,false],\\\"credits_min\\\":[null,0],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"two_step\\\":[true,false],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,12],\\\"created_at\\\":[null,\\\"2024-01-03T10:39:45-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-01-03T10:39:45-03:00\\\"],\\\"id\\\":[null,\\\"7A3775FFD6B74AAE85BA999CBCC5C52D\\\"]}\",\n \"created_at\": \"2024-01-03T10:39:46-03:00\"\n },\n {\n \"id\": \"0FAE1290597447368C2AEB231B1C9853\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"Plano D\\\"],\\\"price_cents\\\":[null,10000],\\\"customer_id\\\":[null,\\\"11ACC17CF1BD4805B491C5739C95F374\\\"],\\\"credits_based\\\":[null,false],\\\"credits_min\\\":[null,0],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"two_step\\\":[true,false],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,12],\\\"created_at\\\":[null,\\\"2024-01-03T10:39:45-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-01-03T10:39:45-03:00\\\"],\\\"id\\\":[null,\\\"7A3775FFD6B74AAE85BA999CBCC5C52D\\\"]}\",\n \"created_at\": \"2024-01-03T10:39:45-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-01-03T10:39:45-03:00\",\n \"updated_at\": \"2024-01-03T10:41:39-03:00\",\n \"customer_id\": \"11ACC17CF1BD4805B491C5739C95F374\",\n \"plan_name\": \"teste name\",\n \"customer_ref\": \"novo nome\",\n \"plan_ref\": \"teste name\",\n \"active\": false,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"D31C3369F83E49B2AAB26A45D2C9AC27\",\n \"suspended\": true,\n \"plan_identifier\": \"plano teste 2\",\n \"price_cents\": 10000,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"novo nome\",\n \"customer_email\": \"novo_email@email.com\",\n \"cycled_at\": \"2024-01-02\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"pix\",\n \"credit_card\",\n \"bank_slip\"\n ],\n \"ignore_due_email\": null,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"D460661C37794C4695068A5AC0DB6AFC\",\n \"due_date\": \"2024-01-02\",\n \"status\": \"expired\",\n \"total\": \"R$ 100,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/d460661c-3779-4c46-9506-8a5ac0db6afc-f540\"\n }\n ],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"A84AD277D4B74569B6FEA91B1E5C6D77\",\n \"description\": \"Subscription Suspended\",\n \"notes\": \"Subscription Suspended \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-02-01\\\"],\\\"updated_at\\\":[\\\"2024-01-02T13:51:19-03:00\\\",\\\"2024-02-01T13:51:48-03:00\\\"]}\",\n \"created_at\": \"2024-02-01T13:51:48-03:00\"\n },\n {\n \"id\": \"E4BFCF9025F94A87AD41FF8A4FAE0C7E\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Ativação de Assinatura: Meu plano subscription_id = R$ 100,00;\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano teste 2\\\"],\\\"customer_id\\\":[null,\\\"11ACC17CF1BD4805B491C5739C95F374\\\"],\\\"price_cents\\\":[0,10000],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"invoice_max_installments\\\":[null,12],\\\"created_at\\\":[null,\\\"2024-01-02T13:51:18-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-01-02T13:51:18-03:00\\\"],\\\"id\\\":[null,\\\"D31C3369F83E49B2AAB26A45D2C9AC27\\\"]}\",\n \"created_at\": \"2024-01-02T13:51:19-03:00\"\n },\n {\n \"id\": \"16222B8C03354449A4FDD118F7AD5634\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"plano teste 2\\\"],\\\"customer_id\\\":[null,\\\"11ACC17CF1BD4805B491C5739C95F374\\\"],\\\"price_cents\\\":[0,10000],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"invoice_max_installments\\\":[null,12],\\\"created_at\\\":[null,\\\"2024-01-02T13:51:18-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-01-02T13:51:18-03:00\\\"],\\\"id\\\":[null,\\\"D31C3369F83E49B2AAB26A45D2C9AC27\\\"]}\",\n \"created_at\": \"2024-01-02T13:51:18-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-01-02T13:51:18-03:00\",\n \"updated_at\": \"2024-02-01T13:51:48-03:00\",\n \"customer_id\": \"11ACC17CF1BD4805B491C5739C95F374\",\n \"plan_name\": \"\",\n \"customer_ref\": \"novo nome\",\n \"plan_ref\": \"\",\n \"active\": false,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"CA6ECC1DE3634ECDA55E863718A6AEA2\",\n \"suspended\": true,\n \"plan_identifier\": \"Plano D\",\n \"price_cents\": 10000,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"novo nome\",\n \"customer_email\": \"novo_email@email.com\",\n \"cycled_at\": \"2024-01-02\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"pix\",\n \"credit_card\",\n \"bank_slip\"\n ],\n \"ignore_due_email\": null,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"4311899533F7440EB801B5BEE757CD9C\",\n \"due_date\": \"2024-01-10\",\n \"status\": \"canceled\",\n \"total\": \"R$ 10,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/43118995-33f7-440e-b801-b5bee757cd9c-8c24\"\n },\n {\n \"id\": \"32A2BC8D470A4899BDBF7A63F9C9C769\",\n \"due_date\": \"2024-01-10\",\n \"status\": \"canceled\",\n \"total\": \"R$ 10,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/32a2bc8d-470a-4899-bdbf-7a63f9c9c769-caf5\"\n },\n {\n \"id\": \"74415D925B974D2196B347735321B9F4\",\n \"due_date\": \"2024-01-10\",\n \"status\": \"canceled\",\n \"total\": \"R$ 10,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/74415d92-5b97-4d21-96b3-47735321b9f4-0577\"\n },\n {\n \"id\": \"5E67F00C5699485183B055E631DB6C41\",\n \"due_date\": \"2024-01-10\",\n \"status\": \"canceled\",\n \"total\": \"R$ 10,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/5e67f00c-5699-4851-83b0-55e631db6c41-3480\"\n },\n {\n \"id\": \"529AC37640D849F28C557D415550B124\",\n \"due_date\": \"2024-01-10\",\n \"status\": \"canceled\",\n \"total\": \"R$ 10,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/529ac376-40d8-49f2-8c55-7d415550b124-0b75\"\n }\n ],\n \"subitems\": [\n {\n \"id\": \"05853D2722534C1C996A1A067FD344BD\",\n \"description\": \"Item um\",\n \"quantity\": 1,\n \"price_cents\": 1000,\n \"recurrent\": true,\n \"price\": \"R$ 10,00\",\n \"total\": \"R$ 10,00\"\n }\n ],\n \"logs\": [\n {\n \"id\": \"62D5A6235CE941D5A3CDCA19C667D4C9\",\n \"description\": \"Subscription Suspended\",\n \"notes\": \"Subscription Suspended \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2024-02-01\\\"],\\\"updated_at\\\":[\\\"2024-01-03T10:45:26-03:00\\\",\\\"2024-02-01T11:54:58-03:00\\\"]}\",\n \"created_at\": \"2024-02-01T11:54:58-03:00\"\n },\n {\n \"id\": \"0C694C0C5BFE40689B0099974CD7AB2C\",\n \"description\": \"Credits used\",\n \"notes\": \"Quantity: 1000\",\n \"subscription_changes\": \"{}\",\n \"created_at\": \"2024-01-03T10:45:26-03:00\"\n },\n {\n \"id\": \"6742329F169D44FCBF6C0A743C1D0CFF\",\n \"description\": \"Invoice created\",\n \"notes\": \"Invoice created with items: 1x Item um = R$ 10,00;1x Ativação de Assinatura: teste name = R$ 100,00;\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"Plano D\\\"],\\\"price_cents\\\":[null,10000],\\\"customer_id\\\":[null,\\\"11ACC17CF1BD4805B491C5739C95F374\\\"],\\\"credits_based\\\":[null,false],\\\"credits_min\\\":[null,0],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"two_step\\\":[true,false],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,12],\\\"created_at\\\":[null,\\\"2024-01-02T13:37:16-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-01-02T13:37:16-03:00\\\"],\\\"id\\\":[null,\\\"CA6ECC1DE3634ECDA55E863718A6AEA2\\\"]}\",\n \"created_at\": \"2024-01-02T13:37:17-03:00\"\n },\n {\n \"id\": \"C8F895F0C6C64777826D7B9AF3D10C6C\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"Plano D\\\"],\\\"price_cents\\\":[null,10000],\\\"customer_id\\\":[null,\\\"11ACC17CF1BD4805B491C5739C95F374\\\"],\\\"credits_based\\\":[null,false],\\\"credits_min\\\":[null,0],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"two_step\\\":[true,false],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"invoice_max_installments\\\":[null,12],\\\"created_at\\\":[null,\\\"2024-01-02T13:37:16-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-01-02T13:37:16-03:00\\\"],\\\"id\\\":[null,\\\"CA6ECC1DE3634ECDA55E863718A6AEA2\\\"]}\",\n \"created_at\": \"2024-01-02T13:37:16-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-01-02T13:37:16-03:00\",\n \"updated_at\": \"2024-02-01T11:54:58-03:00\",\n \"customer_id\": \"11ACC17CF1BD4805B491C5739C95F374\",\n \"plan_name\": \"teste name\",\n \"customer_ref\": \"novo nome\",\n \"plan_ref\": \"teste name\",\n \"active\": false,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n },\n {\n \"id\": \"BFF4D3CF98D44E6494227E32162BC615\",\n \"suspended\": false,\n \"plan_identifier\": \"basic_plan2\",\n \"price_cents\": 2590,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"Teste\",\n \"customer_email\": \"tes123@teste.com\",\n \"cycled_at\": null,\n \"credits_min\": 0,\n \"credits_cycle\": 0,\n \"payable_with\": [\n \"pix\",\n \"credit_card\",\n \"bank_slip\"\n ],\n \"ignore_due_email\": true,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"747DF166D82E48BCB178FCE2B3DE02FB\",\n \"due_date\": \"2023-12-21\",\n \"status\": \"expired\",\n \"total\": \"R$ 220,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/747df166-d82e-48bc-b178-fce2b3de02fb-e1a4\"\n },\n {\n \"id\": \"2C5304299AAA470CA705EB9704D4CBF2\",\n \"due_date\": \"2023-12-21\",\n \"status\": \"expired\",\n \"total\": \"R$ 220,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/2c530429-9aaa-470c-a705-eb9704d4cbf2-c699\"\n },\n {\n \"id\": \"31DC71B3C79E46BEB8842695C69CF67A\",\n \"due_date\": \"2023-12-21\",\n \"status\": \"expired\",\n \"total\": \"R$ 220,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/31dc71b3-c79e-46be-b884-2695c69cf67a-9e67\"\n },\n {\n \"id\": \"C46D42011A3C4DD4A5233DDB586EC728\",\n \"due_date\": \"2023-12-21\",\n \"status\": \"expired\",\n \"total\": \"R$ 220,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/c46d4201-1a3c-4dd4-a523-3ddb586ec728-6252\"\n },\n {\n \"id\": \"49495C5E25014E0DAD2D6624695C5415\",\n \"due_date\": \"2023-12-21\",\n \"status\": \"expired\",\n \"total\": \"R$ 488,84\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/49495c5e-2501-4e0d-ad2d-6624695c5415-ad1c\"\n }\n ],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"76A86B0342524B5A991FC64205E09C4F\",\n \"description\": \"Subscription Created\",\n \"notes\": \"Subscription Created \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"basic_plan2\\\"],\\\"price_cents\\\":[null,2590],\\\"customer_id\\\":[null,\\\"11ACC17CF1BD4805B491C5739C95F374\\\"],\\\"expires_at\\\":[null,\\\"2023-12-20\\\"],\\\"credits_based\\\":[null,false],\\\"credits_cycle\\\":[null,0],\\\"credits_min\\\":[null,0],\\\"ignore_due_email\\\":[null,true],\\\"suspend_on_invoice_expired\\\":[true,false],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"pix,credit_card,bank_slip\\\"],\\\"created_at\\\":[null,\\\"2023-12-20T11:01:46-03:00\\\"],\\\"updated_at\\\":[null,\\\"2023-12-20T11:01:46-03:00\\\"],\\\"id\\\":[null,\\\"BFF4D3CF98D44E6494227E32162BC615\\\"]}\",\n \"created_at\": \"2023-12-20T11:01:46-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": \"2023-12-20\",\n \"created_at\": \"2023-12-20T11:01:46-03:00\",\n \"updated_at\": \"2023-12-20T11:01:47-03:00\",\n \"customer_id\": \"11ACC17CF1BD4805B491C5739C95F374\",\n \"plan_name\": \"Plano teste \",\n \"customer_ref\": \"Teste\",\n \"plan_ref\": \"Plano teste \",\n \"active\": true,\n \"two_step\": null,\n \"suspend_on_invoice_expired\": null,\n \"in_trial\": null,\n \"credits\": 0,\n \"credits_based\": false\n }\n ],\n \"facets\": {\n \"due\": {\n \"_type\": \"filter\",\n \"count\": 5\n },\n \"active\": {\n \"_type\": \"filter\",\n \"count\": 4\n },\n \"suspended\": {\n \"_type\": \"filter\",\n \"count\": 16\n }\n },\n \"totalItems\": 25\n}" schema: type: object properties: items: type: array items: type: object properties: id: type: string example: 282BF13F9DBF4D3D8C5D344FEA370F78 suspended: type: boolean example: false default: true plan_identifier: type: string example: basicplan price_cents: type: integer example: 5 default: 0 currency: type: string example: BRL features: type: object properties: {} customer_name: type: string example: Nome do cliente customer_email: type: string example: teste@teste.com cycled_at: type: string example: '2024-04-29' credits_min: type: integer example: 0 default: 0 credits_cycle: {} payable_with: type: array items: type: string example: pix ignore_due_email: type: boolean example: true default: true max_cycles: type: integer example: 0 default: 0 cycles_count: type: integer example: 0 default: 0 recent_invoices: type: array items: type: object properties: id: type: string example: 011709254C2347ACAFFCB6C80097917E due_date: type: string example: '2024-04-29' status: type: string example: expired total: type: string example: R$ 10,00 secure_url: type: string example: https://checkout.iugu.com/invoices/01170925-4c23-47ac-affc-b6c80097917e-5455 subitems: type: array items: type: object properties: id: type: string example: A2CBB12B5A164E60A05AD0A3FE0C26D4 description: type: string example: descrição quantity: type: integer example: 1 default: 0 price_cents: type: integer example: 1 default: 0 recurrent: type: boolean example: false default: true price: type: string example: R$ 0,01 total: type: string example: R$ 0,01 logs: type: array items: type: object properties: id: type: string example: 6D22ABE205B04AEF84A286C22C74EFE9 description: type: string example: Error creating invoice notes: type: string example: 'Errors: Total deve ser maior que 1' subscription_changes: type: string example: '{}' created_at: type: string example: '2024-05-14T13:28:16-03:00' custom_variables: type: array items: type: object properties: {} expires_at: type: string example: '2024-05-14' created_at: type: string example: '2024-04-29T12:03:57-03:00' updated_at: type: string example: '2024-05-14T13:28:15-03:00' customer_id: type: string example: 796B9E7392444DAA971D3F1E0BE83F89 plan_name: type: string example: Plano Básico customer_ref: type: string example: José plan_ref: type: string example: Plano Básico active: type: boolean example: true default: true two_step: {} suspend_on_invoice_expired: {} in_trial: {} credits: type: integer example: 0 default: 0 credits_based: type: boolean example: false default: true facets: type: object properties: due: type: object properties: _type: type: string example: filter count: type: integer example: 5 default: 0 active: type: object properties: _type: type: string example: filter count: type: integer example: 4 default: 0 suspended: type: object properties: _type: type: string example: filter count: type: integer example: 16 default: 0 totalItems: type: integer example: 25 default: 0 '400': description: '400' content: text/plain: examples: Result: value: '{ "errors": "Paginação profunda (start > 100) requer ao menos um filtro identificador para escopar a busca." }' tags: - Subscriptions /subscriptions/{id}: get: summary: Buscar Assinatura description: Retorna os dados de uma Assinatura. operationId: buscar-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\": \"282BF13F9DBF4D3D8C5D344FEA370F78\",\n \"suspended\": false,\n \"plan_identifier\": \"basicplan\",\n \"price_cents\": 1000,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"José\",\n \"customer_email\": \"jose_silva@teste.com\",\n \"cycled_at\": \"2024-04-29\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": [\n \"credit_card\",\n \"bank_slip\",\n \"pix\"\n ],\n \"ignore_due_email\": null,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"011709254C2347ACAFFCB6C80097917E\",\n \"due_date\": \"2024-04-29\",\n \"status\": \"pending\",\n \"total\": \"R$ 10,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/01170925-4c23-47ac-affc-b6c80097917e-5455\"\n }\n ],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"F56499BE161746078628C13601437A0A\",\n \"description\": \"Fatura criada\",\n \"notes\": \"Fatura criada com os items: 1x Ativação de Assinatura: Plano Básico = R$ 10,00;\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"basicplan\\\"],\\\"customer_id\\\":[null,\\\"796B9E7392444DAA971D3F1E0BE83F89\\\"],\\\"price_cents\\\":[0,1000],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"created_at\\\":[null,\\\"2024-04-29T12:03:57-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-04-29T12:03:57-03:00\\\"],\\\"id\\\":[null,\\\"282BF13F9DBF4D3D8C5D344FEA370F78\\\"]}\",\n \"created_at\": \"2024-04-29T12:04:00-03:00\"\n },\n {\n \"id\": \"29D1B58DB67041358BD3A85B421D0D73\",\n \"description\": \"Assinatura Criada\",\n \"notes\": \"Assinatura Criada \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"basicplan\\\"],\\\"customer_id\\\":[null,\\\"796B9E7392444DAA971D3F1E0BE83F89\\\"],\\\"price_cents\\\":[0,1000],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card,bank_slip,pix\\\"],\\\"created_at\\\":[null,\\\"2024-04-29T12:03:57-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-04-29T12:03:57-03:00\\\"],\\\"id\\\":[null,\\\"282BF13F9DBF4D3D8C5D344FEA370F78\\\"]}\",\n \"created_at\": \"2024-04-29T12:03:57-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-04-29T12:03:57-03:00\",\n \"updated_at\": \"2024-04-29T12:04:00-03:00\",\n \"customer_id\": \"796B9E7392444DAA971D3F1E0BE83F89\",\n \"plan_name\": \"Plano Básico\",\n \"customer_ref\": \"José\",\n \"plan_ref\": \"Plano Básico\",\n \"active\": true,\n \"two_step\": true,\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: 282BF13F9DBF4D3D8C5D344FEA370F78 suspended: type: boolean example: false default: true plan_identifier: type: string example: basicplan price_cents: type: integer example: 1000 default: 0 currency: type: string example: BRL features: type: object properties: {} customer_name: type: string example: José customer_email: type: string example: jose_silva@teste.com cycled_at: type: string example: '2024-04-29' credits_min: type: integer example: 0 default: 0 credits_cycle: {} payable_with: type: array items: type: string example: credit_card ignore_due_email: {} max_cycles: type: integer example: 0 default: 0 cycles_count: type: integer example: 0 default: 0 recent_invoices: type: array items: type: object properties: id: type: string example: 011709254C2347ACAFFCB6C80097917E due_date: type: string example: '2024-04-29' status: type: string example: pending total: type: string example: R$ 10,00 secure_url: type: string example: https://checkout.iugu.com/invoices/01170925-4c23-47ac-affc-b6c80097917e-5455 subitems: type: array items: type: object properties: {} logs: type: array items: type: object properties: id: type: string example: F56499BE161746078628C13601437A0A description: type: string example: Fatura criada notes: type: string example: 'Fatura criada com os items: 1x Ativação de Assinatura: Plano Básico = R$ 10,00;' subscription_changes: type: string example: '{"plan_identifier":[null,"basicplan"],"customer_id":[null,"796B9E7392444DAA971D3F1E0BE83F89"],"price_cents":[0,1000],"interval":[null,1],"interval_type":[null,"months"],"payable_with":[null,"credit_card,bank_slip,pix"],"created_at":[null,"2024-04-29T12:03:57-03:00"],"updated_at":[null,"2024-04-29T12:03:57-03:00"],"id":[null,"282BF13F9DBF4D3D8C5D344FEA370F78"]}' created_at: type: string example: '2024-04-29T12:04:00-03:00' custom_variables: type: array items: type: object properties: {} expires_at: {} created_at: type: string example: '2024-04-29T12:03:57-03:00' updated_at: type: string example: '2024-04-29T12:04:00-03:00' customer_id: type: string example: 796B9E7392444DAA971D3F1E0BE83F89 plan_name: type: string example: Plano Básico customer_ref: type: string example: José plan_ref: type: string example: Plano Básico active: type: boolean example: true default: true two_step: type: boolean example: true 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 '404': description: '404' content: application/json: examples: Subscription Not Found: value: "{\n \"errors\": \"Subscription Not Found\"\n}" schema: type: object properties: errors: type: string example: Subscription Not Found deprecated: false tags: - Subscriptions put: summary: Editar Assinatura description: Altera os dados de uma Assinatura, quaisquer parâmetros não informados não serão alterados. operationId: alterar-assinatura parameters: - name: id in: path description: ID da Assinatura schema: type: string required: true requestBody: content: application/json: schema: type: object properties: plan_identifier: type: string description: Identificador do Plano. Só é enviado para assinaturas que não são credits_based expires_at: type: string description: Data de Expiração "AAAA-MM-DD". (Também é a data da próxima cobrança) format: date payable_with: type: array description: 'Método de pagamento que será disponibilizado para as Faturas desta Assinatura (all, credit_card, pix ou bank_slip). Obs: Dependendo do valor, este atributo será herdado, pois a prioridade é herdar o valor atribuído ao Plano desta Assinatura; caso este esteja atribuído o valor ‘all’, o sistema considerará o payable_with da Assinatura; se não, o sistema considerará o payable_with do Plano' items: type: string ignore_due_email: type: boolean description: Desabilita o envio de emails notificando o vencimento de uma fatura em assinaturas que podem ser pagas com boleto bancário. credits_based: type: boolean description: É uma assinatura baseada em créditos? booleano price_cents: type: integer description: Preço em centavos da recarga para assinaturas baseadas em crédito format: int32 credits_cycle: type: integer description: Quantidade de créditos adicionados a cada ciclo, só enviado para assinaturas credits_based format: int32 credits_min: type: integer description: 'Quantidade de créditos que ativa o ciclo, por ex: Efetuar cobrança cada vez que a assinatura tenha apenas 1 crédito sobrando. Esse 1 crédito é o credits_min' format: int32 subitems: type: array description: Adiciona itens de cobrança a mais na assinatura do cliente. "price_cents" valor mínimo 100. Para remover, envie "id" do subitem + "_destroy:true" items: properties: id: type: string description: ID do subitem a ser removido _destroy: type: boolean description: true ou false description: type: string description: Descrição do item price_cents: type: string description: Preço em Centavos. Valores negativos entram como desconto no total das Faturas criadas pela Assinatura. "price_cents" valor mínimo 100. quantity: type: string description: Quantidade recurrent: type: boolean description: Item Recorrente? type: object suspended: type: boolean description: Assinatura suspensa? booleano skip_charge: type: boolean description: Ignorar Cobrança? booleano custom_variables: type: array description: Variáveis Personalizadas items: properties: name: type: string description: Nome da Variável value: type: string description: Valor da Variável type: object two_step: type: boolean description: Habilita/Desabilita transações em duas etapas para a assinatura (precisa ter o da conta ativado para usar) default: false suspend_on_invoice_expired: type: boolean description: Quando uma assinatura tem uma fatura expirada, se esse campo estiver como FALSE, assinatura não será suspensa. (porém é necessário ajustar a data de vencimento para seguir com o ciclo. default: true soft_descriptor_light: type: string description: Altera a descrição da cobrança no cartão de crédito do cliente final (Até 12 caracteres). Caso não seja enviado, será utilizada a descrição configurada na conta. responses: '200': description: '200' content: application/json: examples: Result: value: "{\n \"id\": \"B3F2FE4AA10A433ABB5A1B11C5882C00\",\n \"suspended\": false,\n \"plan_identifier\": \"plano_teste2\",\n \"price_cents\": 290,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"Teste Name\",\n \"customer_email\": \"teste@teste.com\",\n \"cycled_at\": \"2024-05-13\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": \"credit_card\",\n \"ignore_due_email\": false,\n \"max_cycles\": 0,\n \"cycles_count\": 0,\n \"recent_invoices\": [\n {\n \"id\": \"F729BD0749C34AD4AC1581D64262E170\",\n \"due_date\": \"2024-05-13\",\n \"status\": \"paid\",\n \"total\": \"R$ 1,24\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/f729bd07-49c3-4ad4-ac15-81d64262e170-d266\"\n },\n {\n \"id\": \"5E252FE207F14F4E9AF333694252B2B3\",\n \"due_date\": \"2024-05-08\",\n \"status\": \"paid\",\n \"total\": \"R$ 10,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/5e252fe2-07f1-4f4e-9af3-33694252b2b3-954d\"\n },\n {\n \"id\": \"F4B3709493BF45F4963C1EA83717CEF0\",\n \"due_date\": \"2024-04-08\",\n \"status\": \"paid\",\n \"total\": \"R$ 10,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/f4b37094-93bf-45f4-963c-1ea83717cef0-ac4a\"\n },\n {\n \"id\": \"FB6A4C2AEED04429B367FF979DCB5629\",\n \"due_date\": \"2024-03-12\",\n \"status\": \"canceled\",\n \"total\": \"R$ 10,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/fb6a4c2a-eed0-4429-b367-ff979dcb5629-d6d1\"\n },\n {\n \"id\": \"F8F4024C3A9F442DB3A3889D6E968F23\",\n \"due_date\": \"2024-03-08\",\n \"status\": \"refunded\",\n \"total\": \"R$ 10,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/f8f4024c-3a9f-442d-b3a3-889d6e968f23-a4e2\"\n }\n ],\n \"subitems\": [\n {\n \"id\": \"1A9183F64A3F40B29A1DCB96116FDF2E\",\n \"description\": \"Descrição\",\n \"quantity\": 1,\n \"price_cents\": 100,\n \"recurrent\": false,\n \"price\": \"R$ 1,00\",\n \"total\": \"R$ 1,00\"\n },\n {\n \"id\": \"CF479959ACE941038D3F656BED081C15\",\n \"description\": \"Descrição\",\n \"quantity\": 1,\n \"price_cents\": 100,\n \"recurrent\": false,\n \"price\": \"R$ 1,00\",\n \"total\": \"R$ 1,00\"\n },\n {\n \"id\": \"629FC84DDBA7474BACBC331100E89459\",\n \"description\": \"Descrição\",\n \"quantity\": 1,\n \"price_cents\": 100,\n \"recurrent\": false,\n \"price\": \"R$ 1,00\",\n \"total\": \"R$ 1,00\"\n }\n ],\n \"logs\": [\n {\n \"id\": \"27A515BB23764259B545648F06C2BD98\",\n \"description\": \"Fatura criada\",\n \"notes\": \"Fatura criada com os items: 1x Mudança de Plano: Plano Teste = R$ 1,24;\",\n \"subscription_changes\": \"{\\\"expires_at\\\":[\\\"2024-05-14\\\",null],\\\"plan_identifier\\\":[\\\"provinha\\\",\\\"plano_teste2\\\"],\\\"price_cents\\\":[5,290],\\\"invoice_max_installments\\\":[6,null],\\\"updated_at\\\":[\\\"2024-05-13T15:37:50-03:00\\\",\\\"2024-05-13T15:37:50-03:00\\\"]}\",\n \"created_at\": \"2024-05-13T15:37:51-03:00\"\n },\n {\n \"id\": \"1E94FA3246834E29A44A36F7464FAAA1\",\n \"description\": \"Assinatura Modificada\",\n \"notes\": \"Assinatura Modificada \",\n \"subscription_changes\": \"{\\\"cycled_at\\\":[\\\"2024-05-08\\\",\\\"2024-05-13\\\"],\\\"updated_at\\\":[\\\"2024-05-13T15:37:50-03:00\\\",\\\"2024-05-13T15:37:51-03:00\\\"]}\",\n \"created_at\": \"2024-05-13T15:37:51-03:00\"\n },\n {\n \"id\": \"486DFB0791B84116AE811532F853637E\",\n \"description\": \"Assinatura Modificada\",\n \"notes\": \"Assinatura Modificada \",\n \"subscription_changes\": \"{}\",\n \"created_at\": \"2024-05-13T15:33:40-03:00\"\n },\n {\n \"id\": \"E7308928E41A4BB0949675A1D72D79FB\",\n \"description\": \"Assinatura Modificada\",\n \"notes\": \"Assinatura Modificada \",\n \"subscription_changes\": \"{\\\"price_cents\\\":[1000,5],\\\"expires_at\\\":[\\\"2024-06-08\\\",\\\"2024-05-14\\\"],\\\"ignore_due_email\\\":[true,false],\\\"two_step\\\":[true,false],\\\"soft_descriptor_light\\\":[null,\\\"SDescriptor\\\"],\\\"updated_at\\\":[\\\"2024-05-08T16:12:09-03:00\\\",\\\"2024-05-13T15:33:20-03:00\\\"]}\",\n \"created_at\": \"2024-05-13T15:33:20-03:00\"\n },\n {\n \"id\": \"C348CF18E2C747819CD777D04153F8F8\",\n \"description\": \"Fatura criada\",\n \"notes\": \"Fatura criada com os items: 1x Assinatura: prova Kartinho = R$ 10,00;\",\n \"subscription_changes\": \"{}\",\n \"created_at\": \"2024-05-08T16:12:05-03:00\"\n },\n {\n \"id\": \"3505FF95D3A1408D9F73200ABE778FE3\",\n \"description\": \"Fatura criada\",\n \"notes\": \"Fatura criada com os items: 1x Assinatura: prova Kartinho = R$ 10,00;\",\n \"subscription_changes\": \"{}\",\n \"created_at\": \"2024-04-08T16:10:59-03:00\"\n },\n {\n \"id\": \"A0E73FA34E354DE9AB0945AE531F903B\",\n \"description\": \"Assinatura Criada\",\n \"notes\": \"Assinatura Criada \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"provinha\\\"],\\\"customer_id\\\":[null,\\\"6C2F076EAE524A15A749FEA422D9AF50\\\"],\\\"expires_at\\\":[null,\\\"2024-03-08\\\"],\\\"ignore_due_email\\\":[null,true],\\\"price_cents\\\":[0,1000],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card\\\"],\\\"invoice_max_installments\\\":[null,6],\\\"created_at\\\":[null,\\\"2024-03-08T16:35:09-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-03-08T16:35:09-03:00\\\"],\\\"id\\\":[null,\\\"B3F2FE4AA10A433ABB5A1B11C5882C00\\\"]}\",\n \"created_at\": \"2024-03-08T16:35:09-03:00\"\n },\n {\n \"id\": \"8E76CEE3B1D84874910C9650A513EFA6\",\n \"description\": \"Fatura criada\",\n \"notes\": \"Fatura criada com os items: 1x Ativação de Assinatura: prova Kartinho = R$ 10,00;\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"provinha\\\"],\\\"customer_id\\\":[null,\\\"6C2F076EAE524A15A749FEA422D9AF50\\\"],\\\"expires_at\\\":[null,\\\"2024-03-08\\\"],\\\"ignore_due_email\\\":[null,true],\\\"price_cents\\\":[0,1000],\\\"interval\\\":[null,1],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"payable_with\\\":[null,\\\"credit_card\\\"],\\\"invoice_max_installments\\\":[null,6],\\\"created_at\\\":[null,\\\"2024-03-08T16:35:09-03:00\\\"],\\\"updated_at\\\":[null,\\\"2024-03-08T16:35:09-03:00\\\"],\\\"id\\\":[null,\\\"B3F2FE4AA10A433ABB5A1B11C5882C00\\\"]}\",\n \"created_at\": \"2024-03-08T16:35:09-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2024-03-08T16:35:09-03:00\",\n \"updated_at\": \"2024-05-13T15:37:51-03:00\",\n \"customer_id\": \"6C2F076EAE524A15A749FEA422D9AF50\",\n \"plan_name\": \"Plano Teste\",\n \"customer_ref\": \"Bruna Lopes\",\n \"plan_ref\": \"Plano Teste\",\n \"active\": true,\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: B3F2FE4AA10A433ABB5A1B11C5882C00 suspended: type: boolean example: false default: true plan_identifier: type: string example: plano_teste2 price_cents: type: integer example: 290 default: 0 currency: type: string example: BRL features: type: object properties: {} customer_name: type: string example: Teste Name customer_email: type: string example: teste@teste.com cycled_at: type: string example: '2024-05-13' credits_min: type: integer example: 0 default: 0 credits_cycle: {} payable_with: type: string example: credit_card ignore_due_email: type: boolean example: false default: true max_cycles: type: integer example: 0 default: 0 cycles_count: type: integer example: 0 default: 0 recent_invoices: type: array items: type: object properties: id: type: string example: F729BD0749C34AD4AC1581D64262E170 due_date: type: string example: '2024-05-13' status: type: string example: paid total: type: string example: R$ 1,24 secure_url: type: string example: https://checkout.iugu.com/invoices/f729bd07-49c3-4ad4-ac15-81d64262e170-d266 subitems: type: array items: type: object properties: id: type: string example: 1A9183F64A3F40B29A1DCB96116FDF2E description: type: string example: Descrição quantity: type: integer example: 1 default: 0 price_cents: type: integer example: 100 default: 0 recurrent: type: boolean example: false default: true price: type: string example: R$ 1,00 total: type: string example: R$ 1,00 logs: type: array items: type: object properties: id: type: string example: 27A515BB23764259B545648F06C2BD98 description: type: string example: Fatura criada notes: type: string example: 'Fatura criada com os items: 1x Mudança de Plano: Plano Teste = R$ 1,24;' subscription_changes: type: string example: '{"expires_at":["2024-05-14",null],"plan_identifier":["provinha","plano_teste2"],"price_cents":[5,290],"invoice_max_installments":[6,null],"updated_at":["2024-05-13T15:37:50-03:00","2024-05-13T15:37:50-03:00"]}' created_at: type: string example: '2024-05-13T15:37:51-03:00' custom_variables: type: array items: type: object properties: {} expires_at: {} created_at: type: string example: '2024-03-08T16:35:09-03:00' updated_at: type: string example: '2024-05-13T15:37:51-03:00' customer_id: type: string example: 6C2F076EAE524A15A749FEA422D9AF50 plan_name: type: string example: Plano Teste customer_ref: type: string example: Bruna Lopes plan_ref: type: string example: Plano Teste active: type: boolean example: true 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 tags: - Subscriptions delete: summary: Remover Assinatura description: Remove uma Assinatura permanentemente. operationId: remover-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\": false,\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\": \"AC5BB46D0F99476C8356D8862FD3141B\",\n \"due_date\": \"2024-05-15\",\n \"status\": \"pending\",\n \"total\": \"R$ 3,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/ac5bb46d-0f99-476c-8356-d8862fd3141b-1882\"\n },\n {\n \"id\": \"279ECC8BA7A74803B38B1883525D9A91\",\n \"due_date\": \"2024-05-20\",\n \"status\": \"canceled\",\n \"total\": \"R$ 114,11\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/279ecc8b-a7a7-4803-b38b-1883525d9a91-e2b6\"\n },\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\": \"E3F19D4FACE34E289CB7EE222C7EA0E2\",\n \"description\": \"Fatura criada\",\n \"notes\": \"Fatura criada com os items: 1x Mudança de Plano: Plano Trismestral = R$ 3,00;\",\n \"subscription_changes\": \"{\\\"features\\\":[{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"expires_at\\\":[\\\"2024-06-15\\\",null],\\\"plan_identifier\\\":[\\\"Trimestral\\\",\\\"trimestral\\\"],\\\"updated_at\\\":[\\\"2024-05-15T16:22:13-03:00\\\",\\\"2024-05-15T16:25:00-03:00\\\"]}\",\n \"created_at\": \"2024-05-15T16:25:02-03:00\"\n },\n {\n \"id\": \"91C701E9718B4BD4A1EC750CAB85649A\",\n \"description\": \"Assinatura Modificada\",\n \"notes\": \"Assinatura Modificada \",\n \"subscription_changes\": \"{\\\"expires_at\\\":[\\\"2024-05-15\\\",\\\"2024-06-15\\\"],\\\"suspended\\\":[true,false],\\\"updated_at\\\":[\\\"2024-05-15T16:14:05-03:00\\\",\\\"2024-05-15T16:22:13-03:00\\\"]}\",\n \"created_at\": \"2024-05-15T16:22:13-03:00\"\n },\n {\n \"id\": \"699FE272A851443F8FD40668157A6406\",\n \"description\": \"Fatura criada\",\n \"notes\": \"Fatura criada com os items: 1x Teste Descrição = R$ 111,11;1x Ativação de Assinatura: Plano Trismestral = R$ 3,00;\",\n \"subscription_changes\": \"{}\",\n \"created_at\": \"2024-05-15T16:14:06-03:00\"\n },\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 \"expires_at\": null,\n \"created_at\": \"2024-05-15T16:13:24-03:00\",\n \"updated_at\": \"2024-05-15T16:25:00-03:00\",\n \"customer_id\": \"D15B9AA0D8964D6EBBC6F9B11A49B442\",\n \"plan_name\": \"Plano Trismestral\",\n \"customer_ref\": \"documentação\",\n \"plan_ref\": \"Plano Trismestral\",\n \"active\": true,\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: false 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: AC5BB46D0F99476C8356D8862FD3141B due_date: type: string example: '2024-05-15' status: type: string example: pending total: type: string example: R$ 3,00 secure_url: type: string example: https://checkout.iugu.com/invoices/ac5bb46d-0f99-476c-8356-d8862fd3141b-1882 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: E3F19D4FACE34E289CB7EE222C7EA0E2 description: type: string example: Fatura criada notes: type: string example: 'Fatura criada com os items: 1x Mudança de Plano: Plano Trismestral = R$ 3,00;' subscription_changes: type: string example: '{"features":[{"Trimestral":{"name":"Trimestre","value":400}},{"Trimestral":{"name":"Trimestre","value":400}}],"expires_at":["2024-06-15",null],"plan_identifier":["Trimestral","trimestral"],"updated_at":["2024-05-15T16:22:13-03:00","2024-05-15T16:25:00-03:00"]}' created_at: type: string example: '2024-05-15T16:25:02-03:00' custom_variables: type: array items: type: object properties: {} expires_at: {} created_at: type: string example: '2024-05-15T16:13:24-03:00' updated_at: type: string example: '2024-05-15T16:25:00-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: true 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 tags: - Subscriptions /subscriptions/{id}/activate: post: summary: Ativar Assinatura description: Ativa uma Assinatura. Uma Fatura poderá ser gerada para o cliente. operationId: ativar-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\": \"DCBE079B93F54D81BE883A60D916E5B8\",\n \"suspended\": true,\n \"plan_identifier\": \"Plano_iugu\",\n \"price_cents\": 60000,\n \"currency\": \"BRL\",\n \"features\": {},\n \"customer_name\": \"iugu\",\n \"customer_email\": \"iugu.iugu@iugu.com\",\n \"cycled_at\": \"2024-08-15\",\n \"credits_min\": 0,\n \"credits_cycle\": null,\n \"payable_with\": \"credit_card\",\n \"ignore_due_email\": null,\n \"max_cycles\": 20,\n \"cycles_count\": 0,\n \"return_url\": null,\n \"recent_invoices\": [\n {\n \"id\": \"07FC440F90E343109DE841EB45F76E68\",\n \"due_date\": \"2024-08-20\",\n \"status\": \"pending\",\n \"total\": \"R$ 600,00\",\n \"secure_url\": \"https://faturas.iugu.com/07fc440f-90e3-4310-9de8-41eb45f76e68-9faf\"\n },\n {\n \"id\": \"E3332B1C42BD4E33B348C974E9B8A610\",\n \"due_date\": \"2023-11-01\",\n \"status\": \"expired\",\n \"total\": \"R$ 600,00\",\n \"secure_url\": \"https://faturas.iugu.com/e3332b1c-42bd-4e33-b348-c974e9b8a610-7911\"\n }\n ],\n \"subitems\": [],\n \"logs\": [\n {\n \"id\": \"6BA95E94BF6247C0979D8050E2C90458\",\n \"description\": \"Fatura criada\",\n \"notes\": \"Fatura criada com os items: 1x Ativação de Assinatura: Plano Anual Assinatura teste desconto = R$ 600,00;\",\n \"subscription_changes\": \"{}\",\n \"created_at\": \"2024-08-15T17:36:56-03:00\"\n },\n {\n \"id\": \"86956EB8CC264A07B413FD57BDA0E1EE\",\n \"description\": \"Assinatura Suspensa\",\n \"notes\": \"Assinatura Suspensa \",\n \"subscription_changes\": \"{\\\"suspended\\\":[false,true],\\\"suspended_at\\\":[null,\\\"2023-11-11\\\"],\\\"updated_at\\\":[\\\"2023-11-01T10:10:05-03:00\\\",\\\"2023-11-11T15:22:06-03:00\\\"]}\",\n \"created_at\": \"2023-11-11T15:22:06-03:00\"\n },\n {\n \"id\": \"39FA29230E7C40F686348F3034CFA38E\",\n \"description\": \"Fatura criada\",\n \"notes\": \"Fatura criada com os items: 1x Ativação de Assinatura: Plano Anual Assinatura teste desconto = R$ 600,00;\",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"desconto_as\\\"],\\\"customer_id\\\":[null,\\\"92E9297399E94CF1BBE456B7D8DEB7BE\\\"],\\\"payable_with\\\":[null,\\\"credit_card\\\"],\\\"price_cents\\\":[0,60000],\\\"interval\\\":[null,12],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"max_cycles\\\":[0,20],\\\"created_at\\\":[null,\\\"2023-11-01T10:10:05-03:00\\\"],\\\"updated_at\\\":[null,\\\"2023-11-01T10:10:05-03:00\\\"],\\\"id\\\":[null,\\\"DCBE079B93F54D81BE883A60D916E5B8\\\"]}\",\n \"created_at\": \"2023-11-01T10:10:05-03:00\"\n },\n {\n \"id\": \"0C1046C98DDE4A58A6AFDF6F532D190E\",\n \"description\": \"Assinatura Criada\",\n \"notes\": \"Assinatura Criada \",\n \"subscription_changes\": \"{\\\"plan_identifier\\\":[null,\\\"desconto_as\\\"],\\\"customer_id\\\":[null,\\\"92E9297399E94CF1BBE456B7D8DEB7BE\\\"],\\\"payable_with\\\":[null,\\\"credit_card\\\"],\\\"price_cents\\\":[0,60000],\\\"interval\\\":[null,12],\\\"interval_type\\\":[null,\\\"months\\\"],\\\"max_cycles\\\":[0,20],\\\"created_at\\\":[null,\\\"2023-11-01T10:10:05-03:00\\\"],\\\"updated_at\\\":[null,\\\"2023-11-01T10:10:05-03:00\\\"],\\\"id\\\":[null,\\\"DCBE079B93F54D81BE883A60D916E5B8\\\"]}\",\n \"created_at\": \"2023-11-01T10:10:05-03:00\"\n }\n ],\n \"custom_variables\": [],\n \"expires_at\": null,\n \"created_at\": \"2023-11-01T10:10:05-03:00\",\n \"updated_at\": \"2024-08-15T17:36:56-03:00\",\n \"customer_id\": \"92E9297399E94CF1BBE456B7D8DEB7BE\",\n \"plan_name\": \"Plano Anual Iugu\",\n \"customer_ref\": \"iugu\",\n \"plan_ref\": \"Plano Anual Iugu\",\n \"active\": false,\n \"two_step\": true,\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: DCBE079B93F54D81BE883A60D916E5B8 suspended: type: boolean example: true default: true plan_identifier: type: string example: Plano_iugu price_cents: type: integer example: 60000 default: 0 currency: type: string example: BRL features: type: object properties: {} customer_name: type: string example: iugu customer_email: type: string example: iugu.iugu@iugu.com cycled_at: type: string example: '2024-08-15' credits_min: type: integer example: 0 default: 0 credits_cycle: {} payable_with: type: string example: credit_card ignore_due_email: {} max_cycles: type: integer example: 20 default: 0 cycles_count: type: integer example: 0 default: 0 return_url: {} recent_invoices: type: array items: type: object properties: id: type: string example: 07FC440F90E343109DE841EB45F76E68 due_date: type: string example: '2024-08-20' status: type: string example: pending total: type: string example: R$ 600,00 secure_url: type: string example: https://faturas.iugu.com/07fc440f-90e3-4310-9de8-41eb45f76e68-9faf subitems: type: array items: type: object properties: {} logs: type: array items: type: object properties: id: type: string example: 6BA95E94BF6247C0979D8050E2C90458 description: type: string example: Fatura criada notes: type: string example: 'Fatura criada com os items: 1x Ativação de Assinatura: Plano Anual Assinatura teste desconto = R$ 600,00;' subscription_changes: type: string example: '{}' created_at: type: string example: '2024-08-15T17:36:56-03:00' custom_variables: type: array items: type: object properties: {} expires_at: {} created_at: type: string example: '2023-11-01T10:10:05-03:00' updated_at: type: string example: '2024-08-15T17:36:56-03:00' customer_id: type: string example: 92E9297399E94CF1BBE456B7D8DEB7BE plan_name: type: string example: Plano Anual Iugu customer_ref: type: string example: iugu plan_ref: type: string example: Plano Anual Iugu active: type: boolean example: false default: true two_step: type: boolean example: true 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 tags: - Subscriptions /subscriptions/{id}/change_plan/{plan_identifier}: post: summary: Alterar Plano da Assinatura description: Altera o Plano de uma Assinatura. Uma Fatura cobrando a mudança de plano poderá ser gerada para o cliente. operationId: alterar-o-plano parameters: - name: id in: path description: ID da Assinatura schema: type: string required: true - name: plan_identifier in: path description: Identificador do Plano schema: type: string required: true requestBody: content: application/json: schema: type: object properties: payable_with: type: array description: Métodos de pagamento disponíveis para esta assinatura (bank_slip, credit_card, pix ou all). Aceita apenas os métodos disponíveis do plano especificado em plan_identifier. items: type: string responses: '200': description: '200' content: application/json: examples: Result: value: "{\n \"id\": \"13D9CB0C2DA4427A8D0DAA76F10F4248\",\n \"suspended\": false,\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\": \"AC5BB46D0F99476C8356D8862FD3141B\",\n \"due_date\": \"2024-05-15\",\n \"status\": \"pending\",\n \"total\": \"R$ 3,00\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/ac5bb46d-0f99-476c-8356-d8862fd3141b-1882\"\n },\n {\n \"id\": \"279ECC8BA7A74803B38B1883525D9A91\",\n \"due_date\": \"2024-05-20\",\n \"status\": \"canceled\",\n \"total\": \"R$ 114,11\",\n \"secure_url\": \"https://checkout.iugu.com/invoices/279ecc8b-a7a7-4803-b38b-1883525d9a91-e2b6\"\n },\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\": \"E3F19D4FACE34E289CB7EE222C7EA0E2\",\n \"description\": \"Fatura criada\",\n \"notes\": \"Fatura criada com os items: 1x Mudança de Plano: Plano Trismestral = R$ 3,00;\",\n \"subscription_changes\": \"{\\\"features\\\":[{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}},{\\\"Trimestral\\\":{\\\"name\\\":\\\"Trimestre\\\",\\\"value\\\":400}}],\\\"expires_at\\\":[\\\"2024-06-15\\\",null],\\\"plan_identifier\\\":[\\\"Trimestral\\\",\\\"trimestral\\\"],\\\"updated_at\\\":[\\\"2024-05-15T16:22:13-03:00\\\",\\\"2024-05-15T16:25:00-03:00\\\"]}\",\n \"created_at\": \"2024-05-15T16:25:02-03:00\"\n },\n {\n \"id\": \"91C701E9718B4BD4A1EC750CAB85649A\",\n \"description\": \"Assinatura Modificada\",\n \"notes\": \"Assinatura Modificada \",\n \"subscription_changes\": \"{\\\"expires_at\\\":[\\\"2024-05-15\\\",\\\"2024-06-15\\\"],\\\"suspended\\\":[true,false],\\\"updated_at\\\":[\\\"2024-05-15T16:14:05-03:00\\\",\\\"2024-05-15T16:22:13-03:00\\\"]}\",\n \"created_at\": \"2024-05-15T16:22:13-03:00\"\n },\n {\n \"id\": \"699FE272A851443F8FD40668157A6406\",\n \"description\": \"Fatura criada\",\n \"notes\": \"Fatura criada com os items: 1x Teste Descrição = R$ 111,11;1x Ativação de Assinatura: Plano Trismestral = R$ 3,00;\",\n \"subscription_changes\": \"{}\",\n \"created_at\": \"2024-05-15T16:14:06-03:00\"\n },\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\": null,\n \"created_at\": \"2024-05-15T16:13:24-03:00\",\n \"updated_at\": \"2024-05-15T16:25:00-03:00\",\n \"customer_id\": \"D15B9AA0D8964D6EBBC6F9B11A49B442\",\n \"plan_name\": \"Plano Trismestral\",\n \"customer_ref\": \"documentação\",\n \"plan_ref\": \"Plano Trismestral\",\n \"active\": true,\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: false 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: AC5BB46D0F99476C8356D8862FD3141B due_date: type: string example: '2024-05-15' status: type: string example: pending total: type: string example: R$ 3,00 secure_url: type: string example: https://checkout.iugu.com/invoices/ac5bb46d-0f99-476c-8356-d8862fd3141b-1882 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: E3F19D4FACE34E289CB7EE222C7EA0E2 description: type: string example: Fatura criada notes: type: string example: 'Fatura criada com os items: 1x Mudança de Plano: Plano Trismestral = R$ 3,00;' subscription_changes: type: string example: '{"features":[{"Trimestral":{"name":"Trimestre","value":400}},{"Trimestral":{"name":"Trimestre","value":400}}],"expires_at":["2024-06-15",null],"plan_identifier":["Trimestral","trimestral"],"updated_at":["2024-05-15T16:22:13-03:00","2024-05-15T16:25:00-03:00"]}' created_at: type: string example: '2024-05-15T16:25:02-03:00' custom_variables: type: array items: type: object properties: name: type: string example: Teste name value: {} expires_at: {} created_at: type: string example: '2024-05-15T16:13:24-03:00' updated_at: type: string example: '2024-05-15T16:25:00-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: true 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 tags: - Subscriptions /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 tags: - Subscriptions components: securitySchemes: sec0: type: apiKey in: query name: api_token x-readme-fauxas: true x-provenance: method: searched source: https://dev.iugu.com/reference harvested: '2026-10-14' tool: harvest-readme-openapi.py note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored. assembled_from: - https://dev.iugu.com/reference/alterar-assinatura.md - https://dev.iugu.com/reference/alterar-o-plano.md - https://dev.iugu.com/reference/ativar-assinatura.md - https://dev.iugu.com/reference/buscar-assinatura.md - https://dev.iugu.com/reference/criar-assinatura.md - https://dev.iugu.com/reference/listar-assinaturas.md - https://dev.iugu.com/reference/remover-assinatura.md - https://dev.iugu.com/reference/suspender-assinatura.md merge: pages: 8 deduped: 7 conflicts_kept_first: 0