PULL API use Functions
Este API está diseñado para que pueda descargarse las ordenes disponibles para su pago, estas ordenes se van acumulando a lo largo del dia incluso del fin de semana y van contenidas en LOTES, un lote puede contener una o varias transacciones. Debe descargar uno por uno los lotes e indicar al API que ha procesado cada lote en su sstema.
This API is designed so that you can download the available orders for payment, these orders are accumulated throughout the day even the weekend and are contained in LOTS, a lot can contain one or several transactions. You must download the batches one by one and tell the API that you have processed each batch in your system.
-
CoGetAutorization
Obtenga un token usando el usuario y contraseña del API
Get a token using the API username and password
-
GetAvaliableFiles
Obtenga una lista de LOTES disponibles para su descarga
Get a list of LOTS available for download
-
GetFile
De la lista de LOTES listados en el método GetAvaliableFiles seleccione un fichero y obtenga la lista de transacciones contenidas en el LOTE, descarguelas y procéselas en su sistema.
From the list of LOTS listed in the GetAvaliableFiles method select a file and obtain the list of transactions contained in the LOT, download them and process them in your system.
-
CommitFile
Después de carga las transacciones contenidas en un lote en su sistema debe notificar al API que lo ha procesado para que ya no esté disponible en la lista para futuras peticiones, para esto debe ejecutar el método CommitFile indicando el nombre del lote procesado.
After loading the transactions contained in a batch in your system you must notify the API that has processed it so that it is no longer available in the list for future requests, for this you must execute the CommitFile method indicating the name of the processed batch.
-
UpdateTransaction
Cuando realice el pago de una orden o tenga problemas con una orden por ejemplo con Telefono incorrecto o cuenta bancaria incorrecta debe Actualizar la trasaccion en el API de este modo su PARTNER puede saber lo que ocurre con la orden.
When you make the payment of an order or have problems with an order for example with incorrect Telephone or incorrect bank account you must update the transaction in the API so your PARTNER can know what happens with the order.