Base URL
https://{tenant}.logzi.com/api/offer_request/
Every request returns a JSON response. On success result.code == 1, on failure result.code == 0.
/api/offer_request/get
Retrieves a single customer offer request by identifier, with full details.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Unique identifier of the offer request |
Example request
GET /api/offer_request/get?id=8
X-API-KEY: {your_api_key}
/api/offer_request/list
Retrieves a paginated list of customer offer requests with filtering options.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_count | int | Number of records per page | |
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_request/list?list_offset=0&list_condition[status_id]=1
X-API-KEY: {your_api_key}
/api/offer_request/save
Creates or updates a customer offer request. For a new record use data[id] = 0.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new offer request, >0 = update | |
company_id | int | Company identifier | |
company_user_id | int | ID of the responsible employee | |
company_address_id | int | Company site ID | |
currency_id | int | Currency identifier | |
partner_id | int | Partner/customer identifier | |
comment_top | string | Comment | |
comment_bottom | string | Internal comment | |
item | array | Array of line items |
Line item fields — data[item][]
| Field | Type | Required | Description |
|---|---|---|---|
product_id | int | Product identifier | |
quantity | float | Requested quantity | |
price | float | Proposed unit price | |
tax_id | int | VAT rate identifier | |
remove | int | 1 = remove item during update |
Example request
POST /api/offer_request/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,
"item": [
{ "product_id": 5, "quantity": 10 }
]
}
}
/api/offer_request/delete
Deletes a customer offer request. Only a record with open status can be deleted.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
receipt_id | int | Identifier of the offer request to delete |
Example request
POST /api/offer_request/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "receipt_id": 8 } }
/api/offer_request/close
Closes a customer offer request. Only a record with open status (status_id=1) can be closed.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
receipt_id | int | Identifier of the offer request to close |
Example request
POST /api/offer_request/close
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "receipt_id": 8 } }
/api/offer_request/download
Downloads the document of a customer offer request in various formats.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
receipt_id | int | Identifier of the offer request | |
file_type | string | pdf, pdf-string, pdf-string-sample, stream | |
language | string | Name of the template language folder | |
template_id | int | Custom print template ID |
Example request
GET /api/offer_request/download?receipt_id=8&file_type=pdf
X-API-KEY: {your_api_key}
Create your account now,
pay later!