Position Green API: Suppliers

Modified on Thu, 27 Mar at 11:31 AM

Get suppliers list


Get the suppliers list for a particular case:

  • Get all suppliers from the active year if no parameter is passed.
  • Get all suppliers for a specific year when yearId is passed.
  • Get a particular supplier if an Id or an external Id (PrettyId) is passed.


GET/suppliers/list


Check the Supplier section on our Swagger page.


Get supplier


Get a supplier from Position Green via an external id (PrettyId)


GET/suppliers


Check the Supplier section on our Swagger page.

Create new supplier


Creates a new supplier in Position Green Platform.


ParameterRequiredTypeDescription
supplierPrettyId

Yes

string

A unique external identifier for the supplier (eg. supplier_1)

name

YesstringName of the supplier (eg Supplier 1)
contactFirstName

Yes

string


First name of the main contact at the supplier
contactLastNameYesstringLast name of the main contact at the supplier
contactEmailYesstringEmail of the main contact at the supplier
tags

No

Array of strings

A list of tags



POST/suppliers

Creates a new supplier.


Check the Supplier section on our Swagger page.



Update a supplier


Updates a supplier's information.


ParameterRequiredTypeDescription
contactFirstNameYesstringFirst name of the main contact at the supplier
contactLastNameYesstringThe last name of the main contact at the supplier
contactEmailYesstringEmail of the main contact at the supplier

tags

NoArray of stringsA list of tags



PUT/suppliers/{supplierId}


Check the Supplier section on our Swagger page.


Delete supplier


Delete a supplier.


DELETE/suppliers/{supplierId}

 
Check the Supplier section on our Swagger page.


Get  Email Templates


Get all email templates.


GET/email/GetEmailTemplates


Check the email section on our Swagger page.


Send Supplier Email


Send emails to suppliers.

Parameter
Required
EmailTemplateId
Yes

FromUserId


FromEmail

FromName
Yes if FromEmail is set
Recipients (array of)

SupplierId
Yes
UserId
Yes, if RecipientType = UserId
QuestionnaireId
Yes, depending on the type of email template or if any RecipientType with collaborators is selected
RecipientType

Yes, any of:


UserId

Responsible

Collaborators

ResponsibleAndCollaborators



POST/email/SendSupplierEmail


Check the email section on our Swagger page.


  


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article