PUT /companies/enableNotifications

PUT /companies/enableNotifications

client = InvisibleCollector::API.new(api_token: '4a415cc660e67d8f4d26d5a7f390183a86fc3a4524ded78dc2448e86c48b2739') client.company.enable_notifications()

IcApiFacade apiFacade = new IcApiFacade("56a73507b66cd761caae7547ef2a66fc3a393746ba4bb9a91e303fcb3ceefb98"); Company upToDateCompany = apiFacade.setCompanyNotifications(false);

var ic = new InvisibleCollector("56a73507b66cd761caae7547ef2a66fc3a393746ba4bb9a91e303fcb3ceefb98"); Company updatedCompany = await ic.SetCompanyNotificationsAsync(true);

iC, err := ic.NewInvisibleCollector("56a73507b66cd761caae7547ef2a66fc3a393746ba4bb9a91e303fcb3ceefb98", ic.InvisibleCollectorUri)

var channel = make(chan ic.CompanyPair) go iC.SetCompanyNotifications(channel, true) p := <-channel

fmt.Println(p.Company)

Enables notifications for the current authorized company causing Invisible Collector to start notifying customers of any overdue payments.

This request is idempotent.

Endpoint

PUT https://api.invisiblecollector.com/companies/enableNotifications

Response body

Same as GET https://api.invisiblecollector.com/companies

Errors

This endpoint may return the following errors

HTTP Code Description
401 Unauthorized Invalid credentials were supplied