---
title: "Editar afiliação da assinatura no gateway"
method: PATCH
path: "/subscriptions/{subscription_id}/gateway-affiliation-id"
---

# Editar afiliação da assinatura no gateway

`PATCH /subscriptions/{subscription_id}/gateway-affiliation-id`

## Path parameters

- `subscription_id` string, required

## Request body

- object
  - `gateway_affiliation_id` string, required — Código da afiliação no gateway.

## Response `200`

200

- object
  - `id` string
  - `code` string
  - `start_at` string
  - `interval` string
  - `interval_count` integer
  - `billing_type` string
  - `gateway_affiliation_id` string
  - `boleto_due_days` integer
  - `minimum_price` integer
  - `current_cycle` object
    - `id` string
    - `start_at` string
    - `end_at` string
    - `billing_at` string
  - `next_billing_at` string
  - `payment_method` string
  - `currency` string
  - `statement_descriptor` string
  - `installments` integer
  - `status` string
  - `created_at` string
  - `updated_at` string
  - `customer` object
    - `id` string
    - `name` string
    - `email` string
    - `delinquent` boolean
    - `created_at` string
    - `updated_at` string
  - `credit_card` object
    - `id` string
    - `last_four_digits` string
    - `brand` string
    - `holder_name` string
    - `exp_month` integer
    - `exp_year` integer
    - `status` string
    - `created_at` string
    - `updated_at` string
    - `billing_address` object
      - `line_1` string
      - `zip_code` string
      - `city` string
      - `state` string
      - `country` string
  - `plan` object
    - `id` string
    - `name` string
    - `description` string
    - `url` string
    - `statement_descriptor` string
    - `interval` string
    - `interval_count` integer
    - `billing_type` string
    - `payment_methods` string[]
    - `installments` integer[]
    - `status` string
    - `currency` string
    - `created_at` string
    - `updated_at` string
  - `items` object[]
    - `id` string
    - `description` string
    - `quantity` integer
    - `status` string
    - `created_at` string
    - `updated_at` string
    - `pricing_scheme` object
      - `price` integer
      - `scheme_type` string

## Other responses

- `422` — 422

---

[API](https://skmtc.net/mundipagg/apis/mundipagg-api.md) · [All operations](https://skmtc.net/mundipagg/apis/mundipagg-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mundipagg/mundipagg-api/versions/1ddb9f03a82d/schema)
