Saltar al contenido principal

/plan/{plan_id}

Eliminación de un plan

(DELETE /plan/ <plan_id>)

Elimina el plan imposibilitando su reanudación, aún así se podrán seguir consultando las operaciones asociadas a este.

Cuerpo de la petición (body)

  • plan_id(string, required): Identificador del plan a eliminar 5976f935c928580001cc5dd7

Ejemplo

{
"key": "{{api-key}}",
"resource": "{{resource-key}}",
"nonce": "1234567890",
"mode": "sha256",
"payload": {
"plan_id": "5976f935c928580001cc5dd7"
}
}

Respuesta - success

{
"type": "success",
"detail": "plan_deleted",
"description": "Plan was deleted successfully",
"request_id": null,
"payload": {
"customer": {
"taxid": "1254447895Q",
"name": "Jhon Doe Sullivan",
"reference": "client-123465"
},
"plan_id": "59841504cc3ac117c53cf4d8",
"name": "12654-plystation-subscription",
"external_id": "external-refrernce-123456",
"method": {
"type": "card",
"token": "card-token-123456"
},
"fees": 12,
"expired_at": null,
"resource": "resource-example-key",
"description": "Annual playstation subscription",
"currency": "EUR",
"deleted_at": "2016-08-04",
"custom_data": {
"dummy": "foo"
},
"periodicity": "1m",
"start_date": "2016-08-04",
"amount": 100
},
"uuid": "42f0cc5d-2c67-4cc4-b393-aa0434e438bd",
"code": "0"
}