Offer Send API

Manage sent offers

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. The Offer Send API allows you to track, close and download as PDF the offers sent to customers.

GET /api/offer_send/get

Retrieve a single sent offer document by its identifier.

Query parameters

ParameterTypeRequiredDescription
idintDocument identifier

Example request

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

Paginated list of sent offers.

Query parameters

ParameterTypeRequiredDescription
list_countintMaximum number of records to return
list_offsetintPagination offset (default: 0)
list_conditionobjectObject containing filter conditions
list_sortobjectObject containing sort conditions

Example request

GET /api/offer_send/list?list_offset=0&list_count=50
X-API-KEY: {your_api_key}
GET /api/offer_send/download

Download a sent offer document as PDF or another format.

Query parameters

ParameterTypeRequiredDescription
file_typestringFile type (e.g. pdf)
receipt_idintDocument identifier
languagestringDocument language (e.g. hu)
language_idintLanguage identifier
template_idintPrint template identifier

Example request

GET /api/offer_send/download?file_type=pdf&receipt_id=1&language=hu
X-API-KEY: {your_api_key}
POST /api/offer_send/close

Close a sent offer.

POST fields — data object

The data object must contain the identifier of the document to close.

Example request

POST /api/offer_send/close
X-API-KEY: {your_api_key}
Content-Type: application/json

{ "data": { "id": 1 } }
POST /api/offer_send/delete

Delete a sent offer document.

POST fields — data object

The data object must contain the details of the document to delete.

Example request

POST /api/offer_send/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!