Download OpenAPI specification:Download
fabric Customer API is a suite of APIs that allow you and your business to manage customer information and customer hierarchy.
The underlying model of fabric Customer is heavily inspired by the ARTS (Association of Retail Technology Standards) Customer Model
There are two categories of APIs that make up fabric Customer. They are categorized as:
Customer B2C and Customer B2B are RESTful APIs that will cover the majority of use cases when implementing your customer information integration.
Customer Entity and Customer Links are lower level APIs that offer access to the underlying data model of fabric Customer.
Customer Entity APIs expose the core Entities as APIs with CRUD operations. Should the RESTful constraints get in the way of your implementation, you will be able to orchestrate your own calls to work around the constraints of REST.
Customer Link APIs expose the many-to-many joining tables between each entity that have relations. These APIs are useful for when you want to link existing entities to other existing entities, avoiding duplication of entities that would be observed if just using the RESTful APIs.
The intent of both APIs is to be 100% interoperable with each other. If the RESTful APIs do not provide what you need, you can dive into the Entity Model APIs and orchestrate them together to fulfill your needs.
Notes are added to the RESTful APIs to show how you can perform the same action with the Entity Model APIs
A party is the core entity that represents a "Customer". A party can represent an organization (party of many) or single person (party of one). You will find that a lot of the API's will reference party or partyId. Consider this the "customer profile".
There are 4 main types for the core entity of party:
Different from party; internal party is for you, the merchant, using fabric to create and store the organization structure within your business (your employees). This is useful for sales agents within your business, should they need to purchase products on behalf of your customers on your storefront. This should not be confused with our Co-Pilot UI users.
Parties have the ability to reference other parties by the way of a parent child relationship. As parties are essentially considered 'customers', this would be an ideal mechanism to use to specify organization customers that have sub organizations that need to be treated as separate customers.
A user is defined simply as the login credential to a system (your storefront). Our user model does not store password or authentication method, only username. Users are not considered customers in their own right.
Groups is an entity in our customer model that allows you to partition Addresses and/or Users that are associated to a party. This would most often be used for when you want to separate users in an organization customer (party), by the department or division they belong to. The key difference between Groups and Sub Organizations (child parties), is that groups are not considered customers.
An individual represents a customer that is backed by one person.
An individual is a ultimatly a party in the underlying data model, fabric Individual APIs are a convienient way of managing / creating a typical B2C or retail customer.
List Individual Customers
OK
Unauthorized
{- "query": {
- "offset": 0,
- "limit": 10,
- "count": 56
}, - "data": [
- {
- "_id": "61df41892bf06d00092d0d8a",
- "parentPartyId": "61df41892bf06d00092d0d8f",
- "internalPartyId": "61df41892bf06d00092d0d8c",
- "name": "INDIVIDUAL P-1",
- "partyType": "P",
- "isActive": true,
- "email": "org@gmail.com",
- "additionalAttributes": { },
- "isDeleted": false,
- "deletedOn": "2021-08-30T23:20:42.822Z",
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z",
- "traits": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "isDeleted": false,
- "traitId": "1001",
- "name": "VIP",
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
], - "defaultAddress": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { },
- "isDeleted": false,
- "isDefault": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
]
}
]
}
Creates an individual customer
body request
Created
Invalid party type
{- "parentPartyId": "61b121a51d949f0009142ada",
- "internalPartyId": "61df41892bf06d00092d0d8c",
- "name": "INDIVIDUAL P-1",
- "partyType": "P",
- "isActive": true,
- "email": "email@address.com",
- "additionalAttributes": { }
}
{- "_id": "61df41892bf06d00092d0d8a",
- "parentPartyId": "61df41892bf06d00092d0d8f",
- "internalPartyId": "61df41892bf06d00092d0d8c",
- "name": "INDIVIDUAL P-1",
- "partyType": "P",
- "isActive": true,
- "email": "org@gmail.com",
- "additionalAttributes": { },
- "isDeleted": false,
- "deletedOn": "2021-08-30T23:20:42.822Z",
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z",
- "traits": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "isDeleted": false,
- "traitId": "1001",
- "name": "VIP",
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
], - "defaultAddress": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { },
- "isDeleted": false,
- "isDefault": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
]
}
Get Individual Customer
Sample response
Individual not found
{- "_id": "61df41892bf06d00092d0d8a",
- "parentPartyId": "61df41892bf06d00092d0d8f",
- "internalPartyId": "61df41892bf06d00092d0d8c",
- "name": "INDIVIDUAL P-1",
- "partyType": "P",
- "isActive": true,
- "email": "org@gmail.com",
- "additionalAttributes": { },
- "isDeleted": false,
- "deletedOn": "2021-08-30T23:20:42.822Z",
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z",
- "traits": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "isDeleted": false,
- "traitId": "1001",
- "name": "VIP",
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
], - "defaultAddress": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { },
- "isDeleted": false,
- "isDefault": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
]
}
Update Individual Customer
body request
Sample response
Invalid party type
Individual not found
{- "parentPartyId": "61b121a51d949f0009142ada",
- "internalPartyId": "61df41892bf06d00092d0d8c",
- "name": "INDIVIDUAL P-1",
- "partyType": "P",
- "isActive": true,
- "email": "email@address.com",
- "additionalAttributes": { }
}
{- "_id": "61df41892bf06d00092d0d8a",
- "parentPartyId": "61df41892bf06d00092d0d8f",
- "internalPartyId": "61df41892bf06d00092d0d8c",
- "name": "INDIVIDUAL P-1",
- "partyType": "P",
- "isActive": true,
- "email": "org@gmail.com",
- "additionalAttributes": { },
- "isDeleted": false,
- "deletedOn": "2021-08-30T23:20:42.822Z",
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z",
- "traits": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "isDeleted": false,
- "traitId": "1001",
- "name": "VIP",
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
], - "defaultAddress": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { },
- "isDeleted": false,
- "isDefault": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
]
}
{- "_id": "61df41892bf06d00092d0d8a",
- "parentPartyId": "61df41892bf06d00092d0d8f",
- "internalPartyId": "61df41892bf06d00092d0d8c",
- "name": "INDIVIDUAL P-1",
- "partyType": "P",
- "isActive": true,
- "email": "org@gmail.com",
- "additionalAttributes": { },
- "isDeleted": false,
- "deletedOn": "2021-08-30T23:20:42.822Z",
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z",
- "traits": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "isDeleted": false,
- "traitId": "1001",
- "name": "VIP",
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
], - "defaultAddress": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { },
- "isDeleted": false,
- "isDefault": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
]
}
List addresses from an individual
sample response
Individual Not Found
{- "query": {
- "offset": 0,
- "limit": 10,
- "count": 54
}, - "data": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { },
- "isDeleted": false,
- "isDefault": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
]
}
Create address for an individual
sample response
error when creating the address
party not fouund
{- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "isDefault": false,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { }
}
{- "_id": "61604a30fdfacd0009816e44",
- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { },
- "isDeleted": false,
- "isDefault": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
Get address for individual
Sample response
Individual or Association not found
{- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "isDefault": false,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { }
}
Update address for an individual
sample response
error when updating the address
party not fouund
{- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "isDefault": false,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { }
}
{- "_id": "61604a30fdfacd0009816e44",
- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { },
- "isDeleted": false,
- "isDefault": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
{- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "isDefault": false,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { }
}
OK
Unauthorized
{- "query": {
- "offset": 0,
- "limit": 10,
- "count": 56
}, - "data": [
- {
- "_id": "61df41892bf06d00092d0d8a",
- "parentPartyId": "61df41892bf06d00092d0d8f",
- "internalPartyId": "61df41892bf06d00092d0d8c",
- "name": "MY ORG",
- "partyType": "O",
- "isActive": true,
- "email": "org@gmail.com",
- "additionalAttributes": { },
- "isDeleted": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z",
- "traits": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "isDeleted": false,
- "traitId": "1001",
- "name": "VIP",
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
], - "defaultAddress": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { },
- "isDeleted": false,
- "isDefault": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
]
}
]
}
OK
Organization not created.
{- "parentPartyId": "61b121a51d949f0009142ada",
- "internalPartyId": "61df41892bf06d00092d0d8c",
- "name": "PARTY P-1",
- "partyType": "O",
- "isActive": true,
- "email": "email@address.com.br",
- "additionalAttributes": { }
}
{- "_id": "61df41892bf06d00092d0d8a",
- "parentPartyId": "61df41892bf06d00092d0d8f",
- "internalPartyId": "61df41892bf06d00092d0d8c",
- "name": "MY ORG",
- "partyType": "O",
- "isActive": true,
- "email": "org@gmail.com",
- "additionalAttributes": { },
- "isDeleted": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z",
- "traits": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "isDeleted": false,
- "traitId": "1001",
- "name": "VIP",
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
], - "defaultAddress": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { },
- "isDeleted": false,
- "isDefault": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
]
}
Get Organization
Sample response
Organization not found.
{- "_id": "61df41892bf06d00092d0d8a",
- "parentPartyId": "61df41892bf06d00092d0d8f",
- "internalPartyId": "61df41892bf06d00092d0d8c",
- "name": "MY ORG",
- "partyType": "O",
- "isActive": true,
- "email": "org@gmail.com",
- "additionalAttributes": { },
- "isDeleted": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z",
- "traits": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "isDeleted": false,
- "traitId": "1001",
- "name": "VIP",
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
], - "defaultAddress": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { },
- "isDeleted": false,
- "isDefault": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
]
}
Update Organization
body request
Sample response
Organization not created.
Organization not found.
{- "parentPartyId": "61b121a51d949f0009142ada",
- "internalPartyId": "61df41892bf06d00092d0d8c",
- "name": "PARTY P-1",
- "partyType": "O",
- "isActive": true,
- "email": "email@address.com.br",
- "additionalAttributes": { }
}
{- "_id": "61df41892bf06d00092d0d8a",
- "parentPartyId": "61df41892bf06d00092d0d8f",
- "internalPartyId": "61df41892bf06d00092d0d8c",
- "name": "MY ORG",
- "partyType": "O",
- "isActive": true,
- "email": "org@gmail.com",
- "additionalAttributes": { },
- "isDeleted": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z",
- "traits": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "isDeleted": false,
- "traitId": "1001",
- "name": "VIP",
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
], - "defaultAddress": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { },
- "isDeleted": false,
- "isDefault": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
]
}
Delete Organization
Sample response
Organization not found.
{- "_id": "61df41892bf06d00092d0d8a",
- "parentPartyId": "61df41892bf06d00092d0d8f",
- "internalPartyId": "61df41892bf06d00092d0d8c",
- "name": "MY ORG",
- "partyType": "O",
- "isActive": true,
- "email": "org@gmail.com",
- "additionalAttributes": { },
- "isDeleted": true,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
Resurrect organization
Sample response
Organization not found or not deleted
{- "_id": "61df41892bf06d00092d0d8a",
- "parentPartyId": "61df41892bf06d00092d0d8f",
- "internalPartyId": "61df41892bf06d00092d0d8c",
- "name": "MY ORG",
- "partyType": "O",
- "isActive": true,
- "email": "org@gmail.com",
- "additionalAttributes": { },
- "isDeleted": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z",
- "traits": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "isDeleted": false,
- "traitId": "1001",
- "name": "VIP",
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
], - "defaultAddress": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { },
- "isDeleted": false,
- "isDefault": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
]
}
List addresses for an organization
sample response
Organization Not Found
{- "query": {
- "offset": 0,
- "limit": 10,
- "count": 54
}, - "data": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { },
- "isDeleted": false,
- "isDefault": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
]
}
Create address for an organization
sample response
error when creating the address
party not fouund
{- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "isDefault": false,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { }
}
{- "_id": "61604a30fdfacd0009816e44",
- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { },
- "isDeleted": false,
- "isDefault": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
Get Organization Address
Sample response
Association not found
{- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "isDefault": false,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { }
}
Update address for an organization
sample response
error when creating the address
party not fouund
{- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "isDefault": false,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { }
}
{- "_id": "61604a30fdfacd0009816e44",
- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { },
- "isDeleted": false,
- "isDefault": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
APIs to create, update, delete and retreive users from an organization. Organization User represents a junction table to maintain many to many relationships between users and org parties.
OK
Organization not found.
{- "query": {
- "offset": 0,
- "limit": 0,
- "count": 0
}, - "data": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "username": "TEST_USER_5554",
- "userIdentifier": "user_123",
- "title": "Mr",
- "firstName": "John",
- "lastName": "Smith",
- "email": "+1 4534534534",
- "primaryPhone": "+1 345345345",
- "status": "ACTIVE",
- "role": "reporter",
- "additionalAttributes": { },
- "groupId": "61604a30fdfacd0009816e46",
- "isDeleted": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
]
}
OK
Organization not found.
{- "username": "TEST_USER_5554",
- "userIdentifier": "user_123",
- "title": "Mr",
- "firstName": "John",
- "lastName": "Smith",
- "email": "+1 4534534534",
- "primaryPhone": "+1 345345345",
- "status": "ACTIVE",
- "role": "reporter",
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { }
}
{- "_id": "61604a30fdfacd0009816e44",
- "username": "TEST_USER_5554",
- "userIdentifier": "user_123",
- "title": "Mr",
- "firstName": "John",
- "lastName": "Smith",
- "email": "+1 4534534534",
- "primaryPhone": "+1 345345345",
- "status": "ACTIVE",
- "role": "reporter",
- "additionalAttributes": { },
- "groupId": "61604a30fdfacd0009816e46",
- "isDeleted": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
Get a user for an organization
Sample response
Association not found
{- "_id": "61604a30fdfacd0009816e44",
- "username": "TEST_USER_5554",
- "userIdentifier": "user_123",
- "title": "Mr",
- "firstName": "John",
- "lastName": "Smith",
- "email": "+1 4534534534",
- "primaryPhone": "+1 345345345",
- "status": "ACTIVE",
- "role": "reporter",
- "additionalAttributes": { },
- "groupId": "61604a30fdfacd0009816e46",
- "isDeleted": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
Update Orgaization User
body request
Sample response
Association not found
{- "username": "TEST_USER_5554",
- "userIdentifier": "user_123",
- "title": "Mr",
- "firstName": "John",
- "lastName": "Smith",
- "email": "+1 4534534534",
- "primaryPhone": "+1 345345345",
- "status": "ACTIVE",
- "role": "reporter",
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { }
}
{- "_id": "61604a30fdfacd0009816e44",
- "username": "TEST_USER_5554",
- "userIdentifier": "user_123",
- "title": "Mr",
- "firstName": "John",
- "lastName": "Smith",
- "email": "+1 4534534534",
- "primaryPhone": "+1 345345345",
- "status": "ACTIVE",
- "role": "reporter",
- "additionalAttributes": { },
- "groupId": "61604a30fdfacd0009816e46",
- "isDeleted": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
List Organization's Groups
OK
Party Not Found
{- "query": {
- "offset": 0,
- "limit": 10,
- "count": 56
}, - "data": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "parentUserId": "61604a30fdfacd0019816e44",
- "userId": "61604a30fdfacd0029816e44",
- "parentPartyId": "61604a30fdfacd0039816e44",
- "partyId": "61604a30fdfacd0049816e44",
- "parentGroupId": "61604a30fdfacd0049816e55",
- "groupType": "Department",
- "name": "name of the group",
- "email": "group3@example.com",
- "primaryPhone": 134343433,
- "additionalAttributes": { },
- "isDeleted": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
]
}
Create Organization Group
OK
Party not found.
{- "userId": "619fbb95969ceb49d19cd5a8",
- "parentUserId": "619fbb95969ceb49d19cd5a8",
- "parentPartyId": "619fbb95969ceb49d19cd5a8",
- "parentGroupId": "619fbb95969ceb49d19cd5a8",
- "groupType": "Department",
- "name": "Division 01",
- "email": "email@address.com",
- "primaryPhone": "+1 345345345",
- "additionalAttributes": { }
}
{- "_id": "61604a30fdfacd0009816e44",
- "parentUserId": "61604a30fdfacd0019816e44",
- "userId": "61604a30fdfacd0029816e44",
- "parentPartyId": "61604a30fdfacd0039816e44",
- "partyId": "61604a30fdfacd0049816e44",
- "parentGroupId": "61604a30fdfacd0049816e55",
- "groupType": "Department",
- "name": "name of the group",
- "email": "group3@example.com",
- "primaryPhone": 134343433,
- "additionalAttributes": { },
- "isDeleted": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
Get a group for an organization
OK
Party Not Found
{- "_id": "61604a30fdfacd0009816e44",
- "parentUserId": "61604a30fdfacd0019816e44",
- "userId": "61604a30fdfacd0029816e44",
- "parentPartyId": "61604a30fdfacd0039816e44",
- "partyId": "61604a30fdfacd0049816e44",
- "parentGroupId": "61604a30fdfacd0049816e55",
- "groupType": "Department",
- "name": "name of the group",
- "email": "group3@example.com",
- "primaryPhone": 134343433,
- "additionalAttributes": { },
- "isDeleted": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
Update Organization Group
OK
Party not found.
{- "userId": "619fbb95969ceb49d19cd5a8",
- "parentUserId": "619fbb95969ceb49d19cd5a8",
- "parentPartyId": "619fbb95969ceb49d19cd5a8",
- "parentGroupId": "619fbb95969ceb49d19cd5a8",
- "groupType": "Department",
- "name": "Division 01",
- "email": "email@address.com",
- "primaryPhone": "+1 345345345",
- "additionalAttributes": { }
}
{- "_id": "61604a30fdfacd0009816e44",
- "parentUserId": "61604a30fdfacd0019816e44",
- "userId": "61604a30fdfacd0029816e44",
- "parentPartyId": "61604a30fdfacd0039816e44",
- "partyId": "61604a30fdfacd0049816e44",
- "parentGroupId": "61604a30fdfacd0049816e55",
- "groupType": "Department",
- "name": "name of the group",
- "email": "group3@example.com",
- "primaryPhone": 134343433,
- "additionalAttributes": { },
- "isDeleted": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
Deletes a group for an organization
OK
Party Not Found
{- "_id": "61604a30fdfacd0009816e44",
- "parentUserId": "61604a30fdfacd0019816e44",
- "userId": "61604a30fdfacd0029816e44",
- "parentPartyId": "61604a30fdfacd0039816e44",
- "partyId": "61604a30fdfacd0049816e44",
- "parentGroupId": "61604a30fdfacd0049816e55",
- "groupType": "Department",
- "name": "name of the group",
- "email": "group3@example.com",
- "primaryPhone": 134343433,
- "additionalAttributes": { },
- "isDeleted": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
Lists addresses from an organization group
OK
Party or Group Not Found
{- "query": {
- "offset": 0,
- "limit": 10,
- "count": 56
}, - "data": [
- {
- "_id": "61604a30fdfacd0009816e44",
- "globalAddressId": 1234,
- "type": "M",
- "addressLine1": "street 1",
- "addressLine2": "street 2",
- "addressLine3": "street 3",
- "addressLine4": "street 4",
- "county": "San Diego",
- "city": "Boston",
- "state": "Texas",
- "zipCode": 12345,
- "postalCode": "ABC-123",
- "country": "USA",
- "latitude": 38.8951,
- "longitude": -77.0364,
- "groupId": "61604a30fdfacd0009816e46",
- "additionalAttributes": { },
- "isDeleted": false,
- "isDefault": false,
- "createdAt": "2021-08-30T23:20:42.822Z",
- "updatedAt": "2021-08-30T23:20:42.822Z"
}
]
}
Lists users from an organization group
OK
Party or Group Not Found