# Create Payment Method Create a new payment method. Endpoint: POST /api/v1/payment/method Version: 1.0 ## Request fields (application/json): - `code` (integer, required) Unique code for the payment method. Example: 10 - `description` (string, required) Description of the payment method. Example: "Bank transfer" - `document` (string) Document code for the payment method. Example: "DOC01" - `firstTerm` (integer) Days to the first term. Example: 30 - `terms` (integer) Number of terms. Example: 3 - `daysTerms` (integer) Number of days for terms. Example: 90 - `remittance` (boolean, required) Indicates whether remittance is required. Example: true - `addToCustomerBase` (boolean, required) Indicates if the method adds to the customer base. Example: true - `notCountedAsPaymentForecast` (boolean, required) Indicates if payment is not counted as forecast. - `serveFullPrePaid` (boolean, required) Indicates if the service is fully prepaid. - `paymentAccount` (integer) Payment account identifier. Example: 410 - `discountAccount` (integer) Discount account identifier. Example: 411 - `customerAccount` (integer) Customer account identifier. Example: 430 - `saleAccount` (integer) Sale account identifier. Example: 700 - `billCode` (string) Code for the bill. Example: "BILL01" - `fdiCode` (string) FDI code for the payment method. See ApiFDICodes for all possible values. Enum: "A", "D", "E", "F", "I", "N", "P" - `facturaECode` (string) FacturaE code for the payment method. See ApiFacturaECodeEnum for all available values. Enum: "NOT_SPECIFIED", "CASH", "DOMICILED_RECEIPT", "RECEIPT", "TRANSFER", "ACCEPTED_LETTER", "LETTER_OF_CREDIT", "CONTRACT_AWARD", "BILL_OF_EXCHANGE", "PROMISORY_NOTE_IN_ORDER", "PROMISORY_NOTE_NOT_IN_ORDER", "CHECK_NOTE", "REPLACEMENT", "SPECIALS", "COMPENSATION", "POSTAL_ORDER", "FORMED_CHECK", "BANK_CHECK", "CASH_ON_DELIVERY_PAYMENT", "PAYMENT_BY_CARD" - `observations` (string) Additional observations about the payment method. Example: "Requires confirmation" - `prestashopModule` (string) Name of the Prestashop module associated. Example: "ps_bankwire" - `languages` (object) Map of localized languages for the payment method. - `icon` (string, required) Icon associated with the payment method. Example: "icon-bank.png" ## Response 200 fields (application/json): - `id` (integer, required) Unique identifier of the entity Example: 1 - `code` (integer, required) - `description` (string, required) - `document` (string) - `firstTerm` (integer) - `terms` (integer) - `daysTerms` (integer) - `remittance` (boolean) - `addToCustomerBase` (boolean) - `notCountedAsPaymentForecast` (boolean) - `serveFullPrePaid` (boolean) - `paymentAccount` (object) Surcharge account information for purchase operations - `paymentAccount.code` (string) Code of the chart account Example: 1000 - `paymentAccount.description` (string) Description of the chart account Example: "Cash account" - `paymentAccount.cif` (string) Tax identification number Example: "B12345678" - `paymentAccount.active` (boolean) Indicates if the account is active Example: true - `paymentAccount.color` (string) Color code for visual representation Example: "#FF5733" - `paymentAccount.parentCode` (string) Code of the parent account Example: 100 - `paymentAccount.parentDescription` (string) Description of the parent account Example: "Assets" - `discountAccount` (object) Surcharge account information for purchase operations - `customerAccount` (object) Surcharge account information for purchase operations - `saleAccount` (object) Surcharge account information for purchase operations - `billCode` (string) - `fdiCode` (string) - `facturaECode` (string) Electronic invoice codes Enum: "NOT_SPECIFIED", "CASH", "DOMICILED_RECEIPT", "RECEIPT", "TRANSFER", "ACCEPTED_LETTER", "LETTER_OF_CREDIT", "CONTRACT_AWARD", "BILL_OF_EXCHANGE", "PROMISORY_NOTE_IN_ORDER", "PROMISORY_NOTE_NOT_IN_ORDER", "CHECK_NOTE", "REPLACEMENT", "SPECIALS", "COMPENSATION", "POSTAL_ORDER", "FORMED_CHECK", "BANK_CHECK", "CASH_ON_DELIVERY_PAYMENT", "PAYMENT_BY_CARD" - `observations` (string) - `prestashopModule` (string) - `languages` (object) - `icon` (string)