POST api/invoices/complete

API to complete multiple invoices

Request Information

URI Parameters

None.

Body Parameters

Invoice Identifiers

CompleteInvoicesRequest
NameDescriptionTypeAdditional 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": [
    "a2c93ce2-d45a-48d0-931d-b501e80b3041",
    "9d50876b-5781-481c-814b-561753a07f0e"
  ],
  "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>a2c93ce2-d45a-48d0-931d-b501e80b3041</d2p1:guid>
    <d2p1:guid>9d50876b-5781-481c-814b-561753a07f0e</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
NameDescriptionTypeAdditional 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": "7805c3a7-7875-4049-91ec-a8fac53ddfe0",
    "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>7805c3a7-7875-4049-91ec-a8fac53ddfe0</IdentifierGuid>
    <Status>InProgress</Status>
    <Variance>true</Variance>
  </CompleteInvoiceResult>
  <CompleteInvoiceResult>
    <IdentifierGuid>7805c3a7-7875-4049-91ec-a8fac53ddfe0</IdentifierGuid>
    <Status>InProgress</Status>
    <Variance>true</Variance>
  </CompleteInvoiceResult>
</ArrayOfCompleteInvoiceResult>

text/csv

Sample:

Sample not available.

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Sample:
PKc2�Z{D?/�5xl/workbook.xml �(�����0��&�C���i")��x��}��4П�5��B	$޼���~;|2nx3���/]E�lɘo{T�OƢ�w�q
�,݋���-6�}+ԁeIraG�h�K��J���C�Gj\Q
����@_�=$N>����.&ak���x��Q
+�@J�sM)q���{"��5/�y�f�	��;���w�PKc2�Z����	�[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
c2�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="R7caada7473e647a1" /></Relationships>PKc2�Z*Jc%{�xl/worksheets/sheet1.xml �(����r�0�_%�{IHD�8V�io��s
A2�$Q|��hт��B6�߿����$kp��դ00��U!�m
�|��E��J�LŹo�\���v?G����j��+��̺��"U�"�k�$o,"O��5���Tbo��j����-��\J2��,)���u4/S��+
��ޚ�t�|*��./E
�g��x�W
^�Cm�T��Ŷ�nI���6�	��V�d'�����p0%�$��8�@��U����r֓���z�Gaų����=���A8�S�աs�~�5�,K�j��iW���.4~Cnh�V}�p����B<���'��'���}�՗�4t�;&&�1���W_�������/��y�>j�7JY��[���PKc2�Z5rT�Pxl/_rels/workbook.xml.rels �(���An� E�������
ɦ�n�\���X�i��u�#�
E����n�B���h�|�Xoߖ�@���7U�X��dG�Oi��x�Y�`�)߈f��'6
lR��De`��rl�.,2�2��Ku�#Z�=	%_3����?D7��G�N�����p� a��a�$�O��h�L��I��5=�Zֵ��L�<>��ZL���w]Ȱ�k�1ɻ�=���@?��7]:�q��+NW�S�^^��տ�|PKc2�ZЃc'2E
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��PKc2�Z6�z7�Mxl/sharedStrings.xml �(�e��j�0DE��Hi��	�s(��Vh��"�m��r����}]J�$Ǚ���4��yR�8Dj�vc�Br�Z�zy(j�X�<L���_�Z���YԊ�zYNưq��iM��f�U���<��2O��ڃ�!�V.f�V���3���u t�t/��1�5���u�<��>`z��_�o�����S�M_U���*��*�����]u��yߣ�f.)�[0��7PK-c2�Z{D?/�5xl/workbook.xmlPK-c2�Z����	�[Content_Types].xmlPK-
c2�Z��''V_rels/.relsPK-c2�Z*Jc%{��xl/worksheets/sheet1.xmlPK-c2�Z5rT�P�xl/_rels/workbook.xml.relsPK-c2�ZЃc'2E
�xl/styles.xmlPK-c2�Z6�z7�MOxl/sharedStrings.xmlPK�v	

application/vnd.ms-excel

Sample:
PKc2�Z��{ö5xl/workbook.xml �(�����0D�&�C��hP+)��x��}-�m�-ik��I�yۙ�};bt�{8ב��m(|IU�C�X�

���N��yq���\�j���/�6�C�����v6(=���a��#4A!F�/(��j�!D���ǐ�d|��&aK���D��IKZCJ�smJ���zn��<�3�
�y�/te�0����PKc2�Z����	�[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
c2�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="R99060b2570e4400f" /></Relationships>PKc2�Z*Jc%{�xl/worksheets/sheet1.xml �(����r�0�_%�{IHD�8V�io��s
A2�$Q|��hт��B6�߿����$kp��դ00��U!�m
�|��E��J�LŹo�\���v?G����j��+��̺��"U�"�k�$o,"O��5���Tbo��j����-��\J2��,)���u4/S��+
��ޚ�t�|*��./E
�g��x�W
^�Cm�T��Ŷ�nI���6�	��V�d'�����p0%�$��8�@��U����r֓���z�Gaų����=���A8�S�աs�~�5�,K�j��iW���.4~Cnh�V}�p����B<���'��'���}�՗�4t�;&&�1���W_�������/��y�>j�7JY��[���PKc2�Zϋ�n�Pxl/_rels/workbook.xml.rels �(���KN�0@�b͞�MM⠦ݰa[z��=N�&vd�@�Ƃ#q�"A*�`��h~OO��|���ަ��P��w-�
���fp]�d�춛=���D�9���b}J��Q�4a,�L.w�����Ϩ��/��xX2����C����>M��`���1�D	�CG���R䗰*2ؓia����Q��T
0~3���#�_��|!S�����X�Z�Mezd�Sȗ^:-�5jt�`����\��Ư�b�PKc2�ZЃc'2E
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��PKc2�Z6�z7�Mxl/sharedStrings.xml �(�e��j�0DE��Hi��	�s(��Vh��"�m��r����}]J�$Ǚ���4��yR�8Dj�vc�Br�Z�zy(j�X�<L���_�Z���YԊ�zYNưq��iM��f�U���<��2O��ڃ�!�V.f�V���3���u t�t/��1�5���u�<��>`z��_�o�����S�M_U���*��*�����]u��yߣ�f.)�[0��7PK-c2�Z��{ö5xl/workbook.xmlPK-c2�Z����	��[Content_Types].xmlPK-
c2�Z��}�''U_rels/.relsPK-c2�Z*Jc%{��xl/worksheets/sheet1.xmlPK-c2�Zϋ�n�P�xl/_rels/workbook.xml.relsPK-c2�ZЃc'2E
�xl/styles.xmlPK-c2�Z6�z7�MLxl/sharedStrings.xmlPK�s