Partner Types API

Classify partners (customer, supplier, reseller, etc.) — retrieve, create, update, and delete

Base URL

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

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

GET /api/partner_type/get

Retrieve a single partner type by ID or language.

Query Parameters

ParameterTypeRequiredDescription
idintUnique identifier of the partner type
language_idintIdentifier of the language variant

Example Request

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

Paginated retrieval of the partner type list with filtering options.

Query Parameters

ParameterTypeRequiredDescription
list_offsetintPagination offset (default: 0)
list_conditionarrayArray of filter conditions
language_idintFilter by language identifier

Example Request

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

Create or update a partner type. For a new record use data[id] = 0.

POST Fields — data object

FieldTypeRequiredDescription
idint0 = new partner type, >0 = update
namestringName of the partner type (e.g. "Vevő")

Example Request

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

{
  "data": {
    "id": 0,
    "name": "Vevő"
  }
}
POST /api/partner_type/delete

Delete a partner type by ID.

POST Fields — data object

FieldTypeRequiredDescription
idintIdentifier of the partner type to delete

Example Request

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

{ "data": { "id": 1 } }

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!