POST api/invoices/complete
API to complete multiple invoices
Request Information
URI Parameters
None.
Body Parameters
Invoice Identifiers
CompleteInvoicesRequestName | Description | Type | Additional information |
---|---|---|---|
InvoiceIdentifiers | Collection of globally unique identifier |
None. |
|
UpdateInventory | UpdateInventory |
None. |
|
UpdateInvoiceCost |
If false, will override the Supplier.ReceiptCostUpdate setting |
boolean |
None. |
CostIncludesFreight |
Treat unit cost as already including freight fees |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "invoiceIdentifiers": [ "a2c93ce2-d45a-48d0-931d-b501e80b3041", "9d50876b-5781-481c-814b-561753a07f0e" ], "updateInventory": 0, "updateInvoiceCost": true, "costIncludesFreight": true }
application/xml, text/xml
Sample:
<CompleteInvoicesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Invoices"> <CostIncludesFreight>true</CostIncludesFreight> <InvoiceIdentifiers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>a2c93ce2-d45a-48d0-931d-b501e80b3041</d2p1:guid> <d2p1:guid>9d50876b-5781-481c-814b-561753a07f0e</d2p1:guid> </InvoiceIdentifiers> <UpdateInventory>AsIs</UpdateInventory> <UpdateInvoiceCost>true</UpdateInvoiceCost> </CompleteInvoicesRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Result records if any invoices are unable to complete
Collection of CompleteInvoiceResultName | Description | Type | Additional information |
---|---|---|---|
Status | InvoiceStatus |
None. |
|
IdentifierGuid | globally unique identifier |
None. |
|
Variance |
The invoice has lines with variance. Credit note prompt should be added |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
[ { "$id": "1", "status": 0, "identifierGuid": "7805c3a7-7875-4049-91ec-a8fac53ddfe0", "variance": true }, { "$ref": "1" } ]
application/xml, text/xml
Sample:
<ArrayOfCompleteInvoiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Invoices"> <CompleteInvoiceResult> <IdentifierGuid>7805c3a7-7875-4049-91ec-a8fac53ddfe0</IdentifierGuid> <Status>InProgress</Status> <Variance>true</Variance> </CompleteInvoiceResult> <CompleteInvoiceResult> <IdentifierGuid>7805c3a7-7875-4049-91ec-a8fac53ddfe0</IdentifierGuid> <Status>InProgress</Status> <Variance>true</Variance> </CompleteInvoiceResult> </ArrayOfCompleteInvoiceResult>
text/csv
Sample:
Sample not available.
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK c2�Z{D?/� 5 xl/workbook.xml � (� ����0��&�C���i")��x��}��4П�5��B $���~;|2nx3���/]E�lɘo{T�OƢ�w�q �,���-6�}+ԁeIraG�h�K��J���C�Gj\Q ����@_�=$N>����.&ak���x��Q +�@ J�sM)q���{"��5/�y�f� ��;���w�PK c2�Z���� � [Content_Types].xml � (� ���J�0�_��*M�D��V�*��d� �d�k��<�H���V���= ��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ �1Z�$�8z�R��3 tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b ��%#H'�2}���e�B)��~j/F�t��PK c2�Z�� ' ' _rels/.rels � (� <?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="R7caada7473e647a1" /></Relationships>PK c2�Z*Jc%{ � xl/worksheets/sheet1.xml � (� ���r�0�_%�{IHD�8V�io��s A2�$Q|��hт��B6�߿����$kp��դ00��U!�m �|��E��J�LŹo�\���v?G����j��+��̺��"U�"�k�$o,"O��5���Tbo��j����-��\J2��,)���u4/S��+ ��ޚ�t�|*��./E �g��x�W ^�Cm�T��Ŷ�nI���6� ��V�d'�����p0%�$��8�@��U����r֓���z�Gaų����=���A8�S�աs�~�5�,K�j��iW���.4~Cnh�V}�p����B<���'��'���}��4t�;&&�1���W_�������/��y�>j�7JY��[���PK c2�Z5rT� P xl/_rels/workbook.xml.rels � (� ��An� E������� ɦ�n�\���X�i��u�#� E����n�B���h�|�Xoߖ�@���7U�X��dG�Oi��x�Y�`�)߈f��'6 lR��De`��rl�.,2�2��Ku�#Z�= %_3����?D7��G�N�����p� a��a�$�O��h�L��I��5=�Zֵ��L�<>��ZL���w]Ȱ�k�1ɻ�=���@?��7]:�q��+NW�S�^^��տ�|PK c2�ZЃc'2 E xl/styles.xml � (� �S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v �F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&� AR>��� ��im��ΑF���YO��%�}� ��LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PK c2�Z6�z7� M xl/sharedStrings.xml � (� e��j�0DE��Hi�� �s(��Vh��"�m��r����}]J�$Ǚ���4��yR�8Dj�vc�Br�Z�zy(j�X�<L���_�Z���YԊ�zYNưq��iM��f�U���<��2O��ڃ�!�V.f�V���3���u t�t/��1�5���u�<��>`z��_�o�����S�M_U���*��*�����]u��yߣ�f.)�[0��7PK- c2�Z{D?/� 5 xl/workbook.xmlPK- c2�Z���� � [Content_Types].xmlPK- c2�Z�� ' ' V _rels/.relsPK- c2�Z*Jc%{ � � xl/worksheets/sheet1.xmlPK- c2�Z5rT� P � xl/_rels/workbook.xml.relsPK- c2�ZЃc'2 E � xl/styles.xmlPK- c2�Z6�z7� M O xl/sharedStrings.xmlPK � v
application/vnd.ms-excel
Sample:
PK c2�Z��{ö