---
title: "Editar regras do Split"
method: PATCH
path: "/subscriptions/{subscription_id}/split"
---

# Editar regras do Split

`PATCH /subscriptions/{subscription_id}/split`

## Request

- Base URL: `https://api.pagar.me/core/v5`
- URL: `https://api.pagar.me/core/v5/subscriptions/{subscription_id}/split`
- Auth: HTTP basic

Com o verbo HTTP PATCH, através do identificador da assinatura (subscription_id) é possível ativar, desativar ou alterar as regras do split na recorrência.

Para realizar a edição tem que ser enviado pelo menos um dos campos, `enabled` ou `rules`, ambos campos são opcionais e independentes.

## Path parameters

- `subscription_id` string, required

## Request body

- object
  - `enabled` boolean: Ativa ou desativa as regras de split na assinatura. Pode ser `true` ou `False`
  - `rules` object[]
    - `amount` integer: Valor destinado ao recebedor.
    - `recipient_id` string: Código do recebedor. Formato: rp_XXXXXXXXXXXXXXXX.
    - `type` string: Tipo de divisão. Os valores possíveis são flat ou percentage.
    - `options` object: Informações da responsabilidade do recebedor na transação.
      - `charge_processing_fee` boolean: Indica se o recebedor vinculado à regra será cobrado pelas taxas da transação
      - `charge_remainder_fee` boolean: Indica se o recebedor vinculado à regra irá receber o restante dos recebíveis após uma divisão
      - `liable` boolean: Indica se o recebedor é responsável pela transação em caso de chargeback.

## Response `200`

200

- object
  - `id` string
  - `code` string
  - `start_at` string
  - `interval` string
  - `interval_count` integer
  - `billing_type` string
  - `current_cycle` object
    - `id` string
    - `start_at` string
    - `end_at` string
    - `billing_at` string
    - `status` string
    - `cycle` integer
  - `next_billing_at` string
  - `payment_method` string
  - `currency` string
  - `installments` integer
  - `status` string
  - `created_at` string
  - `updated_at` string
  - `customer` object
    - `id` string
    - `name` string
    - `email` string
    - `document` string
    - `type` string
    - `delinquent` boolean
    - `created_at` string
    - `updated_at` string
    - `phones` object
      - `home_phone` object
        - `country_code` string
        - `number` string
        - `area_code` string
  - `card` object
    - `id` string
    - `first_six_digits` string
    - `last_four_digits` string
    - `brand` string
    - `holder_name` string
    - `exp_month` integer
    - `exp_year` integer
    - `status` string
    - `type` string
    - `created_at` string
    - `updated_at` string
    - `billing_address` object
      - `street` string
      - `number` string
      - `zip_code` string
      - `neighborhood` string
      - `city` string
      - `state` string
      - `country` string
      - `line_1` string
  - `items` object[]
    - `id` string
    - `name` string
    - `description` string
    - `quantity` integer
    - `status` string
    - `created_at` string
    - `updated_at` string
    - `pricing_scheme` object
      - `price` integer
      - `scheme_type` string
  - `split` object
    - `enabled` boolean
    - `rules` object[]
      - `id` string
      - `type` string
      - `amount` integer
      - `recipient` object
        - `id` string
        - `name` string
        - `email` string
        - `document` string
        - `description` string
        - `type` string
        - `payment_mode` string
        - `status` string
        - `created_at` string
        - `updated_at` string
      - `options` object
        - `liable` boolean
        - `charge_processing_fee` boolean
        - `charge_remainder_fee` boolean
  - `metadata` object
    - `id` string

## Other responses

- `400`: 400

## Changes

- **2026-11-03** `ef323290c0ff`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pagar/apis/pagarme-api/changes/subscriptions/:subscription_id/split/patch.md)

---

[API](https://skmtc.dev/pagar/apis/pagarme-api.md) - [All operations](https://skmtc.dev/pagar/apis/pagarme-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pagar/apis/pagarme-api/revisions/ef323290c0ff?raw)
