{
"credit_debit_note": [
{
"tenant_code": "string",
"location_code": "string",
"document_type": 1,
"document_no": "string",
"document_date": "2019-08-24T14:15:22Z",
"business_partner_code": "string",
"document_amount": 0,
"posting_date_time": "2019-08-24T14:15:22Z",
"currency_code": "string",
"remarks": "string",
"original_document_no": "string",
"void_indicator": 0,
"credit_debit_note_detail": [
{
"tenant_code": "string",
"location_code": "string",
"document_no": "string",
"sequence_number": 0,
"item_code": "string",
"units_of_measure": "string",
"item_total_promotion": 0,
"item_excise_tax": 0,
"line_net_amount": 0,
"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
}
]
}
]
}
curl --location --request POST 'https://testapi.com/api/xd/1.0/set_credit_debit_note' \
--header 'Content-Type: application/json' \
--data-raw '{
"credit_debit_note": [
{
"tenant_code": "string",
"location_code": "string",
"document_type": 1,
"document_no": "string",
"document_date": "2019-08-24T14:15:22Z",
"business_partner_code": "string",
"document_amount": 0,
"posting_date_time": "2019-08-24T14:15:22Z",
"currency_code": "string",
"remarks": "string",
"original_document_no": "string",
"void_indicator": 0,
"credit_debit_note_detail": [
{
"tenant_code": "string",
"location_code": "string",
"document_no": "string",
"sequence_number": 0,
"item_code": "string",
"units_of_measure": "string",
"item_total_promotion": 0,
"item_excise_tax": 0,
"line_net_amount": 0,
"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
}
]
}
]
}'
{
"status": 0,
"message": "string",
"transaction_id": "0fec1e58-b197-4052-99cf-2218496c5482",
"record_count": 0
}