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": [ "9bc237cf-5ff0-4cf0-9761-3f8e55ba20ec", "8b08b5cd-0786-486d-944b-4a57e5e5c561" ], "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>9bc237cf-5ff0-4cf0-9761-3f8e55ba20ec</d2p1:guid> <d2p1:guid>8b08b5cd-0786-486d-944b-4a57e5e5c561</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": "e8f76e7a-9b71-4bed-a84a-c98fb89be2e0", "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>e8f76e7a-9b71-4bed-a84a-c98fb89be2e0</IdentifierGuid> <Status>InProgress</Status> <Variance>true</Variance> </CompleteInvoiceResult> <CompleteInvoiceResult> <IdentifierGuid>e8f76e7a-9b71-4bed-a84a-c98fb89be2e0</IdentifierGuid> <Status>InProgress</Status> <Variance>true</Variance> </CompleteInvoiceResult> </ArrayOfCompleteInvoiceResult>
text/csv
Sample:
Sample not available.
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK ��[�L�+� 5 xl/workbook.xml � (� ����0D�&�C���J '.^=x/���%m ~��7o;��o��h� �#��ٜJ1WK��p v-Z-|��ŰmU %�o Ƴ�xL��^x��I58���a���h��_PZ(C���>5{*�,��֝L�M��]̊�!����ٹ79=Qb3��%���j�*��u�Ѝ��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 ��[��_' ' _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="Rce3878f4e0f142b3" /></Relationships>PK ��[����{ � xl/worksheets/sheet1.xml � (� ���r�0�_%�{IH�8V�io��s A2�$Q|��hт��B6�߿����$kp��դ00��U!�m �|��E��J�LŹo�\���v?G����j��+��̺��"U�"�k�$o,"�H�Yge*�7�\�?��^sV�d}.%�h`��U���)\��� e���o�M�I>��u��"�سho���/١�o�}�b[Y���krU�Rt��@��?[Q��E8�ɄN�$��4�@��U����r֓���z: �E!i8���zz��^����������eY�U�O��]�t��rC��c�t��iL�?� =��e�K��d���11����/���?}���wL}���+�Qs�Q�r��J��e_PK ��[�jL� P xl/_rels/workbook.xml.rels � (� ��Kn� @��f_�mb;Q�l��6�0Ɗ ��9[=R�P�J�#u�M4��|xz����ݿM#yAg[�3�tj�}���EL�s � -�� �A�D�܌6M��=��<�i�XE���Lr�����z����yB� �W�O� F G�{�-����<KT O��ê(^v���5��B��e����]/d�Ԭ\ ���/�*c�G�}��Ӳ�P+���y �e��j��.v_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 ��[���� M xl/sharedStrings.xml � (� e��j�0�_E��� �?�r��� M{_[k[`���o_�R(�qf�f`���2���Y���Z!��y�~�<e�V,@�@h��V��a���VO"�1�O� ��%C��&�hx��'DYfs���,�I�>$���k��?� ����U@7F���8��C?x����m���xG�KcD���j(,!��r�;tTG��������-s��߂��h�PK- ��[�L�+� 5 xl/workbook.xmlPK- ��[���� � [Content_Types].xmlPK- ��[��_' ' V _rels/.relsPK- ��[����{ � � xl/worksheets/sheet1.xmlPK- ��[�jL� P � xl/_rels/workbook.xml.relsPK- ��[Ѓc'2 E � xl/styles.xmlPK- ��[���� M O xl/sharedStrings.xmlPK � v
application/vnd.ms-excel
Sample:
PK ��[�=�� 5 xl/workbook.xml � (� ����0D�&�C�p��p��Ճ��m�-ik��-H�yۙ�};|������G�箠2�1�D-�Ɏh⮳N��{��:�`e��F e,���/���J���G���1�aEi�-�B���p��Vw6 �!�M��_,�������Ź�M(q��Ã!K�&��-�/�ѝ��8l��/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 ��[�S�\' ' _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="Rb0f1fab86b974cff" /></Relationships>PK ��[����{ � xl/worksheets/sheet1.xml � (� ���r�0�_%�{IH�8V�io��s A2�$Q|��hт��B6�߿����$kp��դ00��U!�m �|��E��J�LŹo�\���v?G����j��+��̺��"U�"�k�$o,"�H�Yge*�7�\�?��^sV�d}.%�h`��U���)\��� e���o�M�I>��u��"�سho���/١�o�}�b[Y���krU�Rt��@��?[Q��E8�ɄN�$��4�@��U����r֓���z: �E!i8���zz��^����������eY�U�O��]�t��rC��c�t��iL�?� =��e�K��d���11����/���?}���wL}���+�Qs�Q�r��J��e_PK ��[P&�� P xl/_rels/workbook.xml.rels � (� ���n� @��`��N��K�4?@�0Vl@@���:��E���C���tw��C����f�6O�B�帮(F`�S�8>'����v��I�|#��G�Gl�ؤ�ׄDi`�rl�hf�r�<���%�d�[&:\<���%<:y���?��ՅS4 ��$�J�\C]e*FO��=�Zɠ_�dž-�����b�L���B�����ˎ��R��*cD ��B�t�T��N) y��m�|W5r�/�_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 ��[���� M xl/sharedStrings.xml � (� e��j�0�_E��� �?�r��� M{_[k[`���o_�R(�qf�f`���2���Y���Z!��y�~�<e�V,@�@h��V��a���VO"�1�O� ��%C��&�hx��'DYfs���,�I�>$���k��?� ����U@7F���8��C?x����m���xG�KcD���j(,!��r�;tTG��������-s��߂��h�PK- ��[�=�� 5 xl/workbook.xmlPK- ��[���� � � [Content_Types].xmlPK- ��[�S�\' ' U _rels/.relsPK- ��[����{ � � xl/worksheets/sheet1.xmlPK- ��[P&�� P � xl/_rels/workbook.xml.relsPK- ��[Ѓc'2 E � xl/styles.xmlPK- ��[���� M M xl/sharedStrings.xmlPK � t