Customer API (1.0.0)
Download OpenAPI specification:Download
Get Red Tractor Certificates
Retrieve all valid or grace statused Red Tractor certifications for this business
Authorizations:
query Parameters
country required | string = 3 characters Default: "GBR" ISO3 country code |
postcode | string Postcode of location |
holdingNumber | string Holding number for scheme |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
[- {
- "certificateStatus": "Valid",
- "certificateIdentifier": "2RRVTHNXTS.C753I0PM8NCK8",
- "certificateEnterprises": [
- {
- "enterpriseIdentifier": "0349EQH8NH.16LGK2U5Q7K4H",
- "enterprise": "Combinable Crops"
}
], - "certificateExpiryDate": "2024-01-31T00:00:00.000+00:00",
- "certifiedSites": [
- {
- "siteIdentifiers": {
- "identifierType": "holdingno",
- "identifier": "11/111/1111"
}, - "isPrimary": true,
- "siteCountry": "United Kingdom",
- "sitePostcode": "PO18 9JP",
- "siteAddress": "Pitlands Farm",
- "siteName": "Up Marden Farms"
}
]
}
]
Get Business
Retrieve business for a business unit
path Parameters
id required | string Business Id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "businessUnitId": "string",
- "organisationId": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "businessName": "string",
- "name": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "tags": [
- "string"
], - "locationTag": "string",
- "managementTag": "string",
- "assuranceScheme": "RT",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assurance": {
- "certificateStatus": "Valid",
- "certificateIdentifier": "2RRVTHNXTS.C753I0PM8NCK8",
- "certificateEnterprises": [
- {
- "enterpriseIdentifier": "0349EQH8NH.16LGK2U5Q7K4H",
- "enterprise": "Combinable Crops"
}
], - "certificateExpiryDate": "2024-01-31T00:00:00.000+00:00",
- "certifiedSites": [
- {
- "siteIdentifiers": {
- "identifierType": "holdingno",
- "identifier": "11/111/1111"
}, - "isPrimary": true,
- "siteCountry": "United Kingdom",
- "sitePostcode": "PO18 9JP",
- "siteAddress": "Pitlands Farm",
- "siteName": "Up Marden Farms"
}
]
}
}
Get Businesses by business unit IDs
Retrieve business for a business unit
query Parameters
ids required | string Comma separated list of ids |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
[- {
- "id": "string",
- "businessUnitId": "string",
- "organisationId": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "businessName": "string",
- "name": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "tags": [
- "string"
], - "locationTag": "string",
- "managementTag": "string",
- "assuranceScheme": "RT",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assurance": {
- "certificateStatus": "Valid",
- "certificateIdentifier": "2RRVTHNXTS.C753I0PM8NCK8",
- "certificateEnterprises": [
- {
- "enterpriseIdentifier": "0349EQH8NH.16LGK2U5Q7K4H",
- "enterprise": "Combinable Crops"
}
], - "certificateExpiryDate": "2024-01-31T00:00:00.000+00:00",
- "certifiedSites": [
- {
- "siteIdentifiers": {
- "identifierType": "holdingno",
- "identifier": "11/111/1111"
}, - "isPrimary": true,
- "siteCountry": "United Kingdom",
- "sitePostcode": "PO18 9JP",
- "siteAddress": "Pitlands Farm",
- "siteName": "Up Marden Farms"
}
]
}
}
]
Create Business Unit
Create a new business unit within an organisation
Authorizations:
Request Body schema: application/json
organisationId required | string Organisation id to which the business units belong |
name required | string The name of the business unit |
type required | string Enum: "farm" "stores" "region" The type of business unit being created |
object |
Responses
Request samples
- Payload
{- "organisationId": "string",
- "name": "string",
- "type": "farm",
- "business": {
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "name": "string",
- "phoneNumber": "string",
- "email": "string",
- "locationTag": "string",
- "managementTag": "string",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT"
}
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "ordinal": 0,
- "id": "string",
- "name": "string",
- "type": "farm",
- "tags": [
- "string"
], - "business": {
- "id": "string",
- "businessUnitId": "string",
- "organisationId": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "businessName": "string",
- "name": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "tags": [
- "string"
], - "locationTag": "string",
- "managementTag": "string",
- "assuranceScheme": "RT",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assurance": {
- "certificateStatus": "Valid",
- "certificateIdentifier": "2RRVTHNXTS.C753I0PM8NCK8",
- "certificateEnterprises": [
- {
- "enterpriseIdentifier": "0349EQH8NH.16LGK2U5Q7K4H",
- "enterprise": "Combinable Crops"
}
], - "certificateExpiryDate": "2024-01-31T00:00:00.000+00:00",
- "certifiedSites": [
- {
- "siteIdentifiers": {
- "identifierType": "holdingno",
- "identifier": "11/111/1111"
}, - "isPrimary": true,
- "siteCountry": "United Kingdom",
- "sitePostcode": "PO18 9JP",
- "siteAddress": "Pitlands Farm",
- "siteName": "Up Marden Farms"
}
]
}
}, - "storeCount": 0,
- "fieldCount": 0
}
Get Business Units Summary
Retrieve business units summary for an organisation all of them without filtering by users business units
Authorizations:
path Parameters
id required | string Organisation Id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "organisationId": "string",
- "organisationName": "string",
- "tagGroups": [
- {
- "name": "string",
- "tags": [
- "string"
]
}
], - "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
]
}
Get BusinessUnit
Retrieve business units for an organisation filtered by user
Authorizations:
path Parameters
id required | string Organisation Id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "organisationId": "string",
- "organisationName": "string",
- "organisationRegionISO": "string",
- "tagGroups": [
- {
- "name": "string",
- "tags": [
- "string"
]
}
], - "businessUnits": [
- {
- "ordinal": 0,
- "id": "string",
- "name": "string",
- "type": "farm",
- "tags": [
- "string"
], - "business": {
- "id": "string",
- "businessUnitId": "string",
- "organisationId": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "businessName": "string",
- "name": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "tags": [
- "string"
], - "locationTag": "string",
- "managementTag": "string",
- "assuranceScheme": "RT",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assurance": {
- "certificateStatus": "Valid",
- "certificateIdentifier": "2RRVTHNXTS.C753I0PM8NCK8",
- "certificateEnterprises": [
- {
- "enterpriseIdentifier": "0349EQH8NH.16LGK2U5Q7K4H",
- "enterprise": "Combinable Crops"
}
], - "certificateExpiryDate": "2024-01-31T00:00:00.000+00:00",
- "certifiedSites": [
- {
- "siteIdentifiers": {
- "identifierType": "holdingno",
- "identifier": "11/111/1111"
}, - "isPrimary": true,
- "siteCountry": "United Kingdom",
- "sitePostcode": "PO18 9JP",
- "siteAddress": "Pitlands Farm",
- "siteName": "Up Marden Farms"
}
]
}
}, - "storeCount": 0,
- "fieldCount": 0
}
]
}
Update Business Unit
Updates an Organisations business unit properties
Authorizations:
path Parameters
id required | string Organisation Id |
Request Body schema: application/json
name | string or null The name of the business unit |
object |
Responses
Request samples
- Payload
{- "name": "string",
- "business": {
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "name": "string",
- "phoneNumber": "string",
- "email": "string",
- "locationTag": "string",
- "managementTag": "string",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT"
}
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "ordinal": 0,
- "id": "string",
- "name": "string",
- "type": "farm",
- "tags": [
- "string"
], - "business": {
- "id": "string",
- "businessUnitId": "string",
- "organisationId": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "businessName": "string",
- "name": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "tags": [
- "string"
], - "locationTag": "string",
- "managementTag": "string",
- "assuranceScheme": "RT",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assurance": {
- "certificateStatus": "Valid",
- "certificateIdentifier": "2RRVTHNXTS.C753I0PM8NCK8",
- "certificateEnterprises": [
- {
- "enterpriseIdentifier": "0349EQH8NH.16LGK2U5Q7K4H",
- "enterprise": "Combinable Crops"
}
], - "certificateExpiryDate": "2024-01-31T00:00:00.000+00:00",
- "certifiedSites": [
- {
- "siteIdentifiers": {
- "identifierType": "holdingno",
- "identifier": "11/111/1111"
}, - "isPrimary": true,
- "siteCountry": "United Kingdom",
- "sitePostcode": "PO18 9JP",
- "siteAddress": "Pitlands Farm",
- "siteName": "Up Marden Farms"
}
]
}
}, - "storeCount": 0,
- "fieldCount": 0
}
Import a batch of business units
CSV Import endpoint to create a set of business units
Authorizations:
Request Body schema: multipart/form-data
organisationId | string or null |
organisationName | string or null |
file required | Array of strings <binary> |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}
Business connections are organisations with whom customers have a business relationship. This entity stores contacts, and other meta data associated with the relationship
Create Business Connection
Creates a new business connection for a customer. This endpoint requires that a user has a valid access token and will uses their own organisation id to attach the busines connection. When a connection object is passed to the endpoint, it will create any contacts sent with payload as users in the organisation. These users are not standard users, they will have a password generated for them, but they will not recieve an invitation email to set up their account in the platform.
Authorizations:
Request Body schema: application/json
id | string or null The ID of any existing organisation that is to be connected to the calling organisation |
companyNumber | string or null Legal number associated with an incorporated business |
countryISO | string = 2 characters Default: "GB" Enum: "GB" "US" "ZA" "FR" Country where the business is based, two letter code |
name | string Name of the business |
relationship | string or null Enum: "trading" "storage" "carrier" "organiser" Type of relationship between the 2 businesses |
required | Array of objects The contact records that are to be stored agains the new organisation or an existing organisation |
Responses
Request samples
- Payload
{- "id": "string",
- "companyNumber": "string",
- "countryISO": "GB",
- "name": "string",
- "relationship": "trading",
- "contacts": [
- {
- "id": "string",
- "givenName": "string",
- "familyName": "string",
- "email": "string",
- "phone": "string"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "connectedOrganisations": [
- {
- "organisationId": "string",
- "organisationName": "string",
- "relationship": [
- "string"
], - "contacts": [
- {
- "givenName": "string",
- "familyName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "id": "string",
- "authPlatformId": "string"
}
], - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}
]
}
Get Business Connections
Retrieves the business connection record for the organisation The response includes all contacts that belong to the organisation connected
Authorizations:
query Parameters
limit | integer Limit page size of results |
offset | integer Number of results to skip for the current page |
sortBy | string Sort results by this field |
sortDesc | boolean Sort results descending if true, otherwise ascending |
tags | string Filter by tags |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "connectedOrganisations": [
- {
- "organisationId": "string",
- "organisationName": "string",
- "relationship": [
- "string"
], - "contacts": [
- {
- "givenName": "string",
- "familyName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "id": "string",
- "authPlatformId": "string"
}
], - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}
]
}
Check Business Connection Exists
Takes the create business connection payload and checks to see if any of the users or email domain exists in the system, if so the matching organisation is returned. Also checks matching organisation names
Authorizations:
Request Body schema: application/json
id | string or null The ID of any existing organisation that is to be connected to the calling organisation |
companyNumber | string or null Legal number associated with an incorporated business |
countryISO | string = 2 characters Default: "GB" Enum: "GB" "US" "ZA" "FR" Country where the business is based, two letter code |
name | string Name of the business |
relationship | string or null Enum: "trading" "storage" "carrier" "organiser" Type of relationship between the 2 businesses |
required | Array of objects The contact records that are to be stored agains the new organisation or an existing organisation |
Responses
Request samples
- Payload
{- "id": "string",
- "companyNumber": "string",
- "countryISO": "GB",
- "name": "string",
- "relationship": "trading",
- "contacts": [
- {
- "id": "string",
- "givenName": "string",
- "familyName": "string",
- "email": "string",
- "phone": "string"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "status": "ok",
- "blockNewConnection": true,
- "organisations": [
- {
- "id": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "company": {
- "assurances": [
- {
- "id": "string",
- "type": "string",
- "body": "RT"
}
], - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "number": "string",
- "salesTaxId": "string",
- "logo": {
- "id": "string",
- "url": "string"
}
}, - "companyNumber": "string",
- "countryISO": "GB",
- "name": "string",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "businessConnections": [
- {
- "organisationId": "string",
- "organisationName": "string",
- "relationship": [
- "string"
], - "contacts": [
- {
- "givenName": "string",
- "familyName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "id": "string",
- "authPlatformId": "string"
}
], - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}
], - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "createdAtUTC": "string"
}
]
}
Check Business Connection Exists To Your Organisation
Checks to see the target organisation has a business connection to your organisation
Authorizations:
Request Body schema: application/json
organisationId required | string |
Responses
Request samples
- Payload
{- "organisationId": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "isInNetwork": true
}
Delete Business Connection
Removes an organisation from the connected businesses of the calling organisation. Will return the business connection record with the remaining connected organisations and their contacts
Authorizations:
path Parameters
id required | string Organisation Id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Adds a relationship to a business connection
Adds a relationship to a business connection and executes any relevant actions required by the relationship
Authorizations:
path Parameters
id required | string Organisation Id |
relationship required | string Relationship Type |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Connect Business Connection Contact
Connects a user from the authenticated users business connections contact list with your organisation, once connected organisations can permission this external user to access resources within their account
Authorizations:
path Parameters
id required | string Connected organisation Id |
userId required | string Contact user ID |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "marketing": true,
- "whatsApp": true,
- "sms": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "organisationId": "string",
- "organisationName": "string",
- "authPlatformId": "string",
- "status": "active",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "notificationsEnabled": true
}
Disconnect Business Connection Contact
Removes an external user from authenticated users organisation and prevents access to their account
Authorizations:
path Parameters
id required | string Connected organisation Id |
userId required | string Contact user ID |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "marketing": true,
- "whatsApp": true,
- "sms": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "organisationId": "string",
- "organisationName": "string",
- "authPlatformId": "string",
- "status": "active",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "notificationsEnabled": true
}
Create an admin user in Cognito
Create an admin user in Cognito
Authorizations:
Request Body schema: application/json
email required | string |
password required | string <cognito-password> Standard cognito password |
givenName required | string |
familyName required | string |
readonly required | boolean Default: "false" |
Responses
Request samples
- Payload
{- "email": "string",
- "password": "string",
- "givenName": "string",
- "familyName": "string",
- "readonly": "false"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Swap a user from one pool to another on login
Swap a user from one pool to another on login
Request Body schema: application/json
username required | string |
password | string <cognito-password> Standard cognito password |
Responses
Request samples
- Payload
{- "username": "string",
- "password": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "status": "not-found",
- "authenticated": true,
- "id": "string"
}
Sync all users to Cognito and update Raven if roles have changed
Sync all users to Cognito and update Raven if roles have changed
Authorizations:
path Parameters
id required | string Organisation Id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Create organisation
Create a new customers organisation
Authorizations:
Request Body schema: application/json
required | object or null |
object | |
name required | string or null Name of the business |
countryISO required | string = 2 characters Default: "GB" Enum: "GB" "US" "ZA" "FR" Country where the business is based, two letter code |
required | object or null |
Array of objects or null | |
organisers | Array of strings |
required | object or null |
required | Array of objects |
Responses
Request samples
- Payload
{- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "company": {
- "assurances": [
- {
- "id": "string",
- "type": "string",
- "body": "RT"
}
], - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "number": "string",
- "salesTaxId": "string",
- "logo": {
- "id": "string",
- "url": "string"
}
}, - "name": "string",
- "countryISO": "GB",
- "ownerContact": {
- "phone": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string"
}, - "contacts": [
- {
- "phone": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string"
}
], - "organisers": [
- "string"
], - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "company": {
- "assurances": [
- {
- "id": "string",
- "type": "string",
- "body": "RT"
}
], - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "number": "string",
- "salesTaxId": "string",
- "logo": {
- "id": "string",
- "url": "string"
}
}, - "companyNumber": "string",
- "countryISO": "GB",
- "name": "string",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "businessConnections": [
- {
- "organisationId": "string",
- "organisationName": "string",
- "relationship": [
- "string"
], - "contacts": [
- {
- "givenName": "string",
- "familyName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "id": "string",
- "authPlatformId": "string"
}
], - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}
], - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "createdAtUTC": "string"
}
Get Organisations
Get Organisations
Authorizations:
query Parameters
limit | integer Limit page size of results |
offset | integer Number of results to skip for the current page |
sortBy | string Sort results by this field |
sortDesc | boolean Sort results descending if true, otherwise ascending |
tags | string Filter by tags |
status | string Filter by status |
count | boolean If true just return a count |
query | string Free text search field for querying |
modules | string Modules |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
[- {
- "id": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "company": {
- "assurances": [
- {
- "id": "string",
- "type": "string",
- "body": "RT"
}
], - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "number": "string",
- "salesTaxId": "string",
- "logo": {
- "id": "string",
- "url": "string"
}
}, - "companyNumber": "string",
- "countryISO": "GB",
- "name": "string",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "businessConnections": [
- {
- "organisationId": "string",
- "organisationName": "string",
- "relationship": [
- "string"
], - "contacts": [
- {
- "givenName": "string",
- "familyName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "id": "string",
- "authPlatformId": "string"
}
], - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}
], - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "createdAtUTC": "string"
}
]
Get organisations by id
Get organisations records by id
Authorizations:
query Parameters
ids required | string Comma separated list of ids |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
[- {
- "id": "string",
- "name": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "status": "active",
- "companyId": "string",
- "companyHoldingNumber": "string",
- "bio": "string",
- "logo": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string",
- "organisationId": "string",
- "countryISO": "GB",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "pushToken": "string"
}, - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string"
}
}
]
Get organisation of the logged in user
Get organisation of the logged in user
Authorizations:
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "name": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "status": "active",
- "companyId": "string",
- "companyHoldingNumber": "string",
- "bio": "string",
- "logo": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string",
- "organisationId": "string",
- "countryISO": "GB",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "pushToken": "string"
}, - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string"
}
}
Get Organisation
Get Organisation
Authorizations:
path Parameters
id required | string Organisation Id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "company": {
- "assurances": [
- {
- "id": "string",
- "type": "string",
- "body": "RT"
}
], - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "number": "string",
- "salesTaxId": "string",
- "logo": {
- "id": "string",
- "url": "string"
}
}, - "companyNumber": "string",
- "countryISO": "GB",
- "name": "string",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "businessConnections": [
- {
- "organisationId": "string",
- "organisationName": "string",
- "relationship": [
- "string"
], - "contacts": [
- {
- "givenName": "string",
- "familyName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "id": "string",
- "authPlatformId": "string"
}
], - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}
], - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "createdAtUTC": "string"
}
Update Organisation
Updates an Organisations properties
Authorizations:
path Parameters
id required | string Organisation Id |
Request Body schema: application/json
object or null | |
object | |
name | string or null Name of the business |
countryISO | string = 2 characters Default: "GB" Enum: "GB" "US" "ZA" "FR" Country where the business is based, two letter code |
object or null | |
Array of objects or null | |
organisers | Array of strings |
object or null | |
Array of objects | |
bio | string or null Deprecated |
companyHoldingNumber | string or null Deprecated |
website | string or null Deprecated |
companyNumber | string or null Legal number associated with an incorporated business |
companySalesTaxId | string or null Deprecated |
inventoryType | Array of strings or null Deprecated |
Array of objects or null | |
object or null | |
status | string or null |
statusMessage | string or null |
vetted | boolean |
isMerchant | boolean |
Responses
Request samples
- Payload
{- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "company": {
- "assurances": [
- {
- "id": "string",
- "type": "string",
- "body": "RT"
}
], - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "number": "string",
- "salesTaxId": "string",
- "logo": {
- "id": "string",
- "url": "string"
}
}, - "name": "string",
- "countryISO": "GB",
- "ownerContact": {
- "phone": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string"
}, - "contacts": [
- {
- "phone": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string"
}
], - "organisers": [
- "string"
], - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "bio": "string",
- "companyHoldingNumber": "string",
- "website": "string",
- "companyNumber": "string",
- "companySalesTaxId": "string",
- "inventoryType": [
- "string"
], - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "logo": {
- "id": "string",
- "url": "string"
}, - "status": "string",
- "statusMessage": "string",
- "vetted": true,
- "isMerchant": true
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "company": {
- "assurances": [
- {
- "id": "string",
- "type": "string",
- "body": "RT"
}
], - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "number": "string",
- "salesTaxId": "string",
- "logo": {
- "id": "string",
- "url": "string"
}
}, - "companyNumber": "string",
- "countryISO": "GB",
- "name": "string",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "businessConnections": [
- {
- "organisationId": "string",
- "organisationName": "string",
- "relationship": [
- "string"
], - "contacts": [
- {
- "givenName": "string",
- "familyName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "id": "string",
- "authPlatformId": "string"
}
], - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}
], - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "createdAtUTC": "string"
}
Update Organisation Advance Pay Details
Updates an Organisations advance pay details
Authorizations:
path Parameters
id required | string Organisation Id |
Request Body schema: application/json
accountName required | string |
sortCode required | string^\d{2}-\d{2}-\d{2}$ |
accountNumber required | string^\d{8,18}$ |
status | boolean or null |
Responses
Request samples
- Payload
{- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "status": true
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Import a batch of organisations
CSV Import endpoint to create a set of organisations
Authorizations:
Request Body schema: multipart/form-data
organisationId | string or null |
organisationName | string or null |
file required | Array of strings <binary> |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}
Import a batch of preferences
Authorizations:
Request Body schema: multipart/form-data
organisationId | string or null |
organisationName | string or null |
file required | Array of strings <binary> |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}
set preferences
Authorizations:
Request Body schema: multipart/form-data
organisationId | string or null |
organisationName | string or null |
file required | Array of strings <binary> |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}
Import FinMid account status
Authorizations:
Request Body schema: multipart/form-data
organisationId | string or null |
organisationName | string or null |
file required | Array of strings <binary> |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}
Change Owner
Changes the owner of the organisation
Authorizations:
Request Body schema: application/json
newOwnerUserId required | string The user id to be the new owner |
Responses
Request samples
- Payload
{- "newOwnerUserId": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "company": {
- "assurances": [
- {
- "id": "string",
- "type": "string",
- "body": "RT"
}
], - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "number": "string",
- "salesTaxId": "string",
- "logo": {
- "id": "string",
- "url": "string"
}
}, - "companyNumber": "string",
- "countryISO": "GB",
- "name": "string",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "businessConnections": [
- {
- "organisationId": "string",
- "organisationName": "string",
- "relationship": [
- "string"
], - "contacts": [
- {
- "givenName": "string",
- "familyName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "id": "string",
- "authPlatformId": "string"
}
], - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}
], - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "createdAtUTC": "string"
}
Get Users
Get Users
Authorizations:
query Parameters
limit | integer Limit page size of results |
offset | integer Number of results to skip for the current page |
sortBy | string Sort results by this field |
sortDesc | boolean Sort results descending if true, otherwise ascending |
query | string Free text search field for querying |
status | string Filter by status |
count | boolean If true just return a count |
organisationId | string Organisation Id |
organisationIds | string Permissioned Organisation Id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
[- {
- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "marketing": true,
- "whatsApp": true,
- "sms": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "organisationId": "string",
- "organisationName": "string",
- "authPlatformId": "string",
- "status": "active",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "notificationsEnabled": true
}
]
Create user
Create a new customer user. This endpoint can only be used by team owners creating users for their organisation
Authorizations:
Request Body schema: application/json
givenName required | string |
familyName required | string |
countryISO | string = 2 characters Default: "GB" Enum: "GB" "US" "ZA" "FR" Country where the business is based, two letter code |
organisationId | string |
email required | string |
phone required | string or null <phone-number> Phone number |
pushToken | string or null |
roles | Array of strings or null The role this user has |
businessUnits | Array of strings or null The user business units, list of ids |
Responses
Request samples
- Payload
{- "givenName": "string",
- "familyName": "string",
- "countryISO": "GB",
- "organisationId": "string",
- "email": "string",
- "phone": "string",
- "pushToken": "string",
- "roles": [
- "string"
], - "businessUnits": [
- "string"
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "marketing": true,
- "whatsApp": true,
- "sms": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "organisationId": "string",
- "organisationName": "string",
- "authPlatformId": "string",
- "status": "active",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "notificationsEnabled": true
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "marketing": true,
- "whatsApp": true,
- "sms": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "organisationId": "string",
- "organisationName": "string",
- "authPlatformId": "string",
- "status": "active",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "notificationsEnabled": true
}
Patch User
Patch User
Authorizations:
path Parameters
id required | string User Id |
Request Body schema: application/json
givenName | string |
familyName | string |
countryISO | string = 2 characters Default: "GB" Enum: "GB" "US" "ZA" "FR" Country where the business is based, two letter code |
organisationId | string |
string | |
phone | string or null <phone-number> Phone number |
pushToken | string or null |
roles | Array of strings or null The role this user has |
businessUnits | Array of strings or null The user business units, list of ids |
phoneLandline | string or null <phone-number> Phone number |
object or null | |
termsAgreed | boolean or null |
marketingEmails | boolean or null |
whatsAppNotifications | boolean or null |
smsNotifications | boolean or null |
harvestNotificationDismissed | boolean or null |
harvestDialogDismissed | boolean or null |
listingsWelcomeRead | boolean or null |
Responses
Request samples
- Payload
{- "givenName": "string",
- "familyName": "string",
- "countryISO": "GB",
- "organisationId": "string",
- "email": "string",
- "phone": "string",
- "pushToken": "string",
- "roles": [
- "string"
], - "businessUnits": [
- "string"
], - "phoneLandline": "string",
- "avatar": {
- "id": "string",
- "url": "string"
}, - "termsAgreed": true,
- "marketingEmails": true,
- "whatsAppNotifications": true,
- "smsNotifications": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "marketing": true,
- "whatsApp": true,
- "sms": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "organisationId": "string",
- "organisationName": "string",
- "authPlatformId": "string",
- "status": "active",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "notificationsEnabled": true
}
Verify Attribute Update
User update email and phone attribute confirmation, takes a username and a confirmation code and sets the users account to confirmed, allowing that user to login
Authorizations:
Request Body schema: application/json
code required | string Six digit code sent to user to confirm their update |
Responses
Request samples
- Payload
{- "code": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Find users by preferences
Lookup user summaries for al lusers who match the incoming preferences excluding users in the organisationId supplied.
Authorizations:
query Parameters
preferences | string User preferences array. comma separated |
organisationId | string Filter by organisation Id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "users": [
- {
- "id": "string",
- "givenName": "string",
- "familyName": "string",
- "countryISO": "GB",
- "organisationName": "string",
- "organisationId": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "pushToken": "string",
- "organisation": {
- "id": "string",
- "name": "string",
- "bio": "string",
- "logo": {
- "id": "string",
- "url": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
]
}, - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
], - "enabled": true
}
], - "settings": {
- "terms": true,
- "marketing": true,
- "whatsApp": true,
- "sms": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}, - "authPlatformId": "string"
}
]
}
Set users buyer preferences
Overwrites any existing buyer preferences with the incoming array. These preferences are used to notify trade users about open trade listings.
Authorizations:
Request Body schema: application/json
commodity required | number or null |
grades required | Array of numbers |
regions required | Array of strings |
enabled | boolean Default: true |
Responses
Request samples
- Payload
{- "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
], - "enabled": true
}
], - "notificationsEnabled": true
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "marketing": true,
- "whatsApp": true,
- "sms": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "organisationId": "string",
- "organisationName": "string",
- "authPlatformId": "string",
- "status": "active",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "notificationsEnabled": true
}
Lookup User By Telephone
Lookup or create a user by a telephone number
Authorizations:
Request Body schema: application/json
phone | string or null <phone-number> Phone number |
Responses
Request samples
- Payload
{- "phone": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "marketing": true,
- "whatsApp": true,
- "sms": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "organisationId": "string",
- "organisationName": "string",
- "authPlatformId": "string",
- "status": "active",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "notificationsEnabled": true
}
Activate an organisation
Set an organisation to active and resent account welcome email to owner
Authorizations:
path Parameters
id required | string Organisation Id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "company": {
- "assurances": [
- {
- "id": "string",
- "type": "string",
- "body": "RT"
}
], - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "number": "string",
- "salesTaxId": "string",
- "logo": {
- "id": "string",
- "url": "string"
}
}, - "companyNumber": "string",
- "countryISO": "GB",
- "name": "string",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "businessConnections": [
- {
- "organisationId": "string",
- "organisationName": "string",
- "relationship": [
- "string"
], - "contacts": [
- {
- "givenName": "string",
- "familyName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "id": "string",
- "authPlatformId": "string"
}
], - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}
], - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "createdAtUTC": "string"
}
Adds a module to an organisation
Add a module to the organisation and configure security for the owner
Authorizations:
path Parameters
id required | string Organisation Id |
Request Body schema: application/json
id required | string |
name | string or null |
required | object or null |
Responses
Request samples
- Payload
{- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "company": {
- "assurances": [
- {
- "id": "string",
- "type": "string",
- "body": "RT"
}
], - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "number": "string",
- "salesTaxId": "string",
- "logo": {
- "id": "string",
- "url": "string"
}
}, - "companyNumber": "string",
- "countryISO": "GB",
- "name": "string",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "businessConnections": [
- {
- "organisationId": "string",
- "organisationName": "string",
- "relationship": [
- "string"
], - "contacts": [
- {
- "givenName": "string",
- "familyName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "id": "string",
- "authPlatformId": "string"
}
], - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}
], - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "createdAtUTC": "string"
}
Remove a module from an organisation
Removed a module from the organisation and configure security for the owner
Authorizations:
path Parameters
id required | string Organisation Id |
Request Body schema: application/json
id required | string |
Responses
Request samples
- Payload
{- "id": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "company": {
- "assurances": [
- {
- "id": "string",
- "type": "string",
- "body": "RT"
}
], - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "number": "string",
- "salesTaxId": "string",
- "logo": {
- "id": "string",
- "url": "string"
}
}, - "companyNumber": "string",
- "countryISO": "GB",
- "name": "string",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "businessConnections": [
- {
- "organisationId": "string",
- "organisationName": "string",
- "relationship": [
- "string"
], - "contacts": [
- {
- "givenName": "string",
- "familyName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "id": "string",
- "authPlatformId": "string"
}
], - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}
], - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "createdAtUTC": "string"
}
Send a request to CS to add a module
Sends a message to a slack channel to request a new module for an organisation
Authorizations:
path Parameters
id required | string Organisation Id |
Request Body schema: application/json
id required | string |
Responses
Request samples
- Payload
{- "id": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Retrieve authenticated users profile
Retrieves the logged in customers profile (user & org)
Authorizations:
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "organisation": {
- "id": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "company": {
- "assurances": [
- {
- "id": "string",
- "type": "string",
- "body": "RT"
}
], - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "number": "string",
- "salesTaxId": "string",
- "logo": {
- "id": "string",
- "url": "string"
}
}, - "companyNumber": "string",
- "countryISO": "GB",
- "name": "string",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "businessConnections": [
- {
- "organisationId": "string",
- "organisationName": "string",
- "relationship": [
- "string"
], - "contacts": [
- {
- "givenName": "string",
- "familyName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "id": "string",
- "authPlatformId": "string"
}
], - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}
], - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "createdAtUTC": "string"
}, - "user": {
- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "marketing": true,
- "whatsApp": true,
- "sms": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "organisationId": "string",
- "organisationName": "string",
- "authPlatformId": "string",
- "status": "active",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "notificationsEnabled": true
}, - "access": {
- "administrator": true,
- "menu": true,
- "system": {
- "property1": {
- "read": true,
- "write": true
}, - "property2": {
- "read": true,
- "write": true
}
}, - "inventory": {
- "property1": {
- "read": true,
- "write": true
}, - "property2": {
- "read": true,
- "write": true
}
}, - "account": {
- "property1": {
- "read": true,
- "write": true
}, - "property2": {
- "read": true,
- "write": true
}
}, - "trading": {
- "property1": {
- "read": true,
- "write": true
}, - "property2": {
- "read": true,
- "write": true
}
}, - "logistics": {
- "property1": {
- "read": true,
- "write": true
}, - "property2": {
- "read": true,
- "write": true
}
}
}, - "features": {
- "property1": true,
- "property2": true
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}
}
Retrieve users by ids
Retrieve users by ids
Authorizations:
query Parameters
ids required | string Comma separated list of ids |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "users": [
- {
- "id": "string",
- "givenName": "string",
- "familyName": "string",
- "countryISO": "GB",
- "organisationName": "string",
- "organisationId": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "pushToken": "string",
- "organisation": {
- "id": "string",
- "name": "string",
- "bio": "string",
- "logo": {
- "id": "string",
- "url": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
]
}, - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
], - "enabled": true
}
], - "settings": {
- "terms": true,
- "marketing": true,
- "whatsApp": true,
- "sms": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}, - "authPlatformId": "string"
}
]
}
Retrieve users summary by ids
Retrieve users summary by ids
Authorizations:
query Parameters
ids required | string Comma separated list of ids |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "users": [
- {
- "id": "string",
- "givenName": "string",
- "familyName": "string",
- "countryISO": "GB",
- "organisationName": "string",
- "organisationId": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "pushToken": "string",
- "organisation": {
- "id": "string",
- "name": "string",
- "bio": "string",
- "logo": {
- "id": "string",
- "url": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
]
}, - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
], - "enabled": true
}
], - "settings": {
- "terms": true,
- "marketing": true,
- "whatsApp": true,
- "sms": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}, - "authPlatformId": "string"
}
]
}
Retrieve users by roles
Retrieve users by roles
Authorizations:
query Parameters
include | string include these array items |
exclude | string exclude these array items |
organisationId | string Organisation Id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "users": [
- {
- "id": "string",
- "givenName": "string",
- "familyName": "string",
- "countryISO": "GB",
- "organisationName": "string",
- "organisationId": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "pushToken": "string",
- "organisation": {
- "id": "string",
- "name": "string",
- "bio": "string",
- "logo": {
- "id": "string",
- "url": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
]
}, - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
], - "enabled": true
}
], - "settings": {
- "terms": true,
- "marketing": true,
- "whatsApp": true,
- "sms": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}, - "authPlatformId": "string"
}
]
}
Retrieve users by commodity regions
Retrieve users by commodity regions
Authorizations:
query Parameters
regionISOs | string Region ISOs separated by commas |
commodityId required | number Commodity ID |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "users": [
- {
- "id": "string",
- "givenName": "string",
- "familyName": "string",
- "countryISO": "GB",
- "organisationName": "string",
- "organisationId": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "pushToken": "string",
- "organisation": {
- "id": "string",
- "name": "string",
- "bio": "string",
- "logo": {
- "id": "string",
- "url": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
]
}, - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
], - "enabled": true
}
], - "settings": {
- "terms": true,
- "marketing": true,
- "whatsApp": true,
- "sms": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}, - "authPlatformId": "string"
}
]
}
Retrieve basic info for a user
Retrieve basic info for a user
Authorizations:
path Parameters
id required | string User Id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "id": "string",
- "givenName": "string",
- "familyName": "string",
- "countryISO": "GB",
- "organisationName": "string",
- "organisationId": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "pushToken": "string",
- "organisation": {
- "id": "string",
- "name": "string",
- "bio": "string",
- "logo": {
- "id": "string",
- "url": "string"
}, - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
]
}, - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
], - "enabled": true
}
], - "settings": {
- "terms": true,
- "marketing": true,
- "whatsApp": true,
- "sms": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}, - "authPlatformId": "string"
}
Authenticate a user based on an ApiToken
Authenticate a user based on an ApiToken and return their profile with the auth tokens
Request Body schema: application/json
token required | string |
Responses
Request samples
- Payload
{- "token": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "organisation": {
- "id": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "company": {
- "assurances": [
- {
- "id": "string",
- "type": "string",
- "body": "RT"
}
], - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "number": "string",
- "salesTaxId": "string",
- "logo": {
- "id": "string",
- "url": "string"
}
}, - "companyNumber": "string",
- "countryISO": "GB",
- "name": "string",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "businessConnections": [
- {
- "organisationId": "string",
- "organisationName": "string",
- "relationship": [
- "string"
], - "contacts": [
- {
- "givenName": "string",
- "familyName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "id": "string",
- "authPlatformId": "string"
}
], - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}
], - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "createdAtUTC": "string"
}, - "user": {
- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "marketing": true,
- "whatsApp": true,
- "sms": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "organisationId": "string",
- "organisationName": "string",
- "authPlatformId": "string",
- "status": "active",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "notificationsEnabled": true
}, - "access": {
- "administrator": true,
- "menu": true,
- "system": {
- "property1": {
- "read": true,
- "write": true
}, - "property2": {
- "read": true,
- "write": true
}
}, - "inventory": {
- "property1": {
- "read": true,
- "write": true
}, - "property2": {
- "read": true,
- "write": true
}
}, - "account": {
- "property1": {
- "read": true,
- "write": true
}, - "property2": {
- "read": true,
- "write": true
}
}, - "trading": {
- "property1": {
- "read": true,
- "write": true
}, - "property2": {
- "read": true,
- "write": true
}
}, - "logistics": {
- "property1": {
- "read": true,
- "write": true
}, - "property2": {
- "read": true,
- "write": true
}
}
}, - "features": {
- "property1": true,
- "property2": true
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}
}
Generate an ApiToken for a user
Generate an ApiToken for a user
Authorizations:
Request Body schema: application/json
userId required | string |
hours required | number |
roles required | Array of strings |
Responses
Request samples
- Payload
{- "userId": "string",
- "hours": 0,
- "roles": [
- "string"
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
User Request Full Account
Sends a request to the customer success team to set up a full account for the user.
Request Body schema: application/json
requestType required | string Enum: "account" "tradingBuyerAccount" |
firstName required | string |
lastName required | string |
businessName required | string |
companyNumber required | string or null |
emailAddress required | string |
phone required | string or null <phone-number> Phone number |
Responses
Request samples
- Payload
{- "requestType": "account",
- "firstName": "string",
- "lastName": "string",
- "businessName": "string",
- "companyNumber": "string",
- "emailAddress": "string",
- "phone": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Generate an ApiToken for a user
Generate an ApiToken for a user
Authorizations:
Request Body schema: application/json
userId required | string |
hours required | number |
roles required | Array of strings |
Responses
Request samples
- Payload
{- "userId": "string",
- "hours": 0,
- "roles": [
- "string"
]
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Admin reset password
Admin initiated password reset request on behalf of a user
Authorizations:
Request Body schema: application/json
username required | string email or username |
Responses
Request samples
- Payload
{- "username": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Admin set password
Admin initiated set password request on behalf of a user
Authorizations:
Request Body schema: application/json
username required | string |
password required | string <cognito-password> Standard cognito password |
Responses
Request samples
- Payload
{- "username": "string",
- "password": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Login
User initiated login
Request Body schema: application/json
username required | string Phone, email address or username |
password required | string |
newPassword | string <cognito-password> Standard cognito password |
Responses
Request samples
- Payload
{- "username": "string",
- "password": "string",
- "newPassword": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "challenge": {
- "session": "string",
- "challengeParameters": {
- "missingAttributes": [
- "string"
], - "authPlatformId": "string"
}, - "challengeName": "string"
}
}
Change Password
User initiated change password request
Authorizations:
Request Body schema: application/json
string or null | |
oldPassword required | string |
newPassword required | string <cognito-password> Standard cognito password |
confirmNewPassword required | string <cognito-password> Standard cognito password |
Responses
Request samples
- Payload
{- "email": "string",
- "oldPassword": "string",
- "newPassword": "string",
- "confirmNewPassword": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Forgotten Password
User initiated forgotten password request
Request Body schema: application/json
username required | string email or username |
Responses
Request samples
- Payload
{- "username": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Reset password
User initiated forgotten password confirmation request
Request Body schema: application/json
username required | string |
password | string <cognito-password> Standard cognito password |
passwordConfirm | string <cognito-password> Standard cognito password |
confirmationCode | string |
Responses
Request samples
- Payload
{- "username": "string",
- "password": "string",
- "passwordConfirm": "string",
- "confirmationCode": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "challenge": {
- "session": "string",
- "challengeParameters": {
- "missingAttributes": [
- "string"
], - "authPlatformId": "string"
}, - "challengeName": "string"
}
}
Confirm Signup
User initiated signup confirmation, takes a username and a confirmation code and sets the users account to confirmed, allowing that user to login
Request Body schema: application/json
username required | string users authPlatformId |
confirmationCode required | string Six digit code sent to user to confirm their account |
Responses
Request samples
- Payload
{- "username": "string",
- "confirmationCode": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Send Magic Login Link
Takes a user id and begins authentication through cognito, sending a login link to the user via whatsapp
Request Body schema: application/json
id required | string User Id |
redirect required | string Redirect Url |
Responses
Request samples
- Payload
{- "id": "string",
- "redirect": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Verify Magic Link
User was sent whatsapp link with code. Code from that link will be posted to this endpoint to verify their login.
Request Body schema: application/json
id required | string Auth Lookup Id |
Responses
Request samples
- Payload
{- "id": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}
Authenticate a user based on an ApiToken
Authenticate a user based on an ApiToken and return their profile with the auth tokens
Request Body schema: application/json
token required | string |
Responses
Request samples
- Payload
{- "token": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "organisation": {
- "id": "string",
- "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "company": {
- "assurances": [
- {
- "id": "string",
- "type": "string",
- "body": "RT"
}
], - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "sqc": {
- "number": "string",
- "isAssured": true
}, - "assuranceScheme": "RT",
- "number": "string",
- "salesTaxId": "string",
- "logo": {
- "id": "string",
- "url": "string"
}
}, - "companyNumber": "string",
- "countryISO": "GB",
- "name": "string",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "familyName": "string",
- "givenName": "string",
- "authPlatformId": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "businessConnections": [
- {
- "organisationId": "string",
- "organisationName": "string",
- "relationship": [
- "string"
], - "contacts": [
- {
- "givenName": "string",
- "familyName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}, - "email": "string",
- "id": "string",
- "authPlatformId": "string"
}
], - "location": {
- "what3words": "string",
- "address": {
- "name": "string",
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "region": "string",
- "regionISO": "string",
- "postcode": "string",
- "countryName": "string",
- "countryISO": "GB"
}, - "coordinates": {
- "lat": 0,
- "lon": 0
}
}, - "countryISO": "GB",
- "ownerContact": {
- "id": "string",
- "email": "string",
- "familyName": "string",
- "givenName": "string",
- "phone": {
- "callingCode": "string",
- "number": "string"
}
}
}
], - "billing": {
- "amount": 0,
- "currency": "string",
- "period": "month"
}, - "modules": [
- {
- "id": "string",
- "name": "string",
- "price": {
- "amount": 0,
- "currency": "string"
}
}
], - "vetted": true,
- "isMerchant": true,
- "createdAtUTC": "string"
}, - "user": {
- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "marketing": true,
- "whatsApp": true,
- "sms": true,
- "harvestNotificationDismissed": true,
- "harvestDialogDismissed": true,
- "listingsWelcomeRead": true
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userName": "string",
- "createdAtUTC": "string"
}, - "organisationId": "string",
- "organisationName": "string",
- "authPlatformId": "string",
- "status": "active",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "notificationsEnabled": true
}, - "access": {
- "administrator": true,
- "menu": true,
- "system": {
- "property1": {
- "read": true,
- "write": true
}, - "property2": {
- "read": true,
- "write": true
}
}, - "inventory": {
- "property1": {
- "read": true,
- "write": true
}, - "property2": {
- "read": true,
- "write": true
}
}, - "account": {
- "property1": {
- "read": true,
- "write": true
}, - "property2": {
- "read": true,
- "write": true
}
}, - "trading": {
- "property1": {
- "read": true,
- "write": true
}, - "property2": {
- "read": true,
- "write": true
}
}, - "logistics": {
- "property1": {
- "read": true,
- "write": true
}, - "property2": {
- "read": true,
- "write": true
}
}
}, - "features": {
- "property1": true,
- "property2": true
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}
}
Change Marketplace password
User initiated change marketplace password request
Request Body schema: application/json
string or null | |
oldPassword required | string |
newPassword required | string <cognito-password> Standard cognito password |
confirmNewPassword required | string <cognito-password> Standard cognito password |
Responses
Request samples
- Payload
{- "email": "string",
- "oldPassword": "string",
- "newPassword": "string",
- "confirmNewPassword": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "challenge": {
- "session": "string",
- "challengeParameters": {
- "missingAttributes": [
- "string"
], - "authPlatformId": "string"
}, - "challengeName": "string"
}
}
Update system settings
Change the system settings document in the customers module
Authorizations:
Request Body schema: application/json
required | object | ||||
|
Responses
Request samples
- Payload
{- "logging": {
- "level": "string",
- "filter": "string"
}
}
Response samples
- 200
- 400
- 401
- 403
- 409
- 500
{- "message": "string",
- "status": "string"
}