Product APIs
Create quality control trigger
| HTTP method | POST |
| URI | https://api.rambase.net/product/quality-control-triggers |
| Supported formats | Xml, Html, Json (ex. $format=json) |
| Successful HTTP status code | 201 |
| API resource identifier | 6677, version 9 |
The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.
Name
Required/mandatory field
Name of quality control trigger
>{String}</Name>ObjectType
Required/mandatory field
The document type like SPO, ...
Applicable domain values can be found here
>{String}</ObjectType>ObjectStatus
Quality control will be triggered by attempt to register goods reception (SSA) from this status to next status
Applicable domain values can be found here
This field is optional.
>{Integer}</ObjectStatus>Notification
This field is optional.
>MessageToController
Message with additional informaation for a quality control trigger. Text to be copied to transatcion document when a notification is added due to this trigger.
This field is optional.
>{String}</MessageToController>NotificationType
This field is optional.
>NotificationTypeId
Notification type identifier
Minimum value: 100
This field is optional.
>{Integer}</NotificationTypeId>Name
Required/mandatory field
Name of quality control trigger
": "{String}",ObjectType
Required/mandatory field
The document type like SPO, ...
Applicable domain values can be found here
": "{String}",ObjectStatus
Quality control will be triggered by attempt to register goods reception (SSA) from this status to next status
Applicable domain values can be found here
This field is optional.
": "{Integer}"Notification
This field is optional.
": {MessageToController
Message with additional informaation for a quality control trigger. Text to be copied to transatcion document when a notification is added due to this trigger.
This field is optional.
": "{String}",NotificationType
This field is optional.
": {NotificationTypeId
Notification type identifier
Minimum value: 100
This field is optional.
": "{Integer}"The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.
| $access_token String, optional | After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time. |
| $db String, optional | Set the database/company for the request |
| $useMinimumVersion Integer, optional | Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information. |
| $showDomainDescriptions Boolean, optional | Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false. |
| $lang String, optional | Specifies the language used in the response, following the 3-letter ISO-639-1 [lll] |
Read more about filters and sorting on how to use filter parameters and named filters.
Read more about filters and sorting on how to use sortable parameters
Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields.
Please note that some fields may be removed from the response, based on user roles/duties/permissions.
QualityControlTriggerId
Quality control trigger identifier
>{Integer}</QualityControlTriggerId>Status
Status of quality control trigger
Possible domain values can be found here
>{Integer}</Status>CreatedAt
Date and time of creation
>{Datetime}</CreatedAt>Name
Name of quality control trigger
>{String}</Name>IsRestrictedLocationExisting
True if restricted location exists for the quality control trigger
>{Boolean}</IsRestrictedLocationExisting>IsRestrictedSupplierIncluded
True if it exists restricted supplier that applies to the quality control trigger
>{Boolean}</IsRestrictedSupplierIncluded>IsRestrictedSupplierExcluded
True if it exists restricted supplier that does not applies to the quality control trigger
>{Boolean}</IsRestrictedSupplierExcluded>IsRestrictedSupplierClassificationExisting
True if restricted supplier classification exists for the quality control trigger
>{Boolean}</IsRestrictedSupplierClassificationExisting>HasDocumentationRequirement
If “true” it means that by attempt to register SSA, it will be checked if the SPO item which the SSA item origins from do have “documentation requirements” (in RQM) and if they are fullfilled or not.
>{Boolean}</HasDocumentationRequirement>ObjectType
The document type like SPO, ...
Possible domain values can be found here
>{String}</ObjectType>ObjectStatus
Quality control will be triggered by attempt to register goods reception (SSA) from this status to next status
Possible domain values can be found here
>{Integer}</ObjectStatus>Threshold
Interval in which the object item receives a quality control notification. . For QCT for goods reception e.g value "5" means that every fifth SPO item that matches the criterias for location, product and account will get a notification because of this trigger.
>{Integer}</Threshold>Remaining
Remaning interval in which the object item receives a quality control notification. This is a number that will be counted down based on the number that is set up in “Interval”. E.g “Interval” is “5” for quality control of goods reception means that this QCT should be triggered for each 5th purchase order SPO) item. First time it’s triggered, “RemainingInterval” is counted down to “4”. Next time to “3” etc. When it’s triggered 5 times, it’s reset to “5”
>{Integer}</Remaining>Next
The number of new objects for which the quality control trigger will be triggered
>{Integer}</Next>Remaining
The remaining number of new objects for which the quality control trigger will be triggered. This is a number that will be counted down based on the number that is set up in “Next”. E.g “Next” is “20”, means that this QCT should be triggered for the next 20 order items. First time it’s triggered, “RemainingNext” is counted down to “19”. Next time to “18” etc. When it’s triggered 20 times, it doesn’t apply any more.
>{Integer}</Remaining>UserId
User identifier
>{Integer}</UserId>Name
Name of the user
>{String}</Name>FirstName
First name of the user
>{String}</FirstName>UserLink
User reference
>{String}</UserLink>EffectiveDate
The date the quality control trigger is effective from
>{Date}</EffectiveDate>ExpirationDate
The date when the quality control trigger expires
>{Date}</ExpirationDate>MessageToController
Message with additional informaation for a quality control trigger. Text to be copied to transatcion document when a notification is added due to this trigger.
>NotificationTypeId
Notification type identifier
>{Integer}</NotificationTypeId>TranslatedMessage
The notification definition message in user language.
>{String}</TranslatedMessage>NotificationTypeLink
Notification type reference
>{String}</NotificationTypeLink>QualityControlTriggerId
Quality control trigger identifier
": "{Integer}",Status
Status of quality control trigger
Possible domain values can be found here
": "{Integer}",CreatedAt
Date and time of creation
": "{Datetime}",Name
Name of quality control trigger
": "{String}",IsRestrictedLocationExisting
True if restricted location exists for the quality control trigger
": "{Boolean}",IsRestrictedSupplierIncluded
True if it exists restricted supplier that applies to the quality control trigger
": "{Boolean}",IsRestrictedSupplierExcluded
True if it exists restricted supplier that does not applies to the quality control trigger
": "{Boolean}",IsRestrictedSupplierClassificationExisting
True if restricted supplier classification exists for the quality control trigger
": "{Boolean}",HasDocumentationRequirement
If “true” it means that by attempt to register SSA, it will be checked if the SPO item which the SSA item origins from do have “documentation requirements” (in RQM) and if they are fullfilled or not.
": "{Boolean}",ObjectType
The document type like SPO, ...
Possible domain values can be found here
": "{String}",ObjectStatus
Quality control will be triggered by attempt to register goods reception (SSA) from this status to next status
Possible domain values can be found here
": "{Integer}"Threshold
Interval in which the object item receives a quality control notification. . For QCT for goods reception e.g value "5" means that every fifth SPO item that matches the criterias for location, product and account will get a notification because of this trigger.
": "{Integer}",Remaining
Remaning interval in which the object item receives a quality control notification. This is a number that will be counted down based on the number that is set up in “Interval”. E.g “Interval” is “5” for quality control of goods reception means that this QCT should be triggered for each 5th purchase order SPO) item. First time it’s triggered, “RemainingInterval” is counted down to “4”. Next time to “3” etc. When it’s triggered 5 times, it’s reset to “5”
": "{Integer}"Next
The number of new objects for which the quality control trigger will be triggered
": "{Integer}",Remaining
The remaining number of new objects for which the quality control trigger will be triggered. This is a number that will be counted down based on the number that is set up in “Next”. E.g “Next” is “20”, means that this QCT should be triggered for the next 20 order items. First time it’s triggered, “RemainingNext” is counted down to “19”. Next time to “18” etc. When it’s triggered 20 times, it doesn’t apply any more.
": "{Integer}"UserId
User identifier
": "{Integer}",Name
Name of the user
": "{String}",FirstName
First name of the user
": "{String}",UserLink
User reference
": "{String}"EffectiveDate
The date the quality control trigger is effective from
": "{Date}",ExpirationDate
The date when the quality control trigger expires
": "{Date}"MessageToController
Message with additional informaation for a quality control trigger. Text to be copied to transatcion document when a notification is added due to this trigger.
": {NotificationTypeId
Notification type identifier
": "{Integer}",TranslatedMessage
The notification definition message in user language.
": "{String}",NotificationTypeLink
Notification type reference
": "{String}"
List of available operations/actions for this resource.
See the operations documentation for more information about API operations.
Possible error codes the response might return:
| Error 101079 HTTP 400 | Mismatch in size of revision parameters |
| Error 101551 HTTP 404 | Object {0} not found |
| Error 100147 HTTP 404 | Notification type not found |
| Error 109473 HTTP 400 | Valid from date must be set to todays date or later |
| Error 109469 HTTP 400 | Valid to date cannot come before valid from date |
| Error 109885 HTTP 400 | Documentation requirement can only be set when notification type is DMS/241 |