API Reference
Log In

POST /verify-email-code

Once the codes have been sent, it’s time to check. Checking the codes is a prerequisite for sending the POST with customer information in /customers

Para conferir o código de verificação para o email, envie um POST para:

const axios = require('axios');

async function verifyEmailCode() {
    const baseUrl = 'https://whitelabel-sandbox.delbank.com.br/v1/customers/verify-email-code';

    const data = {
        email: '[email protected]',
        codeVerification: '9999'
    };

    const config = {
        headers: {
            'Content-Type': 'application/json'
        }
    };

    try {
        const response = await axios.post(baseUrl, data, config);

        console.log(response.data);
    } catch (error) {
        console.error(error);
    }
}

verifyEmailCode();

Here you can see a practical example of how to use the method described above:https://github.com/DelbankDev/publico-api/tree/main/receitas/criacao-conta-pf-whitelabel/verify-email-code