Ir al contenido

Reactivar suscription

GET /v3/suscription/{suscription_id}/reactivate
Ambiente URL base API Portal de comercio
Sandbox https://api.virtualpos-sandbox.com comercios.virtualpos-sandbox.com
Producción https://api.virtualpos.cl comercios.virtualpos.cl
Nombre Tipo Requerido Descripción
Authorization string Sí API KEY del comercio
Signature string Sí Firma del mensaje
Ventana de terminal
curl -X GET 'https://api.virtualpos-sandbox.com/v3/suscription/{suscription_id}/reactivate' \
-H 'Content-Type: application/json' \
-H "Authorization: $API_KEY" \
-H "Signature: $SIGNATURE"
{
"status": "OK",
"code": 200,
"suscription": {
"status": "ACTIVA",
"id": "3a4d77f2e4",
"plan_id": "fd53ead26f78b56113312609b668411b",
"plan_name": "Plan mensual",
"suscription_date": "2021-09-08 11:20:31",
"payment_method": {
"bin": "405188",
"issuer": "Banco de Chile",
"last4CardDigit": "6623",
"brand": "VISA",
"expiration_date": "12/27",
"card_on_file": "F"
},
"currency": "CLP",
"amount": 9990,
"renewal": "F",
"channel": "WEB",
"service_id": "12312312-3",
"charge_program": [
{
"id": "cid_2566645567e51ef2b7.76832273",
"charge_date": "2023-05-01",
"amount": "6990",
"status": "pagado",
"description": "Cargo 1 de 3"
},
{
"id": "cid_2566645567e51ef2b7.76832274",
"charge_date": "2023-06-01",
"amount": "6990",
"status": "pendiente",
"description": "Cargo 2 de 3"
},
{
"id": "cid_2566645567e51ef2b7.76832275",
"charge_date": "2023-07-01",
"amount": "6990",
"status": "pendiente",
"description": "Cargo 3 de 3"
}
],
"client": {
"email": "user@example.com",
"first_name": "John",
"last_name": "Doe",
"social_id": "12345678-9",
"phone": "56961934502",
"gender": {
"id": 1,
"name": "Masculino"
},
"birth_date": "1992-10-20"
}
}
}
{}