To use the dCVV2 Generate API to request dCVV2 codes, you must first register the applicable BIN or account range with Visa by completing a Client Information Questionnaire (CIQ). dCVV2 codes are time-based, and are valid for a time window of one to 18 hours. The CIQ also allows the issuer to select the length of time each dCVV2 code will be valid for, which can be whole hours only from one to 18 hours.
When calling the dCVV2 Generate API, you will need to provide the primary account number (PAN) and the number of codes requested (1-24 codes). Assuming the PAN is within a BIN that is registered for the service, the codes will be returned, along with the expiry date and time of each code.
To use the dCVV2 Authenticate APIs, you will need to use the appropriate API for your purpose (enrol/unenrol/enquire) and provide the PAN. Visa will respond with a confirmation message for enrol and unenrol APIs, or a Yes/No for the enquiry API.