Download OpenAPI specification:Download
This API uses JWT for authorization. SPARETECH will provide your client credentials, that are specific to each organisation and integration environment. See the Authentication section of this documentation for details on how to obtain a token.
bearer
JWT
Retrieves a JWT bearer token to authorize requests. The token has an expiration time and can be requested a limited number of times per day.
Client ID and Client Secret pair.
client_id required | string |
client_secret required | string |
{- "access_token": "eyJz93a...k4laUWw",
- "expires_in": 86400,
- "token_type": "Bearer"
}
Retrieves a JWT bearer token to authorize requests. The token has an expiration time and can be requested a limited number of times per day.
Client ID and Client Secret pair.
clientId required | string |
clientSecret required | string |
{- "clientId": "YOUR_CLIENT_ID",
- "clientSecret": "YOUR_CLIENT_SECRET"
}
{- "accessToken": "eyJz93a...k4laUWw",
- "expiresIn": 86400,
- "tokenType": "Bearer"
}
Returns a list of attributes that can occur in the request body of the Import Material endpoint. Corresponds to the Material Master fields of your organisation.
[- "Materialnummer",
- "[ART_NUM]",
- "[MANU]",
- "[TYP]"
]
Returns a list of CreationIntents.
status | string (CreationIntentStatus) Enum: "Ready" "Done" Example: status=Ready Only returns intents in the given status. Allowed statuses are |
created.gt | string <date> Example: created.gt=2022-12-10 A filter based on the object's |
created.lt | string <date> Example: created.lt=2022-12-13 A filter based on the object's |
limit | integer Default: 10 A limit on the number of objects to be returned. Limit can range between 1 and 99, and the default is 10. |
page | integer Default: 0 A cursor for pagination across multiple pages of results. |
{- "hasMore": true,
- "totalCount": 2,
- "limit": 1,
- "page": 0,
- "creationIntents": [
- {
- "id": "904134",
- "createdAt": "2022-12-10T12:05:12Z",
- "createdBy": {
- "email": "creator@example.com"
}, - "approvedBy": {
- "email": "approver@example.com"
}, - "status": "Ready",
- "metadata": {
- "MANU": "Sparetech",
- "ART_NUM": "SED1234",
- "TYP": "TYP_1234",
- "DESC": "Material Description"
}
}
]
}
Retrieves the details of a CreationIntent that has previously been created.
id required | string |
{- "id": "904134",
- "createdAt": "2022-12-10T12:05:12Z",
- "createdBy": {
- "email": "creator@example.com"
}, - "approvedBy": {
- "email": "approver@example.com"
}, - "status": "Ready",
- "metadata": {
- "MANU": "Sparetech",
- "ART_NUM": "SED1234",
- "TYP": "TYP_1234",
- "DESC": "Material Description"
}
}
Confirms the material creation by supplying the material number.
id required | string |
materialNumber required | string |
{- "materialNumber": "string"
}
{- "id": "904134",
- "createdAt": "2022-12-10T12:05:12Z",
- "createdBy": {
- "email": "creator@example.com"
}, - "approvedBy": {
- "email": "approver@example.com"
}, - "status": "Ready",
- "metadata": {
- "MANU": "Sparetech",
- "ART_NUM": "SED1234",
- "TYP": "TYP_1234",
- "DESC": "Material Description"
}
}
Marks the intent as rejected by the external system.
id required | string |
message required | string Short description of the reason for rejecting the intent. |
{- "message": "string"
}
Returns a list of ChangeIntents.
status | string (ChangeIntentStatus) Enum: "Ready" "Done" Example: status=Done Only returns intents in the given status. |
created.gt | string <date> Example: created.gt=2022-12-10 A filter based on the object's |
created.lt | string <date> Example: created.lt=2022-12-13 A filter based on the object's |
limit | integer Default: 10 A limit on the number of objects to be returned. Limit can range between 1 and 99, and the default is 10. |
page | integer Default: 0 A cursor for pagination across multiple pages of results. |
changes.only | boolean Default: true If true, this endpoint only returns fields that have changes as part of the |
{- "hasMore": true,
- "totalCount": 2,
- "limit": 1,
- "page": 0,
- "changeIntents": [
- {
- "id": "904136",
- "createdAt": "2022-12-10T12:05:12Z",
- "createdBy": {
- "email": "creator@example.com"
}, - "approvedBy": {
- "email": "approver@example.com"
}, - "status": "Done",
- "materialNumber": "79850030905",
- "plant": "",
- "metadata": {
- "MANU": "Sparetech",
- "ART_NUM": "SED1234",
- "TYP": "TYP_1234",
- "DESC": "Material Description"
}
}
]
}
Retrieves the details of a ChangeIntent that has previously been created.
id required | string |
changes.only | boolean Default: true If true, this endpoint only returns fields that have changes as part of the |
{- "id": "904136",
- "createdAt": "2022-12-10T12:05:12Z",
- "createdBy": {
- "email": "creator@example.com"
}, - "approvedBy": {
- "email": "approver@example.com"
}, - "status": "Done",
- "materialNumber": "79850030905",
- "plant": "",
- "metadata": {
- "MANU": "Sparetech",
- "ART_NUM": "SED1234",
- "TYP": "TYP_1234",
- "DESC": "Material Description"
}
}
Marks the intent as rejected by the external system.
id required | string |
message required | string Short description of the reason for rejecting the intent. |
{- "message": "string"
}
Returns a list of ExtensionIntents.
status | string (ExtensionIntentStatus) Enum: "Ready" "Done" Example: status=Done Only returns intents in the given status. |
created.gt | string <date> Example: created.gt=2022-12-10 A filter based on the object's |
created.lt | string <date> Example: created.lt=2022-12-13 A filter based on the object's |
limit | integer Default: 10 A limit on the number of objects to be returned. Limit can range between 1 and 99, and the default is 10. |
page | integer Default: 0 A cursor for pagination across multiple pages of results. |
{- "hasMore": true,
- "totalCount": 2,
- "limit": 1,
- "page": 0,
- "extensionIntents": [
- {
- "id": "904136",
- "createdAt": "2022-12-10T12:05:12Z",
- "createdBy": {
- "email": "creator@example.com"
}, - "approvedBy": {
- "email": "approver@example.com"
}, - "status": "Done",
- "materialNumber": "79850030905",
- "metadata": {
- "MANU": "Sparetech",
- "ART_NUM": "SED1234",
- "TYP": "TYP_1234",
- "DESC": "Material Description"
}
}
]
}
Retrieves the details of an ExtensionIntent that has previously been created.
id required | string |
{- "id": "904136",
- "createdAt": "2022-12-10T12:05:12Z",
- "createdBy": {
- "email": "creator@example.com"
}, - "approvedBy": {
- "email": "approver@example.com"
}, - "status": "Done",
- "materialNumber": "79850030905",
- "metadata": {
- "MANU": "Sparetech",
- "ART_NUM": "SED1234",
- "TYP": "TYP_1234",
- "DESC": "Material Description"
}
}
Marks the intent as rejected by the external system.
id required | string |
message required | string Short description of the reason for rejecting the intent. |
{- "message": "string"
}
This endpoint is part of the module “Material Master Sync” for updating the material master content in SPARETECH based on the changes initiated from the external ERP. The current endpoint inserts a new material.
material required | object Object containing the entire material for a specific plant, if exists. The fields in this object are based on the material master headings. |
{- "material": {
- "Materialnummer": "MAT00001",
- "[ART_NUM]": "LIZ031",
- "[MANU]": "Sparetech",
- "[TYP]": "SPT.1.4541"
}
}
This endpoint is part of the module “Material Master Sync” for updating the material master content in SPARETECH based on the changes initiated from the external ERP. The current endpoint applies changes to a material.
reference required | string |
material required | object Object containing the entire material for a specific plant, if exists. The fields in this object are based on the material master headings. |
{- "material": {
- "Materialnummer": "MAT00001",
- "[ART_NUM]": "LIZ031",
- "[MANU]": "Sparetech",
- "[TYP]": "SPT.1.4541"
}
}
This endpoint is part of the module “Material Master Sync” for updating the material master content in SPARETECH based on the changes initiated from the external ERP. The current endpoint extends a material to a given plant.
reference required | string |
material required | object Object containing the plant fields. The fields in this object are based on the material master headings. |
{- "material": {
- "[WERK]": "12345",
- "[EKGRP]": "HH",
- "[DISGR]": "HR1"
}
}