Payment Methods API

Manage payment methods — retrieval, creation, update, and deletion

Base URL

https://{tenant}.logzi.com/api/paymod/

Every request returns a JSON response. On success result.code == 1, on failure result.code == 0.

GET /api/paymod/get

Retrieve a single payment method — by identifier, default flag, web name, or NAV name.

Query Parameters

ParameterTypeRequiredDescription
idintUnique identifier of the payment method
paymod_defaultint1 = retrieve the default payment method
paymod_webnamestringSearch by web display name
paymod_name_navstringSearch by the name accepted by NAV
language_idintLanguage identifier

Example Request

GET /api/paymod/get?paymod_default=1
X-API-KEY: {your_api_key}
GET /api/paymod/list

Retrieve a paginated list of payment methods with filtering options.

Query Parameters

ParameterTypeRequiredDescription
list_offsetintPagination offset (default: 0)
list_conditionarrayArray of filter conditions
language_idintLanguage identifier

Example Request

GET /api/paymod/list?list_offset=0
X-API-KEY: {your_api_key}
POST /api/paymod/save

Create or update a payment method. For a new record, use data[id] = 0.

POST Fields — data object

FieldTypeRequiredDescription
idint0 = new payment method, >0 = update
name_keystringInternal key name (e.g. "transfer", "cash")
termintPayment term in days
paymod_defaultint1 = mark as the default payment method
paymod_name_navstringName accepted by NAV (e.g. "Bank transfer")
paymod_webnamestringWeb display name
paymod_prepaymentint1 = prepayment method
paymod_compensate_autoint1 = enable automatic settlement
cash_stock_idintIdentifier of the linked cash stock

Example Request

POST /api/paymod/save
X-API-KEY: {your_api_key}
Content-Type: application/json

{
  "data": {
    "id": 0,
    "name_key": "transfer",
    "term": 8,
    "paymod_name_nav": "Átutalás"
  }
}
POST /api/paymod/delete

Delete a payment method by identifier.

POST Fields — data object

FieldTypeRequiredDescription
idintIdentifier of the payment method to delete

Example Request

POST /api/paymod/delete
X-API-KEY: {your_api_key}
Content-Type: application/json

{ "data": { "id": 2 } }

Get in touch with us

Interested in our software? Feel free to write to us!

Need help?

If you can't find the answer and need assistance

Create your account now,
pay later!

Try it free for 3 days, no risk, no obligation!