PATCH /v1/channel-partner/customer-partner/:cup_id/invoice
Payload
Field | Type | Description |
---|---|---|
invoice_file_0 | FILE | Invoice file |
invoice_file_1 | FILE | Invoice file |
invoice_file_2 | FILE | Invoice file |
invoices | string | This 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
payload
objectAll 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.
_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",
}