Base URL
https://{tenant}.logzi.com/api/offer_send/
Every request returns a JSON response. On success result.code == 1, on error result.code == 0.
Supplier offer sending is available on the same endpoint as customer offer sending — the system determines the document type based on the settings.
/api/offer_send/get
Retrieves a single supplier price offer by identifier, with full details.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Unique identifier of the offer |
Example request
GET /api/offer_send/get?id=15
X-API-KEY: {your_api_key}
Example response
{
"result": { "code": 1, "message": "success" },
"data": {
"id": 15,
"identify": "SAJ-2024-0015",
"date_create": "2024-05-01 09:00:00",
"date_perform": "2024-05-15",
"status_id": 1,
"partner_company_name": "Minta Szállító Kft.",
"price_netto": 80000,
"price_brutto": 101600,
"currency_name": "HUF",
"item": [
{ "product_id": 3, "quantity": 2, "price": 40000, "tax_id": 2 }
]
}
}
/api/offer_send/list
Retrieves a paginated list of supplier price offers with filtering options.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_count | int | Number of records shown per page | |
list_sort[field] | string | Name of the sort field | |
list_sort[sort] | string | Sort direction: ASC or DESC | |
list_condition[identify] | string | Filter by identifier (LIKE) | |
list_condition[company_name] | string | Filter by partner name (LIKE) | |
list_condition[status_id] | int | Filter by status | |
list_condition[date_create_from] | date | Creation date — from (YYYY-MM-DD) | |
list_condition[date_create_to] | date | Creation date — to (YYYY-MM-DD) |
Example request
GET /api/offer_send/list?list_offset=0&list_condition[status_id]=1
X-API-KEY: {your_api_key}
Example response
{
"result": { "code": 1, "message": "success" },
"data": [
{ "id": 15, "identify": "SAJ-2024-0015", "partner_company_name": "Minta Szállító Kft.", "status_id": 1, "price_brutto": 101600 }
],
"params": { "list_count": 20, "list_offset": 0, "list_all": 42 }
}
/api/offer_send/save
Creates or updates a supplier price offer. For a new offer use data[id] = 0; for an update, provide the existing ID.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new offer, >0 = update | |
company_id | int | Company identifier | |
company_user_id | int | Responsible user ID | |
company_address_id | int | Company site ID | |
currency_id | int | Currency identifier | |
partner_id | int | Supplier partner identifier | |
date_perform | date | Validity date (YYYY-MM-DD) | |
comment_top | string | Comment visible to the supplier | |
comment_bottom | string | Internal comment | |
jobnumber_id | int | Job number identifier | |
project_id | int | Project identifier | |
item | array | Array of items (see below) |
Item fields — data[item][]
| Field | Type | Required | Description |
|---|---|---|---|
product_id | int | Product identifier | |
quantity | float | Quantity | |
price | float | Net unit price | |
tax_id | int | VAT rate identifier | |
price_discount | float | Discount percentage | |
remove | int | 1 = remove the item on update |
POST fields — params object (optional)
| Field | Type | Required | Description |
|---|---|---|---|
close | int | 1 = automatically close after saving | |
download | int | 1 = generate PDF after saving |
Example request
POST /api/offer_send/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"company_id": 1,
"company_user_id": 3,
"company_address_id": 1,
"currency_id": 1,
"partner_id": 12,
"date_perform": "2024-06-30",
"comment_top": "Az ajánlat 30 napig érvényes.",
"item": [
{ "product_id": 5, "quantity": 10, "price": 8000, "tax_id": 2 }
]
},
"params": { "close": 0, "download": 0 }
}
Example response
{
"result": { "code": 1, "message": "success" },
"data": { "id": 16, "identify": "SAJ-2024-0016" }
}
/api/offer_send/delete
Deletes a supplier price offer. Only an open offer (status_id=1) can be deleted.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
receipt_id | int | Identifier of the offer to delete |
Example request
POST /api/offer_send/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "receipt_id": 15 } }
Example response
{ "result": { "code": 1, "message": "success" }, "data": {} }
/api/offer_send/close
Closes an open supplier price offer. Only an offer with status_id = 1 (open) can be closed.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
receipt_id | int | Identifier of the offer to close |
Example request
POST /api/offer_send/close
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "receipt_id": 15 } }
Example response
{ "result": { "code": 1, "message": "success" }, "data": {} }
/api/offer_send/download
Downloads the supplier price offer document in various formats.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
receipt_id | int | Offer identifier | |
file_type | string | pdf, pdf-string, pdf-string-sample, stream | |
language | string | Name of the template language folder (e.g. hungarian) | |
template_id | int | Custom print template ID |
Example request
GET /api/offer_send/download?receipt_id=15&file_type=pdf
X-API-KEY: {your_api_key}
Create your account now,
pay later!