API

Quality management APIs

POST quality/issues/{qualityIssueId}/external-correspondences

Creates an external correspondence

HTTP method POST
URI https://api.rambase.net/quality/issues/{qualityIssueId}/external-correspondences
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {qualityIssueId} Quality issue identifier
Integer, minimum 100000
Successful HTTP status code 201
API resource identifier 4876, version 5

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.

Format:
1
<ExternalCorrespondence>
2
     <Type
Type

Required/mandatory field

Type of external correspondence (CAR/NCR etc)

Applicable domain values can be found here

>
{Integer}</Type>
3
     <Description
Description

Description

This field is optional.

>
{String}</Description>
4
     <Cause
Cause

String list of causes

This field is optional.

>
{String}</Cause>
5
     <Actions
Actions

This field is optional.

>
6
          <Suggested
Suggested

String list of suggested actions

This field is optional.

>
{String}</Suggested>
7
          <Immediate
Immediate

String list of immediate actions.

This field is optional.

>
{String}</Immediate>
8
          <Corrective
Corrective

String list of corrective actions

This field is optional.

>
{String}</Corrective>
9
     </Actions>
10
     <Responsible
Responsible

This field is optional.

>
11
          <EmployeeId
EmployeeId

Employee identifier

Minimum value: 100

This field is optional.

>
{Integer}</EmployeeId>
12
     </Responsible>
13
     <Context
Context

This field is optional.

>
14
          <AffectedQuantity
AffectedQuantity

Number of affected units

Minimum value: 0

This field is optional.

>
{Integer}</AffectedQuantity>
15
          <TotalQuantity
TotalQuantity

Total amount of units

Minimum value: 0

This field is optional.

>
{Integer}</TotalQuantity>
16
          <ProductUnits
ProductUnits

String list of product units

This field is optional.

>
{String}</ProductUnits>
17
          <Product
Product

This field is optional.

>
18
               <ProductId
ProductId

Product source id

This field is optional.

>
{Integer}</ProductId>
19
          </Product>
20
          <Customer
Customer

This field is optional.

>
21
               <CustomerId
CustomerId

Customer identifier

Minimum value: 10000

This field is optional.

>
{Integer}</CustomerId>
22
          </Customer>
23
          <Supplier
Supplier

This field is optional.

>
24
               <SupplierId
SupplierId

RamBase supplier identifier

Minimum value: 100

This field is optional.

>
{Integer}</SupplierId>
25
          </Supplier>
26
          <ProductionResource
ProductionResource

This field is optional.

>
27
               <ProductionResourceId
ProductionResourceId

Production resource identifier

Minimum value: 100000

This field is optional.

>
{Integer}</ProductionResourceId>
28
          </ProductionResource>
29
          <SalesOrder
SalesOrder

This field is optional.

>
30
               <SalesOrderId
SalesOrderId

Sales order identifier

Minimum value: 100000

This field is optional.

>
{Integer}</SalesOrderId>
31
          </SalesOrder>
32
          <Manufacturer
Manufacturer

This field is optional.

>
33
               <ManufacturerId
ManufacturerId

Manufacturer identifier

Minimum value: 1000

This field is optional.

>
{Integer}</ManufacturerId>
34
          </Manufacturer>
35
          <Material
Material

This field is optional.

>
36
               <ProductId
ProductId

Product source id

This field is optional.

>
{Integer}</ProductId>
37
          </Material>
38
          <ProductionWorkOrder
ProductionWorkOrder

This field is optional.

>
39
               <ProductionWorkOrderId
ProductionWorkOrderId

Production work order identifier

Minimum value: 100000

This field is optional.

>
{Integer}</ProductionWorkOrderId>
40
          </ProductionWorkOrder>
41
          <PurchaseOrder
PurchaseOrder

This field is optional.

>
42
               <PurchaseOrderId
PurchaseOrderId

Purchase order identifier

Minimum value: 100000

This field is optional.

>
{Integer}</PurchaseOrderId>
43
          </PurchaseOrder>
44
     </Context>
