Some places, like Sao Paulo needs the ASC Appointment but looks like the POST request ignores this parameter breaking for some regions.
return fetch(url, {
"method": "POST",
"redirect": "follow",
"headers": Object.assign({}, newHeaders, {
'Content-Type': 'application/x-www-form-urlencoded',
}),
"body": new URLSearchParams({
'utf8': '✓',
'authenticity_token': newHeaders['X-CSRF-Token'],
'confirmed_limit_message': '1',
'use_consulate_appointment_capacity': 'true',
'appointments[consulate_appointment][facility_id]': FACILITY_ID,
'appointments[consulate_appointment][date]': date,
'appointments[consulate_appointment][time]': time,
'appointments[asc_appointment][facility_id]': '',
'appointments[asc_appointment][date]': '',
'appointments[asc_appointment][time]': ''
}),
})