savePaymentType

Create or update a payment type.

To retrieve existing payment types, see getPaymentTypes.

Input parameters

Parameter name Description Possible value Required
paymentTypeID  Set this field to edit an existing payment type. Omit to add a new type.  Integer    
type  A code name for this payment type.

In savePayment and getPayments API calls, you can refer to a payment type either by ID or by code name. Code name may be more convenient when working with standard payment types (CASH, CARD etc.). However, you can give code names to your own custom types, too.

Standard types that ERPLY recognizes (there may be standard functionality attached to payments of these type) are: CASH, CARD, CREDIT, GIFTCARD, CHECK, TRANSFER, TIP. 
String(10)    
name  Payment type name. Use either general parameter "name" or one or more of the following parameters if you need to set the names in specific languages.  String    
nameEST    String    
nameENG    String    
nameLAT    String    
nameRUS    String    
nameFIN    String    
print_name  Name on receipt. Use either general parameter "print_name" or one or more of the following parameters if you need to set the names in specific languages.  String    
print_nameEST    String    
print_nameENG    String    
print_nameLAT    String    
print_nameRUS    String    
print_nameFIN    String    
quickBooksDebitAccount  Quick Books debit account  String    

Response

Field name Type Description
paymentTypeID  Integer  ID of the newly-created or updated item