POST api/offers/{deviceId}
Posts the specified offer (insert).
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
deviceId |
The device id. |
string |
Required |
Body Parameters
The offer to insert.
OfferName | Description | Type | Additional information |
---|---|---|---|
OfferId | integer |
None. |
|
CustomerId | integer |
None. |
|
Reference | string |
None. |
|
OfferDate | date |
None. |
|
FavoredDeliveryDate | date |
None. |
|
DeliveryType | string |
None. |
|
ShippingHandlingFees | decimal number |
None. |
|
ShippingHandlingFeesVat | decimal number |
None. |
|
CraftsmanshipObject | string |
None. |
|
VatAmount | decimal number |
None. |
|
TotalAmount | decimal number |
None. |
|
OfferStatus | integer |
None. |
|
OfferDetails | Collection of OfferDetail |
None. |
Request Formats
application/json, text/json
Sample:
{ "offerId": 1, "customerId": 2, "reference": "sample string 3", "offerDate": "2024-10-06T04:32:00.6224526+02:00", "favoredDeliveryDate": "2024-10-06T04:32:00.6224526+02:00", "deliveryType": "sample string 6", "shippingHandlingFees": 7.1, "shippingHandlingFeesVat": 8.1, "craftsmanshipObject": "sample string 9", "vatAmount": 10.1, "totalAmount": 21.2, "offerStatus": 12, "offerDetails": [ { "offerDetailId": 1, "articleId": 2, "offerId": 3, "amount": 4.1, "price": 5.1, "vatCode": "sample string 6", "totalPrice": 7.1, "totalVat": 8.1, "discount": 9.1 }, { "offerDetailId": 1, "articleId": 2, "offerId": 3, "amount": 4.1, "price": 5.1, "vatCode": "sample string 6", "totalPrice": 7.1, "totalVat": 8.1, "discount": 9.1 } ] }
application/xml, text/xml
Sample:
<Offer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProIT.MobileConnector.ORM.Entities"> <CraftsmanshipObject>sample string 9</CraftsmanshipObject> <CustomerId>2</CustomerId> <DeliveryType>sample string 6</DeliveryType> <FavoredDeliveryDate>2024-10-06T04:32:00.6224526+02:00</FavoredDeliveryDate> <OfferDate>2024-10-06T04:32:00.6224526+02:00</OfferDate> <OfferDetails> <OfferDetail> <Amount>4.1</Amount> <ArticleId>2</ArticleId> <Discount>9.1</Discount> <OfferDetailId>1</OfferDetailId> <OfferId>3</OfferId> <Price>5.1</Price> <TotalPrice>7.1</TotalPrice> <TotalVat>8.1</TotalVat> <VatCode>sample string 6</VatCode> </OfferDetail> <OfferDetail> <Amount>4.1</Amount> <ArticleId>2</ArticleId> <Discount>9.1</Discount> <OfferDetailId>1</OfferDetailId> <OfferId>3</OfferId> <Price>5.1</Price> <TotalPrice>7.1</TotalPrice> <TotalVat>8.1</TotalVat> <VatCode>sample string 6</VatCode> </OfferDetail> </OfferDetails> <OfferId>1</OfferId> <OfferStatus>12</OfferStatus> <Reference>sample string 3</Reference> <ShippingHandlingFees>7.1</ShippingHandlingFees> <ShippingHandlingFeesVat>8.1</ShippingHandlingFeesVat> <TotalAmount>21.2</TotalAmount> <VatAmount>10.1</VatAmount> </Offer>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
The whole calculated offer with all offer details
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |