To retrieve details for a specific supplier. To retrieve supplier details, users would need to pass account and business unit reference to the base URL, along with the supplier reference.
Property
Acceptable Format
Validations
Account
String
Cannot be Null
Cannot be left blank
Business Unit
String
Cannot be Null
Cannot be left blank
Supplier
String
Cannot be Null
Cannot be left blank
Supplier Add
Method:
Add a caption...
Base URL: {{publicApiUrl}}/Supplier/{{accountReference}}
To add an Agency or Umbrella Supplier record using the public API you need to pass the account and business unit reference to the BASE URL with the required objects in the body. Refer to Appendix E containing a sample of the request body.
Note: A supplier record can be created with or without contact and address objects
Property
Acceptable Format
Validations
Account
String
Cannot be Null
Cannot be left blank
Business Unit
String
Cannot be Null
Cannot be left blank
The key dependencies and validations are:
Property
Acceptable Format
Validations
Refrence
String
Cannot be null
Can be blank and the system will automatically generate a reference from the worker
Name
String
Cannot be null
You must enter a Supplier Name
Email
String
Cannot be null
Cannot be blank
You must enter a Supplier Email Address
You must provide a valid Supplier Email Address
EngagementType
String
Cannot be null
Cannot be blank
Accepted values are: “Agency” or “Umbrella”
If the EngagementType = “Umbrella” and the SupplierReference provided is an Agency then the system will inherit the worker EngagementType from the supplier.
InvoiceWorkflow
String
Cannot be null
Acceptable values for invoiceworkflow are: “None”, “InvoiceMatching”, “SelfBilling”
If invoiceworkflow = “selfbilling” and no selfbillexpirydate is provided then validation will appear
Please enter a self bill expiry date!
Acceptable format: “2023-01-28T00:00:00”
If invoiceworkflow = none and settlementterm = “default” then validation will appear
Settlement term should be 0 days if invoice workflow is set to none
If invoiceworkflow = “invoicematching” or “selfbilling” and settlement is not provided then validation will appear
Please select a Settlement Term
FirstBillNumber
String
Can be Null
Cannot be Left Blank
Can be alphanumeric
IndustryClassification
String
Can be left blank
Can be Null
WorkerEngagement
String
Cannot be null
Cannot be blank
Acceptable values for workerEngagement can be: “A”, “B”, “C”, “D”, “E”, “F”
If workerengament = “D” and no companyhousenumber is provided then it will always return as “F” because it has defaulted by the system.
SuppliedEngagementType
String
Cannot be null
Cannot be blank
A Supplied Worker Engagement Type must be provided
The acceptable values are: "Default", "Payment Term 1", "Payment Term 2", "Payment Term 3", "Payment Term 4", "Payment Term 5", "Payment Term 6", "Payment Term 7", "Payment Term 8", "Payment Term 9", "Payment Term 10"
If the address record doesn’t exist in the body, then will return 200 but record will display as failed validation error in the webapp.
You must enter the Address Line 1
Address Line 1 must be between 1 and 35 characters.
You must enter a postcode.
Postcode - incorrect format
Worker has missing address detail. Please ensure at least 2 lines of the address are populated.
InternationalAddress
Boolean
Can be true or false
If InternationalAddress = true
Mandatory values:
address1
address2
Country
Note: If Country = GB and InternationalAddress = true, then the supplied worker linked to the supplier record will be marked as validation error “Cannot set International Address when Country is UK for the supplier xx”.
Country can be provided using either the country code e.g. UK or the name e.g. United Kingdom
If InternationalAddress = false
Mandatory values:
address1 and
address2 or
address3 or
Town or
County
Postcode
InternationalAddress can be true or false
BankAccount
String
Can be null
If the bank details record doesn’t exist in the body, then will return 200 but record will display as failed validation error
Valid Account Name is required
Account Number must be 8 digits long
Sort Code must be 6 digits long
If the key paymentMethod = “cheque” then the bank details are not required can be left blank otherwise you will receive the following validation: You must provide a valid Payment method.
InternationalBankAccount
Boolean
When InternationalBankAccount = true
Mandatory values
AccountName
IBAN
BIC
Optional values:
BankReference
BankName
All other fields are ignored regardless of entry.
When InternationalBankAccount = false
Mandatory values:
AccountName
SortCode
AccountNumber
Optional values:
BankReference
BankName
Contact
String
Can be null
Cannot be blank
The Last Name field is required.
The First Name field is required.
The Email Address field is required.
Supplier Update
Method:
Add a caption...
Base URL: {{publicApiUrl}}/Supplier/{{accountReference}}
To update a Supplier using the public API you need to pass the account reference to the Base URL with the required objects in the body. Refer to Appendix F containing a sample of the request body.
You can update the supplier record with or without the contact or addresses objects in the body
Property
Acceptable Format
Validations
Account
String
Cannot be Null
Cannot be left blank
The key dependencies and validations are:
Property
Acceptable Format
Validations
Refrence
String
Cannot be null
Can be blank and the system will automatically generate a reference from the worker
WorkerEngagement
String
Cannot be null
Cannot be blank
Acceptable values for workerEngagement can be: “A”, “B”, “C”, “D”, “E”, “F”
If workerengament = “D” and no companyhousenumber is provided then it will always return as “F” because it has defaulted by the system.
Address
String
Can be null.
If the address record doesn’t exist in the body, then will return 200 but record will display as failed validation error in the webapp.
You must enter the Address Line 1
Address Line 1 must be between 1 and 35 characters.
You must enter a postcode.
Postcode - incorrect format
Worker has missing address detail. Please ensure at least 2 lines of the address are populated.
InternationalAddress
Boolean
Can be true or false
If InternationalAddress = true
Mandatory values:
address1
address2
Country
Note: If Country = GB and InternationalAddress = true, then the supplied worker linked to the supplier record will be marked as validation error “Cannot set International Address when Country is UK for the supplier xx”.
Country can be provided using either the country code e.g. UK or the name e.g. United Kingdom
If InternationalAddress = false
Mandatory values:
address1 and
address2 or
address3 or
Town or
County
Postcode
InternationalAddress can be true or false
BankAccount
String
Can be null
If the bank details record doesn’t exist in the body, then will return 200 but record will display as failed validation error
Valid Account Name is required
Account Number must be 8 digits long
Sort Code must be 6 digits long
If the key paymentMethod = “cheque” then the bank details are not required can be left blank otherwise you will receive the following validation: You must provide a valid Payment method.
InternationalBankAccount
Boolean
When InternationalBankAccount = true
Mandatory values
AccountName
IBAN
BIC
Optional values:
BankReference
BankName
All other fields are ignored regardless of entry.
When InternationalBankAccount = false
Mandatory values:
AccountName
SortCode
AccountNumber
Optional values:
BankReference
BankName
Contact
String
Can be null
Cannot be blank
The Last Name field is required.
The First Name field is required.
The Email Address field is required.
The contents of this document, along with any associated documents, are the property of PurePro Solutions Ltd. and are shared in strict confidence with the intended recipient. These materials may not be reproduced, shared, or used in any manner without prior written consent from PurePro Solutions Ltd. Unauthorized use or distribution is prohibited.