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": "7d471342-4cc0-4b17-807a-3fb6bd00124a", "newSupplierIdentifier": "81178ed7-e408-492d-af9d-2f560370036b", "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>7d471342-4cc0-4b17-807a-3fb6bd00124a</InvoiceHeaderIdentifier> <NewSupplierIdentifier>81178ed7-e408-492d-af9d-2f560370036b</NewSupplierIdentifier> </InvoiceSupplierSubstitute>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.