En los catálogos de Sync (https://www.paybook.com/sync/docs/API#es&endpoints.catalogues) podrás encontrar uno para ver los diferentes tipos de Cuenta que soporta el API. Es decir, todas las Cuentas y Transacciones son clasificadas con algún tipo de Cuenta definido en el catálogo:
[
{
"id_account_type": "520d3aa93b8e778e0d000002",
"name": "Credit Card"
},
{
"id_account_type": "520d3aa93b8e778e0d000000",
"name": "Checking"
},
{
"id_account_type": "520d3aa93b8e778e0d000001",
"name": "Savings"
},
{
"id_account_type": "520d3aa93b8e778e0d000004",
"name": "Investment"
},
{
"id_account_type": "546d4904df527d1844a2e18d",
"name": "IRS"
},
{
"id_account_type": "546d4904df527d1844a2e18e",
"name": "Utility"
},
{
"id_account_type": "589e638e056f290ac1280941",
"name": "Rewards"
},
{
"id_account_type": "5286609bc6901663398b4567",
"name": "Digital Wallet"
},
{
"id_account_type": "5286609bc6901663398b4568",
"name": "Other"
},
{
"id_account_type": "5b21a816056f291e260c0730",
"name": "Blockchain"
}
]
Cada Transacción tiene el identificador de la credencial (id_credential
) a la que pertenece, de la cuenta (id_account
) y del tipo de la Cuenta (id_account_type
), a continuación un ejemplo de una Transacción de Cheques:
{
"id_transaction": "574dee2d2342836c7a9063f4",
"id_account": "573734952342833a178b5ec3",
"id_account_type": "520d3aa93b8e778e0d000000",
"id_credential": "5b4a37390b212a51048b456e",
"id_currency": "523a25953b8e77910e8b456c",
"id_external": "AAA010101AAA",
"id_site": "56cf5728784806f72b8b4569",
"id_site_organization": "56cf4ff5784806152c8b4567",
"id_site_organization_type": "56cf4f5b784806cf028b4568",
"id_user": "5b4a357e0b212a45048b456c",
"is_deleted": 0,
"is_disable": 0,
"is_pending": 0,
"description": "ACME Checking Transaction 5",
"amount": 15,
"currency": "MXN",
"attachments": [],
"extra": null,
"reference": null,
"keywords": null,
"dt_transaction": 1398920400,
"dt_refresh": 1474330916,
"dt_disable": null,
"dt_deleted": null
}