45
</ExternalCorrespondence>
1
{
2
     "externalCorrespondence": {
3
          "type
Type

Required/mandatory field

Type of external correspondence (CAR/NCR etc)

Applicable domain values can be found here

":
"{Integer}",
4
          "description
Description

Description

This field is optional.

":
"{String}",
5
          "cause
Cause

String list of causes

This field is optional.

":
"{String}",
6
          "actions
Actions

This field is optional.

":
{
7
               "suggested
Suggested

String list of suggested actions

This field is optional.

":
"{String}",
8
               "immediate
Immediate

String list of immediate actions.

This field is optional.

":
"{String}",
9
               "corrective
Corrective

String list of corrective actions

This field is optional.

":
"{String}"
10
          },
11
          "responsible
Responsible

This field is optional.

":
{
12
               "employeeId
EmployeeId

Employee identifier

Minimum value: 100

This field is optional.

":
"{Integer}"
13
          },
14
          "context
Context

This field is optional.

":
{
15
               "affectedQuantity
AffectedQuantity

Number of affected units

Minimum value: 0

This field is optional.

":
"{Integer}",
16
               "totalQuantity
TotalQuantity

Total amount of units

Minimum value: 0

This field is optional.

":
"{Integer}",
17
               "productUnits
ProductUnits

String list of product units

This field is optional.

":
"{String}",
18
               "product
Product

This field is optional.

":
{
19
                    "productId
ProductId

Product source id

This field is optional.

":
"{Integer}"
20
               },
21
               "customer
Customer

This field is optional.

":
{
22
                    "customerId
CustomerId

Customer identifier

Minimum value: 10000

This field is optional.

":
"{Integer}"
23
               },
24
               "supplier
Supplier

This field is optional.

":
{
25
                    "supplierId
SupplierId

RamBase supplier identifier

Minimum value: 100

This field is optional.

":
"{Integer}"
26
               },
27
               "productionResource
ProductionResource

This field is optional.

":
{
28
                    "productionResourceId
ProductionResourceId

Production resource identifier

Minimum value: 100000

This field is optional.

":
"{Integer}"
29
               },
30
               "salesOrder
SalesOrder

This field is optional.

":
{
31
                    "salesOrderId
SalesOrderId

Sales order identifier

Minimum value: 100000

This field is optional.

":
"{Integer}"
32
               },
33
               "manufacturer
Manufacturer

This field is optional.

":
{
34
                    "manufacturerId
ManufacturerId

Manufacturer identifier

Minimum value: 1000

This field is optional.

":
"{Integer}"
35
               },
36
               "material
Material

This field is optional.

":
{
37
                    "productId
ProductId

Product source id

This field is optional.

":
"{Integer}"
38
               },
39
               "productionWorkOrder
ProductionWorkOrder

This field is optional.

":
{
40
                    "productionWorkOrderId
ProductionWorkOrderId

Production work order identifier

Minimum value: 100000

This field is optional.

":
"{Integer}"
41
               },
42
               "purchaseOrder
PurchaseOrder

This field is optional.

":
{
43
                    "purchaseOrderId
PurchaseOrderId

Purchase order identifier

Minimum value: 100000

This field is optional.

":
"{Integer}"
44
               }
45
          }
46
     }
47
}

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.

Format:
1
<ExternalCorrespondence>
2
     <ExternalCorrespondenceId
ExternalCorrespondenceId

External correspondence identifier

>
{Integer}</ExternalCorrespondenceId>
3
     <Status
Status

Status of the external correspondence

Possible domain values can be found here

>
{Integer}</Status>
4
     <Type
Type

Type of external correspondence (CAR/NCR etc)

Possible domain values can be found here

>
{Integer}</Type>
5
     <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
6
     <Description
Description

Description

>
{String}</Description>
7
     <Cause
Cause

String list of causes

>
{String}</Cause>
8
     <SentAt
SentAt

Date and time when correspondence was sent.

>
{Datetime}</SentAt>
9
     <ClosedAt
ClosedAt

Date and time when external correspondence was closed.

>
{Datetime}</ClosedAt>
10
     <Actions>
11
          <Suggested
Suggested

String list of suggested actions

