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
InvoiceSupplierSubstituteName | 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": "656ecbe2-9c6a-48ab-85a2-a6b76f467ee2", "newSupplierIdentifier": "2e199991-f830-41cf-a71e-b8f5b2ef37d8", "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>656ecbe2-9c6a-48ab-85a2-a6b76f467ee2</InvoiceHeaderIdentifier> <NewSupplierIdentifier>2e199991-f830-41cf-a71e-b8f5b2ef37d8</NewSupplierIdentifier> </InvoiceSupplierSubstitute>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.