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
CompleteInvoiceRequest| Name | 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": "c01b9ea1-096b-4375-8bf4-290d464c4ae5",
"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>c01b9ea1-096b-4375-8bf4-290d464c4ae5</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
CompleteInvoiceResult| Name | 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": "036c6cc5-2180-46c9-8a0a-57a8d5f13a37",
"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>036c6cc5-2180-46c9-8a0a-57a8d5f13a37</IdentifierGuid> <Status>InProgress</Status> <Variance>true</Variance> </CompleteInvoiceResult>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK ���\T�>�� 5 xl/workbook.xml � (� ����0D�&�C���@)��x��}[i�-ik��-H�yۙ�};|������W�.��`�7j�';��;i���{1+�j���[� �$9s8@P��N����X~t���V�ehu<��fO��_d4���I�b�)����EKZC J�ޖ�L�+TB�7q���Td��������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
���\��O�' ' _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="R0f6c9330e2314e33" /></Relationships>PK ���\-~|�l " xl/worksheets/sheet1.xml � (� ��_o� ſ
�}���mԦk�lo��g�XIE`���s]]���%��9�ސl��*M
=Dž�6�(XsJa�ˇ�fI/�YU�j`�Fmd
+��
B*�('�-m�])$'�� ��d9=�����n�$��6Q�b�����T+))l��8a
̒���{ i���cP�X���^��`��C��px.R�Z-�
���%�j�*�'�N�6K
�&��_�ٰ:8���
]��u"�q�C7�� ��SZ�����e��I�g�;�G~�p�ÿ����g���7¿��ؾ��@4�)z �q��)�ݐZ�U_27A�A;�K��I�� d"�\����.wIw�K"��E7�W�qQyBSi�3?��PK ���\��� P xl/_rels/workbook.xml.rels � (� ��An� E��f_Cl�u��l��6��x0Vl����ٺ�z��Fj��n�B���f�|�Xo�Ɓ�ɇ�Y �L #�\��N�)�������F0�Xzb����yP�F��Ȧ�v~ĘJ�� �;��s�2��2��N�^ѳS��l��_�?C��w%�D��,Q��Z �%aEuS���Y6����B�~���L���UA5�U������ԾD�6=w��3��TQբUJ<���Ή����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 ���\x�;� M xl/sharedStrings.xml � (� e�AK�0��JȽ���v��݃�x\�?��6оԼ�oE�=��L{�\f���C�N�wV+$}��ӯ燢ъ�� ;���թo�Em(q�'���v.���"m����4^�� Q�������r1�t��*Sx�x����зҿH��Hߚ��}�H���1��A
@�(zNqL�W}��]�\U��-njw[4`�����jؗP/�s����G�
PK- ���\T�>�� 5 xl/workbook.xmlPK- ���\���� � � [Content_Types].xmlPK-
���\��O�' ' U _rels/.relsPK- ���\-~|�l " � xl/worksheets/sheet1.xmlPK- ���\��� P xl/_rels/workbook.xml.relsPK- ���\Ѓc'2 E
� xl/styles.xmlPK- ���\x�;� M ? xl/sharedStrings.xmlPK � f
application/vnd.ms-excel
Sample:
PK ���\lv� 5 xl/workbook.xml � (� ����0D�&�C����N\�z��bhK��|�o�vfg����kcz�Q�v�-��~�s�@�dF��3V���}1�u���4o�ڳ$�2fq /�vB����Xn���^
+J�Դ<�K����9[��$l
����"(�AaA+�@Ip�mAcJl.���b|�!��ir�ѝ��8�~�_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
���\��L@' ' _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="R6c716854e99444eb" /></Relationships>PK ���\-~|�l " xl/worksheets/sheet1.xml � (� ��_o� ſ
�}���mԦk�lo��g�XIE`���s]]���%��9�ސl��*M
=Dž�6�(XsJa�ˇ�fI/�YU�j`�Fmd
+��
B*�('�-m�])$'�� ��d9=�����n�$��6Q�b�����T+))l��8a
̒���{ i���cP�X���^��`��C��px.R�Z-�
���%�j�*�'�N�6K
�&��_�ٰ:8���
]��u"�q�C7�� ��SZ�����e��I�g�;�G~�p�ÿ����g���7¿��ؾ��@4�)z �q��)�ݐZ�U_27A�A;�K��I�� d"�\����.wIw�K"��E7�W�qQyBSi�3?��PK ���\6�X�� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8i�4AM�a�m���$��ؖ�z6�+`��ĂMW��==i���}�}�Fv&��Ȓii�A�
�B�P�v��ӈ!Nx5X���
��#�^*��'ƒ��θ CL]�-�#��iZr7g�-�.��C4]7Hz2�4����qG�����B?%ϯ!K"خm`�R�,UeQ,V50~75.#�_��|&�%�V��N��Z�]e:j�����;��35��\�r�BP���U�����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 ���\x�;� M xl/sharedStrings.xml � (� e�AK�0��JȽ���v��݃�x\�?��6оԼ�oE�=��L{�\f���C�N�wV+$}��ӯ燢ъ�� ;���թo�Em(q�'���v.���"m����4^�� Q�������r1�t��*Sx�x����зҿH��Hߚ��}�H���1��A
@�(zNqL�W}��]�\U��-njw[4`�����jؗP/�s����G�
PK- ���\lv� 5 xl/workbook.xmlPK- ���\���� � � [Content_Types].xmlPK-
���\��L@' ' U _rels/.relsPK- ���\-~|�l " � xl/worksheets/sheet1.xmlPK- ���\6�X�� P xl/_rels/workbook.xml.relsPK- ���\Ѓc'2 E
� xl/styles.xmlPK- ���\x�;� M > xl/sharedStrings.xmlPK � e