POST api/Submission/DeleteInvoice
Delete an invoice from an in-progress submission.
Request Information
URI Parameters
None.
Body Parameters
Invoice object to delete.
InvoiceViewModelName | Description | Type | Additional information |
---|---|---|---|
InvoiceID | integer |
None. |
|
SubmissionID | globally unique identifier |
None. |
|
Retailer | string |
None. |
|
InvoiceDate | date |
None. |
|
InvoiceNumber | string |
None. |
|
Files | Collection of InvoiceFileViewModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "InvoiceID": 1, "SubmissionID": "a612b73f-de21-4e52-8e4d-f40107d4e446", "Retailer": "sample string 3", "InvoiceDate": "2025-01-09T19:32:08.8813418-06:00", "InvoiceNumber": "sample string 5", "Files": [ { "FileName": "sample string 1", "DataURL": "sample string 2", "SubmissionID": "95f917e4-7cad-4004-b191-208881390958" }, { "FileName": "sample string 1", "DataURL": "sample string 2", "SubmissionID": "95f917e4-7cad-4004-b191-208881390958" } ] }
application/xml, text/xml
Sample:
<InvoiceViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SubmissionAPI.Models"> <Files> <InvoiceFileViewModel> <DataURL>sample string 2</DataURL> <FileName>sample string 1</FileName> <SubmissionID>95f917e4-7cad-4004-b191-208881390958</SubmissionID> </InvoiceFileViewModel> <InvoiceFileViewModel> <DataURL>sample string 2</DataURL> <FileName>sample string 1</FileName> <SubmissionID>95f917e4-7cad-4004-b191-208881390958</SubmissionID> </InvoiceFileViewModel> </Files> <InvoiceDate>2025-01-09T19:32:08.8813418-06:00</InvoiceDate> <InvoiceID>1</InvoiceID> <InvoiceNumber>sample string 5</InvoiceNumber> <Retailer>sample string 3</Retailer> <SubmissionID>a612b73f-de21-4e52-8e4d-f40107d4e446</SubmissionID> </InvoiceViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
A response model indicating success or failure and a list of errors as applicable.
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |