POST api/invoices/complete
API to complete multiple invoices
Request Information
URI Parameters
None.
Body Parameters
Invoice Identifiers
CompleteInvoicesRequestName | 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": [ "10af2e1a-6fca-4126-8622-1742bbdc8c5a", "124c0a0c-a71e-4f0b-8469-4b3fe20a39e5" ], "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>10af2e1a-6fca-4126-8622-1742bbdc8c5a</d2p1:guid> <d2p1:guid>124c0a0c-a71e-4f0b-8469-4b3fe20a39e5</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 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:
[ { "$id": "1", "status": 0, "identifierGuid": "ecc31744-ed41-4541-9bc0-ce8b3353083b", "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>ecc31744-ed41-4541-9bc0-ce8b3353083b</IdentifierGuid> <Status>InProgress</Status> <Variance>true</Variance> </CompleteInvoiceResult> <CompleteInvoiceResult> <IdentifierGuid>ecc31744-ed41-4541-9bc0-ce8b3353083b</IdentifierGuid> <Status>InProgress</Status> <Variance>true</Variance> </CompleteInvoiceResult> </ArrayOfCompleteInvoiceResult>
text/csv
Sample:
Sample not available.
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK �D[� >� 5 xl/workbook.xml � (� ����0��&�C���"N\�z�ҭ4Ж�5���H�yۙ��v�Ѻ�imG>�7>w%mCr�|Ӣ������iQ��R�kۼ5��������5�U��3����-b���Ҡ��B���C�蓌�Rw2 �C�7U$�z�1���5�$97QRN��U�\�ӕK!����^a[~W_PK �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 �D[b5' ' _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="R97aa843283d34ee3" /></Relationships>PK �D[�O�z � xl/worksheets/sheet1.xml � (� ��Qo�0ǿJ����":�1�۲���"������:t`�^�5�����dq�58rm�jR���6�[>��"KZ�w����7f�SXY��#d�Kf��˕JKf�Uo�*K����7�c�yͬ�2��x���Zf�9+|�>��L40K �w���.���B���ß���&�$�J��[�B�Y4�7��]����P�վr���[��krU�Rt��@��?[Q��E8�ID�S2��4� ��*�uI�V9��EOz=��$�RJ�g�=��i���drW����Y�̲,Ѫڧ]�.Z��� ���[�1� :v��2&¿�jL��@β�%W_2�Ё�cbrߗ^}�C�11�C_t���}�\o��\����h�PK �D[����� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞�NBIP�nذ-��`�㨉�.г��H\�H�J,�t5��ӓf>�?�۷id/��]���)��wpL榁�f��S��v�#�+.v`S��9��҄��3��1>L�rz>�:`O�b�Ò�L�?���7fP���q"�� �W�%`{=�~J���,2أ�`'��m�Ѧ²�w�_M-��H���;_�4hS )�֫��X��Rȗ^:-��J�mEu+u��ύ:���|PK �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 �D[e � M xl/sharedStrings.xml � (� e��j�0DE��Ȯ�� �s(��Vhڻ,ml��r����}B�$���������2�/��v�ڔR ��<��|?>����B'��8��EF�:91�{��N�ڄ0'��Y�Q��8� x��]Y��b<JaCB��N���3�����ܿ��DZq��ٹ�/���C|N�]�&z�n(|�a�@7��ں�o�\S�6������v��m]��p�c�נ��/PK- �D[� >� 5 xl/workbook.xmlPK- �D[���� � � [Content_Types].xmlPK- �D[b5' ' U _rels/.relsPK- �D[�O�z � � xl/worksheets/sheet1.xmlPK- �D[����� P � xl/_rels/workbook.xml.relsPK- �D[Ѓc'2 E � xl/styles.xmlPK- �D[e � M K xl/sharedStrings.xmlPK � s
application/vnd.ms-excel
Sample:
PK �D[a��`� 5 xl/workbook.xml � (� ����0��&�òp*D�N\�z�^Fql#�>��7O������Ѻ���#�������1/$j�;����: !J�b�m��ʊ�F��x�0�=e��j�t����Ch�D�_P���~G�>{*�,���;��-!���3lۘ1����dv�MAO��\��qM�,m�-�:� �{�q��.�PK �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 �D[Q��' ' _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="Rbf0ba2f712244152" /></Relationships>PK �D[�O�z � xl/worksheets/sheet1.xml � (� ��Qo�0ǿJ����":�1�۲���"������:t`�^�5�����dq�58rm�jR���6�[>��"KZ�w����7f�SXY��#d�Kf��˕JKf�Uo�*K����7�c�yͬ�2��x���Zf�9+|�>��L40K �w���.���B���ß���&�$�J��[�B�Y4�7��]����P�վr���[��krU�Rt��@��?[Q��E8�ID�S2��4� ��*�uI�V9��EOz=��$�RJ�g�=��i���drW����Y�̲,Ѫڧ]�.Z��� ���[�1� :v��2&¿�jL��@β�%W_2�Ё�cbrߗ^}�C�11�C_t���}�\o��\����h�PK �D[z;�~� P xl/_rels/workbook.xml.rels � (� ��Kn�0@�b;qHLH� �n)�g�D$�eZ��E��+ԢR�.�a5��ӓf>�?6��i$�a���E�A#�L��9�v��G�D�HZ1��>F��4�'2�Ф��~�1������y^Q?g�=���C�Z�V�'4�0}��z���}����R����ȳj�*EÔ�S��%�0��#�_��|&#ϋ��\*���Cez�Q�D�.=w��gju�*�*�h�+�M�����PK �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 �D[e � M xl/sharedStrings.xml � (� e��j�0DE��Ȯ�� �s(��Vhڻ,ml��r����}B�$���������2�/��v�ڔR ��<��|?>����B'��8��EF�:91�{��N�ڄ0'��Y�Q��8� x��]Y��b<JaCB��N���3�����ܿ��DZq��ٹ�/���C|N�]�&z�n(|�a�@7��ں�o�\S�6������v��m]��p�c�נ��/PK- �D[a��`� 5 xl/workbook.xmlPK- �D[���� � � [Content_Types].xmlPK- �D[Q��' ' U _rels/.relsPK- �D[�O�z � � xl/worksheets/sheet1.xmlPK- �D[z;�~� P � xl/_rels/workbook.xml.relsPK- �D[Ѓc'2 E � xl/styles.xmlPK- �D[e � M L xl/sharedStrings.xmlPK � t