POST api/invoice/{guid}/creditNote/{id}/details
Create credit details from invoice
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
guid |
Invoice identifier |
globally unique identifier |
Required |
id |
Credit note identifier |
globally unique identifier |
Required |
Body Parameters
Collection of options for adding invoice details
InvoiceCreditDetailsRequestName | Description | Type | Additional information |
---|---|---|---|
CreditNoteIdentifier |
Credit note identifier of the credit note to add details to |
Collection of byte |
None. |
CreditNoteGuid | globally unique identifier |
None. |
|
InvoiceIdentifier |
The invoice identifier, of the invoice that the details are being added from |
Collection of byte |
None. |
InvoiceIdentifierGuid | globally unique identifier |
None. |
|
DetailIdentifiers |
The Invoice Detail identifiers of the lines to be transformed into credit details |
Collection of globally unique identifier |
None. |
Reason |
The reason that the lines need a credit note (affects some auto-filled fields) |
CreditDetailReason |
None. |
Request Formats
application/json, text/json
Sample:
{ "creditNoteIdentifier": "kc51Z0B3FkWcFX9QfA4VPw==", "creditNoteGuid": "6775ce91-7740-4516-9c15-7f507c0e153f", "invoiceIdentifier": "NsWbu7fvTEewZ1VIU9smJw==", "invoiceIdentifierGuid": "bb9bc536-efb7-474c-b067-554853db2627", "detailIdentifiers": [ "c76cdf74-6d99-4c21-8e5d-1157a967d608", "14c4cc71-411f-4432-9763-1e67592dcdbb" ], "reason": 1 }
application/xml, text/xml
Sample:
<InvoiceCreditDetailsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.CreditNotes"> <CreditNoteGuid>6775ce91-7740-4516-9c15-7f507c0e153f</CreditNoteGuid> <CreditNoteIdentifier>kc51Z0B3FkWcFX9QfA4VPw==</CreditNoteIdentifier> <DetailIdentifiers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>c76cdf74-6d99-4c21-8e5d-1157a967d608</d2p1:guid> <d2p1:guid>14c4cc71-411f-4432-9763-1e67592dcdbb</d2p1:guid> </DetailIdentifiers> <InvoiceIdentifier>NsWbu7fvTEewZ1VIU9smJw==</InvoiceIdentifier> <InvoiceIdentifierGuid>bb9bc536-efb7-474c-b067-554853db2627</InvoiceIdentifierGuid> <Reason>1</Reason> </InvoiceCreditDetailsRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.