{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asaas/json-schema/asaas-payment-link-get-response-dto-schema.json",
  "title": "PaymentLinkGetResponseDTO",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asaas-link-de-pagamentos-api-openapi.yml#/components/schemas/PaymentLinkGetResponseDTO",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Identificador único do seu link de pagamentos no Asaas",
      "deprecated": false
    },
    "name": {
      "type": "string",
      "description": "Nome do link de pagamentos",
      "deprecated": false
    },
    "value": {
      "type": "number",
      "description": "Valor do link de pagamentos, caso não informado o pagador poderá informar o quanto deseja pagar",
      "deprecated": false
    },
    "active": {
      "type": "boolean",
      "description": "Se o link de pagamentos esta ativo",
      "deprecated": false
    },
    "chargeType": {
      "$ref": "#/$defs/PaymentLinkGetResponseChargeType"
    },
    "url": {
      "type": "string",
      "description": "Link de acesso do link de pagamentos",
      "deprecated": false
    },
    "billingType": {
      "$ref": "#/$defs/PaymentLinkGetResponseBillingType"
    },
    "subscriptionCycle": {
      "$ref": "#/$defs/PaymentLinkGetResponseCycle"
    },
    "description": {
      "type": "string",
      "description": "Descrição do link de pagamentos",
      "deprecated": false
    },
    "endDate": {
      "type": "string",
      "description": "Data de encerramento",
      "format": "date",
      "deprecated": false
    },
    "deleted": {
      "type": "boolean",
      "description": "Indica se o link de pagamento foi removido",
      "deprecated": false
    },
    "viewCount": {
      "type": "integer",
      "description": "A quantidade de visualizações do seu link de pagamentos",
      "format": "int32",
      "deprecated": false
    },
    "maxInstallmentCount": {
      "type": "integer",
      "description": "Quantidade máxima de parcelas que seu cliente poderá parcelar o valor do link de pagamentos, caso seja Parcelamento.",
      "format": "int32",
      "deprecated": false
    },
    "dueDateLimitDays": {
      "type": "integer",
      "description": "Quantidade de dias úteis que o seu cliente poderá pagar após o boleto ser gerado (Para forma de pagamento como Boleto)",
      "format": "int32",
      "deprecated": false
    },
    "notificationEnabled": {
      "type": "boolean",
      "description": "Define se os clientes cadastrados pelo link de pagamentos terão as notificações habilitadas",
      "deprecated": false
    },
    "isAddressRequired": {
      "type": "boolean",
      "description": "Define se o preenchimento de endereço será obrigatório nas cobranças.",
      "deprecated": false
    },
    "externalReference": {
      "type": "string",
      "description": "Campo livre para busca",
      "deprecated": false
    }
  },
  "$defs": {
    "PaymentLinkGetResponseBillingType": {
      "type": "string",
      "description": "Forma de pagamento permitida",
      "deprecated": false,
      "enum": [
        "UNDEFINED",
        "BOLETO",
        "CREDIT_CARD",
        "PIX"
      ]
    },
    "PaymentLinkGetResponseChargeType": {
      "type": "string",
      "description": "Forma de cobrança",
      "deprecated": false,
      "enum": [
        "DETACHED",
        "RECURRENT",
        "INSTALLMENT"
      ]
    },
    "PaymentLinkGetResponseCycle": {
      "type": "string",
      "description": "Periodicidade da cobrança, caso o chargeType seja RECURRENT",
      "deprecated": false,
      "enum": [
        "WEEKLY",
        "BIWEEKLY",
        "MONTHLY",
        "BIMONTHLY",
        "QUARTERLY",
        "SEMIANNUALLY",
        "YEARLY"
      ]
    }
  }
}