Synchronization with VISION
Last updated
Last updated
VISION is an external database managed by UNICEF. We use it for fetching basic Partner information using the Vendor Number.
By clicking on add new vendor
and entering Partner Vendor Number, call through the api will be performed. If the record doesn't exist in the database, it will be searched in VISION using the following url:
https://devapis.unicef.org/BIService/BIWebService.svc/GetPartnerDetailsInfo_JSON/<vendor_number>
In case of success, Partner information will be synced with the server database and then periodically refresh the actual data.
Here is the response example:
This response is mapped to Partner objects using the TPMPartnerSynchronizer
. Fields mapping is presented below:
If we synchronize the Partner manually, we also set hidden
flag to hide the Partner from the base set, but save it into the database. In case of the confirmation of Partner addition, this flag will be changed to false and Partner will appear in the list.