This API creates other costs details for an agreement present in a specified project of Smart Materials.
This API only supports the following agreement types:
-
Manual PO
-
Agreement by Requisition
-
Agreement by Inquiry
-
Sub Contracts
Required Privilege: API_AGREEMENT
Headers
Header Name |
Description |
Required |
Values |
---|---|---|---|
Authorization |
Access token |
Required |
Bearer <access_token> |
Content-Type |
Request type format |
Required |
application/JSON |
Body
POST http://localhost:65116/smat/v1/Projects(‘:project')/Disciplines(‘:discipline')/Nls(':language’)/PurchaseOrders({key})/UsedOtherCosts
Specify the values for the project, discipline, language, and key parameters in the URL. The project, discipline, and language together, define the project environment where the used other costs details are created. The key parameter defines the agreement/purchase order ID (PohId) within which these details are added.
Element |
Description |
Type |
Required |
Notes |
---|---|---|---|---|
OtherCostCode |
Name of the other cost. |
String |
Required |
|
AccountCode |
Name of the account code. |
String |
Optional |
|
EvalCostInd |
Indicates whether the other cost is an evaluation cost or not. Allowed values are Y and N, and the default value is N.
|
String |
Optional |
|
ProgressPayCostInd |
Indicates whether this other cost must be provided for Total Material Cost in Prog Pay Events or not. Allowed values are Y and N, and the default value is Y. |
String |
Optional |
|
DiscountableInd |
Indicates whether the other cost is discountable or not. Allowed values are Y and N.
|
String |
Optional |
|
OcPercent |
Refers to other cost percentage and is an alternative to other cost value. For example, the costs for the documentation delivered for an agreement line item amount to 2% of the agreement line item costs.
|
Decimal |
Optional |
|
CostValueTotal |
Total value of the other cost.
|
Decimal |
Optional |
|
UnitCode |
Refers to the currency of the other cost.
|
String |
Optional |
|
TaxableInd |
Indicates whether the assigned other cost is taxable or not. Allowed values are Y and N. The default value is defined by the value of the project default ZP_DEF_TAX. |
String |
Optional |
|
ShortDesc |
Short description of the other costs. |
String |
Optional |
|
Description |
Description of the other costs. |
String |
Optional |
|
ProgressPayInd |
Indicates whether the other cost will be available while invoicing against progress payments or not. Allowed values are Y and N, and the default value is N. |
String |
Optional |
Sample Body
POST http://localhost:65116/smat/v1/Projects('RS')/Disciplines('PIPING')/Nls('English')/PurchaseOrders(10000140021)/UsedOtherCosts
{
"OtherCostCode": "ABC20456",
"AccountCode": "1234",
"EvalCostInd": "N",
"ProgressPayCostInd": "Y",
"DiscountableInd": "N",
"OcPercent": 0,
"CostValueTotal": 100,
"UnitCode": "USD",
"TaxableInd": "Y",
"ShortDesc": null,
"Description": null,
"ProgressPayInd": "N"
}
Success Response
Status Code: 201 Created
{
"@odata.context": "http://localhost:57101/SMAT/V1/$metadata#Projects('AB')/Disciplines('PIPING')/Nls('English')/PurchaseOrders(10000139937)/UsedOtherCosts/$entity",
"UocId": 10000620435,
"OcId": 10000006321,
"ProjId": "AB",
"DpId": 5020,
"PohId": 10000139937,
"OtherCostCode": "ABC20456",
"Supplement": 0,
"AccountCode": "1234",
"EvalCostInd": "N",
"ProgressPayCostInd": "Y",
"DiscountableInd": "N",
"OcPercent": 0,
"CostValueTotal": 100,
"UnitCode": "USD",
"TaxableInd": "Y",
"ShortDesc": null,
"Description": null,
"ProgressPayInd": "N",
"ChangedCostValTot": 0,
"CostValTotToSup": 100
}
Element |
Description |
Type |
---|---|---|
UocId |
Unique ID of the used other costs which is a part of an agreement. |
Integer |
OcId |
Unique ID of the other costs. |
Integer |
Supplement |
Supplement number of the created other cost. |
Integer |
ChangedCostValTot |
Refers to the difference between the previous and the actual costs. Only in the case of a changed agreement line item, the value can differ from 0 (zero). |
Decimal |
CostValTotToSup |
Refers to the total cost value up to this supplement i.e. it contains the total costs of this supplement along with all the previous supplements. |
Decimal |