>
{String}</Suggested>
12
          <Immediate
Immediate

String list of immediate actions.

>
{String}</Immediate>
13
          <Corrective
Corrective

String list of corrective actions

>
{String}</Corrective>
14
          <EmployeeId
EmployeeId

Employee identifier

>
{Integer}</EmployeeId>
15
          <Name
Name

Last name of employee

>
{String}</Name>
16
          <EmployeeLink
EmployeeLink

Employee reference

>
{String}</EmployeeLink>
17
          <EmployeeId
EmployeeId

Employee identifier

>
{Integer}</EmployeeId>
18
          <Name
Name

Last name of employee

>
{String}</Name>
19
          <EmployeeLink
EmployeeLink

Employee reference

>
{String}</EmployeeLink>
20
          <AffectedQuantity
AffectedQuantity

Number of affected units

>
{Integer}</AffectedQuantity>
21
          <TotalQuantity
TotalQuantity

Total amount of units

>
{Integer}</TotalQuantity>
22
          <ProductUnits
ProductUnits

String list of product units

>
23
               <ProductId
ProductId

Product source id

>
{Integer}</ProductId>
24
               <Description
Description

Description of the product

>
{String}</Description>
25
               <Name
Name

Name of the product

>
{String}</Name>
26
               <ProductClassification>
27
                    <ProductClassificationId
ProductClassificationId

Product classification identifier

>
{String}</ProductClassificationId>
28
                    <ProductClassificationLink
ProductClassificationLink

Product classification reference

>
{String}</ProductClassificationLink>
29
               </ProductClassification>
30
               <ProductLink
ProductLink

Product reference

>
{String}</ProductLink>
31
               <Revision
Revision

The Revision of the product

>
{String}</Revision>
32
               <ProductStructureVersionId
ProductStructureVersionId

Product structure identifier

>
{Integer}</ProductStructureVersionId>
33
               <Drawing
Drawing

Drawing of the product structure

>
34
                    <Database
Database

Database of the object

>
{String}</Database>
35
                    <FileVersionId
FileVersionId

File identifier

>
{String}</FileVersionId>
36
                    <FileVersionLink
FileVersionLink

File reference

>
{String}</FileVersionLink>
37
               </Drawing>
38
               <ProductStructure>
39
                    <ProductStructureId
ProductStructureId

Product structure identifier

>
{Long}</ProductStructureId>
40
               </ProductStructure>
41
               <ProductStructureVersionLink
ProductStructureVersionLink

Product structure reference

>
{String}</ProductStructureVersionLink>
42
               <CustomerId
CustomerId

Customer identifier

>
{Integer}</CustomerId>
43
               <Name
Name

Name of customer (name of company or surname/familyname/lastname of a person)

>
{String}</Name>
44
               <CustomerLink
CustomerLink

Customer reference

>
{String}</CustomerLink>
45
               <SupplierId
SupplierId

RamBase supplier identifier

>
{Integer}</SupplierId>
46
               <Name
Name

Name of supplier (name of company or surname/familyname/lastname of a person)

>
{String}</Name>
47
               <SupplierLink
SupplierLink

Supplier general ledger account is the default account that should be used on incoming invoices for this supplier.

>
{String}</SupplierLink>
48
               <ProductionResourceId
ProductionResourceId

Production resource identifier

>
{Integer}</ProductionResourceId>
49
               <Name
Name

Name of production resource

>
{String}</Name>
50
               <ProductionResourceLink
ProductionResourceLink

Production resource reference

>
{String}</ProductionResourceLink>
51
               <SalesOrderId
SalesOrderId

Sales order identifier

>
{Integer}</SalesOrderId>
52
               <CustomersReferenceNumber
CustomersReferenceNumber

Customers reference number. E.g. the internal sales order id the customer use in their own system.

>
{String}</CustomersReferenceNumber>
53
               <SalesOrderLink
SalesOrderLink

Sales order reference

>
{String}</SalesOrderLink>
54
               <ManufacturerId
ManufacturerId

Manufacturer identifier

>
{Integer}</ManufacturerId>
55
               <Name
