POST api/invoices/complete
API to complete multiple invoices
Request Information
URI Parameters
None.
Body Parameters
Invoice Identifiers
CompleteInvoicesRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| InvoiceIdentifiers | Collection of 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:
{
"invoiceIdentifiers": [
"d01d3e7c-7c48-47e8-a16b-b4b76002c8f8",
"a5e3f69d-557b-45b1-8030-94e5630072f2"
],
"updateInventory": 0,
"updateInvoiceCost": true,
"costIncludesFreight": true
}
application/xml, text/xml
Sample:
<CompleteInvoicesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Invoices">
<CostIncludesFreight>true</CostIncludesFreight>
<InvoiceIdentifiers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>d01d3e7c-7c48-47e8-a16b-b4b76002c8f8</d2p1:guid>
<d2p1:guid>a5e3f69d-557b-45b1-8030-94e5630072f2</d2p1:guid>
</InvoiceIdentifiers>
<UpdateInventory>AsIs</UpdateInventory>
<UpdateInvoiceCost>true</UpdateInvoiceCost>
</CompleteInvoicesRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Result records if any invoices are unable to complete
Collection of 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:
[
{
"$id": "1",
"status": 0,
"identifierGuid": "a7774ffa-c2e0-4b12-b089-94f268f26a8c",
"variance": true
},
{
"$ref": "1"
}
]
application/xml, text/xml
Sample:
<ArrayOfCompleteInvoiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Invoices">
<CompleteInvoiceResult>
<IdentifierGuid>a7774ffa-c2e0-4b12-b089-94f268f26a8c</IdentifierGuid>
<Status>InProgress</Status>
<Variance>true</Variance>
</CompleteInvoiceResult>
<CompleteInvoiceResult>
<IdentifierGuid>a7774ffa-c2e0-4b12-b089-94f268f26a8c</IdentifierGuid>
<Status>InProgress</Status>
<Variance>true</Variance>
</CompleteInvoiceResult>
</ArrayOfCompleteInvoiceResult>
text/csv
Sample:
Sample not available.
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK ��\��ݠ� 5 xl/workbook.xml � (� ����0��&�C���Xp��Ճ��m�?ik��-%�x�3;���qCc̀>j�>w%!�
P��w�q��(���-Ԧ}+Ё��L�<H�������[�� �qA).5��;����S�䓌�Zw6YB�7U$�v��\A�k8Fɹw%��\��Ѱt��z�W�7�+����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="Rf941b89d8763478b" /></Relationships>PK ��\�h��{ � xl/worksheets/sheet1.xml � (� ��Qo�0ǿJ��Qh��Ә�m����A�FJI[ŏ�R:0q/����w@�<���\6)<����.�S>��2K:���b� �7z�RX�.�y�՞lYcs�T�{U;$˒�l#�`�A��c�XM���o5<W�O-�*Fׂ�ϥ�
̒���}�@�2��`�&�,q�'g���A?ɷ����V��w,��[g��@�Jz�͇�^�U�.)r�\��=���� ��Ύ�����8$���x��m���������ǃ��ޜ8�ς�p���EO���~���:tn�ͺ��f��P.m���ʆ�m�������c��/S"�K��d-_|��
�N�p�;%�����K�N�������W��fj+�aʽ��G�~ PK ��\����� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8·&�n7lؖ^���q�Ķl��Xp$��U$H%l����I3�����<�qt�+J h�S�8����`�Y�p)OD3�H�LJ���(
�"Σ���,RN�@��G1 ���%��d����z����iF�� �W�� & {L~J�^+2ȓ�;�=*��U��a]��L-�����;_���f%ʺTM���P=��/�tZ�j�RR�+d��j�^^���_l� 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 ��\3}��� M xl/sharedStrings.xml � (� e��j�0DE���1�v��
������^9�Ui��*�P��f���?�E}``���]�������o秬ъh��v�Y�c�2�J(q�g����3��;�!�d�aI2L���0�(�b�<��
���>�t��*��F|�ө�����5ҷ���u�$q��p�n�M�!8 �w�?�P�u9������7��P�Eդ���2��5��G�
PK- ��\��ݠ� 5 xl/workbook.xmlPK- ��\���� � [Content_Types].xmlPK-
��\!&\' ' V _rels/.relsPK- ��\�h��{ � � xl/worksheets/sheet1.xmlPK- ��\����� P � xl/_rels/workbook.xml.relsPK- ��\Ѓc'2 E
� xl/styles.xmlPK- ��\3}��� M N xl/sharedStrings.xmlPK � v
application/vnd.ms-excel
Sample:
PK ��\��� 5 xl/workbook.xml � (� ����0��&�C��T�R8q���{��4П�5���H�yۙ��v�l��3����/]��lI��Pܟ�w�8�C��E����to:�s�]���i���x������� Դ����Bli��0�$���]LD��M��/�B�+�p��(9���#W�8<�F�9msQ�K�w�cd�]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="R518be9eadb224aa9" /></Relationships>PK ��\�h��{ � xl/worksheets/sheet1.xml � (� ��Qo�0ǿJ��Qh��Ә�m����A�FJI[ŏ�R:0q/����w@�<���\6)<����.�S>��2K:���b� �7z�RX�.�y�՞lYcs�T�{U;$˒�l#�`�A��c�XM���o5<W�O-�*Fׂ�ϥ�
̒���}�@�2��`�&�,q�'g���A?ɷ����V��w,��[g��@�Jz�͇�^�U�.)r�\��=���� ��Ύ�����8$���x��m���������ǃ��ޜ8�ς�p���EO���~���:tn�ͺ��f��P.m���ʆ�m�������c��/S"�K��d-_|��
�N�p�;%�����K�N�������W��fj+�aʽ��G�~ PK ��\��k}� P xl/_rels/workbook.xml.rels � (� ��Kn�0@�b;�MLD+�n�.��8�H��6-����W�E�6H]t�j4��'�|����q �S|�b@��`zߵp��a��z���e"�~J���Ԃ�yz�4i��LU�З�
q�������G�!]0��8g�-�.����5>}��?��-�cr��A�s?�D��W�
�Ŵ�����5W�|��л��|0�z}�3��2�-k&k�4�2NF4�˥�N��LM(-U���h^���_l� 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 ��\3}��� M xl/sharedStrings.xml � (� e��j�0DE���1�v��
������^9�Ui��*�P��f���?�E}``���]�������o秬ъh��v�Y�c�2�J(q�g����3��;�!�d�aI2L���0�(�b�<��
���>�t��*��F|�ө�����5ҷ���u�$q��p�n�M�!8 �w�?�P�u9������7��P�Eդ���2��5��G�
PK- ��\��� 5 xl/workbook.xmlPK- ��\���� � [Content_Types].xmlPK-
��\���' ' V _rels/.relsPK- ��\�h��{ � � xl/worksheets/sheet1.xmlPK- ��\��k}� P � xl/_rels/workbook.xml.relsPK- ��\Ѓc'2 E
� xl/styles.xmlPK- ��\3}��� M N xl/sharedStrings.xmlPK � v