POST part/{part}/price
Adds a price to a part.
Request Information
URI
https://mtm-api.xaitcpq.net/part/{part}/price
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| part |
The part to add the price to. |
globally unique identifier |
Required |
Body Parameters
The new price.
PriceUpdate| Name | Description | Type | Additional information |
|---|---|---|---|
| Price | decimal number |
None. |
|
| Cost | decimal number |
None. |
|
| Overhead | decimal number |
None. |
|
| PriceBand | globally unique identifier |
None. |
|
| Currency | globally unique identifier |
None. |
|
| StartDate | date |
None. |
|
| EndDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"Price": 1.0,
"Cost": 2.0,
"Overhead": 3.0,
"PriceBand": "54a3e60e-0179-4f00-ba74-f99793cbee60",
"Currency": "dc34889e-8d50-46f3-a21b-ef49f81828cf",
"StartDate": "2026-11-09T15:54:55.876713Z",
"EndDate": "2026-11-09T15:54:55.876713Z"
}
text/html
Sample:
{"Price":1.0,"Cost":2.0,"Overhead":3.0,"PriceBand":"54a3e60e-0179-4f00-ba74-f99793cbee60","Currency":"dc34889e-8d50-46f3-a21b-ef49f81828cf","StartDate":"2026-11-09T15:54:55.876713Z","EndDate":"2026-11-09T15:54:55.876713Z"}
application/xml, text/xml
Sample:
<PriceUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shared.Models.DataModels"> <Cost>2</Cost> <Currency>dc34889e-8d50-46f3-a21b-ef49f81828cf</Currency> <EndDate>2026-11-09T15:54:55.876713+00:00</EndDate> <Overhead>3</Overhead> <Price>1</Price> <PriceBand>54a3e60e-0179-4f00-ba74-f99793cbee60</PriceBand> <StartDate>2026-11-09T15:54:55.876713+00:00</StartDate> </PriceUpdate>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
The new price identifier.
ObjectNone.
Response Formats
application/json, text/json, text/html
Sample:
{}
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />