Workday Strategic Sourcing Supplier API (1.0)
Download OpenAPI specification:
We've provided detailed documentation below to guide you. However, if you need additional assistance, here's how you can get the support you need:
- Community Discussions: Join the conversation on our Workday Community Discussion Boards (found under the "Collaborate" section in community). Connect with other users, share best practices, and get answers to your configuration questions.
- Expert Configuration Assistance (Professional Services): For tailored, hands-on support with your specific project, our Professional Services team is available.
- Looking for personalized guidance? Workday Success Plan customers can submit an "Ask" for expert insights on configuration and best practices.
- Need custom solutions? Consider Expert Assist, our consulting service for detailed changes and project support.
- Reporting System Issues: If you suspect a problem with the Workday system itself, please connect with our dedicated support team. Your company's Named Support Contact (NSC) can log a Product Support Defect case. We'll review the issue based on its impact and Workday's service level agreement (SLA).
US Region
Environment | US region Base URI |
---|---|
Production | https://api.us.workdayspend.com/services/suppliers/v1 |
Sandbox | https://api.sandbox.us.workdayspend.com/services/suppliers/v1 |
EU Region
Environment | EU region Base URI |
---|---|
Production | https://api.eu.workdayspend.com/services/suppliers/v1 |
Sandbox | https://api.sandbox.eu.workdayspend.com/services/suppliers/v1 |
CA Region
Environment | CA region Base URI |
---|---|
Production | https://api.ca.workdayspend.com/services/suppliers/v1 |
Sandbox | https://api.sandbox.ca.workdayspend.com/services/suppliers/v1 |
The API conforms to the JSON API Specification.
The current version of this service is indicated by the X-Api-Version
header.
Sample version header: X-Api-Version: 1.0
.
Our API adheres to the ISO 8601 standard when accepting and formatting Date and Time fields. All Date and Time fields returned by this API will be in the UTC timezone.
Date and Time fields sent to this API can be in any timezone, provided they adhere to the ISO 8601 standard.
The Workday Strategic Sourcing API uses API keys to authenticate requests. Every request will require all 3 HTTP headers:
HTTP Header | Description |
---|---|
X-Api-Key | a company-wide API key |
X-User-Token | a user-specific API token |
X-User-Email | user email |
You can generate all of those from the API tokens section of your Profile page.
Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.
Rate limit windows are per second and are shared by all API Keys for a company.
The rate limit is 5 requests per second.
When request submissions exceed the limits, the limit-exceeding requests return 429 Too Many Requests
error responses to the client.
Upon receiving a 429
response, it is recommended to retry the request in compliance with the rate limit. One example would be to add a sleep function for 1 second and retry.
The external_id
field exists on many of the Workday Strategic Sourcing resources. This optional and mutable extension is intended to store foreign keys of the corresponding resource from a third party system. These IDs are not considered Sourcing Data and may be logged in external systems. Do not include any sensitive or personal data in IDs.
The purpose of external IDs is to:
- Prevent duplicate record creation
- Allow resources in Workday Strategic Sourcing and a third party system to share the same identifier
- Allow for records to be queried or updated without requiring knowledge of the Workday Strategic Sourcing generated IDs
Paginated endpoints may return a subset of the total results for a GET
request that returns multiple resources. Endpoints that support pagination will include usage details in the Query Parameters section for the resource.
The paginated results can be configured using the page
query parameter to configure the number of returned results. The default pagination size is 10 results and the maximum pagination size is 100 results per request.
Endpoints that support pagination may return "self" and "next" sections within the "links" section that navigate to the current and next pages respectively.
Example Paginated Request
Request Query Parameter Format
/projects?page[size]=25
Response Schema
The paginated response will also include the following schema
object Result set metadata. | |
object (PaginationLinks) List of related links. |
{- "data": {
- "key": "value"
}, - "meta": {
- "count": 2
}, - "links": {
- "prev": null
}
}
The results can be filtered to a subset of the total set of results using filter
query parameters.
Endpoints that support filtering will include usage details in the Query Parameters section for the resource.
Most filters that end in equals
support a Query Parameter array format to filter by multiple values.
Example:
?filter[status_equals][]=submitted&filter[status_equals][]=resubmitted
Use the supplier companies API to create, update, and query the suppliers in Workday Strategic Sourcing.
type required | string (SupplierCompanyType) Object type, should always be |
id required | integer (SupplierCompanyId) Supplier company identifier string. |
object (SupplierCompanyAttributes) Supplier company attributes. | |
object (SupplierCompanyRelationship) Supplier company relationships. | |
object (ResourceLinks) List of related links. |
{- "type": "supplier_companies",
- "id": "1",
- "attributes": {
- "name": "Supplier Company Name",
- "description": "Suppler Company Description",
- "is_suggested": false,
- "accept_all_currencies": false,
- "public": true,
- "risk": "low",
- "segmentation": "tier_1",
- "segmentation_status": "approved",
- "segmentation_notes": "Segmentation Notes",
- "tags": [
- "tag1",
- "tag2"
], - "external_id": "1234-5678-abcd-efgh",
- "updated_at": "2019-10-29T21:28:46.790Z",
- "custom_fields": [
- {
- "name": "Custom Field Currency",
- "value": 1234567890
}, - {
- "name": "Custom Field Integer",
- "value": 1234567890
}, - {
- "name": "Custom Field Checkbox",
- "value": true
}, - {
- "name": "Custom Field Decimal",
- "value": 123456.78
}, - {
- "name": "Custom Field Date",
- "value": "2018-12-31T00:00:00.000Z"
}, - {
- "name": "Custom Field Select",
- "value": "Select Option"
}, - {
- "name": "Custom Field Multiple",
- "value": [
- "Multiple Select Option 1",
- "Multiple Select Option 2"
]
}, - {
- "name": "Custom Field Short Text",
- "value": "some short text"
}, - {
- "name": "Custom Field Paragraph",
- "value": "longer text than short text"
},
]
},
}
type required | string (SupplierClassificationValueType) Object type, should always be |
id required | string (SupplierClassificationValueId) A composite identifier for a virtual object created from the id of the supplier and the id of the classification in the response. Id or the external Id of a classification in the request. |
object (SupplierClassificationValueAttributes) SupplierClassificationValue attributes. | |
object (SupplierClassificationValueRelationship) Supplier classification value relationships. |
{- "id": "1-21",
- "type": "supplier_classification_values",
- "attributes": {
- "external_id": "CLASSIFICATION-1"
}, - "relationships": {
- "supplier_classification_field_values": {
- "data": [
- {
- "id": "1",
- "type": "supplier_classification_field_values"
}, - {
- "id": "2",
- "type": "supplier_classification_field_values"
}, - {
- "id": "3",
- "type": "supplier_classification_field_values"
}, - {
- "id": "4",
- "type": "supplier_classification_field_values"
}, - {
- "id": "5",
- "type": "supplier_classification_field_values"
}, - {
- "id": "6",
- "type": "supplier_classification_field_values"
}, - {
- "id": "7",
- "type": "supplier_classification_field_values"
}, - {
- "id": "8",
- "type": "supplier_classification_field_values"
}
]
}
}
}
type required | string (SupplierClassificationFieldValueType) Object type, should always be |
id required | integer (SupplierClassificationFieldValueId) Supplier classification field value identifier string. |
object (SupplierClassificationFieldValueAttributes) SupplierClassificationFieldValue attributes. | |
object (SupplierClassificationFieldValueRelationship) Supplier classification relationships. |
{- "id": "1",
- "type": "supplier_classification_field_values",
- "attributes": {
- "value": "text",
- "external_id": "CLASSIFICATION-FIELD-VALUE-1"
}, - "relationships": {
- "selected_options": {
- "data": [ ]
}, - "attachments": {
- "data": [ ]
}
}
}
List Supplier Companies
Returns a list of supplier companies for the specified criteria.
Authorizations:
query Parameters
object (SupplierCompanyInputFilter) Filter supplier companies by multiple criteria. Only one filter per attribute is supported. For best performance, we recommend 5 or less filters. | |
include | string (SupplierCompanyRelatedResources) Enum: "attachments" "supplier_category" "supplier_groups" "default_payment_term" "payment_types" "default_payment_type" "payment_currencies" "default_payment_currency" "supplier_classification_values" To reduce the number of HTTP requests, related resources can be requested along with the
requested primary resources. Such responses are called "compound documents". In a compound
document, all included resources will be represented as an array of resource objects in a
top-level The value of the
In the response, relationships will be represented as normal linkage objects (containing
|
object (PageInput) Customize pagination results with |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_companies"
Response samples
- 200
- 400
{- "meta": {
- "count": 2
}, - "data": [
- {
- "type": "supplier_companies",
- "id": "1",
- "attributes": {
- "name": "Supplier Company Name #1",
- "description": "Suppler Company Description #1",
- "is_suggested": false,
- "accept_all_currencies": false,
- "public": true,
- "risk": "low",
- "segmentation": "tier_1",
- "segmentation_status": "approved",
- "segmentation_notes": "Segmentation Notes",
- "tags": [
- "tag1",
- "tag2"
], - "external_id": "1234-5678-abcd-efgh",
- "updated_at": "2019-10-29T21:28:46.790Z",
- "self_registered": false,
- "onboarding_form_completion_status": null,
- "duns_number": null,
- "custom_fields": [
- {
- "name": "Custom Field Currency",
- "value": 1234567890
}, - {
- "name": "Custom Field Integer",
- "value": 1234567890
}, - {
- "name": "Custom Field Checkbox",
- "value": true
}, - {
- "name": "Custom Field Decimal",
- "value": 123456.78
}, - {
- "name": "Custom Field Date",
- "value": "2018-12-31T00:00:00.000Z"
}, - {
- "name": "Custom Field Select",
- "value": "Select Option"
}, - {
- "name": "Custom Field Multiple",
- "value": [
- "Multiple Select Option 1",
- "Multiple Select Option 2"
]
}, - {
- "name": "Custom Field Short Text",
- "value": "some short text"
}, - {
- "name": "Custom Field Paragraph",
- "value": "longer text than short text"
},
]
}, - "relationships": {
- "attachments": {
- "data": [
- {
- "id": "2",
- "type": "attachments"
}
]
}, - "default_payment_currency": {
- "data": {
- "id": "172",
- "type": "payment_currencies"
}
}, - "default_payment_term": {
- "data": {
- "id": "38",
- "type": "payment_terms"
}
}, - "default_payment_type": {
- "data": {
- "id": "99",
- "type": "payment_types"
}
}, - "supplier_category": {
- "data": {
- "id": "83",
- "type": "supplier_categories"
}
}, - "payment_currencies": {
- "data": [
- {
- "id": "172",
- "type": "payment_currencies"
}, - {
- "id": "174",
- "type": "payment_currencies"
}
]
}, - "payment_types": {
- "data": [
- {
- "id": "99",
- "type": "payment_types"
}, - {
- "id": "96",
- "type": "payment_types"
}
]
}, - "supplier_groups": {
- "data": [
- {
- "id": "48",
- "type": "supplier_groups"
}, - {
- "id": "53",
- "type": "supplier_groups"
}
]
}, - "supplier_classification_values": {
- "data": [
- {
- "id": "1-21",
- "type": "supplier_classification_values"
}, - {
- "id": "1-22",
- "type": "supplier_classification_values"
}
]
}
},
}, - {
- "type": "supplier_companies",
- "id": "2",
- "attributes": {
- "name": "Supplier Company Name #2",
- "description": "Suppler Company Description #2",
- "is_suggested": false,
- "accept_all_currencies": false,
- "public": true,
- "risk": "low",
- "segmentation": "tier_1",
- "segmentation_status": "approved",
- "segmentation_notes": "Segmentation Notes",
- "tags": [
- "tag1",
- "tag2"
], - "external_id": "5678-9012-ijkl-mnop",
- "updated_at": "2019-10-29T21:28:46.790Z",
- "self_registered": false,
- "onboarding_form_completion_status": null,
- "duns_number": null,
- "custom_fields": [
- {
- "name": "Custom Field Currency",
- "value": 1234567890
}, - {
- "name": "Custom Field Integer",
- "value": 1234567890
}, - {
- "name": "Custom Field Checkbox",
- "value": true
}, - {
- "name": "Custom Field Decimal",
- "value": 123456.78
}, - {
- "name": "Custom Field Date",
- "value": "2018-12-31T00:00:00.000Z"
}, - {
- "name": "Custom Field Select",
- "value": "Select Option"
}, - {
- "name": "Custom Field Multiple",
- "value": [
- "Multiple Select Option 1",
- "Multiple Select Option 2"
]
}, - {
- "name": "Custom Field Short Text",
- "value": "some short text"
}, - {
- "name": "Custom Field Paragraph",
- "value": "longer text than short text"
},
]
}, - "relationships": {
- "attachments": {
- "data": [
- {
- "id": "1",
- "type": "attachments"
}
]
}, - "default_payment_currency": {
- "data": {
- "id": "172",
- "type": "payment_currencies"
}
}, - "default_payment_term": {
- "data": {
- "id": "38",
- "type": "payment_terms"
}
}, - "default_payment_type": {
- "data": {
- "id": "99",
- "type": "payment_types"
}
}, - "supplier_category": {
- "data": {
- "id": "83",
- "type": "supplier_categories"
}
}, - "payment_currencies": {
- "data": [
- {
- "id": "172",
- "type": "payment_currencies"
}
]
}, - "payment_types": {
- "data": [
- {
- "id": "99",
- "type": "payment_types"
}
]
}, - "supplier_groups": {
- "data": [
- {
- "id": "48",
- "type": "supplier_groups"
}
]
}, - "supplier_classification_values": {
- "data": [ ]
}
},
}
], - "links": {
}
}
Create a Supplier Company
Create a supplier company with given attributes, relationships, and related complex resources.
When creating a supplier company with relationships, keep in mind that there are two kinds of relationships: linked resources and composite resources.
Linked Resources
These are normal relationship resources managed outside of primary resource (supplier company). For example, payment currencies exist on their own, and can be assigned to one or many supplier companies, contracts, etc. These resources usually have their own API management endpoints.
All related objects should exist prior to being linked to the supplier company. They can be
referenced by Workday Strategic Sourcing identifier, or by external ID; in the latter case, the relationship
name is used with prefix external_
. For example, a payment currency with Workday Strategic Sourcing ID "1"
and
external ID "C$EUR"
can be used to initialize default_payment_currency
:
{
"default_payment_currency": {
"data" {
"id": "1",
"type": "payment_currencies"
}
}
}
{
"external_default_payment_currency": {
"data" {
"id": "C$EUR",
"type": "payment_currencies"
}
}
}
When external_
prefix is applied to a "many" relationship, like external_payment_currencies
,
all of the identifiers will be treated as external IDs.
Authorizations:
query Parameters
include | string (SupplierCompanyRelatedResources) Enum: "attachments" "supplier_category" "supplier_groups" "default_payment_term" "payment_types" "default_payment_type" "payment_currencies" "default_payment_currency" "supplier_classification_values" Use the |
Request Body schema: application/vnd.api+json
object (SupplierCompanyCreate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_companies",
- "attributes": {
- "name": "Supplier Company Name",
- "description": "Suppler Company Description",
- "is_suggested": false,
- "public": true,
- "risk": "low",
- "segmentation": "tier_1",
- "segmentation_status": "approved",
- "segmentation_notes": "Segmentation Notes",
- "tags": [
- "tag1",
- "tag2"
], - "external_id": "1234-5678-abcd-efgh",
- "custom_fields": [
- {
- "name": "Custom Field Currency",
- "value": 1234567890
}, - {
- "name": "Custom Field Integer",
- "value": 1234567890
}, - {
- "name": "Custom Field Checkbox",
- "value": true
}, - {
- "name": "Custom Field Decimal",
- "value": 123456.78
}, - {
- "name": "Custom Field Date",
- "value": "2018-12-31T00:00:00.000Z"
}, - {
- "name": "Custom Field Select",
- "value": "Select Option"
}, - {
- "name": "Custom Field Multiple",
- "value": [
- "Multiple Select Option 1",
- "Multiple Select Option 2"
]
}, - {
- "name": "Custom Field Short Text",
- "value": "some short text"
}, - {
- "name": "Custom Field Paragraph",
- "value": "longer text than short text"
},
]
}, - "relationships": {
- "default_payment_currency": {
- "data": {
- "id": "172",
- "type": "payment_currencies"
}
}, - "default_payment_term": {
- "data": {
- "id": "38",
- "type": "payment_terms"
}
}, - "default_payment_type": {
- "data": {
- "id": "99",
- "type": "payment_types"
}
}, - "supplier_category": {
- "data": {
- "id": "83",
- "type": "supplier_categories"
}
}, - "payment_currencies": {
- "data": [
- {
- "id": "172",
- "type": "payment_currencies"
}
]
}, - "payment_types": {
- "data": [
- {
- "id": "99",
- "type": "payment_types"
}
]
}, - "supplier_groups": {
- "data": [
- {
- "id": "48",
- "type": "supplier_groups"
}
]
}, - "supplier_classification_values": {
- "data": [
- {
- "id": "21"
}
]
}
}
}
}
Response samples
- 201
{- "data": {
- "type": "supplier_companies",
- "id": "1",
- "attributes": {
- "name": "Supplier Company Name",
- "description": "Suppler Company Description",
- "is_suggested": false,
- "accept_all_currencies": false,
- "public": true,
- "risk": "low",
- "segmentation": "tier_1",
- "segmentation_status": "approved",
- "segmentation_notes": "Segmentation Notes",
- "tags": [
- "tag1",
- "tag2"
], - "external_id": "1234-5678-abcd-efgh",
- "updated_at": "2019-10-29T21:28:46.790Z",
- "self_registered": false,
- "onboarding_form_completion_status": null,
- "duns_number": null,
- "custom_fields": [
- {
- "name": "Custom Field Currency",
- "value": 1234567890
}, - {
- "name": "Custom Field Integer",
- "value": 1234567890
}, - {
- "name": "Custom Field Checkbox",
- "value": true
}, - {
- "name": "Custom Field Decimal",
- "value": 123456.78
}, - {
- "name": "Custom Field Date",
- "value": "2018-12-31T00:00:00.000Z"
}, - {
- "name": "Custom Field Select",
- "value": "Select Option"
}, - {
- "name": "Custom Field Multiple",
- "value": [
- "Multiple Select Option 1",
- "Multiple Select Option 2"
]
}, - {
- "name": "Custom Field Short Text",
- "value": "some short text"
}, - {
- "name": "Custom Field Paragraph",
- "value": "longer text than short text"
},
]
}, - "relationships": {
- "attachments": {
- "data": [ ]
}, - "default_payment_currency": {
- "data": {
- "id": "172",
- "type": "payment_currencies"
}
}, - "default_payment_term": {
- "data": {
- "id": "38",
- "type": "payment_terms"
}
}, - "default_payment_type": {
- "data": {
- "id": "99",
- "type": "payment_types"
}
}, - "supplier_category": {
- "data": {
- "id": "83",
- "type": "supplier_categories"
}
}, - "payment_currencies": {
- "data": [
- {
- "id": "172",
- "type": "payment_currencies"
}
]
}, - "payment_types": {
- "data": [
- {
- "id": "99",
- "type": "payment_types"
}
]
}, - "supplier_groups": {
- "data": [
- {
- "id": "48",
- "type": "supplier_groups"
}
]
}, - "supplier_classification_values": {
- "data": [
- {
- "id": "1-21",
- "type": "supplier_classification_values"
}
]
}
},
}
}
Get a Supplier Company
Retrieves the details of an existing supplier company. You need to supply the unique supplier company identifier that was returned upon supplier company creation.
Authorizations:
path Parameters
id required | integer Example: 1 Unique Supplier Company identifier. |
query Parameters
include | string (SupplierCompanyRelatedResources) Enum: "attachments" "supplier_category" "supplier_groups" "default_payment_term" "payment_types" "default_payment_type" "payment_currencies" "default_payment_currency" "supplier_classification_values" Use the |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_companies/1"
Response samples
- 200
{- "data": {
- "type": "supplier_companies",
- "id": "1",
- "attributes": {
- "name": "Supplier Company Name",
- "description": "Suppler Company Description",
- "is_suggested": false,
- "accept_all_currencies": false,
- "public": true,
- "risk": "low",
- "segmentation": "tier_1",
- "segmentation_status": "approved",
- "segmentation_notes": "Segmentation Notes",
- "tags": [
- "tag1",
- "tag2"
], - "external_id": "1234-5678-abcd-efgh",
- "updated_at": "2019-10-29T21:28:46.790Z",
- "self_registered": false,
- "onboarding_form_completion_status": null,
- "duns_number": null,
- "custom_fields": [
- {
- "name": "Custom Field Currency",
- "value": 1234567890
}, - {
- "name": "Custom Field Integer",
- "value": 1234567890
}, - {
- "name": "Custom Field Checkbox",
- "value": true
}, - {
- "name": "Custom Field Decimal",
- "value": 123456.78
}, - {
- "name": "Custom Field Date",
- "value": "2018-12-31T00:00:00.000Z"
}, - {
- "name": "Custom Field Select",
- "value": "Select Option"
}, - {
- "name": "Custom Field Multiple",
- "value": [
- "Multiple Select Option 1",
- "Multiple Select Option 2"
]
}, - {
- "name": "Custom Field Short Text",
- "value": "some short text"
}, - {
- "name": "Custom Field Paragraph",
- "value": "longer text than short text"
},
]
}, - "relationships": {
- "attachments": {
- "data": [
- {
- "id": "1",
- "type": "attachments"
}
]
}, - "default_payment_currency": {
- "data": {
- "id": "172",
- "type": "payment_currencies"
}
}, - "default_payment_term": {
- "data": {
- "id": "38",
- "type": "payment_terms"
}
}, - "default_payment_type": {
- "data": {
- "id": "99",
- "type": "payment_types"
}
}, - "supplier_category": {
- "data": {
- "id": "83",
- "type": "supplier_categories"
}
}, - "payment_currencies": {
- "data": [
- {
- "id": "172",
- "type": "payment_currencies"
}, - {
- "id": "174",
- "type": "payment_currencies"
}
]
}, - "payment_types": {
- "data": [
- {
- "id": "99",
- "type": "payment_types"
}, - {
- "id": "96",
- "type": "payment_types"
}
]
}, - "supplier_groups": {
- "data": [
- {
- "id": "48",
- "type": "supplier_groups"
}, - {
- "id": "53",
- "type": "supplier_groups"
}
]
}, - "supplier_classification_values": {
- "data": [
- {
- "id": "1-21",
- "type": "supplier_classification_values"
}, - {
- "id": "1-22",
- "type": "supplier_classification_values"
}
]
}
},
}
}
Update a Supplier Company
Updates the details of an existing supplier company. You need to supply the unique supplier company identifier that was returned upon supplier company creation.
Please note, that request body must include an id
attribute with the value of your supplier
unique identifier (the same one you passed in the URL).
Linked Resources
When updating relationships on a supplier company resource, keep in mind the whole relationship
will be replaced the new values. For example, if a supplier company has currencies with IDs
"1"
and "2"
, and in update request payload payment_currencies
relationship is specified
with ID "3"
, the only payment currency associated after the request succeeded will be "3"
.
Authorizations:
path Parameters
id required | integer Example: 1 Unique Supplier Company identifier. |
query Parameters
include | string (SupplierCompanyRelatedResources) Enum: "attachments" "supplier_category" "supplier_groups" "default_payment_term" "payment_types" "default_payment_type" "payment_currencies" "default_payment_currency" "supplier_classification_values" Use the |
Request Body schema: application/vnd.api+json
object (SupplierCompanyUpdate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_companies",
- "id": "1",
- "attributes": {
- "name": "Supplier Company Name Updated",
- "description": "Suppler Company Description Updated",
- "is_suggested": false,
- "public": false,
- "risk": "medium",
- "segmentation": "tier_2",
- "segmentation_status": "not_approved",
- "segmentation_notes": "Segmentation Notes Updated",
- "tags": [
- "tag1",
- "tag2",
- "tag3"
], - "external_id": "1234-5678-upda-tedd",
- "custom_fields": [
- {
- "name": "Custom Field Currency",
- "value": 1234567890
}, - {
- "name": "Custom Field Integer",
- "value": 1234567890
}, - {
- "name": "Custom Field Checkbox",
- "value": true
}, - {
- "name": "Custom Field Decimal",
- "value": 123456.78
}, - {
- "name": "Custom Field Date",
- "value": "2018-12-31T00:00:00.000Z"
}, - {
- "name": "Custom Field Select",
- "value": "Select Option"
}, - {
- "name": "Custom Field Multiple",
- "value": [
- "Multiple Select Option 1",
- "Multiple Select Option 2"
]
}, - {
- "name": "Custom Field Short Text",
- "value": "some short text"
}, - {
- "name": "Custom Field Paragraph",
- "value": "longer text than short text"
},
]
}, - "relationships": {
- "default_payment_currency": {
- "data": {
- "id": "172",
- "type": "payment_currencies"
}
}, - "default_payment_term": {
- "data": {
- "id": "38",
- "type": "payment_terms"
}
}, - "default_payment_type": {
- "data": {
- "id": "99",
- "type": "payment_types"
}
}, - "supplier_category": {
- "data": {
- "id": "83",
- "type": "supplier_categories"
}
}, - "payment_currencies": {
- "data": [
- {
- "id": "172",
- "type": "payment_currencies"
}
]
}, - "payment_types": {
- "data": [
- {
- "id": "99",
- "type": "payment_types"
}
]
}, - "supplier_groups": {
- "data": [
- {
- "id": "48",
- "type": "supplier_groups"
}
]
}, - "supplier_classification_values": {
- "data": [
- {
- "id": "123",
- "type": "supplier_classification_values"
}
]
}
}
}
}
Response samples
- 200
- 409
{- "data": {
- "type": "supplier_companies",
- "id": "1",
- "attributes": {
- "name": "Supplier Company Name Updated",
- "description": "Suppler Company Description Updated",
- "is_suggested": false,
- "accept_all_currencies": false,
- "public": false,
- "risk": "medium",
- "segmentation": "tier_2",
- "segmentation_status": "not_approved",
- "segmentation_notes": "Segmentation Notes Updated",
- "tags": [
- "tag1",
- "tag2",
- "tag3"
], - "external_id": "1234-5678-upda-tedd",
- "updated_at": "2019-10-29T21:28:46.790Z",
- "self_registered": false,
- "onboarding_form_completion_status": null,
- "duns_number": null,
- "custom_fields": [
- {
- "name": "Custom Field Currency",
- "value": 1234567890
}, - {
- "name": "Custom Field Integer",
- "value": 1234567890
}, - {
- "name": "Custom Field Checkbox",
- "value": true
}, - {
- "name": "Custom Field Decimal",
- "value": 123456.78
}, - {
- "name": "Custom Field Date",
- "value": "2018-12-31T00:00:00.000Z"
}, - {
- "name": "Custom Field Select",
- "value": "Select Option"
}, - {
- "name": "Custom Field Multiple",
- "value": [
- "Multiple Select Option 1",
- "Multiple Select Option 2"
]
}, - {
- "name": "Custom Field Short Text",
- "value": "some short text"
}, - {
- "name": "Custom Field Paragraph",
- "value": "longer text than short text"
},
]
}, - "relationships": {
- "attachments": {
- "data": [
- {
- "id": "1",
- "type": "attachments"
}
]
}, - "default_payment_currency": {
- "data": {
- "id": "172",
- "type": "payment_currencies"
}
}, - "default_payment_term": {
- "data": {
- "id": "38",
- "type": "payment_terms"
}
}, - "default_payment_type": {
- "data": {
- "id": "99",
- "type": "payment_types"
}
}, - "supplier_category": {
- "data": {
- "id": "83",
- "type": "supplier_categories"
}
}, - "payment_currencies": {
- "data": [
- {
- "id": "172",
- "type": "payment_currencies"
}
]
}, - "payment_types": {
- "data": [
- {
- "id": "99",
- "type": "payment_types"
}
]
}, - "supplier_groups": {
- "data": [
- {
- "id": "48",
- "type": "supplier_groups"
}
]
}, - "supplier_classification_values": {
- "data": [
- {
- "id": "1-123",
- "type": "supplier_classification_values"
}
]
}
},
}
}
Delete a Supplier Company
Deletes a supplier company. You need to supply the unique supplier company identifier that was returned upon supplier company creation.
Authorizations:
path Parameters
id required | integer Example: 1 Unique Supplier Company identifier. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ -X DELETE \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_companies/1"
Get a Supplier Company by External ID
Retrieves the details of an existing supplier company. You need to supply the unique supplier company external identifier (the one you used when created the supplier company).
Authorizations:
path Parameters
external_id required | string Example: 1234-5678-abcd-efgh Supplier company external identifier. |
query Parameters
include | string (SupplierCompanyRelatedResources) Enum: "attachments" "supplier_category" "supplier_groups" "default_payment_term" "payment_types" "default_payment_type" "payment_currencies" "default_payment_currency" "supplier_classification_values" Use the |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_companies/SUP-1234/external_id"
Response samples
- 200
{- "data": {
- "type": "supplier_companies",
- "id": "1",
- "attributes": {
- "name": "Supplier Company Name",
- "description": "Suppler Company Description",
- "is_suggested": false,
- "accept_all_currencies": false,
- "public": true,
- "risk": "low",
- "segmentation": "tier_1",
- "segmentation_status": "approved",
- "segmentation_notes": "Segmentation Notes",
- "tags": [
- "tag1",
- "tag2"
], - "external_id": "1234-5678-abcd-efgh",
- "updated_at": "2019-10-29T21:28:46.790Z",
- "self_registered": false,
- "onboarding_form_completion_status": null,
- "duns_number": null,
- "custom_fields": [
- {
- "name": "Custom Field Currency",
- "value": 1234567890
}, - {
- "name": "Custom Field Integer",
- "value": 1234567890
}, - {
- "name": "Custom Field Checkbox",
- "value": true
}, - {
- "name": "Custom Field Decimal",
- "value": 123456.78
}, - {
- "name": "Custom Field Date",
- "value": "2018-12-31T00:00:00.000Z"
}, - {
- "name": "Custom Field Select",
- "value": "Select Option"
}, - {
- "name": "Custom Field Multiple",
- "value": [
- "Multiple Select Option 1",
- "Multiple Select Option 2"
]
}, - {
- "name": "Custom Field Short Text",
- "value": "some short text"
}, - {
- "name": "Custom Field Paragraph",
- "value": "longer text than short text"
},
]
}, - "relationships": {
- "attachments": {
- "data": [ ]
}, - "default_payment_currency": {
- "data": null
}, - "default_payment_term": {
- "data": null
}, - "default_payment_type": {
- "data": null
}, - "supplier_category": {
- "data": null
}, - "payment_currencies": {
- "data": [ ]
}, - "payment_types": {
- "data": [ ]
}, - "supplier_groups": {
- "data": [ ]
}, - "supplier_classification_values": {
- "data": [ ]
}
},
}
}
Update a Supplier Company by External ID
Updates the details of an existing supplier company. You need to supply the unique supplier company external identifier (the one you used when created the supplier company).
Please note, that request body must include an id
attribute with the value of your supplier
external identifier (the same one you passed in the URL).
Authorizations:
path Parameters
external_id required | string Example: 1234-5678-abcd-efgh Supplier company external identifier. |
query Parameters
include | string (SupplierCompanyRelatedResources) Enum: "attachments" "supplier_category" "supplier_groups" "default_payment_term" "payment_types" "default_payment_type" "payment_currencies" "default_payment_currency" "supplier_classification_values" Use the |
Request Body schema: application/vnd.api+json
object (SupplierCompanyUpdate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_companies",
- "id": "1234-5678-abcd-efgh",
- "attributes": {
- "name": "Supplier Company Name Updated",
- "description": "Suppler Company Description Updated",
- "is_suggested": false,
- "accept_all_currencies": false,
- "public": false,
- "risk": "medium",
- "segmentation": "tier_2",
- "segmentation_status": "not_approved",
- "segmentation_notes": "Segmentation Notes Updated",
- "tags": [
- "tag1",
- "tag2",
- "tag3"
], - "external_id": "1234-5678-abcd-efgh",
- "custom_fields": [
- {
- "name": "Custom Field Currency",
- "value": 1234567890
}, - {
- "name": "Custom Field Integer",
- "value": 1234567890
}, - {
- "name": "Custom Field Checkbox",
- "value": true
}, - {
- "name": "Custom Field Decimal",
- "value": 123456.78
}, - {
- "name": "Custom Field Date",
- "value": "2018-12-31T00:00:00.000Z"
}, - {
- "name": "Custom Field Select",
- "value": "Select Option"
}, - {
- "name": "Custom Field Multiple",
- "value": [
- "Multiple Select Option 1",
- "Multiple Select Option 2"
]
}, - {
- "name": "Custom Field Short Text",
- "value": "some short text"
}, - {
- "name": "Custom Field Paragraph",
- "value": "longer text than short text"
},
]
}
}
}
Response samples
- 200
{- "data": {
- "type": "supplier_companies",
- "id": "1",
- "attributes": {
- "name": "Supplier Company Name Updated",
- "description": "Suppler Company Description Updated",
- "is_suggested": false,
- "accept_all_currencies": false,
- "public": false,
- "risk": "medium",
- "segmentation": "tier_2",
- "segmentation_status": "not_approved",
- "segmentation_notes": "Segmentation Notes Updated",
- "tags": [
- "tag1",
- "tag2",
- "tag3"
], - "external_id": "1234-5678-abcd-efgh",
- "updated_at": "2019-10-29T21:28:46.790Z",
- "self_registered": false,
- "onboarding_form_completion_status": null,
- "duns_number": null,
- "custom_fields": [
- {
- "name": "Custom Field Currency",
- "value": 1234567890
}, - {
- "name": "Custom Field Integer",
- "value": 1234567890
}, - {
- "name": "Custom Field Checkbox",
- "value": true
}, - {
- "name": "Custom Field Decimal",
- "value": 123456.78
}, - {
- "name": "Custom Field Date",
- "value": "2018-12-31T00:00:00.000Z"
}, - {
- "name": "Custom Field Select",
- "value": "Select Option"
}, - {
- "name": "Custom Field Multiple",
- "value": [
- "Multiple Select Option 1",
- "Multiple Select Option 2"
]
}, - {
- "name": "Custom Field Short Text",
- "value": "some short text"
}, - {
- "name": "Custom Field Paragraph",
- "value": "longer text than short text"
},
]
}, - "relationships": {
- "attachments": {
- "data": [ ]
}, - "default_payment_currency": {
- "data": null
}, - "default_payment_term": {
- "data": null
}, - "default_payment_type": {
- "data": null
}, - "supplier_category": {
- "data": null
}, - "payment_currencies": {
- "data": [ ]
}, - "payment_types": {
- "data": [ ]
}, - "supplier_groups": {
- "data": [ ]
}, - "supplier_classification_values": {
- "data": [ ]
}
},
}
}
Delete a Supplier Company by External ID
Deletes a supplier company. You need to supply the unique supplier company external identifier (the one you used when created the supplier company).
Authorizations:
path Parameters
external_id required | string Example: 1234-5678-abcd-efgh Supplier company external identifier. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ -X DELETE \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_companies/SUP-1234/external_id"
Describe Supplier Company object
Returns a list of fields for the supplier company object.
Authorizations:
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_companies/describe"
Response samples
- 200
{- "data": [
- {
- "id": "name",
- "type": "supplier_company_fields",
- "attributes": {
- "name": "name",
- "data_type": "string",
- "type_description": "Short Text",
- "custom_field": false
}
}, - {
- "id": "description",
- "type": "supplier_company_fields",
- "attributes": {
- "name": "description",
- "data_type": "string",
- "type_description": "Paragraph",
- "custom_field": false
}
}, - {
- "id": "is_suggested",
- "type": "supplier_company_fields",
- "attributes": {
- "name": "is_suggested",
- "data_type": "boolean",
- "type_description": "Checkbox",
- "custom_field": false
}
}, - {
- "id": "public",
- "type": "supplier_company_fields",
- "attributes": {
- "name": "public",
- "data_type": "boolean",
- "type_description": "Checkbox",
- "custom_field": false
}
}, - {
- "id": "risk",
- "type": "supplier_company_fields",
- "attributes": {
- "name": "risk",
- "data_type": "string",
- "type_description": "Single Select",
- "custom_field": false
}
}, - {
- "id": "segmentation",
- "type": "supplier_company_fields",
- "attributes": {
- "name": "segmentation",
- "data_type": "string",
- "type_description": "Single Select",
- "custom_field": false
}
}, - {
- "id": "segmentation_notes",
- "type": "supplier_company_fields",
- "attributes": {
- "name": "segmentation_notes",
- "data_type": "string",
- "type_description": "Short Text",
- "custom_field": false
}
}, - {
- "id": "segmentation_status",
- "type": "supplier_company_fields",
- "attributes": {
- "name": "segmentation_status",
- "data_type": "string",
- "type_description": "Single Select",
- "custom_field": false
}
}, - {
- "id": "tags",
- "type": "supplier_company_fields",
- "attributes": {
- "name": "tags",
- "data_type": "array",
- "type_description": "Multiple Select",
- "custom_field": false
}
}, - {
- "id": "url",
- "type": "supplier_company_fields",
- "attributes": {
- "name": "url",
- "data_type": "string",
- "type_description": "URL",
- "custom_field": false
}
}, - {
- "id": "external_id",
- "type": "supplier_company_fields",
- "attributes": {
- "name": "external_id",
- "data_type": "string",
- "type_description": "Short Text",
- "custom_field": false
}
}, - {
- "id": "updated_at",
- "type": "supplier_company_fields",
- "attributes": {
- "name": "updated_at",
- "data_type": "string",
- "type_description": "Date",
- "custom_field": false
}
}, - {
- "id": "duns_number",
- "type": "supplier_company_fields",
- "attributes": {
- "name": "duns_number",
- "data_type": "string",
- "type_description": "Short Text",
- "custom_field": false
}
}, - {
- "id": "custom_field_1",
- "type": "supplier_company_fields",
- "attributes": {
- "name": "Custom field #1",
- "data_type": "string",
- "type_description": "Short Text",
- "custom_field": true
}
}
], - "links": { },
- "meta": {
- "count": 14
}
}
type required | string (SupplierContactType) Object type, should always be |
id required | integer (SupplierContactId) Supplier contact identifier string. |
object (SupplierContactAttributes) Supplier contact attributes. | |
object (SupplierContactRelationshipCreate) Supplier contact relationships. | |
object (ResourceLinks) List of related links. |
{- "type": "supplier_contacts",
- "id": "1",
- "attributes": {
- "name": "Supplier Contact Name #1",
- "first_name": null,
- "last_name": null,
- "email": "supplier.contact1@example.com",
- "notes": "Supplier Contact Notes",
- "phone_number": "555-555-5555",
- "job_title": "Supplier Contact Job Title",
- "is_suggested": false,
- "external_id": "CNT-17",
- "updated_at": "2019-10-29T21:28:46.790Z"
}, - "relationships": {
- "supplier_company": {
- "data": {
- "id": "1",
- "type": "supplier_companies"
}
}, - "contact_types": {
- "data": [
- {
- "id": "1",
- "type": "contact_types"
}
]
}, - "phones": {
- "data": [
- {
- "id": "1",
- "type": "phones"
}
]
}
},
}
List Supplier Contacts
Retrieves the list of contacts for an existing supplier company.
Authorizations:
path Parameters
company_id required | integer Example: 1 Unique supplier company identifier. |
query Parameters
include | string (SupplierContactRelatedResources) Enum: "supplier_company" "contact_types" "phones" To reduce the number of HTTP requests, related resources can be requested along with the
requested primary resources. Such responses are called "compound documents". In a compound
document, all included resources will be represented as an array of resource objects in a
top-level The value of the
In the response, relationships will be represented as normal linkage objects (containing
|
object (SupplierContactInputFilter) Filter supplier contacts by multiple criteria. Only one filter per attribute is supported. For best performance, we recommend 5 or less filters. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_companies/1/supplier_contacts"
Response samples
- 200
{- "meta": {
- "count": 2
}, - "data": [
- {
- "type": "supplier_contacts",
- "id": "1",
- "attributes": {
- "name": "Supplier Contact Name #1",
- "first_name": null,
- "last_name": null,
- "email": "supplier.contact1@example.com",
- "notes": "Supplier Contact Notes",
- "phone_number": "555-555-5555",
- "job_title": "Supplier Contact Job Title",
- "is_suggested": false,
- "external_id": "CNT-17",
- "updated_at": "2019-10-29T21:28:46.790Z"
}, - "relationships": {
- "supplier_company": {
- "data": {
- "id": "1",
- "type": "supplier_companies"
}
}, - "contact_types": {
- "data": [
- {
- "id": 1,
- "type": "contact_types"
}
]
}, - "phones": {
- "data": [
- {
- "id": 1,
- "type": "phones"
}
]
}
},
}, - {
- "type": "supplier_contacts",
- "id": "2",
- "attributes": {
- "name": "Supplier Contact Name #2",
- "first_name": null,
- "last_name": null,
- "email": "supplier.contact2@example.com",
- "notes": "Supplier Contact Notes",
- "phone_number": "555-555-5555",
- "job_title": "Supplier Contact Job Title",
- "is_suggested": false,
- "external_id": "CNT-18",
- "updated_at": "2019-10-29T21:28:46.790Z"
}, - "relationships": {
- "supplier_company": {
- "data": {
- "id": "1",
- "type": "supplier_companies"
}
}, - "contact_types": {
- "data": [
- {
- "id": "1",
- "type": "contact_types"
}, - {
- "id": "2",
- "type": "contact_types"
}
]
}, - "phones": {
- "data": [
- {
- "id": "2",
- "type": "phones"
}
]
}
},
}
],
}
Create a Supplier Contact
Create a supplier contact with given attributes.
Linked Resources
The supplier company should exist prior to being linked to the supplier contact. It can be
referenced by Workday Strategic Sourcing identifier, or by external ID; in the latter case, the relationship
name is used with prefix external_
. For example, a supplier company with Workday Strategic Sourcing ID "1"
and
external ID "SCM-1"
can be used to initialize supplier_company
:
{
"supplier_company": {
"data" {
"id": "1",
"type": "supplier_companies"
}
}
}
{
"external_supplier_company": {
"data" {
"id": "SCM-1",
"type": "supplier_companies"
}
}
}
Authorizations:
query Parameters
include | string (SupplierContactRelatedResources) Enum: "supplier_company" "contact_types" "phones" Use the |
Request Body schema: application/vnd.api+json
object (SupplierContactCreate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_contacts",
- "attributes": {
- "name": "Supplier Contact Name",
- "email": "supplier.contact1@example.com",
- "notes": "Supplier Contact Notes",
- "phone_number": "555-555-5555",
- "job_title": "Supplier Contact Job Title",
- "is_suggested": false,
- "external_id": "CNT-17"
}, - "relationships": {
- "supplier_company": {
- "data": {
- "id": "1",
- "type": "supplier_companies"
}
}, - "contact_types": {
- "data": [
- {
- "id": 1,
- "type": "contact_types"
}
]
}
}
}
}
Response samples
- 201
{- "data": {
- "type": "supplier_contacts",
- "id": "1",
- "attributes": {
- "name": "Supplier Contact Name",
- "first_name": null,
- "last_name": null,
- "email": "supplier.contact1@example.com",
- "notes": "Supplier Contact Notes",
- "phone_number": "555-555-5555",
- "job_title": "Supplier Contact Job Title",
- "is_suggested": false,
- "external_id": "CNT-17",
- "updated_at": "2019-10-29T21:28:46.790Z"
}, - "relationships": {
- "supplier_company": {
- "data": {
- "id": "1",
- "type": "supplier_companies"
}
}, - "contact_types": {
- "data": [
- {
- "id": "1",
- "type": "contact_types"
}
]
}, - "phones": {
- "data": [
- {
- "id": "1",
- "type": "phones"
}
]
}
},
}
}
Get a Supplier Contact
Retrieves the details of an existing supplier contact.
Authorizations:
path Parameters
id required | integer Example: 1 Unique supplier contact identifier. |
query Parameters
include | string (SupplierContactRelatedResources) Enum: "supplier_company" "contact_types" "phones" Use the |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_contacts/1"
Response samples
- 200
{- "data": {
- "type": "supplier_contacts",
- "id": "1",
- "attributes": {
- "name": "Supplier Contact Name",
- "first_name": null,
- "last_name": null,
- "email": "supplier.contact1@example.com",
- "notes": "Supplier Contact Notes",
- "phone_number": "555-555-5555",
- "job_title": "Supplier Contact Job Title",
- "is_suggested": false,
- "external_id": "CNT-17",
- "updated_at": "2019-10-29T21:28:46.790Z"
}, - "relationships": {
- "supplier_company": {
- "data": {
- "id": "1",
- "type": "supplier_companies"
}
}, - "contact_types": {
- "data": [
- {
- "id": "1",
- "type": "contact_types"
}
]
}, - "phones": {
- "data": [
- {
- "id": "1",
- "type": "phones"
}
]
}
},
}
}
Update a Supplier Contact
Updates the details of an existing supplier contact. You need to supply the unique supplier company and contact identifiers.
Please note, that request body must include an id
attribute with the value of your supplier
contact unique identifier (the same one you passed in the URL).
Authorizations:
path Parameters
id required | integer Example: 1 Unique supplier contact identifier. |
query Parameters
include | string (SupplierContactRelatedResources) Enum: "supplier_company" "contact_types" "phones" Use the |
Request Body schema: application/vnd.api+json
object (SupplierContactUpdate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_contacts",
- "id": "1",
- "attributes": {
- "name": "Supplier Contact Name Updated",
- "email": "supplier.contact.updated@example.com",
- "notes": "Supplier Contact Notes Updated",
- "phone_number": "777-777-7777",
- "job_title": "Supplier Contact Job Title Updated",
- "is_suggested": false,
- "external_id": "CNT-18"
}, - "relationships": {
- "contact_types": {
- "data": [
- {
- "id": 1,
- "type": "contact_types"
}
]
}
}
}
}
Response samples
- 200
- 409
{- "data": {
- "type": "supplier_contacts",
- "id": "1",
- "attributes": {
- "name": "Supplier Contact Name Updated",
- "first_name": null,
- "last_name": null,
- "email": "supplier.contact.updated@example.com",
- "notes": "Supplier Contact Notes Updated",
- "phone_number": "777-777-7777",
- "job_title": "Supplier Contact Job Title Updated",
- "is_suggested": false,
- "external_id": "CNT-18",
- "updated_at": "2019-10-29T21:28:46.790Z"
}, - "relationships": {
- "supplier_company": {
- "data": {
- "id": "2",
- "type": "supplier_companies"
}
}, - "contact_types": {
- "data": [
- {
- "id": "2",
- "type": "contact_types"
}
]
}, - "phones": {
- "data": [
- {
- "id": "2",
- "type": "phones"
}
]
}
},
}
}
Delete a Supplier Contact
Deletes a supplier contact.
Authorizations:
path Parameters
id required | integer Example: 1 Unique supplier contact identifier. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ -X DELETE \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_contacts/1/external_id"
List Supplier Contacts by Supplier Company External ID
Retrieves the list of contacts for an existing supplier company by Supplier Company External ID.
Authorizations:
path Parameters
external_id required | string Example: 1234-5678-abcd-efgh Supplier company external identifier. |
query Parameters
include | string (SupplierContactRelatedResources) Enum: "supplier_company" "contact_types" "phones" To reduce the number of HTTP requests, related resources can be requested along with the
requested primary resources. Such responses are called "compound documents". In a compound
document, all included resources will be represented as an array of resource objects in a
top-level The value of the
In the response, relationships will be represented as normal linkage objects (containing
|
object (SupplierContactInputFilter) Filter supplier contacts by multiple criteria. Only one filter per attribute is supported. For best performance, we recommend 5 or less filters. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_companies/1234-5678-abcd-efgh/supplier_contacts/external_id"
Response samples
- 200
{- "meta": {
- "count": 2
}, - "data": [
- {
- "type": "supplier_contacts",
- "id": "1",
- "attributes": {
- "name": "John Doe",
- "first_name": "John",
- "last_name": "Doe",
- "email": "supplier.contact1@example.com",
- "notes": "Supplier Contact Notes",
- "phone_number": "555-555-5555",
- "job_title": "Supplier Contact Job Title",
- "is_suggested": false,
- "external_id": "CNT-17",
- "updated_at": "2019-10-29T21:28:46.790Z"
}, - "relationships": {
- "supplier_company": {
- "data": {
- "id": "1",
- "type": "supplier_companies"
}
}, - "contact_types": {
- "data": [ ]
}, - "phones": {
- "data": [
- {
- "id": "1",
- "type": "phones"
}
]
}
},
}, - {
- "type": "supplier_contacts",
- "id": "2",
- "attributes": {
- "name": "Supplier Contact Name #2",
- "first_name": null,
- "last_name": null,
- "email": "supplier.contact2@example.com",
- "notes": "Supplier Contact Notes",
- "phone_number": "555-555-5555",
- "job_title": "Supplier Contact Job Title",
- "is_suggested": false,
- "external_id": "CNT-18",
- "updated_at": "2019-10-29T21:28:46.790Z"
}, - "relationships": {
- "supplier_company": {
- "data": {
- "id": "1",
- "type": "supplier_companies"
}
}, - "contact_types": {
- "data": [ ]
}, - "phones": {
- "data": [
- {
- "id": "2",
- "type": "phones"
}
]
}
},
}
],
}
Get a Supplier Contact by External ID
Retrieves the details of an existing supplier contact by Supplier Contact External ID.
Authorizations:
path Parameters
external_id required | string Example: CNT-17 Unique supplier contact identifier. |
query Parameters
include | string (SupplierContactRelatedResources) Enum: "supplier_company" "contact_types" "phones" Use the |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_contacts/CNT-17/external_id"
Response samples
- 200
{- "data": {
- "type": "supplier_contacts",
- "id": "1",
- "attributes": {
- "name": "John Doe",
- "first_name": "John",
- "last_name": "Doe",
- "email": "supplier.contact1@example.com",
- "notes": "Supplier Contact Notes",
- "phone_number": "555-555-5555",
- "job_title": "Supplier Contact Job Title",
- "is_suggested": false,
- "external_id": "CNT-17",
- "updated_at": "2019-10-29T21:28:46.790Z"
}, - "relationships": {
- "supplier_company": {
- "data": {
- "id": "1",
- "type": "supplier_companies"
}
}, - "contact_types": {
- "data": [ ]
}, - "phones": {
- "data": [
- {
- "id": "1",
- "type": "phones"
}
]
}
},
}
}
Update a Supplier Contact by External ID
Updates the details of an existing supplier contact by Supplir Contact External ID.
Please note, that request body must include an id
attribute with the value of your supplier
contact unique identifier (the same one you passed in the URL).
Authorizations:
path Parameters
external_id required | string Example: CNT-17 Unique supplier contact external identifier. |
query Parameters
include | string (SupplierContactRelatedResources) Enum: "supplier_company" "contact_types" "phones" Use the |
Request Body schema: application/vnd.api+json
object (SupplierContactUpdate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_contacts",
- "id": "CNT-17",
- "attributes": {
- "first_name": "John-Updated",
- "last_name": "Doe-Updated",
- "email": "supplier.contact.updated@example.com",
- "notes": "Supplier Contact Notes Updated",
- "phone_number": "777-777-7777",
- "job_title": "Supplier Contact Job Title Updated",
- "is_suggested": false,
- "external_id": "CNT-18"
}, - "relationships": {
- "contact_types": {
- "data": [
- {
- "id": 1,
- "type": "contact_types"
}
]
}
}
}
}
Response samples
- 200
{- "data": {
- "type": "supplier_contacts",
- "id": "1",
- "attributes": {
- "name": "John-Updated Doe-Updated",
- "first_name": "John-Updated",
- "last_name": "Doe-Updated",
- "email": "supplier.contact.updated@example.com",
- "notes": "Supplier Contact Notes Updated",
- "phone_number": "777-777-7777",
- "job_title": "Supplier Contact Job Title Updated",
- "is_suggested": false,
- "external_id": "CNT-18",
- "updated_at": "2019-10-29T21:28:46.790Z"
}, - "relationships": {
- "supplier_company": {
- "data": {
- "id": "2",
- "type": "supplier_companies"
}
}, - "contact_types": {
- "data": [
- {
- "id": "2",
- "type": "contact_types"
}
]
}, - "phones": {
- "data": [
- {
- "id": "1",
- "type": "phones"
}
]
}
},
}
}
Delete a Supplier Contact by External ID
Deletes a supplier contact by Supplier Contact External ID.
Authorizations:
path Parameters
external_id required | string Example: CNT-17 Unique supplier contact identifier. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ -X DELETE \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_contacts/CNT-17/external_id"
type required | string (SupplierClassificationType) Object type, should always be |
id required | integer (SupplierClassificationId) Supplier classification identifier string. |
object (SupplierClassificationAttributes) SupplierClassification attributes. | |
object (SupplierClassificationRelationship) Supplier classification relationships. |
{- "data": {
- "id": "1",
- "type": "supplier_classifications",
- "attributes": {
- "name": "Veteran Business",
- "active": true,
- "order": 1,
- "country_alpha2": "US",
- "external_id": "SC-EXT-ID-1",
- "request_additional_information": true,
- "codename": "diversity"
}
}
}
List Supplier Classifications
Returns a list of supplier classifications.
Authorizations:
query Parameters
include | string (SupplierClassificationRelatedResources) Value: "supplier_classification_fields" To reduce the number of HTTP requests, related resources can be requested along with the
requested primary resources. Such responses are called "compound documents". In a compound
document, all included resources will be represented as an array of resource objects in a
top-level The value of the
In the response, relationships will be represented as normal linkage objects (containing
|
object (SupplierClassificationInputFilter) Filter supplier classifications by codename. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_classifications"
Response samples
- 200
{- "data": [
- {
- "id": "100",
- "type": "supplier_classifications",
- "attributes": {
- "name": "Minority Business",
- "order": 1,
- "active": true,
- "country_alpha2": "CA",
- "external_id": "CLS-1",
- "request_additional_information": false,
- "codename": "diversity"
}, - "relationships": {
- "supplier_classification_fields": {
- "data": [ ]
}
}, - "links": {
}
}, - {
- "id": "200",
- "type": "supplier_classifications",
- "attributes": {
- "name": "Veteran Business",
- "order": 2,
- "active": true,
- "country_alpha2": "CA",
- "external_id": "CLS-2",
- "request_additional_information": true,
- "codename": "diversity"
}, - "relationships": {
- "supplier_classification_fields": {
- "data": [
- {
- "id": "148",
- "type": "supplier_classification_fields"
}, - {
- "id": "149",
- "type": "supplier_classification_fields"
}
]
}
}, - "links": {
}
}, - {
- "id": "300",
- "type": "supplier_classifications",
- "attributes": {
- "name": "Small Business",
- "order": 3,
- "active": true,
- "country_alpha2": "CA",
- "external_id": "CLS-3",
- "request_additional_information": true,
- "codename": "diversity"
}, - "relationships": {
- "supplier_classification_fields": {
- "data": [
- {
- "id": "150",
- "type": "supplier_classification_fields"
}, - {
- "id": "154",
- "type": "supplier_classification_fields"
}
]
}
}, - "links": {
}
}
],
}
Create a Supplier Classification
Create a supplier classifications with given attributes, relationships, and related complex resources.
{
"data": {
"type": "supplier_classifications",
"attributes": {
"name": "Classification 1",
"order": 1,
"country_alpha2": "CA",
"codename": "diversity",
"active": true,
"external_id": "CLASSIFICATION-1",
"request_additional_information": false
}
}
}
Composite Resources
Resources that do not exist outside of parent resource, and are managed within the scope of
parent resource, cannot be pre-created in advance. Supplier classifications have one composite
resource supplier_classification_fields
that includes another composite resource in itself -
supplier_classification_field_options
.
In order to create these resource along with the parent object, compound document must be used:
{
"data": {
"type": "supplier_classifications",
"attributes": {
"name": "Classification 1",
"order": 1,
"country_alpha2": "CA",
"codename": "diversity",
"active": true,
"external_id": "CLASSIFICATION-1",
"request_additional_information": true
},
"relationships": {
"supplier_classification_fields": {
"data": [
{
"id": "CLASSIFICATION-FIELD-1",
"type": "supplier_classification_fields"
},
]
}
},
"included": [
{
"id": "CLASSIFICATION-FIELD-1",
"type": "supplier_classification_fields",
"attributes": {
"name": "Field 1",
"order": 1,
"required": false,
"kind": "SELECT",
"external_id": "CLASSIFICATION-FIELD-1"
},
"relationships": {
"supplier_classification_field_options": {
"data": [
{
"id": "CLASSIFICATION-FIELD-OPTION-1",
"type": "supplier_classification_field_options"
},
{
"id": "CLASSIFICATION-FIELD-OPTION-2",
"type": "supplier_classification_field_options"
}
]
}
}
},
{
"id": "CLASSIFICATION-FIELD-OPTION-1",
"type": "supplier_classification_field_options",
"attributes": {
"label": "Option 1",
"order": 1,
"external_id": "CLASSIFICATION-FIELD-OPTION-1"
}
},
{
"id": "CLASSIFICATION-FIELD-OPTION-2",
"type": "supplier_classification_field_options",
"attributes": {
"label": "Option 2",
"order": 2,
"external_id": "CLASSIFICATION-FIELD-OPTION-2"
}
}
]
}
}
Authorizations:
query Parameters
include | string (SupplierClassificationRelatedResources) Value: "supplier_classification_fields" Use the |
Request Body schema: application/vnd.api+json
object (SupplierClassification) | |
Array of SupplierClassificationField (object) or SupplierClassificationFieldOption (object) (SupplierClassificationIncludedMutationResources) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_classifications",
- "attributes": {
- "name": "SBE - Small Business Enterprise",
- "order": 1,
- "country_alpha2": "CA",
- "external_id": "SC-1",
- "codename": "diversity",
- "active": true,
- "request_additional_information": false
}
}
}
Response samples
- 201
{- "data": {
- "id": "1",
- "type": "supplier_classifications",
- "attributes": {
- "name": "SBE - Small Business Enterprise",
- "order": 1,
- "country_alpha2": "CA",
- "external_id": "SC-1",
- "codename": "diversity",
- "active": true,
- "request_additional_information": false
}, - "relationships": {
- "supplier_classification_fields": {
- "data": [ ]
}
}, - "links": {
}
}
}
Get a Supplier Classification
Retrieves the details of an existing supplier classification.
Authorizations:
path Parameters
id required | integer Example: 1 Unique supplier classification identifier. |
query Parameters
include | string (SupplierClassificationRelatedResources) Value: "supplier_classification_fields" Use the |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_classifications/1"
Response samples
- 200
{- "data": {
- "id": "1",
- "type": "supplier_classifications",
- "attributes": {
- "name": "SBE - Small Business Enterprise",
- "order": 1,
- "active": true,
- "country_alpha2": "CA",
- "external_id": "CL-1",
- "request_additional_information": true,
- "codename": "diversity"
}, - "relationships": {
- "supplier_classification_fields": {
- "data": [
- {
- "id": "100",
- "type": "supplier_classification_fields"
}
]
}
}, - "links": {
}
}
}
Update a Supplier Classification
Update a supplier classification with given attributes, relationships, and related complex resources.
Authorizations:
path Parameters
id required | integer Example: 1 Unique Supplier Classification identifier. |
query Parameters
include | string (SupplierClassificationRelatedResources) Value: "supplier_classification_fields" Use the |
Request Body schema: application/vnd.api+json
object (SupplierClassification) | |
included | string (SupplierClassificationRelatedResources) Value: "supplier_classification_fields" |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_classifications",
- "id": "1",
- "attributes": {
- "name": "Veteran Business",
- "order": 1,
- "country_alpha2": "CA",
- "external_id": "SC-2",
- "codename": "diversity",
- "active": true,
- "request_additional_information": false
}
}
}
Response samples
- 200
- 409
{- "data": {
- "id": "1",
- "type": "supplier_classifications",
- "attributes": {
- "name": "Veteran Business",
- "order": 1,
- "country_alpha2": "CA",
- "external_id": "SC-2",
- "codename": "diversity",
- "active": true,
- "request_additional_information": false
}, - "relationships": {
- "supplier_classification_fields": {
- "data": [ ]
}
}, - "links": {
}
}
}
Delete a Supplier Classification
Deletes a supplier classification.
Authorizations:
path Parameters
id required | integer Example: 1 Unique supplier classification identifier. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ -X DELETE \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_classifications/1"
Get a Supplier Classification by External ID
Retrieves the details of an existing supplier classification. You need to supply the unique supplier classification external identifier (the one you used when created the supplier classification).
Authorizations:
path Parameters
external_id required | string Example: CL-1 Supplier classification external identifier. |
query Parameters
include | string (SupplierClassificationRelatedResources) Value: "supplier_classification_fields" Use the |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_classifications/CL-1/external_id"
Response samples
- 200
{- "data": {
- "id": "1",
- "type": "supplier_classifications",
- "attributes": {
- "name": "SBE - Small Business Enterprise",
- "order": 1,
- "active": true,
- "country_alpha2": "CA",
- "external_id": "CL-1",
- "request_additional_information": true,
- "codename": "diversity"
}, - "relationships": {
- "supplier_classification_fields": {
- "data": [
- {
- "id": "100",
- "type": "supplier_classification_fields"
}
]
}
}, - "links": {
}
}
}
Update a Supplier Classification by External ID
Update a supplier classification with given attributes, relationships, and related complex resources.
Authorizations:
path Parameters
external_id required | string Example: CL-1 Supplier classification external identifier. |
query Parameters
include | string (SupplierClassificationRelatedResources) Value: "supplier_classification_fields" Use the |
Request Body schema: application/vnd.api+json
object (SupplierClassification) | |
included | string (SupplierClassificationRelatedResources) Value: "supplier_classification_fields" |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_classifications",
- "id": "CL-1",
- "attributes": {
- "name": "SBE - Small Business Enterprise",
- "order": 1,
- "country_alpha2": "CA",
- "external_id": "CL-1",
- "codename": "diversity",
- "active": true,
- "request_additional_information": false
}
}
}
Response samples
- 200
{- "data": {
- "id": "1",
- "type": "supplier_classifications",
- "attributes": {
- "name": "SBE - Small Business Enterprise",
- "order": 1,
- "country_alpha2": "CA",
- "external_id": "CL-1",
- "codename": "diversity",
- "active": true,
- "request_additional_information": false
}, - "relationships": {
- "supplier_classification_fields": {
- "data": [ ]
}
}, - "links": {
}
}
}
Delete a Supplier Classification by External ID
Deletes a supplier classification.
Authorizations:
path Parameters
external_id required | string Example: CL-1 Supplier classification external identifier. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ -X DELETE \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_classifications/CL-1/external_id"
Use the supplier company segmentations API to create, update, and query the supplier company segmentations in Workday Strategic Sourcing.
type required | string (SupplierCompanySegmentationType) Object type, should always be |
id required | integer (SupplierCompanySegmentationId) Supplier company segmentation identifier string. |
object (SupplierCompanySegmentationCreateAttributes) Supplier company segmentation attributes. |
{- "type": "supplier_company_segmentations",
- "id": 1,
- "attributes": {
- "label": "Tier 1",
- "order": 1,
- "slug": "tier_1"
}
}
List Supplier Company Segmentations
Returns a list of supplier company segmentations.
Authorizations:
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_company_segmentations"
Response samples
- 200
{- "data": [
- {
- "id": "1",
- "type": "supplier_company_segmentations",
- "attributes": {
- "label": "Tier 1",
- "order": 1,
- "slug": "tier_1"
},
}, - {
- "id": "2",
- "type": "supplier_company_segmentations",
- "attributes": {
- "label": "Tier 2",
- "order": 2,
- "slug": "tier_2"
},
}, - {
- "id": "3",
- "type": "supplier_company_segmentations",
- "attributes": {
- "label": "Tier 3",
- "order": 3,
- "slug": "tier_3"
},
}, - {
- "id": "4",
- "type": "supplier_company_segmentations",
- "attributes": {
- "label": "Tier 4",
- "order": 4,
- "slug": "tier_4"
},
}, - {
- "id": "5",
- "type": "supplier_company_segmentations",
- "attributes": {
- "label": "Tier 5",
- "order": 5,
- "slug": "tier_5_ab9fcfab-eaa5-4006-999a-7b82019f486a"
},
}
], - "links": {
}
}
Create a Supplier Company Segmentation
Create a supplier company segmentation with given parameters.
Authorizations:
Request Body schema: application/vnd.api+json
object (SupplierCompanySegmentationCreate) |
Responses
Request samples
- Payload
- Curl without slug
- Curl with slug
{- "data": {
- "type": "supplier_company_segmentations",
- "attributes": {
- "label": "Tier 5",
- "order": 5
}
}
}
Response samples
- 201
- 409
{- "data": {
- "id": "5",
- "type": "supplier_company_segmentations",
- "attributes": {
- "label": "Tier 5",
- "order": 5,
- "slug": "tier_5_25672734-8f8f-4735-9099-8a4f3c64505a"
},
}
}
Update a Supplier Company Segmentation
Updates the details of an existing supplier company segmentation. You need to supply the unique identifier that was returned upon supplier company segmentation creation.
Please note, that request body must include an id
attribute with the value of your supplier company segmentation
unique identifier (the same one you passed in the URL).
Authorizations:
path Parameters
id required | integer Example: 1 Unique supplier company segmentation identifier. |
Request Body schema: application/vnd.api+json
object (SupplierCompanySegmentationUpdate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_company_segmentations",
- "id": "1",
- "attributes": {
- "label": "Tier 16",
- "order": 1
}
}
}
Response samples
- 200
- 409
{- "data": {
- "id": "1",
- "type": "supplier_company_segmentations",
- "attributes": {
- "label": "Tier 16",
- "order": 1,
- "slug": "tier_1"
},
}
}
Delete a Supplier Company Segmentation
Deletes a supplier company segmentation. You need to supply the unique supplier company segmentation identifier that was returned upon supplier company segmentation creation.
Authorizations:
path Parameters
id required | integer Example: 1 Unique supplier company segmentation identifier. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ -X DELETE \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_company_segmentations/1"
Use the supplier company risks API to create, update, and query the supplier company risks in Workday Strategic Sourcing.
type required | string (SupplierCompanyRiskType) Object type, should always be |
id required | integer (SupplierCompanyRiskId) Supplier company risk identifier string. |
object (SupplierCompanyRiskCreateAttributes) Supplier company risk attributes. |
{- "type": "supplier_company_risks",
- "id": 1,
- "attributes": {
- "label": "Low",
- "order": 1,
- "color": "gray"
}
}
List Supplier Company Risks
Returns a list of supplier company risks.
Authorizations:
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_company_risks"
Response samples
- 200
{- "data": [
- {
- "id": "1",
- "type": "supplier_company_risks",
- "attributes": {
- "label": "Green",
- "slug": "low",
- "color": "green",
- "order": 1
}
}, - {
- "id": "2",
- "type": "supplier_company_risks",
- "attributes": {
- "label": "Yellow",
- "slug": "medium",
- "color": "yellow",
- "order": 2
}
}, - {
- "id": "3",
- "type": "supplier_company_risks",
- "attributes": {
- "label": "Red",
- "slug": "high",
- "color": "red",
- "order": 3
}
}, - {
- "id": "4",
- "type": "supplier_company_risks",
- "attributes": {
- "label": "Super High!",
- "slug": "super_high_25672734-8f8f-4735-9099-8a4f3c64505a",
- "color": "red",
- "order": 4
}
}
],
}
Create a Supplier Company Risk
Create a supplier company risk with given parameters.
Authorizations:
Request Body schema: application/vnd.api+json
object (SupplierCompanyRiskCreate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_company_risks",
- "attributes": {
- "label": "Super High!",
- "color": "red",
- "order": 4
}
}
}
Response samples
- 201
- 409
{- "data": {
- "id": "4",
- "type": "supplier_company_risks",
- "attributes": {
- "label": "Super High!",
- "order": 4,
- "color": "red",
- "slug": "super_high_25672734-8f8f-4735-9099-8a4f3c64505a"
}
}
}
Update a Supplier Company Risk
Updates the details of an existing supplier company risk. You need to supply the unique identifier that was returned upon supplier company risk creation.
Please note, that request body must include an id
attribute with the value of your supplier company risk
unique identifier (the same one you passed in the URL).
Authorizations:
path Parameters
id required | integer Example: 1 Unique supplier company risk identifier. |
Request Body schema: application/vnd.api+json
object (SupplierCompanyRiskUpdate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "id": "4",
- "type": "supplier_company_risks",
- "attributes": {
- "label": "Very High",
- "color": "red",
- "order": 1
}
}
}
Response samples
- 200
- 409
{- "data": {
- "id": "4",
- "type": "supplier_company_risks",
- "attributes": {
- "label": "Very High",
- "slug": "super_high_25672734-8f8f-4735-9099-8a4f3c64505a",
- "color": "red",
- "order": 1
}
}
}
Delete a Supplier Company Risk
Deletes a supplier company risk. You need to supply the unique supplier company risk identifier that was returned upon supplier company risk creation.
Authorizations:
path Parameters
id required | integer Example: 1 Unique supplier company risk identifier. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ -X DELETE \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_company_risks/1"
Use the supplier company segmentation statuses API to create, update, and query the supplier company segmentation statuses in Workday Strategic Sourcing.
type required | string (SupplierCompanySegmentationStatusType) Object type, should always be |
id required | integer (SupplierCompanySegmentationStatusId) Supplier company segmentation status identifier string. |
object (SupplierCompanySegmentationStatusCreateAttributes) Supplier company segmentation status attributes. |
{- "type": "supplier_company_segmentation_statuses",
- "id": 1,
- "attributes": {
- "label": "Approved",
- "order": 1,
- "color": "approved"
}
}
List Supplier Company segmentation_statuses
Returns a list of supplier company segmentation_statuses.
Authorizations:
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_company_segmentation_statuses"
Response samples
- 200
{- "data": [
- {
- "id": "1",
- "type": "supplier_company_segmentation_statuses",
- "attributes": {
- "label": "Not Approved",
- "slug": "approved",
- "icon": "not_approved",
- "order": 1
}
}, - {
- "id": "2",
- "type": "supplier_company_segmentation_statuses",
- "attributes": {
- "label": "Reviewing",
- "slug": "reviewing",
- "icon": "reviewing",
- "order": 2
}
}, - {
- "id": "3",
- "type": "supplier_company_segmentation_statuses",
- "attributes": {
- "label": "Approved",
- "slug": "approved",
- "icon": "approved",
- "order": 3
}
}, - {
- "id": "4",
- "type": "supplier_company_segmentation_statuses",
- "attributes": {
- "label": "Out of Compliance",
- "slug": "out_of_compliance",
- "icon": "out_of_compliance",
- "order": 4
}
}, - {
- "id": "5",
- "type": "supplier_company_segmentation_statuses",
- "attributes": {
- "label": "Denied",
- "slug": "denied",
- "icon": "denied",
- "order": 5
}
}, - {
- "id": "6",
- "type": "supplier_company_segmentation_statuses",
- "attributes": {
- "label": "Super Approved!",
- "slug": "super_high_25672734-8f8f-4735-9099-8a4f3c64505a",
- "icon": "approved",
- "order": 6
}
}
],
}
Create a Supplier Company Segmentation Status
Create a supplier company segmentation status with given parameters.
Authorizations:
Request Body schema: application/vnd.api+json
object (SupplierCompanySegmentationStatusCreate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_company_segmentation_statuses",
- "attributes": {
- "label": "Super Approved!",
- "icon": "approved",
- "order": 6
}
}
}
Response samples
- 201
- 409
{- "data": {
- "type": "supplier_company_segmentation_statuses",
- "attributes": {
- "label": "Super Approved!",
- "icon": "approved",
- "order": 6,
- "slug": "super_approved_25672734-8f8f-4735-9099-8a4f3c64505a"
}
}
}
Update a Supplier Company Segmentation Status
Updates the details of an existing supplier company segmentation status. You need to supply the unique identifier that was returned upon supplier company segmentation status creation.
Please note, that request body must include an id
attribute with the value of your supplier company segmentation status
unique identifier (the same one you passed in the URL).
Authorizations:
path Parameters
id required | integer Example: 1 Unique supplier company segmentation status identifier. |
Request Body schema: application/vnd.api+json
object (SupplierCompanySegmentationStatusUpdate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_company_segmentation_statuses",
- "id": "4",
- "attributes": {
- "label": "Kinda Approved!",
- "icon": "reviewing",
- "order": 1
}
}
}
Response samples
- 200
- 409
{- "data": {
- "type": "supplier_company_segmentation_statuses",
- "attributes": {
- "label": "Kinda Approved!",
- "icon": "reviewing",
- "order": 1,
- "slug": "kinda_approved_25672734-8f8f-4735-9099-8a4f3c64505a"
}
}
}
Delete a Supplier Company Segmentation Status
Deletes a supplier company segmentation status. You need to supply the unique supplier company segmentation status identifier that was returned upon supplier company segmentation status creation.
Authorizations:
path Parameters
id required | integer Example: 1 Unique supplier company segmentation status identifier. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ -X DELETE \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_company_segmentation_statuses/1"
Use the supplier categories API to create, update, and query the supplier categories in Workday Strategic Sourcing.
type required | string (SupplierCategoryType) Object type, should always be |
id required | integer (SupplierCategoryId) Supplier category identifier string. |
object (SupplierCategoryAttributes) Supplier category attributes. |
{- "type": "supplier_categories",
- "id": 1,
- "attributes": {
- "name": "string",
- "external_id": "string"
}
}
List Supplier Categories
Returns a list of supplier categories.
Authorizations:
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_categories"
Response samples
- 200
{- "data": [
- {
- "id": "1",
- "type": "supplier_categories",
- "attributes": {
- "name": "Supplier Category #1",
- "external_id": "SUPCAT-1"
},
}, - {
- "id": "2",
- "type": "supplier_categories",
- "attributes": {
- "name": "Supplier Category #2",
- "external_id": "SUPCAT-2"
},
}
],
}
Create a Supplier Category
Create a supplier category with given parameters.
Authorizations:
Request Body schema: application/vnd.api+json
object (SupplierCategoryCreate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_categories",
- "attributes": {
- "name": "Supplier Category #1",
- "external_id": "SUPCAT-1"
}
}
}
Response samples
- 201
{- "data": {
- "id": "1",
- "type": "supplier_categories",
- "attributes": {
- "name": "Supplier Category #1",
- "external_id": "SUPCAT-1"
},
}
}
Update a Supplier Category
Updates the details of an existing supplier category. You need to supply the unique identifier that was returned upon supplier category creation.
Please note, that request body must include an id
attribute with the value of your supplier category
unique identifier (the same one you passed in the URL).
Authorizations:
path Parameters
id required | integer Example: 1 Unique supplier category identifier. |
Request Body schema: application/vnd.api+json
object (SupplierCategoryUpdate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_categories",
- "id": "1",
- "attributes": {
- "name": "Supplier Category Updated",
- "external_id": "SUPCAT-UPD"
}
}
}
Response samples
- 200
- 409
{- "data": {
- "id": "1",
- "type": "supplier_categories",
- "attributes": {
- "name": "Supplier Category Updated",
- "external_id": "SUPCAT-UPD"
},
}
}
Delete a Supplier Category
Deletes a supplier category. You need to supply the unique supplier category identifier that was returned upon supplier category creation.
Authorizations:
path Parameters
id required | integer Example: 1 Unique supplier category identifier. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ -X DELETE \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_categories/1"
Update a Supplier Category by External ID
Updates the details of an existing supplier category. You need to supply the unique external identifier assigned to the supplier category on creation.
Please note, that request body must include an id
attribute with the value of your supplier category
unique identifier (the same one you passed in the URL).
Authorizations:
path Parameters
external_id required | string Example: SUPCAT Unique supplier category external identifier. |
Request Body schema: application/vnd.api+json
object (SupplierCategoryUpdate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_categories",
- "id": "SUPCAT",
- "attributes": {
- "name": "Supplier Category Updated"
}
}
}
Response samples
- 200
{- "data": {
- "id": "1",
- "type": "supplier_categories",
- "attributes": {
- "name": "Supplier Category Updated",
- "external_id": "SUPCAT"
},
}
}
Delete a Supplier Category by External ID
Deletes a supplier category. You need to supply the unique supplier category external identifier assigned to the supplier category on creation.
Authorizations:
path Parameters
external_id required | string Example: SUPCAT Unique supplier category external identifier. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ -X DELETE \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_categories/SUPCAT/external_id"
Use the supplier groups API to create, update, and query the supplier groups in Workday Strategic Sourcing.
type required | string (SupplierGroupType) Object type, should always be |
id required | integer (SupplierGroupId) Supplier group identifier string. |
object (SupplierGroupAttributes) Supplier group attributes. |
{- "type": "supplier_groups",
- "id": 1,
- "attributes": {
- "name": "string",
- "external_id": "string"
}
}
List Supplier Groups
Returns a list of supplier groups.
Authorizations:
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_groups"
Response samples
- 200
{- "data": [
- {
- "id": "1",
- "type": "supplier_groups",
- "attributes": {
- "name": "Supplier Group #1",
- "external_id": "SUPGROUP-1"
},
}, - {
- "id": "2",
- "type": "supplier_groups",
- "attributes": {
- "name": "Supplier Group #2",
- "external_id": "SUPGROUP-2"
},
}
],
}
Create a Supplier Group
Create a supplier group with given parameters.
Authorizations:
Request Body schema: application/vnd.api+json
object (SupplierGroupCreate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_groups",
- "attributes": {
- "name": "Supplier Group #1",
- "external_id": "SUPGROUP-1"
}
}
}
Response samples
- 201
{- "data": {
- "id": "1",
- "type": "supplier_groups",
- "attributes": {
- "name": "Supplier Group #1",
- "external_id": "SUPGROUP-1"
},
}
}
Update a Supplier Group
Updates the details of an existing supplier group. You need to supply the unique identifier that was returned upon supplier group creation.
Please note, that request body must include an id
attribute with the value of your supplier group
unique identifier (the same one you passed in the URL).
Authorizations:
path Parameters
id required | integer Example: 1 Unique supplier group identifier. |
Request Body schema: application/vnd.api+json
object (SupplierGroupUpdate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_groups",
- "id": "1",
- "attributes": {
- "name": "Supplier Group Updated",
- "external_id": "SUPGROUP-UPD"
}
}
}
Response samples
- 200
- 409
{- "data": {
- "id": "1",
- "type": "supplier_groups",
- "attributes": {
- "name": "Supplier Group Updated",
- "external_id": "SUPGROUP-UPD"
},
}
}
Delete a Supplier Group
Deletes a supplier group. You need to supply the unique supplier group identifier that was returned upon supplier group creation.
Authorizations:
path Parameters
id required | integer Example: 1 Unique supplier group identifier. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ -X DELETE \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_groups/1"
Update a Supplier Group by External ID
Updates the details of an existing supplier group. You need to supply the unique external identifier assigned to the supplier group on creation.
Please note, that request body must include an id
attribute with the value of your supplier group
unique identifier (the same one you passed in the URL).
Authorizations:
path Parameters
external_id required | string Example: SUPGROUP Unique supplier group external identifier. |
Request Body schema: application/vnd.api+json
object (SupplierGroupUpdate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "supplier_groups",
- "id": "SUPGROUP",
- "attributes": {
- "name": "Supplier Group Updated"
}
}
}
Response samples
- 200
{- "data": {
- "id": "1",
- "type": "supplier_groups",
- "attributes": {
- "name": "Supplier Group Updated",
- "external_id": "SUPGROUP"
},
}
}
Delete a Supplier Group by External ID
Deletes a supplier group. You need to supply the unique supplier group external identifier assigned to the supplier group on creation.
Authorizations:
path Parameters
external_id required | string Example: SUPGROUP Unique supplier group external identifier. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ -X DELETE \ "https://api.us.workdayspend.com/services/suppliers/v1/supplier_groups/SUPGROUP/external_id"
Use the contact types API to create, update, and query the contact types in Workday Strategic Sourcing.
type required | string (ContactTypeType) Object type, should always be |
id required | integer (ContactTypeId) Contact type identifier string. |
object (ContactTypeAttributes) Contact type attributes. |
{- "type": "contact_types",
- "id": 1,
- "attributes": {
- "name": "Financials",
- "external_id": "string"
}
}
List Contact Types
Returns a list of contact types.
Authorizations:
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ "https://api.us.workdayspend.com/services/suppliers/v1/contact_types"
Response samples
- 200
{- "data": [
- {
- "id": "1",
- "type": "contact_types",
- "attributes": {
- "name": "Contact Type #1",
- "external_id": "CTYPE-1"
},
}, - {
- "id": "2",
- "type": "contact_types",
- "attributes": {
- "name": "Contact Type #2",
- "external_id": "CTYPE-2"
},
}
],
}
Create a Contact Type
Create a contact type with given parameters.
Authorizations:
Request Body schema: application/vnd.api+json
object (ContactTypeCreate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "contact_types",
- "attributes": {
- "name": "Contact Type #1",
- "external_id": "CTYPE-1"
}
}
}
Response samples
- 201
{- "data": {
- "id": "1",
- "type": "contact_types",
- "attributes": {
- "name": "Contact Type #1",
- "external_id": "CTYPE-1"
},
}
}
Update a Contact Type
Updates the details of an existing contact type. You need to supply the unique identifier that was returned upon contact type creation.
Please note, that request body must include an id
attribute with the value of your contact type
unique identifier (the same one you passed in the URL).
Authorizations:
path Parameters
id required | integer Example: 1 Unique contact type identifier. |
Request Body schema: application/vnd.api+json
object (ContactTypeUpdate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "contact_types",
- "id": "1",
- "attributes": {
- "name": "Contact Type Updated",
- "external_id": "CTYPE-UPD"
}
}
}
Response samples
- 200
- 409
{- "data": {
- "id": "1",
- "type": "contact_types",
- "attributes": {
- "name": "Contact Type Updated",
- "external_id": "CTYPE-UPD"
},
}
}
Delete a Contact Type
Deletes a contact type. You need to supply the unique contact type identifier that was returned upon contact type creation.
Authorizations:
path Parameters
id required | integer Example: 1 Unique contact type identifier. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ -X DELETE \ "https://api.us.workdayspend.com/services/suppliers/v1/contact_types/1"
Update a Contact Type by External ID
Updates the details of an existing contact type. You need to supply the unique external identifier assigned to the contact type on creation.
Please note, that request body must include an id
attribute with the value of your contact type
unique identifier (the same one you passed in the URL).
Authorizations:
path Parameters
external_id required | string Example: CTYPE Unique contact type external identifier. |
Request Body schema: application/vnd.api+json
object (ContactTypeUpdate) |
Responses
Request samples
- Payload
- Curl
{- "data": {
- "type": "contact_types",
- "id": "CTYPE",
- "attributes": {
- "name": "Contact Type Updated"
}
}
}
Response samples
- 200
{- "data": {
- "id": "1",
- "type": "contact_types",
- "attributes": {
- "name": "Contact Type Updated",
- "external_id": "CTYPE"
},
}
}
Delete a Contact Type by External ID
Deletes a contact type. You need to supply the unique contact type external identifier assigned to the contact type on creation.
Authorizations:
path Parameters
external_id required | string Example: CTYPE Unique contact type external identifier. |
Responses
Request samples
- Curl
curl -H "X-Api-Key: ${COMPANY_KEY}" \ -H "X-User-Token: ${USER_TOKEN}" \ -H "X-User-Email: ${USER_EMAIL}" \ -H "Content-Type: application/vnd.api+json" \ -X DELETE \ "https://api.us.workdayspend.com/services/suppliers/v1/contact_types/CTYPE/external_id"