Editar preço mínimo da assinatura
Changed onCom 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 URLhttps://api.pagar.me/core/v5
- URLhttps://api.pagar.me/core/v5/subscriptions/{subscription_id}/minimum_price
- AuthHTTP basic
Path parameters
subscription_idstring required
Código da assinatura.<br>Formato: sub_XXXXXXXXXXXXXXXX.
Request body
Response
200
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
- info
endpoint added
- info