curl --location --request GET 'https://mennaelkholy.daftra.com/v2/api/entity/purchase_debit_note/list/-1?debug=2' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"invoice_layout_id": 0,
"type": "string",
"supplier_id": 0,
"currency_code": "string",
"language_id": 0,
"supplier_supplier_number": "string",
"supplier_business_name": "string",
"supplier_first_name": "string",
"supplier_last_name": "string",
"supplier_address1": "string",
"supplier_address2": "string",
"supplier_city": "string",
"supplier_state": "string",
"supplier_postal_code": "string",
"supplier_phone1": "string",
"supplier_phone2": "string",
"supplier_country_code": "string",
"supplier_bn1_label": "string",
"supplier_bn2_label": "string",
"supplier_default_currency_code": "string",
"date": "string",
"work_order_id": 0,
"store_id": 0,
"show_item_stores": "string",
"shipping_tax_id": null,
"shipping_amount": null,
"discount": null,
"discount_amount": null,
"adjustment_label": "string",
"adjustment_value": "string",
"html_notes": null,
"draft": "string",
"purchase_order_item": [
{
"product_id": 0,
"item": "string",
"description": "string",
"col_3": "string",
"col_4": "string",
"col_5": "string",
"unit_price": 0,
"quantity": 0,
"discount": 0,
"discount_type": 0,
"tax1": null,
"tax2": null
}
],
"summary_total": {
"currency": "string"
},
"PurchaseOrderCustomField": {
"0": {
"label": "string",
"value": "string"
},
"1": {
"label": "string",
"value": "string"
},
"2": {
"label": "string",
"value": "string"
},
"3": {
"label": "string",
"value": "string"
},
"4": {
"label": "string",
"value": "string"
},
"5": {
"label": "string",
"value": null
}
}
}'