{
"purchase_invoice": [
{
"tenant_code": "string",
"location_code": "string",
"document_type": 1,
"external_doc_no_1": "string",
"external_doc_date_1": "2019-08-24T14:15:22Z",
"external_doc_no_2": "string",
"external_doc_date_2": "2019-08-24T14:15:22Z",
"delivery_date": "2019-08-24T14:15:22Z",
"business_partner_code": "string",
"division_code": "string",
"purchase_description": "string",
"purchase_order_no": "string",
"purchase_invoice_no": "string",
"total_quantity": 0,
"purchase_amount": 0,
"tax_amount": 0,
"expense_amount": 0,
"discount_amount": 0,
"document_amount": 0,
"posting_date_time": "2019-08-24T14:15:22Z",
"currency_code": "string",
"eway_bill_number": "string",
"eway_bill_date": "2019-08-24T14:15:22Z",
"vehicle_code": "string",
"transport_name": "string",
"transport_email": "string",
"transport_mobile": "string",
"is_pallet_available": 0,
"lr_number": "string",
"lr_date": "2019-08-24T14:15:22Z",
"header_tax_amount": 0,
"original_document_no": "string",
"void_indicator": 0,
"is_transfer_document": "string",
"order_type": 0,
"purchase_invoice_detail": [
{
"sequence_number": "string",
"line_type": 0,
"item_code": "string",
"sub_hierarchy_code": "string",
"manufacture_date": "2019-08-24T14:15:22Z",
"units_of_measure": "string",
"item_quantity": 0,
"mrp": 0,
"item_price": 0,
"item_total_promotion": 0,
"item_consumer_discount": 0,
"item_excise_tax": 0,
"net_unit_price": 0,
"line_net_amount": 0,
"is_free_good": 0,
"remarks": "string",
"expire_date": "2019-08-24T14:15:22Z",
"tax_percentage_1": 0,
"tax_amount_1": 0,
"tax_percentage_2": 0,
"tax_amount_2": 0,
"tax_percentage_3": 0,
"tax_amount_3": 0,
"tax_percentage_4": 0,
"tax_amount_4": 0,
"tax_percentage_5": 0,
"tax_amount_5": 0,
"rm_value": 0,
"dm_value": 0,
"excise_duty_amount": 0
}
]
}
]
}
curl --location --request POST 'https://testapi.com/api/xd/1.0/set_purchase_invoice' \
--header 'Content-Type: application/json' \
--data-raw '{
"purchase_invoice": [
{
"tenant_code": "string",
"location_code": "string",
"document_type": 1,
"external_doc_no_1": "string",
"external_doc_date_1": "2019-08-24T14:15:22Z",
"external_doc_no_2": "string",
"external_doc_date_2": "2019-08-24T14:15:22Z",
"delivery_date": "2019-08-24T14:15:22Z",
"business_partner_code": "string",
"division_code": "string",
"purchase_description": "string",
"purchase_order_no": "string",
"purchase_invoice_no": "string",
"total_quantity": 0,
"purchase_amount": 0,
"tax_amount": 0,
"expense_amount": 0,
"discount_amount": 0,
"document_amount": 0,
"posting_date_time": "2019-08-24T14:15:22Z",
"currency_code": "string",
"eway_bill_number": "string",
"eway_bill_date": "2019-08-24T14:15:22Z",
"vehicle_code": "string",
"transport_name": "string",
"transport_email": "string",
"transport_mobile": "string",
"is_pallet_available": 0,
"lr_number": "string",
"lr_date": "2019-08-24T14:15:22Z",
"header_tax_amount": 0,
"original_document_no": "string",
"void_indicator": 0,
"is_transfer_document": "string",
"order_type": 0,
"purchase_invoice_detail": [
{
"sequence_number": "string",
"line_type": 0,
"item_code": "string",
"sub_hierarchy_code": "string",
"manufacture_date": "2019-08-24T14:15:22Z",
"units_of_measure": "string",
"item_quantity": 0,
"mrp": 0,
"item_price": 0,
"item_total_promotion": 0,
"item_consumer_discount": 0,
"item_excise_tax": 0,
"net_unit_price": 0,
"line_net_amount": 0,
"is_free_good": 0,
"remarks": "string",
"expire_date": "2019-08-24T14:15:22Z",
"tax_percentage_1": 0,
"tax_amount_1": 0,
"tax_percentage_2": 0,
"tax_amount_2": 0,
"tax_percentage_3": 0,
"tax_amount_3": 0,
"tax_percentage_4": 0,
"tax_amount_4": 0,
"tax_percentage_5": 0,
"tax_amount_5": 0,
"rm_value": 0,
"dm_value": 0,
"excise_duty_amount": 0
}
]
}
]
}'
{
"status": 0,
"message": "string",
"transaction_id": "0fec1e58-b197-4052-99cf-2218496c5482",
"record_count": 0
}