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
InvoiceCreditDetailsRequest| Name | 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": "yE776zXBFECafPdcdpwkpA==",
"creditNoteGuid": "ebfb4ec8-c135-4014-9a7c-f75c769c24a4",
"invoiceIdentifier": "orP1i4r3wE67haS8k5G2Nw==",
"invoiceIdentifierGuid": "8bf5b3a2-f78a-4ec0-bb85-a4bc9391b637",
"detailIdentifiers": [
"5b19e54f-a49f-4d27-902b-0e0f37149e7e",
"080f2b40-77bd-410c-ae89-d901e6d36364"
],
"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>ebfb4ec8-c135-4014-9a7c-f75c769c24a4</CreditNoteGuid>
<CreditNoteIdentifier>yE776zXBFECafPdcdpwkpA==</CreditNoteIdentifier>
<DetailIdentifiers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>5b19e54f-a49f-4d27-902b-0e0f37149e7e</d2p1:guid>
<d2p1:guid>080f2b40-77bd-410c-ae89-d901e6d36364</d2p1:guid>
</DetailIdentifiers>
<InvoiceIdentifier>orP1i4r3wE67haS8k5G2Nw==</InvoiceIdentifier>
<InvoiceIdentifierGuid>8bf5b3a2-f78a-4ec0-bb85-a4bc9391b637</InvoiceIdentifierGuid>
<Reason>1</Reason>
</InvoiceCreditDetailsRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.