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": "e0388dd3-ee55-4c7c-85a5-a3004fe492d4",
"newSupplierIdentifier": "d44e6eed-c7e1-4cf3-99cf-83ede388da2e",
"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>e0388dd3-ee55-4c7c-85a5-a3004fe492d4</InvoiceHeaderIdentifier> <NewSupplierIdentifier>d44e6eed-c7e1-4cf3-99cf-83ede388da2e</NewSupplierIdentifier> </InvoiceSupplierSubstitute>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.