Customer API (1.0.0)
Download OpenAPI specification:Download
Lookup assurance information Deprecated
Lookup assurance information for RT or SQC
Authorizations:
query Parameters
assuranceBody | string Enum: "RT" "SQC" RT or SQC |
assuranceIdentifier | string Membership Number or Holding Number |
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
- 404
- 500
{- "message": "string",
- "status": "string"
}
Get Business
Retrieve business for a business unit
path Parameters
id required | string Business Id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "businessUnitId": "string",
- "organisationId": "string",
- "primary": true,
- "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
}
}, - "collectionLocation": {
- "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"
], - "holdingNumber": "string",
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}
}
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
- 404
- 500
[- {
- "id": "string",
- "businessUnitId": "string",
- "organisationId": "string",
- "primary": true,
- "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
}
}, - "collectionLocation": {
- "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"
], - "holdingNumber": "string",
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}
}
]
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 | string Deprecated The type of business unit being created |
required | object |
Responses
Request samples
- Payload
{- "organisationId": "string",
- "name": "string",
- "type": "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
}
}, - "collectionLocation": {
- "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",
- "holdingNumber": "string",
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}
}
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "ordinal": 0,
- "id": "string",
- "name": "string",
- "type": "string",
- "tags": [
- "string"
], - "business": {
- "id": "string",
- "businessUnitId": "string",
- "organisationId": "string",
- "primary": true,
- "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
}
}, - "collectionLocation": {
- "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"
], - "holdingNumber": "string",
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}
}
}
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
- 404
- 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
- 404
- 500
{- "id": "string",
- "organisationId": "string",
- "organisationName": "string",
- "organisationRegionISO": "string",
- "tagGroups": [
- {
- "name": "string",
- "tags": [
- "string"
]
}
], - "businessUnits": [
- {
- "ordinal": 0,
- "id": "string",
- "name": "string",
- "type": "string",
- "tags": [
- "string"
], - "business": {
- "id": "string",
- "businessUnitId": "string",
- "organisationId": "string",
- "primary": true,
- "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
}
}, - "collectionLocation": {
- "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"
], - "holdingNumber": "string",
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}
}
}
]
}
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
}
}, - "collectionLocation": {
- "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",
- "primary": true,
- "holdingNumber": "string",
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}
}
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "ordinal": 0,
- "id": "string",
- "name": "string",
- "type": "string",
- "tags": [
- "string"
], - "business": {
- "id": "string",
- "businessUnitId": "string",
- "organisationId": "string",
- "primary": true,
- "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
}
}, - "collectionLocation": {
- "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"
], - "holdingNumber": "string",
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}
}
}
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
- 404
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}
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
- 404
- 500
{- "message": "string",
- "status": "string"
}
Reset customers email & set password if supplied
Reset customers email & set password if supplied
Authorizations:
Request Body schema: application/json
currentEmail required | string |
newEmail required | string |
password | string or null <cognito-password> Standard cognito password |
Responses
Request samples
- Payload
{- "currentEmail": "string",
- "newEmail": "string",
- "password": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 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
- 404
- 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
- 404
- 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 |
salesforceId | string or null ID of the account in Salesforce |
required | Array of objects |
signupPurpose | Array of integers |
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": {
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}, - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "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"
], - "salesforceId": "string",
- "modules": [
- {
- "id": "string",
- "name": "string"
}
], - "signupPurpose": [
- 0
]
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 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": {
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}, - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "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",
- "impersonate": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "modules": [
- {
- "id": "string",
- "name": "string"
}
], - "vetted": true,
- "rejected": true,
- "isMerchant": true,
- "createdAtUTC": "string",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "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
- 404
- 500
{- "docs": [
- {
- "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": {
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}, - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "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",
- "impersonate": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "modules": [
- {
- "id": "string",
- "name": "string"
}
], - "vetted": true,
- "rejected": true,
- "isMerchant": true,
- "createdAtUTC": "string",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "string"
}
], - "custom": { },
- "totalDocs": 0,
- "limit": 0,
- "offset": 0,
- "clearUrl": "string",
- "activeFilters": [
- {
- "name": "string",
- "clearUrl": "string",
- "terms": [
- {
- "name": "string",
- "clearUrl": "string"
}
]
}
], - "facets": [
- {
- "displayName": "string",
- "clearUrl": "string",
- "disabled": true,
- "name": "string",
- "selected": true,
- "active": true,
- "terms": [
- {
- "name": "string",
- "url": "string",
- "hits": "string",
- "selected": "string",
- "id": "string",
- "state": "checked disabled",
- "aggregations": {
- "property1": {
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0
}, - "property2": {
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0
}
}
}
]
}
], - "aggregations": [
- {
- "name": "string",
- "sum": 0,
- "min": 0,
- "max": 0,
- "average": 0,
- "count": 0,
- "range": "string",
- "hits": 0,
- "unit": "string"
}
]
}
Create organisation that is not vetted
Create a new pending organisation waiting for approval
Request Body schema: application/json
givenName required | string |
familyName required | string |
email required | string |
phone required | string or null <phone-number> Phone number |
businessName required | string |
referralCode | string |
holdingOrMembershipNumber | string or null |
modules required | Array of strings |
signupPurpose | Array of integers |
assuranceBody | string or null Enum: "RT" "SQC" null |
Responses
Request samples
- Payload
{- "givenName": "string",
- "familyName": "string",
- "email": "string",
- "phone": "string",
- "businessName": "string",
- "referralCode": "string",
- "holdingOrMembershipNumber": "string",
- "modules": [
- "string"
], - "signupPurpose": [
- 0
], - "assuranceBody": "RT"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 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": {
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}, - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "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",
- "impersonate": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "modules": [
- {
- "id": "string",
- "name": "string"
}
], - "vetted": true,
- "rejected": true,
- "isMerchant": true,
- "createdAtUTC": "string",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "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
- 404
- 500
[- {
- "id": "string",
- "businessId": "string",
- "businessUnitId": "string",
- "createdAtUTC": "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",
- "userId": "string",
- "userName": "string",
- "organisationId": "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"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "modules": [
- {
- "id": "string",
- "name": "string"
}
], - "vetted": true,
- "rejected": true,
- "isMerchant": true,
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}, - "assuranceId": "string",
- "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "string",
- "salesforceUpdates": [
- "string"
]
}
]
Get organisation of the logged in user
Get organisation of the logged in user
Authorizations:
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "businessId": "string",
- "businessUnitId": "string",
- "createdAtUTC": "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",
- "userId": "string",
- "userName": "string",
- "organisationId": "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"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "modules": [
- {
- "id": "string",
- "name": "string"
}
], - "vetted": true,
- "rejected": true,
- "isMerchant": true,
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}, - "assuranceId": "string",
- "assuranceScheme": "RT",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "string",
- "salesforceUpdates": [
- "string"
]
}
Get Organisation
Get Organisation
Authorizations:
path Parameters
id required | string Organisation Id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 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": {
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}, - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "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",
- "impersonate": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "modules": [
- {
- "id": "string",
- "name": "string"
}
], - "vetted": true,
- "rejected": true,
- "isMerchant": true,
- "createdAtUTC": "string",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "string"
}
Update Organisation
Updates an Organisations properties
Authorizations:
path Parameters
id required | string Organisation Id |
Request Body schema: application/json
object or null | |
object or null | |
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 |
salesforceId | string or null |
Array of objects | |
signupPurpose | Array of integers |
companyNumber | string or null Deprecated Legal number associated with an incorporated business |
companySalesTaxId | string or null Deprecated |
Array of objects or null | |
object or null | |
status | string or null |
statusMessage | string or null |
salesforceUpdates | Array of strings or null |
vetted | boolean |
isMerchant | boolean |
rejected | 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": {
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}, - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "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"
], - "salesforceId": "string",
- "modules": [
- {
- "id": "string",
- "name": "string"
}
], - "signupPurpose": [
- 0
], - "companyNumber": "string",
- "companySalesTaxId": "string",
- "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "logo": {
- "id": "string",
- "url": "string"
}, - "status": "string",
- "statusMessage": "string",
- "salesforceUpdates": [
- "string"
], - "vetted": true,
- "isMerchant": true,
- "rejected": true
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 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": {
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}, - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "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",
- "impersonate": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "modules": [
- {
- "id": "string",
- "name": "string"
}
], - "vetted": true,
- "rejected": true,
- "isMerchant": true,
- "createdAtUTC": "string",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "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}$ |
status | boolean or null |
Responses
Request samples
- Payload
{- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "status": true
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 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
- 404
- 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
- 404
- 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 for sellers
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
- 404
- 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
- 404
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}
set seller 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
- 404
- 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
- 404
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}
Import FinMid sellers
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
- 404
- 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
- 404
- 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": {
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}, - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "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",
- "impersonate": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "modules": [
- {
- "id": "string",
- "name": "string"
}
], - "vetted": true,
- "rejected": true,
- "isMerchant": true,
- "createdAtUTC": "string",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "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
- 404
- 500
{- "docs": [
- {
- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "termsOnce": true,
- "marketingPreferences": {
- "marketUpdates": true,
- "communications": true
}, - "whatsApp": true,
- "sms": true,
- "onboardingProgress": [
- "string"
]
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "userTypes": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "enabled": true,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "sellerPreferences": [
- "string"
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "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
}
], - "totalDocs": 0,
- "limit": 0,
- "offset": 0
}
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
- 404
- 500
{- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "termsOnce": true,
- "marketingPreferences": {
- "marketUpdates": true,
- "communications": true
}, - "whatsApp": true,
- "sms": true,
- "onboardingProgress": [
- "string"
]
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "userTypes": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "enabled": true,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "sellerPreferences": [
- "string"
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "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
- 404
- 500
{- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "termsOnce": true,
- "marketingPreferences": {
- "marketUpdates": true,
- "communications": true
}, - "whatsApp": true,
- "sms": true,
- "onboardingProgress": [
- "string"
]
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "userTypes": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "enabled": true,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "sellerPreferences": [
- "string"
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "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 Deprecated |
object | |
whatsAppNotifications | boolean or null |
smsNotifications | boolean or null |
preferences | Array of strings or null |
onboardingProgress | Array of strings 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,
- "marketingPreferences": {
- "marketUpdates": true,
- "communications": true
}, - "whatsAppNotifications": true,
- "smsNotifications": true,
- "preferences": [
- "string"
], - "onboardingProgress": [
- "string"
]
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "termsOnce": true,
- "marketingPreferences": {
- "marketUpdates": true,
- "communications": true
}, - "whatsApp": true,
- "sms": true,
- "onboardingProgress": [
- "string"
]
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "userTypes": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "enabled": true,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "sellerPreferences": [
- "string"
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "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
- 404
- 500
{- "message": "string",
- "status": "string"
}
Find users by preferences
Lookup user summaries for all users 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 |
userType | string User type buyer or seller |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 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"
}
]
}, - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
], - "enabled": true
}
], - "settings": {
- "terms": true,
- "termsOnce": true,
- "marketingPreferences": {
- "marketUpdates": true,
- "communications": true
}, - "whatsApp": true,
- "sms": true,
- "onboardingProgress": [
- "string"
]
}, - "authPlatformId": "string",
- "userTypes": [
- "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
required | Array of objects |
notificationsEnabled required | boolean |
Responses
Request samples
- Payload
{- "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
], - "enabled": true
}
], - "notificationsEnabled": true
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "termsOnce": true,
- "marketingPreferences": {
- "marketUpdates": true,
- "communications": true
}, - "whatsApp": true,
- "sms": true,
- "onboardingProgress": [
- "string"
]
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "userTypes": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "enabled": true,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "sellerPreferences": [
- "string"
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "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
- 404
- 500
{- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "termsOnce": true,
- "marketingPreferences": {
- "marketUpdates": true,
- "communications": true
}, - "whatsApp": true,
- "sms": true,
- "onboardingProgress": [
- "string"
]
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "userTypes": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "enabled": true,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "sellerPreferences": [
- "string"
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "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
}
Impersonate an organisation
Returns an encrypted impersonation token valid for 1 hour for the specified organisation
Authorizations:
path Parameters
id required | string Organisation Id |
query Parameters
userId | string User Id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "token": "string"
}
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
- 404
- 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": {
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}, - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "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",
- "impersonate": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "modules": [
- {
- "id": "string",
- "name": "string"
}
], - "vetted": true,
- "rejected": true,
- "isMerchant": true,
- "createdAtUTC": "string",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "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 |
Responses
Request samples
- Payload
{- "id": "string",
- "name": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 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": {
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}, - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "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",
- "impersonate": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "modules": [
- {
- "id": "string",
- "name": "string"
}
], - "vetted": true,
- "rejected": true,
- "isMerchant": true,
- "createdAtUTC": "string",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "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
- 404
- 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": {
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}, - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "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",
- "impersonate": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "modules": [
- {
- "id": "string",
- "name": "string"
}
], - "vetted": true,
- "rejected": true,
- "isMerchant": true,
- "createdAtUTC": "string",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "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
- 404
- 500
{- "message": "string",
- "status": "string"
}
Link a user from another organisation to authenticated users organisation via a profile
Authorizations:
Request Body schema: application/json
userId required | string |
roles required | 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
{- "userId": "string",
- "roles": [
- "string"
], - "businessUnits": [
- "string"
]
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "givenName": "string",
- "type": "internal",
- "familyName": "string",
- "name": "string",
- "countryISO": "GB",
- "email": "string",
- "pushToken": "string",
- "external": false,
- "impersonating": false,
- "settings": {
- "terms": true,
- "termsOnce": true,
- "marketingPreferences": {
- "marketUpdates": true,
- "communications": true
}, - "whatsApp": true,
- "sms": true,
- "onboardingProgress": [
- "string"
]
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "userTypes": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "enabled": true,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "sellerPreferences": [
- "string"
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "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
}
Retrieve authenticated users profile
Retrieves the logged in customers profile (user & org)
Authorizations:
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 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": {
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}, - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "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",
- "impersonate": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "modules": [
- {
- "id": "string",
- "name": "string"
}
], - "vetted": true,
- "rejected": true,
- "isMerchant": true,
- "createdAtUTC": "string",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "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,
- "termsOnce": true,
- "marketingPreferences": {
- "marketUpdates": true,
- "communications": true
}, - "whatsApp": true,
- "sms": true,
- "onboardingProgress": [
- "string"
]
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "userTypes": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "enabled": true,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "sellerPreferences": [
- "string"
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "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
}
}, - "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
}
}
}, - "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
- 404
- 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"
}
]
}, - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
], - "enabled": true
}
], - "settings": {
- "terms": true,
- "termsOnce": true,
- "marketingPreferences": {
- "marketUpdates": true,
- "communications": true
}, - "whatsApp": true,
- "sms": true,
- "onboardingProgress": [
- "string"
]
}, - "authPlatformId": "string",
- "userTypes": [
- "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
- 404
- 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"
}
]
}, - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
], - "enabled": true
}
], - "settings": {
- "terms": true,
- "termsOnce": true,
- "marketingPreferences": {
- "marketUpdates": true,
- "communications": true
}, - "whatsApp": true,
- "sms": true,
- "onboardingProgress": [
- "string"
]
}, - "authPlatformId": "string",
- "userTypes": [
- "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
- 404
- 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"
}
]
}, - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
], - "enabled": true
}
], - "settings": {
- "terms": true,
- "termsOnce": true,
- "marketingPreferences": {
- "marketUpdates": true,
- "communications": true
}, - "whatsApp": true,
- "sms": true,
- "onboardingProgress": [
- "string"
]
}, - "authPlatformId": "string",
- "userTypes": [
- "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
- 404
- 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"
}
]
}, - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
], - "enabled": true
}
], - "settings": {
- "terms": true,
- "termsOnce": true,
- "marketingPreferences": {
- "marketUpdates": true,
- "communications": true
}, - "whatsApp": true,
- "sms": true,
- "onboardingProgress": [
- "string"
]
}, - "authPlatformId": "string",
- "userTypes": [
- "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
- 404
- 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": {
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}, - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "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",
- "impersonate": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "modules": [
- {
- "id": "string",
- "name": "string"
}
], - "vetted": true,
- "rejected": true,
- "isMerchant": true,
- "createdAtUTC": "string",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "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,
- "termsOnce": true,
- "marketingPreferences": {
- "marketUpdates": true,
- "communications": true
}, - "whatsApp": true,
- "sms": true,
- "onboardingProgress": [
- "string"
]
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "userTypes": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "enabled": true,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "sellerPreferences": [
- "string"
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "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
}
}, - "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
}
}
}, - "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
- 404
- 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
- 404
- 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 | string email or username |
phone | string phone number |
Responses
Request samples
- Payload
{- "username": "string",
- "phone": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 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
- 404
- 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
- 404
- 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
- 404
- 500
{- "message": "string",
- "status": "string"
}
Forgotten Password
User initiated forgotten password request
Request Body schema: application/json
username | string email or username |
phone | string phone number |
Responses
Request samples
- Payload
{- "username": "string",
- "phone": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "attributeName": "string",
- "deliveryMedium": "string",
- "destination": "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
- 404
- 500
{- "message": "string",
- "status": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 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
- 404
- 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
- 404
- 500
{- "message": "string",
- "status": "string"
}
Send Magic Login Link
Takes a user email or phone and begins authentication through cognito, sending a login link to the user via email
query Parameters
string Contacts email address | |
phone | string User phone |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 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"
}
]
}, - "preferences": [
- {
- "commodity": 0,
- "grades": [
- 0
], - "regions": [
- "string"
], - "enabled": true
}
], - "settings": {
- "terms": true,
- "termsOnce": true,
- "marketingPreferences": {
- "marketUpdates": true,
- "communications": true
}, - "whatsApp": true,
- "sms": true,
- "onboardingProgress": [
- "string"
]
}, - "authPlatformId": "string",
- "userTypes": [
- "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
- 404
- 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
- 404
- 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": {
- "assurance": {
- "id": "string",
- "key": "string",
- "body": "RT",
- "location": "string"
}, - "id": "string",
- "bio": "string",
- "website": "string",
- "holdingNumber": "string",
- "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",
- "impersonate": "string"
}, - "settlementContacts": [
- {
- "name": "string",
- "email": "string"
}
], - "status": "active",
- "statusMessage": "string",
- "businessUnits": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "business": "string",
- "region": "string",
- "tags": [
- "string"
]
}
], - "modules": [
- {
- "id": "string",
- "name": "string"
}
], - "vetted": true,
- "rejected": true,
- "isMerchant": true,
- "createdAtUTC": "string",
- "advancePay": {
- "accountName": "string",
- "sortCode": "string",
- "accountNumber": "string",
- "enabled": true,
- "eligible": true
}, - "salesforceId": "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,
- "termsOnce": true,
- "marketingPreferences": {
- "marketUpdates": true,
- "communications": true
}, - "whatsApp": true,
- "sms": true,
- "onboardingProgress": [
- "string"
]
}, - "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "groups": [
- "string"
], - "roles": [
- "string"
], - "userTypes": [
- "string"
], - "profiles": [
- {
- "organisationId": "string",
- "businessUnits": [
- "string"
], - "roles": [
- "string"
]
}
], - "preferences": [
- {
- "commodity": 0,
- "enabled": true,
- "grades": [
- 0
], - "regions": [
- "string"
]
}
], - "sellerPreferences": [
- "string"
], - "phone": {
- "callingCode": "string",
- "number": "string"
}, - "phoneLandline": {
- "callingCode": "string",
- "number": "string"
}, - "avatar": {
- "name": "string",
- "id": "string",
- "url": "string",
- "userId": "string",
- "userName": "string",
- "organisationId": "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
}
}, - "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
}
}
}, - "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
- 404
- 500
{- "tokens": {
- "id": "string",
- "access": "string",
- "refresh": "string",
- "expiresIn": 0
}, - "challenge": {
- "session": "string",
- "challengeParameters": {
- "missingAttributes": [
- "string"
], - "authPlatformId": "string"
}, - "challengeName": "string"
}
}
Do something to an entity
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
- 404
- 500
{- "success": 0,
- "validation": 0,
- "errors": 0,
- "results": [
- {
- "rows": "string",
- "status": "success",
- "message": [
- "string"
], - "summary": "string",
- "id": "string",
- "reference": "string"
}
]
}
Find assurance from table Deprecated
Finds an assurance via an identifier
query Parameters
assuranceIdentifier required | string Membership Number or Holding Number |
assuranceBody required | string Enum: "RT" "SQC" RT or SQC |
organisationId | string Organisation Id |
businessId | string Business Id |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "membershipId": "string",
- "name": "string",
- "holdingNumber": "string",
- "county": "string",
- "postcode": "string",
- "address": "string",
- "contactName": "string",
- "scheme": "RT",
- "assured": true,
- "certificationStartDate": "string",
- "certificationEndDate": "string",
- "certificateUrl": "string",
- "crops": [
- {
- "name": "string",
- "id": 0,
- "tonnesMin": 0,
- "tonnesMax": 0
}
]
}
Lookup customers assurance from insights
Finds an assurance via an identifier or key
query Parameters
assuranceIdentifier | string Membership Number or Holding Number |
assuranceBody required | string Enum: "RT" "SQC" RT or SQC |
assuranceKey | string Unique RT account key |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
[- {
- "membershipId": "string",
- "name": "string",
- "holdingNumber": "string",
- "county": "string",
- "postcode": "string",
- "address": "string",
- "contactName": "string",
- "scheme": "RT",
- "assured": true,
- "certificationStartDate": "string",
- "certificationEndDate": "string",
- "certificateUrl": "string",
- "crops": [
- {
- "name": "string",
- "id": 0,
- "tonnesMin": 0,
- "tonnesMax": 0
}
]
}
]
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
- 404
- 500
{- "message": "string",
- "status": "string"
}