POST api/TwigsReport/twigs_purchase_details
Request Information
URI Parameters
None.
Body Parameters
twigs_input| Name | Description | Type | Additional information |
|---|---|---|---|
| to_date | date |
None. |
|
| from_date | date |
None. |
|
| branch_id | integer |
None. |
|
| connection_string | string |
None. |
|
| token | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"to_date": "2025-12-21T08:00:05.1732596+04:00",
"from_date": "2025-12-21T08:00:05.1732596+04:00",
"branch_id": 3,
"connection_string": "sample string 4",
"token": "sample string 5"
}
application/xml, text/xml
Sample:
<twigs_input xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PromptTech.CRM.DAO"> <branch_id>3</branch_id> <connection_string>sample string 4</connection_string> <from_date>2025-12-21T08:00:05.1732596+04:00</from_date> <to_date>2025-12-21T08:00:05.1732596+04:00</to_date> <token>sample string 5</token> </twigs_input>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
twigs_purchase_details_response| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| message | string |
None. |
|
| twigs_purchase_detailses | Collection of twigs_purchase_details |
None. |
|
| twigs_purchase_details_graphs | Collection of twigs_purchase_details_graph |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"message": "sample string 2",
"twigs_purchase_detailses": [
{
"bill_no": "sample string 1",
"purchase_date": "sample string 2",
"supplier_name": "sample string 3",
"mop": "sample string 4",
"barcode": "sample string 5",
"product_name": "sample string 6",
"unit": "sample string 7",
"free_quantity": 1.0,
"price": 1.0,
"quantity": 1.0,
"discount_per": 1.0,
"discount_amount": 1.0,
"taxable_amount": 1.0,
"tax_per": 1.0,
"tax_amount": 1.0,
"grand_total": 1.0
},
{
"bill_no": "sample string 1",
"purchase_date": "sample string 2",
"supplier_name": "sample string 3",
"mop": "sample string 4",
"barcode": "sample string 5",
"product_name": "sample string 6",
"unit": "sample string 7",
"free_quantity": 1.0,
"price": 1.0,
"quantity": 1.0,
"discount_per": 1.0,
"discount_amount": 1.0,
"taxable_amount": 1.0,
"tax_per": 1.0,
"tax_amount": 1.0,
"grand_total": 1.0
}
],
"twigs_purchase_details_graphs": [
{
"product_name": "sample string 1",
"grand_total": 2.0
},
{
"product_name": "sample string 1",
"grand_total": 2.0
}
]
}
application/xml, text/xml
Sample:
<twigs_purchase_details_response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PromptTech.CRM.CustomerApp.Models">
<message>sample string 2</message>
<success>true</success>
<twigs_purchase_details_graphs>
<twigs_purchase_details_graph>
<grand_total>2</grand_total>
<product_name>sample string 1</product_name>
</twigs_purchase_details_graph>
<twigs_purchase_details_graph>
<grand_total>2</grand_total>
<product_name>sample string 1</product_name>
</twigs_purchase_details_graph>
</twigs_purchase_details_graphs>
<twigs_purchase_detailses>
<twigs_purchase_details>
<barcode>sample string 5</barcode>
<bill_no>sample string 1</bill_no>
<discount_amount>1</discount_amount>
<discount_per>1</discount_per>
<free_quantity>1</free_quantity>
<grand_total>1</grand_total>
<mop>sample string 4</mop>
<price>1</price>
<product_name>sample string 6</product_name>
<purchase_date>sample string 2</purchase_date>
<quantity>1</quantity>
<supplier_name>sample string 3</supplier_name>
<tax_amount>1</tax_amount>
<tax_per>1</tax_per>
<taxable_amount>1</taxable_amount>
<unit>sample string 7</unit>
</twigs_purchase_details>
<twigs_purchase_details>
<barcode>sample string 5</barcode>
<bill_no>sample string 1</bill_no>
<discount_amount>1</discount_amount>
<discount_per>1</discount_per>
<free_quantity>1</free_quantity>
<grand_total>1</grand_total>
<mop>sample string 4</mop>
<price>1</price>
<product_name>sample string 6</product_name>
<purchase_date>sample string 2</purchase_date>
<quantity>1</quantity>
<supplier_name>sample string 3</supplier_name>
<tax_amount>1</tax_amount>
<tax_per>1</tax_per>
<taxable_amount>1</taxable_amount>
<unit>sample string 7</unit>
</twigs_purchase_details>
</twigs_purchase_detailses>
</twigs_purchase_details_response>