JiwaAPI

<back to all web services

SalesOrderPaymentTypesPATCHRequest

Requires Authentication
The following routes are available for this service:
PATCH/SalesOrders/PaymentTypes/{PaymentTypeID}Updates a payment type
SalesOrderPaymentTypesPATCHRequest Parameters:
NameParameterData TypeRequiredDescription
PaymentTypeIDpathstringNo
PaymentType Parameters:
NameParameterData TypeRequiredDescription
PaymentTypeIDformstringNo
NameformstringNo
CodeformstringNo
ItemNoformint?No
IsEnabledformbool?No
IsDefaultformbool?No
IsCreditCardformbool?No
IsPOSformbool?No
GeneralLedgerAccountformAccountNo
Account Parameters:
NameParameterData TypeRequiredDescription
LedgerIDformstringNo
AccountNoformstringNo
DescriptionformstringNo
PaymentType Parameters:
NameParameterData TypeRequiredDescription
PaymentTypeIDformstringNo
NameformstringNo
CodeformstringNo
ItemNoformint?No
IsEnabledformbool?No
IsDefaultformbool?No
IsCreditCardformbool?No
IsPOSformbool?No
GeneralLedgerAccountformAccountNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PATCH /SalesOrders/PaymentTypes/{PaymentTypeID} HTTP/1.1 
Host: api.jiwa.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"PaymentTypeID":"String","Name":"String","Code":"String","ItemNo":0,"IsEnabled":false,"IsDefault":false,"IsCreditCard":false,"IsPOS":false,"GeneralLedgerAccount":{"LedgerID":"String","AccountNo":"String","Description":"String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"PaymentTypeID":"String","Name":"String","Code":"String","ItemNo":0,"IsEnabled":false,"IsDefault":false,"IsCreditCard":false,"IsPOS":false,"GeneralLedgerAccount":{"LedgerID":"String","AccountNo":"String","Description":"String"}}