Name

Company name of the manufacturer.

>
{String}</Name>
56
               <ManufacturerLink
ManufacturerLink

Manufacturer reference

>
{String}</ManufacturerLink>
57
               <ProductId
ProductId

Product source id

>
{Integer}</ProductId>
58
               <Description
Description

Description of the product

>
{String}</Description>
59
               <Name
Name

Name of the product

>
{String}</Name>
60
               <ProductClassification>
61
                    <ProductClassificationId
ProductClassificationId

Product classification identifier

>
{String}</ProductClassificationId>
62
                    <ProductClassificationLink
ProductClassificationLink

Product classification reference

>
{String}</ProductClassificationLink>
63
               </ProductClassification>
64
               <ProductLink
ProductLink

Product reference

>
{String}</ProductLink>
65
               <ProductionWorkOrderId
ProductionWorkOrderId

Production work order identifier

>
{Integer}</ProductionWorkOrderId>
66
               <ProductionWorkOrderLink
ProductionWorkOrderLink

Production work order reference

>
{String}</ProductionWorkOrderLink>
67
               <PurchaseOrderId
PurchaseOrderId

Purchase order identifier

>
{Integer}</PurchaseOrderId>
68
               <PurchaseOrderLink
PurchaseOrderLink

Purchase order reference

>
{String}</PurchaseOrderLink>
69
          </ProductUnits>
70
          <IsRequired
IsRequired

If true, a response is required

>
{Boolean}</IsRequired>
71
          <ReceivedAt
ReceivedAt

Date and time when response was received.

>
{Datetime}</ReceivedAt>
72
          <Status
Status

Quality external correspondence response status

Possible domain values can be found here

>
{Integer}</Status>
73
          <IsSigned
IsSigned

If true this response is signed

>
{Boolean}</IsSigned>
74
          <Comment
Comment

Description of the response

>
{String}</Comment>
75
          <SuggestedAction
SuggestedAction

Action on the response

Possible domain values can be found here

>
{Integer}</SuggestedAction>
76
     </Actions>
