POST api/invoice/{id}/substituteSupplier/{newSupplierGuid}
Match a generated supplier with an existing supplier
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Invoice identifier |
globally unique identifier |
Required |
| newSupplierGuid |
supplier identifier to be used after |
globally unique identifier |
Required |
Body Parameters
Invoice supplier substitute action options
InvoiceSupplierSubstitute| Name | Description | Type | Additional information |
|---|---|---|---|
| InvoiceHeaderIdentifier | globally unique identifier |
None. |
|
| NewSupplierIdentifier | globally unique identifier |
None. |
|
| DiscardABN |
Supplier ABN was invalid and should not be updated to the original supplier |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"invoiceHeaderIdentifier": "a5ddc1b3-c350-4edc-b2de-e8fb867c6c2c",
"newSupplierIdentifier": "6466a4e2-0b23-4540-a645-f66ba3a8c03a",
"discardABN": true
}
application/xml, text/xml
Sample:
<InvoiceSupplierSubstitute xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Invoices"> <DiscardABN>true</DiscardABN> <InvoiceHeaderIdentifier>a5ddc1b3-c350-4edc-b2de-e8fb867c6c2c</InvoiceHeaderIdentifier> <NewSupplierIdentifier>6466a4e2-0b23-4540-a645-f66ba3a8c03a</NewSupplierIdentifier> </InvoiceSupplierSubstitute>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.