# Obtener la lista de pagos realizados con filtros.
# GET /payment
# Parametros
Fecha desde:
date_from string (query)
Fecha hasta:
date_to string (query)
Filtrar pagos por tipo de tarjeta:
card_type array[string] (query)
Available values : VISA, MASTERCARD, AMEX, NARANJA, CABAL, SHOPPING, ARGENCARD, CENCOSUD
Estado:
status array[string] (query)
Available values : approved, error, refund
Filtrar por ID de suscipción:
subscription_id integer (query)
Filtrar por ID de suscriptor:
subscriber_id - Filtrar por ID de suscriptor
resource_id integer (query)
Filtrar por ID de paquete
resource_id integer (query)
Filtrar por código de paquete
resource_code string (query)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Obtener los pagos por ID
# GET /payments/{id}
no parameters
curl -X GET "https://suscripcion.expreso.ec/api/v1/config" -H "accept: application/json" -H "X-CSRF-TOKEN: "
1
2
3
4
2
3
4
# Response body
{
"data": {
"id": 10,
"status": "Error",
"external_payment_id": null,
"transaction_id": null,
"reference_code": "SD_EXPRESO_sc7CoD_7",
"gateway": "PAYU",
"currency": "ARS",
"amount": 4.99,
"created_at": "2020-05-05T12:47:36-03:00",
"updated_at": "2020-05-05T12:47:36-03:00",
"description": "TRANSACCIÓN RECHAZADA",
"subscription": {
"id": 8,
"status": "Activa",
"is_active": true,
"family_codes": [],
"child_subscription": false,
"parent_subscription_id": null,
"has_benefit_card": true,
"on_promotion": false,
"cancellation_date": null,
"created_at": "2020-05-05T12:48:36-03:00",
"updated_at": "2020-05-05T12:48:36-03:00",
"subscriber": {
"id": 7,
"user_id": 143,
"first_name": "Jill",
"last_name": "Baker",
"email": "test@hotmail.com",
"phone": "1111111",
"identification_type": "Pasaporte",
"identification_number": "111111",
"created_at": "2020-05-05T12:47:16-03:00",
"updated_at": "2020-05-05T12:47:16-03:00",
"addresses": [
{
"country": "EC",
"state": "Pichincha",
"city": "Quito",
"street": "Av Eloy Alfaro y Jose Puerta",
"number": "311112",
"floor": null,
"apt": null,
"postal_code": null,
"details": "Edificio",
"type": "shipping"
}
]
},
"resource": {
"id": 1,
"code": "SDPEXPRESO",
"name": "Suscripción Digital Premium",
"price": 4.99,
"promotional_price": 4.99,
"promotional_months": 0,
"active_from": "2020-03-20T00:00:00-03:00",
"active_to": "2100-12-31T00:00:00-03:00",
"has_benefit_card": true,
"family_codes": 0,
"visible": true,
"block_plan": false,
"color": "#8e44ad",
"custom_description": "(*) Contrato mínimo de un año. Pago mensual recurrente. Renovable automáticamente al vencimiento."
},
"card": {
"holder": "Jillianne Boult",
"identification_type": "Pasaporte",
"identification_number": "LK11212",
"type": "MASTERCARD",
"number": "5999999999999",
"expiration_date": "2030/04",
"is_masked": false
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Response headers
cache-control: no-cache, private
connection: keep-alive
content-type: application/json
date: Thu, 07 May 2020 18:21:42 GMT
server: nginx
strict-transport-security: max-age=31536000; includeSubDomains
transfer-encoding: chunked
x-powered-by: PHP/7.3.13
x-ratelimit-limit: 60
x-ratelimit-remaining: 56
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10