| PUT | /api/debitNote/{DebitNoteId}/processed | Update debit note as customer processed, will also acknowledge credit note if not yet set. |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports DX.STF.Application.ClientApi.Messages.DebitNote
Imports DX.Framework.Core.Commands.Dto
Namespace Global
Namespace DX.Framework.Core.Commands.Dto
Public Partial Class TokenDto
Implements ICommandResponse
Public Overridable Property Token As Guid
End Class
End Namespace
Namespace DX.STF.Application.ClientApi.Messages.DebitNote
'''<Summary>
'''Debit Note
'''</Summary>
<Api(Description:="Debit Note")>
<ApiResponse(Description:="Command received", IsDefaultResponse:=true, ResponseType:=GetType(TokenDto), StatusCode:=202)>
Public Partial Class UpdateDebitNoteClientProcessed
'''<Summary>
'''Debit Note ID or Token
'''</Summary>
<ApiMember(Description:="Debit Note ID or Token", ParameterType:="path")>
Public Overridable Property DebitNoteId As Guid
'''<Summary>
'''Customer debit note reference in destination system
'''</Summary>
<ApiMember(Description:="Customer debit note reference in destination system")>
Public Overridable Property CustomerReference As String
'''<Summary>
'''Date and Time debit note was processed in destination system
'''</Summary>
<ApiMember(Description:="Date and Time debit note was processed in destination system")>
Public Overridable Property CustomerProcessedDate As Date
End Class
End Namespace
End Namespace
VB.NET UpdateDebitNoteClientProcessed DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /api/debitNote/{DebitNoteId}/processed HTTP/1.1
Host: stf-api-uat.data-xchange.co.za
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
customerReference: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
}