POST api/paymentMode
Request Information
URI Parameters
None.
Body Parameters
PaymentmodeViewName | Description | Type | Additional information |
---|---|---|---|
PaymentMode | PaymentMode |
None. |
|
NumberPayment | Collection of NumberPayment |
None. |
Request Formats
application/json, text/json
Sample:
{ "paymentMode": { "id": 1, "termId": 2, "numberofPayments": 3, "category": "sample string 4" }, "numberPayment": [ { "id": 1, "description": "sample string 2", "dueDateStart": "2025-04-26T20:59:17.5252644+08:00", "dueDateEnd": "2025-04-26T20:59:17.5252644+08:00", "percentage": 5, "fixedAmount": 6, "paymentModeId": 7 }, { "id": 1, "description": "sample string 2", "dueDateStart": "2025-04-26T20:59:17.5252644+08:00", "dueDateEnd": "2025-04-26T20:59:17.5252644+08:00", "percentage": 5, "fixedAmount": 6, "paymentModeId": 7 } ] }
text/html
Sample:
{"paymentMode":{"id":1,"termId":2,"numberofPayments":3,"category":"sample string 4"},"numberPayment":[{"id":1,"description":"sample string 2","dueDateStart":"2025-04-26T20:59:17.5252644+08:00","dueDateEnd":"2025-04-26T20:59:17.5252644+08:00","percentage":5,"fixedAmount":6,"paymentModeId":7},{"id":1,"description":"sample string 2","dueDateStart":"2025-04-26T20:59:17.5252644+08:00","dueDateEnd":"2025-04-26T20:59:17.5252644+08:00","percentage":5,"fixedAmount":6,"paymentModeId":7}]}
application/xml, text/xml
Sample:
<PaymentmodeView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UBBEAMS.Api.ViewModels"> <NumberPayment xmlns:d2p1="http://schemas.datacontract.org/2004/07/UBBEAMS.Infrastructure.Models"> <d2p1:NumberPayment> <d2p1:Description>sample string 2</d2p1:Description> <d2p1:DueDateEnd>2025-04-26T20:59:17.5252644+08:00</d2p1:DueDateEnd> <d2p1:DueDateStart>2025-04-26T20:59:17.5252644+08:00</d2p1:DueDateStart> <d2p1:FixedAmount>6</d2p1:FixedAmount> <d2p1:Id>1</d2p1:Id> <d2p1:PaymentModeId>7</d2p1:PaymentModeId> <d2p1:Percentage>5</d2p1:Percentage> </d2p1:NumberPayment> <d2p1:NumberPayment> <d2p1:Description>sample string 2</d2p1:Description> <d2p1:DueDateEnd>2025-04-26T20:59:17.5252644+08:00</d2p1:DueDateEnd> <d2p1:DueDateStart>2025-04-26T20:59:17.5252644+08:00</d2p1:DueDateStart> <d2p1:FixedAmount>6</d2p1:FixedAmount> <d2p1:Id>1</d2p1:Id> <d2p1:PaymentModeId>7</d2p1:PaymentModeId> <d2p1:Percentage>5</d2p1:Percentage> </d2p1:NumberPayment> </NumberPayment> <PaymentMode xmlns:d2p1="http://schemas.datacontract.org/2004/07/UBBEAMS.Infrastructure.Models"> <d2p1:Category>sample string 4</d2p1:Category> <d2p1:Id>1</d2p1:Id> <d2p1:NumberofPayments>3</d2p1:NumberofPayments> <d2p1:TermId>2</d2p1:TermId> </PaymentMode> </PaymentmodeView>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.