Skip to content
API Reference

Organization membership

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

Overview

The Organization membership 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/user_management/organization_memberships/:idGet an organization membership
GET/user_management/organization_membershipsList organization memberships
DELETE/user_management/organization_memberships/:id/deactivateDeactivate an organization membership
GET/user_management/organization_memberships/:id/reactivateReactivate an organization membership
GET/user_management/organization_memberships/:omId/groupsList groups

Get an organization membership

GET /user_management/organization_memberships/:id — get an organization membership.

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

List organization memberships

GET /user_management/organization_memberships — list organization memberships.

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

Deactivate an organization membership

DELETE /user_management/organization_memberships/:id/deactivate — deactivate an organization membership.

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

Reactivate an organization membership

GET /user_management/organization_memberships/:id/reactivate — reactivate an organization membership.

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

List groups

GET /user_management/organization_memberships/:omId/groups — list groups.

1import Paycux from '@paycux/node';
2
3const paycux = new Paycux(process.env.PAYCUX_API_KEY);
4
5const result = await paycux.list_groups();
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.