PaymentTypes

Payment method configuration.

Fields

Field Type Required Version Description
id integer Yes 1.0 Unique payment type identifier
name string No 1.0 Payment type name
code string No 1.0 Payment type code
accountId integer No 1.0 Default account for payment type
customerId integer Yes 1.0 Reference to Customer
active boolean No 1.0 Payment type active status

Example

{
  "id": 1,
  "name": "Cash",
  "code": "CASH",
  "accountId": 1000,
  "customerId": 12345,
  "active": true
}

Example - Common Payment Types

[
  {
    "id": 1,
    "name": "Cash",
    "code": "CASH",
    "accountId": 1000,
    "customerId": 12345,
    "active": true
  },
  {
    "id": 2,
    "name": "Card",
    "code": "CARD",
    "accountId": 1900,
    "customerId": 12345,
    "active": true
  },
  {
    "id": 3,
    "name": "Vipps",
    "code": "VIPPS",
    "accountId": 1910,
    "customerId": 12345,
    "active": true
  },
  {
    "id": 4,
    "name": "Gift Card",
    "code": "GIFTCARD",
    "accountId": 1920,
    "customerId": 12345,
    "active": true
  },
  {
    "id": 5,
    "name": "Invoice",
    "code": "INVOICE",
    "accountId": 1500,
    "customerId": 12345,
    "active": true
  }
]