PlanPrice
{warning} Parte de la funcionalidad de planes paralizada (ver Plan). No usar.
Precio de un Plan para un período de facturación (never, monthly, yearly).
Estructura de Datos
| Atributo |
Tipo |
Descripción |
id |
int |
|
ref_price_e2 |
int |
Precio de lista / tachado, en céntimos (× 100) |
price_e2 |
int |
Precio real a cobrar, en céntimos (× 100) |
billing_period |
string |
Período de facturación: never, monthly o yearly |
created_at |
datetime\|null |
|
updated_at |
datetime\|null |
|
plan_id |
int |
{@link Plan} al que pertenece el precio |
allLogs |
ApiLog> |
|
logs |
ApiLog> |
|
plan |
Plan |
{@link Plan} al que pertenece el precio |
{
"id": 1,
"ref_price_e2": 0,
"price_e2": 0,
"billing_period": "never",
"created_at": "2020-04-17 01:07:50",
"updated_at": "2020-04-17 01:07:50",
"plan_id": 1
}
Endpoints
Insertar PlanPrice
Insertar PlanPrice de Plan
| Método |
URI |
Cabeceras |
| POST |
/plans/{planId}/plan-prices |
Authorization |
{
"ref_price_e2": "required|integer|min:0",
"price_e2": "required|integer|min:0",
"billing_period": "required|string|in:never,monthly,yearly"
}
Listar PlanPrice
Listar PlanPrice de Plan
{info} Soporta:
Paginación
Filters
Carga dinámica
| Método |
URI |
Cabeceras |
| GET |
/plans/{planId}/plan-prices |
N/A |
Mostrar PlanPrice
{info} Soporta:
Carga dinámica
| Método |
URI |
Cabeceras |
| GET |
/plan-prices/{planPriceId} |
N/A |
Actualizar PlanPrice
| Método |
URI |
Cabeceras |
| PATCH |
/plan-prices/{planPriceId} |
Authorization |
{
"ref_price_e2": "integer|min:0",
"price_e2": "integer|min:0",
"billing_period": "string|in:never,monthly,yearly"
}
Eliminar PlanPrice
| Método |
URI |
Cabeceras |
| DELETE |
/plan-prices/{planPriceId} |
Authorization |
Relaciones