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": "I+xSQnC7i0SeadLyPz1XOQ==",
"creditNoteGuid": "4252ec23-bb70-448b-9e69-d2f23f3d5739",
"invoiceIdentifier": "bUl8hc3L/0qC99oagcEw/w==",
"invoiceIdentifierGuid": "857c496d-cbcd-4aff-82f7-da1a81c130ff",
"detailIdentifiers": [
"f07ec625-2b6f-4c84-9d25-646b8d21a993",
"0608b37d-b4ca-4f9c-89ff-dda3c19b78f1"
],
"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>4252ec23-bb70-448b-9e69-d2f23f3d5739</CreditNoteGuid>
<CreditNoteIdentifier>I+xSQnC7i0SeadLyPz1XOQ==</CreditNoteIdentifier>
<DetailIdentifiers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>f07ec625-2b6f-4c84-9d25-646b8d21a993</d2p1:guid>
<d2p1:guid>0608b37d-b4ca-4f9c-89ff-dda3c19b78f1</d2p1:guid>
</DetailIdentifiers>
<InvoiceIdentifier>bUl8hc3L/0qC99oagcEw/w==</InvoiceIdentifier>
<InvoiceIdentifierGuid>857c496d-cbcd-4aff-82f7-da1a81c130ff</InvoiceIdentifierGuid>
<Reason>1</Reason>
</InvoiceCreditDetailsRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.