Editar preço mínimo da assinatura

Changed on

Com o verbo HTTP PATCH, através do identificador da assinatura (subscription_id) é possível atualizar o minimum price da assinatura.

patch/subscriptions/{subscription_id}/minimum_price

Request

  • Base URL
    https://api.pagar.me/core/v5
  • URL
    https://api.pagar.me/core/v5/subscriptions/{subscription_id}/minimum_price
  • Auth
    HTTP basic

Path parameters

subscription_idstring required

Código da assinatura.<br>Formato: sub_XXXXXXXXXXXXXXXX.

Request body

minimum_priceinteger

Valor mínimo da assinatura em centavos.

Response

200

idstring
codestring
start_atstring
intervalstring
interval_countinteger
billing_typestring
next_billing_atstring
payment_methodstring
currencystring
installmentsinteger
minimum_priceinteger
statusstring
boleto_due_daysinteger
created_atstring
updated_atstring

Example response

{
  "id": "sub_JrvX5MpS6Niq9wzL",
  "code": "6NXQF71FJD",
  "start_at": "2022-03-10T00:00:00Z",
  "interval": "month",
  "interval_count": 1,
  "billing_type": "prepaid",
  "current_cycle": {
    "id": "cycle_g6ek64cdmtE6JqVj",
    "start_at": "2022-03-10T00:00:00Z",
    "end_at": "2022-04-09T23:59:59Z",
    "billing_at": "2022-03-10T00:00:00Z",
    "status": "billed",
    "cycle": 1
  },
  "next_billing_at": "2022-04-10T00:00:00Z",
  "payment_method": "boleto",
  "currency": "BRL",
  "installments": 1,
  "minimum_price": 100,
  "status": "active",
  "boleto_due_days": 20,
  "created_at": "2022-03-10T19:42:17Z",
  "updated_at": "2022-03-10T19:42:56Z",
  "customer": {
    "id": "cus_EbKg5vdUK9hJ0MVX",
    "name": "Tony Stark",
    "email": "98724a80-19ef-4208-bee4-739c138eb85f@avengers.com",
    "created_at": "2022-03-10T19:42:17Z",
    "updated_at": "2022-03-10T19:42:17Z"
  },
  "items": [
    {
      "id": "si_ZO5pLyltRf80ml6B",
      "name": "Premium",
      "description": "Sem anuncios",
      "quantity": 1,
      "status": "active",
      "created_at": "2022-03-10T19:42:17Z",
      "updated_at": "2022-03-10T19:42:17Z",
      "pricing_scheme": {
        "price": 1490,
        "scheme_type": "unit"
      }
    }
  ]
}

Changes