Theme switcher

API Reference

Was this section helpful?

What made this section unhelpful for you?

Base URL

Production:

http://sdp.tealbook.com/graphql

Language Box

Was this section helpful?

What made this section unhelpful for you?

Introduction to SDP

The TealBook Supplier Data Platform (SDP) delivers trusted supplier data to targeted enterprise systems via API integration. SDP continuously enriches and autonomously refreshes supplier data.

TealBook provides attribute-level trust scores that can be used in conjunction with our Business Rules Engine to give you control and flexibility over which data attributes are accepted and provided.

If you have any Support inquiries, please reach out to support@tealbook.com or submit a ticket here.

Query

The Query type in GraphQL represents the entry point for retrieving data from the API. It defines the available read-only operations (queries) that clients can execute to fetch data.

Mutation

The Mutation type in GraphQL is used for modifying or creating data. It defines the operations (mutations) that allow clients to make changes to the data stored on the server, such as creating, updating, or deleting resources

Was this section helpful?

What made this section unhelpful for you?

inputVmData

Body Parameters

dataarray Required
pipeline_namestring

Response

200
Object

Response Attributes

inputVmDataobject Required

Show child attributes

Was this section helpful?

What made this section unhelpful for you?

POST

/

Select
1 2 3 4 5 6 mutation inputVmData($data: [VendorMasterInput]!, $pipeline_name: String) { inputVmData(data: $data, pipeline_name: $pipeline_name) { pipeline_id result } }

Response

{
  "inputVmData": {
    "pipeline_id": null,
    "result": null
  }
}
Was this section helpful?

What made this section unhelpful for you?

modifyPipelineName

Body Parameters

data_typestring
Enum values:
SPENDVENDOR_MASTER
pipeline_idstring Required
pipeline_namestring

Response

200
Object

Response Attributes

modifyPipelineNameobject Required

Show child attributes

Was this section helpful?

What made this section unhelpful for you?

POST

/

Select
1 2 3 4 5 mutation modifyPipelineName($data_type: string, $pipeline_id: String!, $pipeline_name: String) { modifyPipelineName(data_type: $data_type, pipeline_id: $pipeline_id, pipeline_name: $pipeline_name) { pipeline_name } }

Response

{
  "modifyPipelineName": {
    "pipeline_name": null
  }
}
Was this section helpful?

What made this section unhelpful for you?

reRunFailedRecord

Body Parameters

pipeline_idstring Required

Response

200
Object

Response Attributes

reRunFailedRecordobject Required

Show child attributes

Was this section helpful?

What made this section unhelpful for you?

POST

/

Select
1 2 3 4 5 6 mutation reRunFailedRecord($pipeline_id: string!) { reRunFailedRecord(pipeline_id: $pipeline_id) { pipeline_id result } }

Response

{
  "reRunFailedRecord": {
    "pipeline_id": null,
    "result": null
  }
}
Was this section helpful?

What made this section unhelpful for you?

bulkUpdateBreAttribute

Body Parameters

updateBreRuleDataAttributesInputarray Required

Response

200
Object

Response Attributes

bulkUpdateBreAttributeobject Required

Show child attributes

Was this section helpful?

What made this section unhelpful for you?

POST

/

Select
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 mutation bulkUpdateBreAttribute($updateBreRuleDataAttributesInput: [UpdateBreRuleDateAttributeInput]!) { bulkUpdateBreAttribute(updateBreRuleDataAttributesInput: $updateBreRuleDataAttributesInput) { active attribute_name attribute_scenarios { } attribute_type bre_attribute_id certExpiryOption created_at is_default on_client_value on_client_value_empty tealbook_attribute_id updated_at useCertsWithNoExpiry } }

Response

{
  "bulkUpdateBreAttribute": {
    "active": false,
    "attribute_name": null,
    "attribute_scenarios": [],
    "attribute_type": "PENDING",
    "bre_attribute_id": null,
    "certExpiryOption": "EXPIRED_GREATER_THAN_18_MONTHS",
    "created_at": null,
    "is_default": false,
    "on_client_value": "ALWAYS",
    "on_client_value_empty": "ALWAYS",
    "tealbook_attribute_id": null,
    "updated_at": null,
    "useCertsWithNoExpiry": false
  }
}
Was this section helpful?

What made this section unhelpful for you?

Objects

Objects in GraphQL represent complex data structures. They define the fields and their types that can be queried in a GraphQL API. Objects can have nested fields and relationships with other objects.

Scalars

Scalars: Scalars in GraphQL represent primitive data types, such as String, Int, Boolean, Float, etc. They are used to define the types of individual fields in the GraphQL schema.

Enums

Enums in GraphQL define a set of possible values for a field. They represent a discrete set of options or states that a field can have. Enums help ensure type safety and provide a clear list of valid values for a field.