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": "aee5fa92-7e7a-4e49-8a95-39a53acf7101", "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>aee5fa92-7e7a-4e49-8a95-39a53acf7101</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": "35f41cfc-7f94-447c-8415-193b02a00bab", "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>35f41cfc-7f94-447c-8415-193b02a00bab</IdentifierGuid> <Status>InProgress</Status> <Variance>true</Variance> </CompleteInvoiceResult>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK o�D[�r�� 5 xl/workbook.xml � (� ����0��J}�(�@��@��ҵCw7�A�����R�n����U�6�S�|�lij:87��Y>�{�3*�뵑�4/��^pl5KT�]�(g'pB+;��ҍ�������ӆ� m�'B���C�b���^w5 �B�7U�qQ ��-8�$8���1%�~�'E�dI�Y��)����b���PK o�D[���� � [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 o�D[�H' ' _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="R0d6db7fc90044020" /></Relationships>PK o�D[�;`�l " xl/worksheets/sheet1.xml � (� ��Qo� �� �}�H�mԦk�lo��g�XIE��?H����E/�;��{C�����6B�oU�v�����p����Ssn��[����=.2E�%3�:���UJKf�Q*Q�*N���c�yì�2�8xu���9j�J߂l�V���i)�{�=м��:\n(O=�&xgnj�O�ԡ?<�ĞEx��_4(y�N�}U��ں%ͼ�P��_ E�:$��'J[� 1�Q�����BP��U�}��r��ɠ'�>J�i-hD�!����}4�AHqL~סk�~�-�,O����ε�֮4~Cnh�V}�q�νv �D���L 2�E���;�L4�]w�Sbv��nf����z����og|��'PK o�D[�Ҙ�� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8&NҠ�ݰa[z��3��&vd�@�Ƃ#q�"A"�`��h~OO��|���ߦ�����-�,FV�n�}��6��m4bL�s`iņL���A�0dn&�:�� cJ}�gT'���y���k&;^f��i=(zt�<������`�"�#��b?���Ad� �k�P4MQ���R� �o��e������dJY�ب�R��MezꞣO�^:-�5DUK��t�R`}U㫿�}PK o�D[Ѓ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 o�D[: ?�� M xl/sharedStrings.xml � (� e��j�0�_E��HN��b;�BJo�����-�W�vUڷ�K)��83|30��s�F��*���VH.���J�]��A+��@X�/d�Nu�,jA�+=��ưp^�iI�'�E���Ze��ڝ���V.$�J�J� ��2��R�WI\�K�����-���c|J��M�!z �w���G仾Ͷ+rl���(�.;�6ˏ�Ʈ���[�ӿ��QPK- o�D[�r�� 5 xl/workbook.xmlPK- o�D[���� � [Content_Types].xmlPK- o�D[�H' ' V _rels/.relsPK- o�D[�;`�l " � xl/worksheets/sheet1.xmlPK- o�D[�Ҙ�� P � xl/_rels/workbook.xml.relsPK- o�D[Ѓc'2 E � xl/styles.xmlPK- o�D[: ?�� M = xl/sharedStrings.xmlPK � f
application/vnd.ms-excel
Sample:
PK o�D[�e�� 5 xl/workbook.xml � (� ��;�0D{$�`� �� EN�4��{����F��8���ngv������q�#��X����|�X ĝ�h�u�@�2��k[-�v�m�&v��/,`I;���δX�b2��2�-��B���q����Rw4 �C�7�'�z1)b�`IkH@���eI��B��ш��� �I��MЕ��8[~W_PK o�D[���� � [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 o�D[�9Z' ' _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="R1359be8b45284327" /></Relationships>PK o�D[�;`�l " xl/worksheets/sheet1.xml � (� ��Qo� �� �}�H�mԦk�lo��g�XIE��?H����E/�;��{C�����6B�oU�v�����p����Ssn��[����=.2E�%3�:���UJKf�Q*Q�*N���c�yì�2�8xu���9j�J߂l�V���i)�{�=м��:\n(O=�&xgnj�O�ԡ?<�ĞEx��_4(y�N�}U��ں%ͼ�P��_ E�:$��'J[� 1�Q�����BP��U�}��r��ɠ'�>J�i-hD�!����}4�AHqL~סk�~�-�,O����ε�֮4~Cnh�V}�q�νv �D���L 2�E���;�L4�]w�Sbv��nf����z����og|��'PK o�D[%:� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8���i7l�-��3��Q;��B�Ƃ#q�"A*�`��h~OO��|�Xoߦ�������$F�L��)t5l7�=�2� ��ٳ�b|:���s��&�;���κI�������'���#wK�2��2�����g���L��_�;zM���)4�S���$R��T�+�$I�����������w��Y�m)T�U� ���]e�t�^���^:-�5U��e�+UV^���_l� PK o�D[Ѓ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 o�D[: ?�� M xl/sharedStrings.xml � (� e��j�0�_E��HN��b;�BJo�����-�W�vUڷ�K)��83|30��s�F��*���VH.���J�]��A+��@X�/d�Nu�,jA�+=��ưp^�iI�'�E���Ze��ڝ���V.$�J�J� ��2��R�WI\�K�����-���c|J��M�!z �w���G仾Ͷ+rl���(�.;�6ˏ�Ʈ���[�ӿ��QPK- o�D[�e�� 5 xl/workbook.xmlPK- o�D[���� � � [Content_Types].xmlPK- o�D[�9Z' ' T _rels/.relsPK- o�D[�;`�l " � xl/worksheets/sheet1.xmlPK- o�D[%:� P ~ xl/_rels/workbook.xml.relsPK- o�D[Ѓc'2 E � xl/styles.xmlPK- o�D[: ?�� M > xl/sharedStrings.xmlPK � g