PUT /companies/enableNotifications

PUT /companies/enableNotifications

curl -XPUT \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer 4b1e8df2ff50110ca86e28f2b499facbd78310c9cda0125543ad80ac70cc28d1" \
  https://api.invisiblecollector.com/companies/enable_notifications  \
  --data ''
require 'invisible_collector'

client = InvisibleCollector::API.new(api_token: '4a415cc660e67d8f4d26d5a7f390183a86fc3a4524ded78dc2448e86c48b2739')
client.company.enable_notifications()
import com.ic.invisiblecollector.IcApiFacade;
import com.ic.invisiblecollector.model.Company;

IcApiFacade apiFacade = new IcApiFacade("56a73507b66cd761caae7547ef2a66fc3a393746ba4bb9a91e303fcb3ceefb98");
Company upToDateCompany = apiFacade.getCompanyFacade().setCompanyNotifications(false);
using InvisibleCollectorLib;
using InvisibleCollectorLib.Model;

var ic = new InvisibleCollector("56a73507b66cd761caae7547ef2a66fc3a393746ba4bb9a91e303fcb3ceefb98");
Company updatedCompany = await ic.SetCompanyNotificationsAsync(true);
import "github.com/invisiblecloud/invisible-collector-go/ic"

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

Feedback

If you have a question that needs an answer, please contact support.