Skip to content
API Reference

IT Contact

IT Contact in the Paycux API: the endpoints, the fields they accept and return, and a working request in three languages.

Overview

The IT Contact resource is part of the Paycux API. Every field below is returned on every representation of the object, so you can rely on its shape across list, read and write calls.

FieldTypeNotes
idstringStable identifier, prefixed per resource type.
objectstringThe resource name, useful when handling webhook payloads.
created_attimestampISO 8601, always UTC.
updated_attimestampISO 8601, always UTC.

Endpoints

Every endpoint is authenticated with a bearer token and scoped to the environment the key belongs to.

MethodPathWhat it does
GET/organizations/:organization_id/it_contactsList IT contacts
DELETE/organizations/:organization_id/it_contacts/:contact_idDelete an IT contact
POST/organizations/:organization_id/it_contacts/:contact_id/inviteInvite an IT contact
POST/organizations/:organization_id/it_contacts/:contact_id/revokeRevoke an IT contact’s invitation

List IT contacts

GET /organizations/:organization_id/it_contacts — list IT contacts.

1import Paycux from '@paycux/node';
2
3const paycux = new Paycux(process.env.PAYCUX_API_KEY);
4
5const result = await paycux.list_it_contacts();
6console.log(result);

Delete an IT contact

DELETE /organizations/:organization_id/it_contacts/:contact_id — delete an IT contact.

1import Paycux from '@paycux/node';
2
3const paycux = new Paycux(process.env.PAYCUX_API_KEY);
4
5const result = await paycux.delete_an_it_contact();
6console.log(result);

Invite an IT contact

POST /organizations/:organization_id/it_contacts/:contact_id/invite — invite an IT contact.

1import Paycux from '@paycux/node';
2
3const paycux = new Paycux(process.env.PAYCUX_API_KEY);
4
5const result = await paycux.invite_an_it_contact();
6console.log(result);

Revoke an IT contact’s invitation

POST /organizations/:organization_id/it_contacts/:contact_id/revoke — revoke an IT contact’s invitation.

1import Paycux from '@paycux/node';
2
3const paycux = new Paycux(process.env.PAYCUX_API_KEY);
4
5const result = await paycux.revoke_an_it_contact_s_invitation();
6console.log(result);

Errors

Errors return a JSON body with a machine-readable code, a human-readable message and, for validation failures, the offending field.

StatusCodeMeaning
400invalid_requestA required field is missing or malformed.
401unauthorizedThe API key is missing, revoked, or from another environment.
404not_foundNo record with that ID in this environment.
429rate_limit_exceededBack off and retry after the interval in Retry-After.