Download OpenAPI specification:Download
APIs that allow you to to get, create and maintain suppliers.
Used to retrieve all suppliers within a given company.
tenantId required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 Id of the tenant to retrieve information for. The account requesting the data must have access to this tenant Id. |
companyId required | string <guid> Example: 8d4bb975-eade-42fd-a064-bf448e493c1e Id of the company to retrieve suppliers for. Must be a valid company within the tenant. |
pageNumber required | integer >= 1 Example: 1 Page number. The API call will return a page of data (page size is 100 records). |
x-api-compleat-key required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 The header containing compleat api key. |
x-api-version required | integer Value: 1 Example: 1 Indicates the version of this API to be used. |
{- "Suppliers": [
- {
- "Code": "string",
- "Name": "string",
- "AddressLine1": "string",
- "AddressLine2": "string",
- "TownOrCity": "string",
- "StateOrCounty": "string",
- "PostcodeOrZip": "string",
- "Country": "string",
- "IsoCode": "string",
- "Telephone": "string",
- "Email": "string",
- "BankName": "string",
- "BankAccountNumber": "string",
- "BankSortCode": "string",
- "PaymentDueDays": 0,
- "PaymentTermsType": "NetDays",
- "AnalysisDefaults": [
- {
- "FieldCode": "AccountCode",
- "Value": "string"
}
]
}
], - "MetaData": {
- "RequestUrl": "string",
- "Version": 1,
- "DateCreated": "2019-08-24"
}
}
Used to refresh the suppliers in a company with a complete new set of values, or append values to a previous new post.
tenantId required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 Id of the tenant to post suppliers into. The account requesting the data must have access to this tenant Id. |
companyId required | string <guid> Example: 8d4bb975-eade-42fd-a064-bf448e493c1e Id of the company to post suppliers into. Must be a valid company within the tenant. |
x-api-compleat-key required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 The header containing compleat api key. |
x-api-version required | integer Value: 1 Example: 1 Indicates the version of this API to be used. |
required | Array of objects (Supplier) The list of suppliers to post into the system |
ContinuationToken | string <guid> Optional continuation token. If provided and is recognised by iCompleat, suppliers are upserted into the supplier list. If not provided or not recognised, then the list provided replaces any suppliers for the company. |
This will wipe any suppliers for the company, and apply the list provided as a fresh set
{- "Suppliers": [
- {
- "code": "SUPP1",
- "name": "Example supplier 1"
}, - {
- "code": "SUPP2",
- "name": "Example supplier 2"
}, - {
- "code": "SUPP3",
- "name": "Example supplier 3 (with full data profile)",
- "addressLine1": "1A Street",
- "addressLine2": "Somewhere",
- "townOrCity": "Somewhereville",
- "stateOrCounty": "OverThere",
- "postcodeOrZip": "OV1 1AA",
- "country": "United Kingdom",
- "isoCode": "GB",
- "telephone": "+44 1234 567 890",
- "email": "somewhere@example.com",
- "bankName": "Barclays Bank Plc.",
- "bankAccountNumber": "01-23-45",
- "bankSortCode": "12345678",
- "paymentDueDays": "30",
- "paymentTermsType": "NetDays",
- "analysisDefaults": [
- {
- "fieldCode": "AccountCode",
- "value": "7501"
}, - {
- "fieldCode": "TaxCode",
- "value": "T1"
}, - {
- "fieldCode": "CurrencyCode",
- "value": "GBP"
}, - {
- "fieldCode": "DeliverySite",
- "value": "NOR"
}
]
}
]
}
{- "ContinuationToken": "25527ccb-d5fb-4b54-b4f0-738f99d06d17",
- "MetaData": {
- "Version": 1,
- "DateCreated": "2018-08-08T11:43:01.5753381Z"
}
}
Used to add a single supplier to an existing company, or update a single supplier. At least a code and name is to be provided. If the code exists, then all data in the existing record is replaced with the new data provided. If the code does not exist, the record is added.
tenantId required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 Id of the tenant to post account codes into. The account requesting the data must have access to this tenant Id. |
companyId required | string <guid> Example: 8d4bb975-eade-42fd-a064-bf448e493c1e Id of the company to post account codes into. Must be a valid company within the tenant. |
x-api-compleat-key required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 The header containing compleat api key. |
x-api-version required | integer Value: 1 Example: 1 Indicates the version of this API to be used. |
Code | string The code assigned to the supplier record. |
Name | string Descriptive name of the supplier. |
AddressLine1 | string Address line 1 |
AddressLine2 | string Address line 2 |
TownOrCity | string Address line 3 (town or city) |
StateOrCounty | string Address line 4 (state or county) |
PostcodeOrZip | string Postcode or zip code |
Country | string Country name |
IsoCode | string ISO3166-2 country code |
Telephone | string Contact telephone number |
string Contact email address | |
BankName | string Name of the company bank account for payments |
BankAccountNumber | string Company bank account number for payments |
BankSortCode | string Company bank sort code for payments |
PaymentDueDays | integer >= 0 Standard payment terms (number of days from invoice received, or alternative calculation given by the payment terms type) |
PaymentTermsType | string Default: "NetDays" Enum: "NetDays" "EndOfMonth" "NextMonth" "NextMonthx2" "SameDayNextMonth" "EndOfMonthPlusDays" "StartOfMonthPlusDays" "DayOfMonth" "CashOnDelivery" "Prepaid" Standard |
Array of objects Optional list of default analysis items to set for transactions related to this supplier. |
{- "code": "SUPP3",
- "name": "Example supplier 3 (with full data profile)",
- "addressLine1": "1A Street",
- "addressLine2": "Somewhere",
- "townOrCity": "Somewhereville",
- "stateOrCounty": "OverThere",
- "postcodeOrZip": "OV1 1AA",
- "country": "United Kingdom",
- "isoCode": "GB",
- "telephone": "+44 1234 567 890",
- "email": "somewhere@example.com",
- "bankName": "Barclays Bank Plc.",
- "bankAccountNumber": "01-23-45",
- "bankSortCode": "12345678",
- "paymentDueDays": "30",
- "paymentTermsType": "NetDays",
- "analysisDefaults": [
- {
- "fieldCode": "AccountCode",
- "value": "7501"
}, - {
- "fieldCode": "TaxCode",
- "value": "T1"
}, - {
- "fieldCode": "CurrencyCode",
- "value": "GBP"
}, - {
- "fieldCode": "DeliverySite",
- "value": "NOR"
}
]
}
{- "Result": "Supplier [SUPP3] matched and updated.",
- "MetaData": {
- "Version": 1,
- "DateCreated": "2018-08-08T11:43:01.5753381Z"
}
}
Used to remove all suppliers for a company.
tenantId required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 Id of the tenant to delete suppliers for. The account requesting the data must have access to this tenant Id. |
companyId required | string <guid> Example: 8d4bb975-eade-42fd-a064-bf448e493c1e Id of the company to delete suppliers for. Must be a valid company within the tenant. |
x-api-compleat-key required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 The header containing compleat api key. |
x-api-version required | integer Value: 1 Example: 1 Indicates the version of this API to be used. |
{- "Result": "Suppliers have been deleted.",
- "MetaData": {
- "Version": 1,
- "DateCreated": "2018-08-08T11:43:01.5753381Z"
}
}
Used to remove a specific supplier.
tenantId required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 Id of the tenant to delete suppliers for. The account requesting the data must have access to this tenant Id. |
companyId required | string <guid> Example: 8d4bb975-eade-42fd-a064-bf448e493c1e Id of the company to delete suppliers for. Must be a valid company within the tenant. |
code required | string Example: SUP1 The code of the supplier to delete. |
x-api-compleat-key required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 The header containing compleat api key. |
x-api-version required | integer Value: 1 Example: 1 Indicates the version of this API to be used. |
{- "Result": "Supplier [SUP1] has been deleted.",
- "MetaData": {
- "Version": 1,
- "DateCreated": "2018-08-08T11:43:01.5753381Z"
}
}