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": [
"88f10aad-0692-47ba-b26e-a14d53fb5c1d",
"3c9ab363-a7ec-4c89-9b1d-8910547cd06e"
],
"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>88f10aad-0692-47ba-b26e-a14d53fb5c1d</d2p1:guid>
<d2p1:guid>3c9ab363-a7ec-4c89-9b1d-8910547cd06e</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": "3af43b38-b880-49d5-a610-69f07337781d",
"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>3af43b38-b880-49d5-a610-69f07337781d</IdentifierGuid>
<Status>InProgress</Status>
<Variance>true</Variance>
</CompleteInvoiceResult>
<CompleteInvoiceResult>
<IdentifierGuid>3af43b38-b880-49d5-a610-69f07337781d</IdentifierGuid>
<Status>InProgress</Status>
<Variance>true</Variance>
</CompleteInvoiceResult>
</ArrayOfCompleteInvoiceResult>
text/csv
Sample:
Sample not available.
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK ��\Jᵶ 5 xl/workbook.xml � (� ����0��&�C���(QR8q����R�@[�����O ��mgv����]�\G>��!�U19cA*4Nn@;�Z�
�I�sm�%VN�
��x�d�cQ;�]i��������W�miy<"�fO�cX�dlug��5�~Sb���"���,ν)hJ���4<�������ӝ���~�_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
��\B�.=' ' _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="R53d3a24500964fc7" /></Relationships>PK ��\��|hy � xl/worksheets/sheet1.xml � (� ��Qo� ��
�}��mרMצ�ޖ=l�L����ڟ?��v���"��s.W�W'Q�#S��:���!`u&s^�ؚ�aWi�Iu�%cX��K��Ҙf���J&��d�j{VH%��[�G�(xƶ2k�
"ϐb56J������/�(Fsׂ��V���qέ{�=P�H��_nP;���N_ՠ�ɧ��~�';M�U gm+�&�g����C��&��vO x?:=���)m�� ���Dx6�C�V)>��o���z2ꃅG���#�<��(���HtW��ݻ�n��i�d�;��}���v�w�v�����k�iJ�?�͔ #�l�K.�d� nr�Dx�;%����%7�3wJ��N��\t5��~�L�4L��2�g�PK ��\T�a
� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞�1I���ݰa[z��3��&vd�@�Ƃ#q,*A*�`��h~OO��|���ަ�����
� FV�n�}���j�m7{1��`�9��bC&����M27�M���1���3�#�ĥ�K\3��<��N�AѣS��l��_�?C����)��,Q�=u
챕RSN�Zօ*%0~3��#�_�K��Y�a)d����U�2=u�ѧK/���ZU��V��BY
/j��/�_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�AK�0��JȽ��]���v��Mp���ym�K�{��VD{�f>���1O�#�@���VH]p��F�\�J+ S l�'�V�f�V�=�,'c�qޅiM�g�U�����2O������I�.$�FZ%�o �~�
�m-��$�����v~�G�$���w��W���M��b"�f/���_�*�V��Gw�A��Yq�m��eY�7�KLf���PK- ��\Jᵶ 5 xl/workbook.xmlPK- ��\���� � � [Content_Types].xmlPK-
��\B�.=' ' U _rels/.relsPK- ��\��|hy � � xl/worksheets/sheet1.xmlPK- ��\T�a
� P � xl/_rels/workbook.xml.relsPK- ��\Ѓc'2 E
� xl/styles.xmlPK- ��\� [� M J xl/sharedStrings.xmlPK � r
application/vnd.ms-excel
Sample:
PK ��\NF߷ 5 xl/workbook.xml � (� ����0D�&�C��`@#)��x��})[i�-ik��-H�yۙ�};|��o���G���]c��j�';��;i���{1+�X[��h;'Ʌ9 (k|�FOW�?,?:��w�A+J�2�:�s����/2[��$l
��_`���%�! %�soK�R�
�G��U��*���yCw��l�]}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="Rc2861cac0b5643f2" /></Relationships>PK ��\��|hy � xl/worksheets/sheet1.xml � (� ��Qo� ��
�}��mרMצ�ޖ=l�L����ڟ?��v���"��s.W�W'Q�#S��:���!`u&s^�ؚ�aWi�Iu�%cX��K��Ҙf���J&��d�j{VH%��[�G�(xƶ2k�
"ϐb56J������/�(Fsׂ��V���qέ{�=P�H��_nP;���N_ՠ�ɧ��~�';M�U gm+�&�g����C��&��vO x?:=���)m�� ���Dx6�C�V)>��o���z2ꃅG���#�<��(���HtW��ݻ�n��i�d�;��}���v�w�v�����k�iJ�?�͔ #�l�K.�d� nr�Dx�;%����%7�3wJ��N��\t5��~�L�4L��2�g�PK ��\� �I� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞�I�&��ݰa[z��=��&vd�@�Ƃ#q�"A*�`��h~OO��|���ަ�����-� FV:5ؾ�S�w
춛=��D0�XZ�����y��&��ɦ�v~R���{�k��f��y���փ�G'O����:�(;��)��S
��,Q�=����Zˮ�"�/���o��y�����/d�F��EU�T�2=���ӥ�N��R
E�R
e��J��E�_���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�AK�0��JȽ��]���v��Mp���ym�K�{��VD{�f>���1O�#�@���VH]p��F�\�J+ S l�'�V�f�V�=�,'c�qޅiM�g�U�����2O������I�.$�FZ%�o �~�
�m-��$�����v~�G�$���w��W���M��b"�f/���_�*�V��Gw�A��Yq�m��eY�7�KLf���PK- ��\NF߷ 5 xl/workbook.xmlPK- ��\���� � [Content_Types].xmlPK-
��\��Ξ' ' V _rels/.relsPK- ��\��|hy � � xl/worksheets/sheet1.xmlPK- ��\� �I� P � xl/_rels/workbook.xml.relsPK- ��\Ѓc'2 E
� xl/styles.xmlPK- ��\� [� M K xl/sharedStrings.xmlPK � s