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": "ebd6445b-9134-41ce-80d1-a8686affe448",
"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>ebd6445b-9134-41ce-80d1-a8686affe448</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": "2ddb618f-d7aa-4901-bfc5-63681803a17f",
"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>2ddb618f-d7aa-4901-bfc5-63681803a17f</IdentifierGuid> <Status>InProgress</Status> <Variance>true</Variance> </CompleteInvoiceResult>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK �1�\�<�� 5 xl/workbook.xml � (� ����0��&�C���TR8q���{ii�?ik��-%�x�3;������v@=�P�
�1��� z�<��v����$��خS+�L$�� F�5�W.��+8\� �qAi���;����`
Y&c�;��,!�b�]d��P�G�Qv��#_�4<(�T���^$�����w�PK �1�\���� � [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
�1�\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="R816e565a254145ad" /></Relationships>PK �1�\R�GHl " xl/worksheets/sheet1.xml � (� ��_O�0ſJ�wi)��,sˢo�}�PF3JIۍ}|KA�a�/p���9��4�\E.Li.������,y{���Tw+���^���3��^���tk�tQ3A�';�ڻJ*A�=�#�U����Y�� �q�k��Q�杆���t�-]���-�Ӓ[��{�X�����P�:���^��0ɻ����Tf;-�V�d=7�E���kc�9M!�@�auzu������bIB"'~Aq�F�����eԓIOf}�x��:�8�����&}0��=?�1�~ա�}7���J�@�k�:T[[j�!;�����8E�A;K��I�� d#�\�K��&wI�7�K"��E�f���b� �a�mg~��PK �1�\W[�� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8N#'EM��m�&�8��ؑ�=�����ĂMW��==i���c�{�F�B>�6 �Y��`���<�n4bL���Ҋ
�1Ώ��ӄ!s3��1�OS�;>�:aG��s����Lv����3fP�w�<�������E`G��~J�_��ؓn� ���\K�E[�����e�����/dV�@,L-�l�u��U�GO�9�t�Ӳ�PS%JQմ*CW5~��/PK �1�\Ѓ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 �1�\�H�� M xl/sharedStrings.xml � (� e��N�0D��=u҂��= ��!Q�o�Mb)Y�����P{��i���<�L"��ڔZ!u�Z�zz(j�X�<L���_�Z]�,jE�[=�,c�q��iM��f�U���<��2Of[���H�.f�V[�2����z��" �#�1?ί��$��c�2}��:���9�!!_�m�?۪��(n�ʪ8��maw���rվ�dN)�[0��PK- �1�\�<�� 5 xl/workbook.xmlPK- �1�\���� � [Content_Types].xmlPK-
�1�\Z���' ' V _rels/.relsPK- �1�\R�GHl " � xl/worksheets/sheet1.xmlPK- �1�\W[�� P � xl/_rels/workbook.xml.relsPK- �1�\Ѓc'2 E
� xl/styles.xmlPK- �1�\�H�� M ? xl/sharedStrings.xmlPK � g
application/vnd.ms-excel
Sample:
PK �1�\ �
� 5 xl/workbook.xml � (� ����0��&�C��H
)��x��}�E�O�||K $���~;|�vl��GN������`̵Jp'mP�]���}1����Z�o�ʳ4Irfq/�r�0���X�X��
�^N+J�P�:�K����E���b���o�G�~Q ��5x�$:���gJl!��6�<C�f��Fw��l�]}PK �1�\���� � [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
�1�\��a' ' _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="Rbdd9ff8d1f54441a" /></Relationships>PK �1�\R�GHl " xl/worksheets/sheet1.xml � (� ��_O�0ſJ�wi)��,sˢo�}�PF3JIۍ}|KA�a�/p���9��4�\E.Li.������,y{���Tw+���^���3��^���tk�tQ3A�';�ڻJ*A�=�#�U����Y�� �q�k��Q�杆���t�-]���-�Ӓ[��{�X�����P�:���^��0ɻ����Tf;-�V�d=7�E���kc�9M!�@�auzu������bIB"'~Aq�F�����eԓIOf}�x��:�8�����&}0��=?�1�~ա�}7���J�@�k�:T[[j�!;�����8E�A;K��I�� d#�\�K��&wI�7�K"��E�f���b� �a�mg~��PK �1�\�k��� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8���AM��m�&�8��ؑ�=�����ĂMW��==i���c�{�F�B>�6 �Y��`���<�a��hĘ&B?́��c�9�� C�f��c��0��w|Fux���K�2��2��ΘA�ީ�D6��ΟBO��w�)~
"KT`O���B�J!�d[��x)�z}��ZH��cY�Z֪��L���s���K�ey�V��!��h٪��o�b�PK �1�\Ѓ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 �1�\�H�� M xl/sharedStrings.xml � (� e��N�0D��=u҂��= ��!Q�o�Mb)Y�����P{��i���<�L"��ڔZ!u�Z�zz(j�X�<L���_�Z]�,jE�[=�,c�q��iM��f�U���<��2Of[���H�.f�V[�2����z��" �#�1?ί��$��c�2}��:���9�!!_�m�?۪��(n�ʪ8��maw���rվ�dN)�[0��PK- �1�\ �
� 5 xl/workbook.xmlPK- �1�\���� � � [Content_Types].xmlPK-
�1�\��a' ' U _rels/.relsPK- �1�\R�GHl " � xl/worksheets/sheet1.xmlPK- �1�\�k��� P xl/_rels/workbook.xml.relsPK- �1�\Ѓc'2 E
� xl/styles.xmlPK- �1�\�H�� M = xl/sharedStrings.xmlPK � e