API Reference
Log In

POST /verify-phone-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

To check the verification code for your phone, send a POST to:

const axios = require('axios');

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

    const data = {
        phone: '79900000000',
        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);
    }
}

verifyPhoneCode();

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-phone-code