---
title: "Obter desconto"
method: GET
path: "/subscriptions/{subscription_id}/discounts/{discount_id}"
---

# Obter desconto

`GET /subscriptions/{subscription_id}/discounts/{discount_id}`

## Request

- Base URL: `https://api.mundipagg.com/core/v1`
- URL: `https://api.mundipagg.com/core/v1/subscriptions/{subscription_id}/discounts/{discount_id}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/mundipagg/apis/mundipagg-api/docs/subscriptions/:subscription_id/discounts/:discount_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Através dos identificadores da assinatura (`subscription_id`) e do desconto associado (`discount_id`) é possível recuperar as informações do desconto.

## Path parameters

- `subscription_id` string, required
- `discount_id` string, required

## Response `200`

200

- object
  - `id` string
  - `value` integer
  - `discount_type` string
  - `status` string
  - `created_at` string
  - `subscription` object
    - `id` string
    - `code` string
    - `start_at` string
    - `interval` string
    - `interval_count` integer
    - `billing_type` string
    - `next_billing_at` string
    - `payment_method` string
    - `currency` string
    - `statement_descriptor` string
    - `installments` integer
    - `status` string
    - `created_at` string
    - `updated_at` string

## Other responses

- `404`: 404

---

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