Invoice upload

PATCH /v1/channel-partner/customer-partner/:cup_id/invoice

Payload

FieldTypeDescription
invoice_file_0FILEInvoice file
invoice_file_1FILEInvoice file
invoice_file_2FILEInvoice file
invoicesstringThis is a stringified array that contains the objects containing the invoice amount of the uploaded invoices in order
E.g. '[{"amount":1000},{"amount":1000},{"amount":1000}]'


The payload object

All fields are compulsory. If you have multiple documents to share for one of the file fields, then append to the field name: _0, _1, _2, and so on.

Each invoice file must be accompanied with invoice amount


Response

This is the expected response if the request is successful.

{
	"status": "success",
	"message": "Invoice file saved successfully",
}