77
</ExternalCorrespondence>
1
{
2
     "externalCorrespondence": {
3
          "externalCorrespondenceId
ExternalCorrespondenceId

External correspondence identifier

":
"{Integer}",
4
          "status
Status

Status of the external correspondence

Possible domain values can be found here

":
"{Integer}",
5
          "type
Type

Type of external correspondence (CAR/NCR etc)

Possible domain values can be found here

":
"{Integer}",
6
          "createdAt
CreatedAt

Date and time of creation

":
"{Datetime}",
7
          "description
Description

Description

":
"{String}",
8
          "cause
Cause

String list of causes

":
"{String}",
9
          "sentAt
SentAt

Date and time when correspondence was sent.

":
"{Datetime}",
10
          "closedAt
ClosedAt

Date and time when external correspondence was closed.

":
"{Datetime}",
11
          "actions": {
12
               "suggested
Suggested

String list of suggested actions

":
"{String}",
13
               "immediate
Immediate

String list of immediate actions.

":
"{String}",
14
               "corrective
Corrective

String list of corrective actions

":
"{String}",
15
               "employeeId
EmployeeId

Employee identifier

":
"{Integer}",
16
               "name
Name

Last name of employee

":
"{String}",
17
               "employeeLink
EmployeeLink

Employee reference

":
"{String}",
18
               "employeeId
EmployeeId

Employee identifier

":
"{Integer}",
19
               "name
Name

Last name of employee

":
"{String}",
20
               "employeeLink
EmployeeLink

Employee reference

":
"{String}",
21
               "affectedQuantity
AffectedQuantity

Number of affected units

":
"{Integer}",
22
               "totalQuantity
TotalQuantity

Total amount of units

":
"{Integer}",
23
               "productUnits
ProductUnits

String list of product units

":
{
24
                    "productId
ProductId

Product source id

":
"{Integer}",
25
                    "description
Description

Description of the product

":
"{String}",
26
                    "name
Name

Name of the product

":
"{String}",
27
                    "productClassification": {
28
                         "productClassificationId
ProductClassificationId

Product classification identifier

":
"{String}",
29
                         "productClassificationLink
ProductClassificationLink

Product classification reference

":
"{String}"
30
                    },
31
                    "productLink
ProductLink

Product reference

":
"{String}",
32
                    "revision
Revision

The Revision of the product

":
"{String}",
33
                    "productStructureVersionId
ProductStructureVersionId

Product structure identifier

":
"{Integer}",
34
                    "drawing
Drawing

Drawing of the product structure

":
{
35
                         "database
Database

Database of the object

":
"{String}",
36
                         "fileVersionId
FileVersionId

File identifier

":
"{String}",
37
                         "fileVersionLink
FileVersionLink

File reference

":
"{String}"
38
                    },
39
                    "productStructure": {
40
                         "productStructureId
ProductStructureId

Product structure identifier

":
"{Long}"
41
                    },
42
                    "productStructureVersionLink
ProductStructureVersionLink

Product structure reference

":
"{String}",
43
                    "customerId
CustomerId

Customer identifier

":
"{Integer}",
44
                    "name
Name

Name of customer (name of company or surname/familyname/lastname of a person)

":
"{String}",
45
                    "customerLink
CustomerLink

Customer reference

":
"{String}",
46
                    "supplierId
SupplierId

RamBase supplier identifier

":
"{Integer}",
47
                    "name
Name

Name of supplier (name of company or surname/familyname/lastname of a person)

":
"{String}",
48
                    "supplierLink
SupplierLink

Supplier general ledger account is the default account that should be used on incoming invoices for this supplier.

":
"{String}",
49
                    "productionResourceId
ProductionResourceId

Production resource identifier

":
"{Integer}",
50
                    "name
Name

Name of production resource

":
"{String}",
51
                    "productionResourceLink
ProductionResourceLink

Production resource reference

":
"{String}",
52
                    "salesOrderId
SalesOrderId

Sales order identifier

":
"{Integer}",
53
                    "customersReferenceNumber
CustomersReferenceNumber

Customers reference number. E.g. the internal sales order id the customer use in their own system.

":
"{String}",
54
                    "salesOrderLink
SalesOrderLink

Sales order reference

":
"{String}",
55
                    "manufacturerId
ManufacturerId

Manufacturer identifier

":
"{Integer}",
56
                    "name
Name

Company name of the manufacturer.

":
"{String}",
57
                    "manufacturerLink
ManufacturerLink

Manufacturer reference

":
"{String}",
58
                    "productId
ProductId

Product source id

":
"{Integer}",
59
                    "description
Description

Description of the product

":
"{String}",
60
                    "name
Name

Name of the product

":
"{String}",
61
                    "productClassification": {
62
                         "productClassificationId
ProductClassificationId

Product classification identifier

":
"{String}",
63
                         "productClassificationLink
ProductClassificationLink

Product classification reference

":
"{String}"
64
                    },
65
                    "productLink
ProductLink

Product reference

":
"{String}",
66
                    "productionWorkOrderId
ProductionWorkOrderId

Production work order identifier

":
"{Integer}",
67
                    "productionWorkOrderLink
ProductionWorkOrderLink

Production work order reference

":
"{String}",
68
                    "purchaseOrderId
PurchaseOrderId

Purchase order identifier

":
"{Integer}",
69
                    "purchaseOrderLink
PurchaseOrderLink

Purchase order reference

":
"{String}"
70
               },
71
               "isRequired
IsRequired

If true, a response is required

":
"{Boolean}",
72
               "receivedAt
ReceivedAt

Date and time when response was received.

":
"{Datetime}",
73
               "status
Status

Quality external correspondence response status

Possible domain values can be found here

":
"{Integer}",
74
               "isSigned
IsSigned

If true this response is signed

":
"{Boolean}",
75
               "comment
Comment

Description of the response

":
"{String}",
76
               "suggestedAction
SuggestedAction

Action on the response

Possible domain values can be found here

":
"{Integer}"
77
          }
78
     }
79
}

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 101015 HTTP 404 Permission not found
Error 101420 HTTP 404 Setting definition not found