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": "f776c338-c97e-4101-abdd-8c354eb23cc1", "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>f776c338-c97e-4101-abdd-8c354eb23cc1</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": "877e1036-490a-46b1-9764-a2a91dd8cdd0", "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>877e1036-490a-46b1-9764-a2a91dd8cdd0</IdentifierGuid> <Status>InProgress</Status> <Variance>true</Variance> </CompleteInvoiceResult>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK }5�Z<��T� 5 xl/workbook.xml � (� ���� ��M��(h�����zG\ Q� �}�*F��zۙ��v��|�8ס��m(|�U�CAH 7��v�y��$��8)��ډ�IN�x�y������?�0x�mP ���pmq��!��fO cHr2ֺ���"�)�`�ER�r%�y�%�ޖ8��z�&�W)m�˩�9�����w�PK }5�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 }5�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="R1c37dacb4a264cd6" /></Relationships>PK }5�Zi�GCm ! xl/worksheets/sheet1.xml � (� ��_o� ſ �}����Q��M��-{؞�b%1��H;��eً^��s� ��,pbJs�f��0�-d��C{S=$p���TG]3f��[�R���V�f�jOv��w�T�{T$��l'�^�� �q�k��Q�杆��x�N1Z�Ds���0OKn���bU7�jK @y��7�}S�q�)���� v,��{��@�*�7�UO�jc�9M!�@�quzv������b��p��C�^)ޯ�_.=��ɤ/Y�'�/��oyp��|��!�I�]�w�y�� ����c���v�3k��S�St�W�qN�?�� �l�K�s�L��Ή�.wNDw��f�ھ-��R��v���PK }5�Z�DN� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞�I�4��ݰa[z��Q;�]�gc���V���X��j4��'�|���o�D^Ї�Ye���U�� ��]��z���i"�q $�� �ĸ<P��Y��-hSG;?˘R?�E���V�����f��y���֣�G�N3����:1�K?`�S ��"Q�<�v�^ם֊��t��L-�����;�d���g�y��Me���?G�.�;��L�n8?�kUUs��E�^���PK }5�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 }5�Z>pK�� M xl/sharedStrings.xml � (� e��j�0�_E��HN��� )�����6��^9�Ui߾.�P���������eV��t��Z! �y;�z:f�V,@�@��/d�}�,jC�;=�����0��+Җ�C\@6G�kDp<!�2����Y��VCH$�.�J�/ ��6��V�I��[����OI��c|L�]�o=Ѐ7=�0F䛾��0�weV4��|ϳ�*�����Ճs��9��o�l��PK- }5�Z<��T� 5 xl/workbook.xmlPK- }5�Z���� � [Content_Types].xmlPK- }5�Z���' ' V _rels/.relsPK- }5�Zi�GCm ! � xl/worksheets/sheet1.xmlPK- }5�Z�DN� P � xl/_rels/workbook.xml.relsPK- }5�ZЃc'2 E � xl/styles.xmlPK- }5�Z>pK�� M @ xl/sharedStrings.xmlPK � g
application/vnd.ms-excel
Sample:
PK }5�ZRH�� 5 xl/workbook.xml � (� ����0��&�C���H)��x�ཅ�4П�5���H�yۙ��v�l�ȍ�GM�W��C�"�w(�OƂ�;a�b!J�"F�Ak��Hv>��Ă4��z���ay��~ jZQ�I���!�4{J�}����.&"k���h��I!�Ըe�a��{_�F��qx\K��DQ��[\l�F����PK }5�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 }5�Z[��e' ' _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="R9cf3281428bd48b3" /></Relationships>PK }5�Zi�GCm ! xl/worksheets/sheet1.xml � (� ��_o� ſ �}����Q��M��-{؞�b%1��H;��eً^��s� ��,pbJs�f��0�-d��C{S=$p���TG]3f��[�R���V�f�jOv��w�T�{T$��l'�^�� �q�k��Q�杆��x�N1Z�Ds���0OKn���bU7�jK @y��7�}S�q�)���� v,��{��@�*�7�UO�jc�9M!�@�quzv������b��p��C�^)ޯ�_.=��ɤ/Y�'�/��oyp��|��!�I�]�w�y�� ����c���v�3k��S�St�W�qN�?�� �l�K�s�L��Ή�.wNDw��f�ھ-��R��v���PK }5�Zx���� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8i�4��vÆm�gGM���=�����ĂMW��==i���c����z�$Y��m�: �hj��TLd��XZq$��8m8'mqT�� ]�FS:>)}R�E�W<�p�d�˄�!zcz��^�Gt�0��D1;��a��S"~ E����Z �r�,� ��(�e��M��e@����g2Je�L^�0Um�*cU��9�t�Ӽ<S+j�jU�Ơ˦����}PK }5�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 }5�Z>pK�� M xl/sharedStrings.xml � (� e��j�0�_E��HN��� )�����6��^9�Ui߾.�P���������eV��t��Z! �y;�z:f�V,@�@��/d�}�,jC�;=�����0��+Җ�C\@6G�kDp<!�2����Y��VCH$�.�J�/ ��6��V�I��[����OI��c|L�]�o=Ѐ7=�0F䛾��0�weV4��|ϳ�*�����Ճs��9��o�l��PK- }5�ZRH�� 5 xl/workbook.xmlPK- }5�Z���� � [Content_Types].xmlPK- }5�Z[��e' ' V _rels/.relsPK- }5�Zi�GCm ! � xl/worksheets/sheet1.xmlPK- }5�Zx���� P � xl/_rels/workbook.xml.relsPK- }5�ZЃc'2 E � xl/styles.xmlPK- }5�Z>pK�� M A xl/sharedStrings.xmlPK � h