POST api/invoice/{id}/complete
API to complete invoice
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Invoice Identifier |
globally unique identifier |
Required |
Body Parameters
Update Inventory setting
CompleteInvoiceRequestName | Description | Type | Additional information |
---|---|---|---|
InvoiceIdentifier | 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:
{ "invoiceIdentifier": "dbe9a5ff-e1e3-41b0-a461-15d50eed75c5", "updateInventory": 0, "updateInvoiceCost": true, "costIncludesFreight": true }
application/xml, text/xml
Sample:
<CompleteInvoiceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Invoices"> <CostIncludesFreight>true</CostIncludesFreight> <InvoiceIdentifier>dbe9a5ff-e1e3-41b0-a461-15d50eed75c5</InvoiceIdentifier> <UpdateInventory>AsIs</UpdateInventory> <UpdateInvoiceCost>true</UpdateInvoiceCost> </CompleteInvoiceRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Result record if invoice is unable to complete
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:
{ "status": 0, "identifierGuid": "2b3db7e0-2f62-4ac4-af8b-d83eef0b74f3", "variance": true }
application/xml, text/xml
Sample:
<CompleteInvoiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Invoices"> <IdentifierGuid>2b3db7e0-2f62-4ac4-af8b-d83eef0b74f3</IdentifierGuid> <Status>InProgress</Status> <Variance>true</Variance> </CompleteInvoiceResult>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK "�[��]� 5 xl/workbook.xml � (� ��M�0��&ޡ�,�AB +6n]�oa* �'m �R�;7�yo�|3t6n�ƌ�&�+W�![��'cAǙ0N��{#��5�[��eq0� ������X�:`� ��V�bR��x@�.�=%�>�hl�.&"k���h��I!�Ըe�a��{_�3F���y�8/��C��X9��;���v�PK "�[���� � [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 "�[�<'' ' _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="R7567ddd8049d4403" /></Relationships>PK "�[`���m " xl/worksheets/sheet1.xml � (� ��Qo� �� �}�X�mԦk�lo��g�XIE`��R纺,{�K��9�ސl.�g�4�M }C��\�9��3��n����+��x��*��1�!�WLP�ɖ5���JPc��dY��e� �D0��b556JW�����/�*Fׂ��V��fI����=P�L��_�(K��Y�oj0L�!�i8<)ĎE3���_(XI�ڼ����ce�B��e��>�A/����T��^DA�G��� ﴑ�}��r��ɨ'�>�=���r�W�QL���/pD�_u�ھ�uO �%{�ܵu��-�ېZ�U�3�����9��$vs�L��S.��%3Mp�;'w�s"��E7�W�q1u��0�3=��PK "�[D�4^� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8nL��ݰa[z�q�Ďl��Xp$��U$H%l��hf<OO�lvo�H^0���XQA��\��)��v��G��h�9�<�b6�yMiT'?����$RNCOg���G�*˚�%���p��?Do̠�ѫӄ.���>�EL@"�:�)Ez ��T O��}#e�k^a[�|J �fj1�G��^��BF�F�����Zqm�Me���Sț^:-��wz�J�PȖ �p~Q�W�b�PK "�[Ѓ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 "�[��s� M xl/sharedStrings.xml � (� e�AK�0��JȽ�ږn��{XP� ��_��6оԼ�oE�=��L{�\���}�N�r���`=M�~�<d�V,@�@��/d�N}�,jG�;=�l���8� |Ҟ�W�]���,ψ�.���ڬ�I�1$�N�Z%�� �z�}+���$n���q~�'�$�y������ �����|�W���g��������5Cf���ñr�5s��߂���PK- "�[��]� 5 xl/workbook.xmlPK- "�[���� � [Content_Types].xmlPK- "�[�<'' ' V _rels/.relsPK- "�[`���m " � xl/worksheets/sheet1.xmlPK- "�[D�4^� P � xl/_rels/workbook.xml.relsPK- "�[Ѓc'2 E � xl/styles.xmlPK- "�[��s� M A xl/sharedStrings.xmlPK � h
application/vnd.ms-excel
Sample:
PK "�[��B� 5 xl/workbook.xml � (� ����0��&�C��(���x��}�E�O�5���H�yۙ��v�ٸWk̋}Ԥ�p���ԍ��NƢ��8>H�fd���� ��$Ʉ� �4�Fi���XdBO#�WӊR 5���ʥ�C�LQc���L�!�*#l���iPX�<p�[_�3g��a�'����9mz퓰��;����PK "�[���� � [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 "�[5˘#' ' _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="Rb630fdb5a0d849ad" /></Relationships>PK "�[`���m " xl/worksheets/sheet1.xml � (� ��Qo� �� �}�X�mԦk�lo��g�XIE`��R纺,{�K��9�ސl.�g�4�M }C��\�9��3��n����+��x��*��1�!�WLP�ɖ5���JPc��dY��e� �D0��b556JW�����/�*Fׂ��V��fI����=P�L��_�(K��Y�oj0L�!�i8<)ĎE3���_(XI�ڼ����ce�B��e��>�A/����T��^DA�G��� ﴑ�}��r��ɨ'�>�=���r�W�QL���/pD�_u�ھ�uO �%{�ܵu��-�ېZ�U�3�����9��$vs�L��S.��%3Mp�;'w�s"��E7�W�q1u��0�3=��PK "�[�n��� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞�n���ݰa[z��=N�&vd�-=�����ĂMW��==i���c�}�Fv���� FN{3���c�5l7����D�9���b}J��Q�4a,�L.w�����Ϩ�_ Q�d�-��/3���4={}�ȥ?����!�D �CG���R�� �L�b� �J�ۚl[*#$0~7��.#�_��|!C�JlU�*-*��*�c �B���iY^�I!M�$�D�������|PK "�[Ѓ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 "�[��s� M xl/sharedStrings.xml � (� e�AK�0��JȽ�ږn��{XP� ��_��6оԼ�oE�=��L{�\���}�N�r���`=M�~�<d�V,@�@��/d�N}�,jG�;=�l���8� |Ҟ�W�]���,ψ�.���ڬ�I�1$�N�Z%�� �z�}+���$n���q~�'�$�y������ �����|�W���g��������5Cf���ñr�5s��߂���PK- "�[��B� 5 xl/workbook.xmlPK- "�[���� � � [Content_Types].xmlPK- "�[5˘#' ' U _rels/.relsPK- "�[`���m " � xl/worksheets/sheet1.xmlPK- "�[�n��� P � xl/_rels/workbook.xml.relsPK- "�[Ѓc'2 E � xl/styles.xmlPK- "�[��s� M > xl/sharedStrings.xmlPK � e