Ir al contenido

Listar Charges por fecha

Obtiene el listado de cargos del comercio asociados a la fecha indicada. Permite consultar los cargos de distintas suscripciones para facilitar su seguimiento y conciliación.

GET /v3/charges/merchant/{charge_date}
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í Clave de la API proporcionada en back-office virtualPOS.
Signature string Sí La firma de los parámetros efectuada con su secret_key
Nombre Tipo Requerido Descripción
charge_date string Sí Fecha de los cargos que se desea consultar, en formato YYYY-MM-DD
Ventana de terminal
curl -X GET 'https://api.virtualpos-sandbox.com/v3/charges/merchant/{charge_date}' \
-H 'Content-Type: application/json' \
-H "Authorization: $API_KEY" \
-H "Signature: $SIGNATURE"
{
"status": "OK",
"code": 200,
"pagination": {
"limit": 100,
"page": 1,
"pages": 1,
"total": 3
},
"charge_date": "2023-03-31",
"charges": [
{
"id": "cid_813366426fa477ff666.10011364",
"charge_date": "2023-03-31",
"amount": 99,
"status": "cancelado",
"description": "Cargo 1 de 2",
"created_at": "2023-03-31 12:20:39",
"internal_code": "",
"payment": {
"client": {
"email": "John Doe@virtualpos.cl",
"first_name": "John",
"last_name": "Doe",
"social_id": "13742701-7",
"phone": "922222222"
},
"commerce": {
"commerce_id": "77474114-7",
"name": "Virtualpos"
},
"order": {
"uuid": "110776426fa5e8e3",
"status": "rechazado",
"created_at": "2023-03-31 12:21:02",
"card_number": null,
"authorized_at": null,
"auth_code": null,
"installment_amount": null,
"installment_number": null,
"payment_type_code": null,
"amount": "99.00",
"deposits": []
}
},
"suscription_uuid": "fdc7a1f217"
},
{
"id": "cid_813316426f2a838c0a5.53085116",
"charge_date": "2023-03-31",
"amount": 99,
"status": "cancelado",
"description": "Cargo 1 de 2",
"created_at": "2023-03-31 11:48:08",
"internal_code": "",
"payment": {
"client": {
"email": "John@virtualpos.cl",
"first_name": "John",
"last_name": "Doe",
"social_id": "11111111-0",
"phone": null
},
"commerce": {
"commerce_id": "77112233-2",
"name": "Virtualpos"
},
"order": {
"uuid": "110776426f2df698",
"status": "rechazado",
"created_at": "2023-03-31 11:49:03",
"card_number": null,
"authorized_at": null,
"auth_code": null,
"installment_amount": null,
"installment_number": null,
"payment_type_code": null,
"amount": "99.00",
"deposits": []
}
},
"suscription_uuid": "9bc83011c8"
},
{
"id": "cid_813286426ee632affe1.95505194",
"charge_date": "2023-03-31",
"amount": 88,
"status": "cancelado",
"description": "Cargo 1 de 12",
"created_at": "2023-03-31 11:29:55",
"internal_code": "",
"payment": {
"client": {
"email": "John@virtualpos.cl",
"first_name": "John",
"last_name": "Doe",
"social_id": "111111111-1",
"phone": "92222222"
},
"commerce": {
"commerce_id": "711111111-2",
"name": "Virtualpos"
},
"order": {
"uuid": "110776426ee6b903",
"status": "rechazado",
"created_at": "2023-03-31 11:30:03",
"card_number": null,
"authorized_at": null,
"auth_code": null,
"installment_amount": null,
"installment_number": null,
"payment_type_code": null,
"amount": "88.00",
"deposits": []
}
},
"suscription_uuid": "1fb970d1e2"
}
]
}
{}