POST api/v1/purchases/deprecated
Request Information
URI Parameters
None.
Body Parameters
PurchaseDtoName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
Date | date |
None. |
|
Total | decimal number |
None. |
|
TotalWithoutDiscount | decimal number |
None. |
|
DiscountApplied | decimal number |
None. |
|
DiscountValueApplied | decimal number |
None. |
|
FinalDiscountApplied | decimal number |
None. |
|
FinalDiscountValueApplied | decimal number |
None. |
|
SellerCode | string |
None. |
|
SellerName | string |
None. |
|
CustomerId | globally unique identifier |
None. |
|
OrganizationCode | string |
None. |
|
Description | string |
None. |
|
IsOnline | boolean |
None. |
|
GeneralDiscount | boolean |
None. |
|
Items | Collection of PurchaseItemDto |
None. |
|
CouponCode | string |
None. |
|
SourcePurchaseId | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "id": "86fbf02f-5f12-4c5b-9577-8773c076a811", "date": "2025-08-31T01:44:49.1684021+00:00", "total": 1.0, "totalWithoutDiscount": 1.0, "discountApplied": 1.1, "discountValueApplied": 1.0, "finalDiscountApplied": 1.1, "finalDiscountValueApplied": 1.0, "sellerCode": "sample string 1", "sellerName": "sample string 2", "customerId": "9552346b-bafb-4680-bf48-2f97d6e1a24e", "organizationCode": "sample string 3", "description": "sample string 4", "isOnline": true, "generalDiscount": true, "items": [ { "id": "0bf08c11-80e4-47b0-a708-6be040df5fc1", "name": "sample string 1", "barcode": "sample string 2", "price": 1.0, "priceWithoutDiscount": 1.0, "discountApplied": 1.1, "discountValueApplied": 1.0, "finalDiscountApplied": 1.1, "finalDiscountValueApplied": 1.0, "quantity": 1.0, "brandCode": "sample string 3", "brandName": "sample string 4", "productCategories": [ "sample string 1", "sample string 2" ], "productTypeCode": "sample string 5", "productCode": "sample string 6", "productName": "sample string 7", "purchaseId": "2326cc57-e8f7-464b-8d3c-9edcbcd961b7", "customerId": "5b4a2708-1443-4cb5-b729-6c9b0176f91e", "promotions": [ { "code": "sample string 1", "title": "sample string 2", "couponCode": "sample string 3" }, { "code": "sample string 1", "title": "sample string 2", "couponCode": "sample string 3" } ], "categories": [ { "id": "54796d47-00e8-48ea-b2dd-bfa01b13564e", "code": "sample string 1", "name": "sample string 2", "organizationCode": "sample string 3", "creationDate": "2025-08-31T01:44:49.1885589+00:00" }, { "id": "54796d47-00e8-48ea-b2dd-bfa01b13564e", "code": "sample string 1", "name": "sample string 2", "organizationCode": "sample string 3", "creationDate": "2025-08-31T01:44:49.1885589+00:00" } ], "purchaseDate": "2025-08-31T01:44:49.1885589+00:00", "customFields": { "sample string 1": { "code": "sample string 1", "name": "sample string 2", "stringValue": "sample string 3", "dateTimeValue": "2025-08-31T01:44:49.199571+00:00", "intValue": 1, "boolValue": true, "type": "sample string 4" }, "sample string 2": { "code": "sample string 1", "name": "sample string 2", "stringValue": "sample string 3", "dateTimeValue": "2025-08-31T01:44:49.199571+00:00", "intValue": 1, "boolValue": true, "type": "sample string 4" } }, "description": "sample string 9", "couponValue": "sample string 10", "total": 1.0, "totalWithoutDiscount": 1.0, "totalDiscountApplied": 1.0, "totalDiscountValueApplied": 1.0 }, { "id": "0bf08c11-80e4-47b0-a708-6be040df5fc1", "name": "sample string 1", "barcode": "sample string 2", "price": 1.0, "priceWithoutDiscount": 1.0, "discountApplied": 1.1, "discountValueApplied": 1.0, "finalDiscountApplied": 1.1, "finalDiscountValueApplied": 1.0, "quantity": 1.0, "brandCode": "sample string 3", "brandName": "sample string 4", "productCategories": [ "sample string 1", "sample string 2" ], "productTypeCode": "sample string 5", "productCode": "sample string 6", "productName": "sample string 7", "purchaseId": "2326cc57-e8f7-464b-8d3c-9edcbcd961b7", "customerId": "5b4a2708-1443-4cb5-b729-6c9b0176f91e", "promotions": [ { "code": "sample string 1", "title": "sample string 2", "couponCode": "sample string 3" }, { "code": "sample string 1", "title": "sample string 2", "couponCode": "sample string 3" } ], "categories": [ { "id": "54796d47-00e8-48ea-b2dd-bfa01b13564e", "code": "sample string 1", "name": "sample string 2", "organizationCode": "sample string 3", "creationDate": "2025-08-31T01:44:49.1885589+00:00" }, { "id": "54796d47-00e8-48ea-b2dd-bfa01b13564e", "code": "sample string 1", "name": "sample string 2", "organizationCode": "sample string 3", "creationDate": "2025-08-31T01:44:49.1885589+00:00" } ], "purchaseDate": "2025-08-31T01:44:49.1885589+00:00", "customFields": { "sample string 1": { "code": "sample string 1", "name": "sample string 2", "stringValue": "sample string 3", "dateTimeValue": "2025-08-31T01:44:49.199571+00:00", "intValue": 1, "boolValue": true, "type": "sample string 4" }, "sample string 2": { "code": "sample string 1", "name": "sample string 2", "stringValue": "sample string 3", "dateTimeValue": "2025-08-31T01:44:49.199571+00:00", "intValue": 1, "boolValue": true, "type": "sample string 4" } }, "description": "sample string 9", "couponValue": "sample string 10", "total": 1.0, "totalWithoutDiscount": 1.0, "totalDiscountApplied": 1.0, "totalDiscountValueApplied": 1.0 } ], "couponCode": "sample string 6", "sourcePurchaseId": "sample string 7" }
application/xml, text/xml
Sample:
<PurchaseDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Domain.Dtos"> <CouponCode>sample string 6</CouponCode> <CustomerId>9552346b-bafb-4680-bf48-2f97d6e1a24e</CustomerId> <Date>2025-08-31T01:44:49.1684021+00:00</Date> <Description>sample string 4</Description> <DiscountApplied>1.1</DiscountApplied> <DiscountValueApplied>1</DiscountValueApplied> <FinalDiscountApplied>1.1</FinalDiscountApplied> <FinalDiscountValueApplied>1</FinalDiscountValueApplied> <GeneralDiscount>true</GeneralDiscount> <Id>86fbf02f-5f12-4c5b-9577-8773c076a811</Id> <IsOnline>true</IsOnline> <Items> <PurchaseItemDto> <Barcode>sample string 2</Barcode> <BrandCode>sample string 3</BrandCode> <BrandName>sample string 4</BrandName> <Categories> <ProductCategoryDto> <Code>sample string 1</Code> <CreationDate>2025-08-31T01:44:49.1885589+00:00</CreationDate> <Id>54796d47-00e8-48ea-b2dd-bfa01b13564e</Id> <Name>sample string 2</Name> <OrganizationCode>sample string 3</OrganizationCode> </ProductCategoryDto> <ProductCategoryDto> <Code>sample string 1</Code> <CreationDate>2025-08-31T01:44:49.1885589+00:00</CreationDate> <Id>54796d47-00e8-48ea-b2dd-bfa01b13564e</Id> <Name>sample string 2</Name> <OrganizationCode>sample string 3</OrganizationCode> </ProductCategoryDto> </Categories> <CouponValue>sample string 10</CouponValue> <CustomFields xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:KeyValueOfstringCustomFieldPurchaseDtouOHOlRpi> <d4p1:Key>sample string 1</d4p1:Key> <d4p1:Value> <BoolValue>true</BoolValue> <Code>sample string 1</Code> <DateTimeValue>2025-08-31T01:44:49.199571+00:00</DateTimeValue> <IntValue>1</IntValue> <Name>sample string 2</Name> <StringValue>sample string 3</StringValue> <Type>sample string 4</Type> </d4p1:Value> </d4p1:KeyValueOfstringCustomFieldPurchaseDtouOHOlRpi> <d4p1:KeyValueOfstringCustomFieldPurchaseDtouOHOlRpi> <d4p1:Key>sample string 2</d4p1:Key> <d4p1:Value> <BoolValue>true</BoolValue> <Code>sample string 1</Code> <DateTimeValue>2025-08-31T01:44:49.199571+00:00</DateTimeValue> <IntValue>1</IntValue> <Name>sample string 2</Name> <StringValue>sample string 3</StringValue> <Type>sample string 4</Type> </d4p1:Value> </d4p1:KeyValueOfstringCustomFieldPurchaseDtouOHOlRpi> </CustomFields> <CustomerId>5b4a2708-1443-4cb5-b729-6c9b0176f91e</CustomerId> <Description>sample string 9</Description> <DiscountApplied>1.1</DiscountApplied> <DiscountValueApplied>1</DiscountValueApplied> <FinalDiscountApplied>1.1</FinalDiscountApplied> <FinalDiscountValueApplied>1</FinalDiscountValueApplied> <Id>0bf08c11-80e4-47b0-a708-6be040df5fc1</Id> <Name>sample string 1</Name> <Price>1</Price> <PriceWithoutDiscount>1</PriceWithoutDiscount> <ProductCategories xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </ProductCategories> <ProductCode>sample string 6</ProductCode> <ProductName>sample string 7</ProductName> <ProductTypeCode>sample string 5</ProductTypeCode> <Promotions> <PromotionPurchaseDto> <Code>sample string 1</Code> <CouponCode>sample string 3</CouponCode> <Title>sample string 2</Title> </PromotionPurchaseDto> <PromotionPurchaseDto> <Code>sample string 1</Code> <CouponCode>sample string 3</CouponCode> <Title>sample string 2</Title> </PromotionPurchaseDto> </Promotions> <PurchaseDate>2025-08-31T01:44:49.1885589+00:00</PurchaseDate> <PurchaseId>2326cc57-e8f7-464b-8d3c-9edcbcd961b7</PurchaseId> <Quantity>1</Quantity> <Total>1</Total> <TotalDiscountApplied>1</TotalDiscountApplied> <TotalDiscountValueApplied>1</TotalDiscountValueApplied> <TotalWithoutDiscount>1</TotalWithoutDiscount> </PurchaseItemDto> <PurchaseItemDto> <Barcode>sample string 2</Barcode> <BrandCode>sample string 3</BrandCode> <BrandName>sample string 4</BrandName> <Categories> <ProductCategoryDto> <Code>sample string 1</Code> <CreationDate>2025-08-31T01:44:49.1885589+00:00</CreationDate> <Id>54796d47-00e8-48ea-b2dd-bfa01b13564e</Id> <Name>sample string 2</Name> <OrganizationCode>sample string 3</OrganizationCode> </ProductCategoryDto> <ProductCategoryDto> <Code>sample string 1</Code> <CreationDate>2025-08-31T01:44:49.1885589+00:00</CreationDate> <Id>54796d47-00e8-48ea-b2dd-bfa01b13564e</Id> <Name>sample string 2</Name> <OrganizationCode>sample string 3</OrganizationCode> </ProductCategoryDto> </Categories> <CouponValue>sample string 10</CouponValue> <CustomFields xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:KeyValueOfstringCustomFieldPurchaseDtouOHOlRpi> <d4p1:Key>sample string 1</d4p1:Key> <d4p1:Value> <BoolValue>true</BoolValue> <Code>sample string 1</Code> <DateTimeValue>2025-08-31T01:44:49.199571+00:00</DateTimeValue> <IntValue>1</IntValue> <Name>sample string 2</Name> <StringValue>sample string 3</StringValue> <Type>sample string 4</Type> </d4p1:Value> </d4p1:KeyValueOfstringCustomFieldPurchaseDtouOHOlRpi> <d4p1:KeyValueOfstringCustomFieldPurchaseDtouOHOlRpi> <d4p1:Key>sample string 2</d4p1:Key> <d4p1:Value> <BoolValue>true</BoolValue> <Code>sample string 1</Code> <DateTimeValue>2025-08-31T01:44:49.199571+00:00</DateTimeValue> <IntValue>1</IntValue> <Name>sample string 2</Name> <StringValue>sample string 3</StringValue> <Type>sample string 4</Type> </d4p1:Value> </d4p1:KeyValueOfstringCustomFieldPurchaseDtouOHOlRpi> </CustomFields> <CustomerId>5b4a2708-1443-4cb5-b729-6c9b0176f91e</CustomerId> <Description>sample string 9</Description> <DiscountApplied>1.1</DiscountApplied> <DiscountValueApplied>1</DiscountValueApplied> <FinalDiscountApplied>1.1</FinalDiscountApplied> <FinalDiscountValueApplied>1</FinalDiscountValueApplied> <Id>0bf08c11-80e4-47b0-a708-6be040df5fc1</Id> <Name>sample string 1</Name> <Price>1</Price> <PriceWithoutDiscount>1</PriceWithoutDiscount> <ProductCategories xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </ProductCategories> <ProductCode>sample string 6</ProductCode> <ProductName>sample string 7</ProductName> <ProductTypeCode>sample string 5</ProductTypeCode> <Promotions> <PromotionPurchaseDto> <Code>sample string 1</Code> <CouponCode>sample string 3</CouponCode> <Title>sample string 2</Title> </PromotionPurchaseDto> <PromotionPurchaseDto> <Code>sample string 1</Code> <CouponCode>sample string 3</CouponCode> <Title>sample string 2</Title> </PromotionPurchaseDto> </Promotions> <PurchaseDate>2025-08-31T01:44:49.1885589+00:00</PurchaseDate> <PurchaseId>2326cc57-e8f7-464b-8d3c-9edcbcd961b7</PurchaseId> <Quantity>1</Quantity> <Total>1</Total> <TotalDiscountApplied>1</TotalDiscountApplied> <TotalDiscountValueApplied>1</TotalDiscountValueApplied> <TotalWithoutDiscount>1</TotalWithoutDiscount> </PurchaseItemDto> </Items> <OrganizationCode>sample string 3</OrganizationCode> <SellerCode>sample string 1</SellerCode> <SellerName>sample string 2</SellerName> <SourcePurchaseId>sample string 7</SourcePurchaseId> <Total>1</Total> <TotalWithoutDiscount>1</TotalWithoutDiscount> </PurchaseDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.