For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Ugrás a tartalomra

Contacts

Contact management operations

List contacts

get

Retrieve a paginated list of contacts

Authorizations
AuthorizationstringRequired

Laravel Sanctum token authentication. Include the token in the Authorization header: Bearer {your-token}

Query parameters
pageinteger · min: 1Optional

Page number for pagination

Default: 1
limitinteger · min: 1Optional

Number of items per page

Default: 10
is_warehousebooleanOptional

Filter by warehouse status

Example: false
Responses
200

List of contacts

application/json
get/v3/contacts
GET /api/v3/contacts HTTP/1.1
Host: app.packli.hu
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [
    {
      "id": 5012347,
      "account_id": 10003,
      "country_id": 1,
      "is_warehouse": 0,
      "is_billing": 0,
      "zip": "1051",
      "city": "Budapest",
      "address": "Váci utca 1",
      "position_lat": null,
      "position_lng": null,
      "phone": "+36301111111",
      "email": "[email protected]",
      "family_name": "Doe",
      "first_name": "John",
      "company_name": null,
      "dpd_buCode": "017",
      "dpd_customerId": null,
      "dpd_addressId": null,
      "deleted_at": null,
      "created_at": "2025-09-10T10:36:10.000000Z",
      "updated_at": "2025-09-10T10:36:10.000000Z",
      "country": {
        "id": 1,
        "name": "Hungary",
        "iso": "hu",
        "currency_id": 1,
        "cod_payout_limit": 50000,
        "vat": 27,
        "created_at": "-000001-11-30T00:00:00.000000Z",
        "updated_at": "-000001-11-30T00:00:00.000000Z"
      }
    }
  ],
  "links": {
    "first": "http://localhost:8000/api/v3/contacts?page=1",
    "last": "http://localhost:8000/api/v3/contacts?page=1",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "links": [
      {
        "url": null,
        "label": "« Previous",
        "page": null,
        "active": false
      },
      {
        "url": "http://localhost:8000/api/v3/contacts?page=1",
        "label": "1",
        "page": 1,
        "active": true
      },
      {
        "url": null,
        "label": "Next »",
        "page": null,
        "active": false
      }
    ],
    "path": "http://localhost:8000/api/v3/contacts",
    "per_page": 50,
    "to": 1,
    "total": 1
  }
}

Create a new contact

post

Create a new contact

Authorizations
AuthorizationstringRequired

Laravel Sanctum token authentication. Include the token in the Authorization header: Bearer {your-token}

Body
first_namestring · nullableOptional

First name

Example: John
family_namestring · nullableOptional

Family name

Example: Doe
emailstring · email · nullableOptional

Email address

Example: [email protected]
phonestring · nullableOptional

Phone number

Example: +36123456789
country_idinteger · nullableOptional

Country ID

Example: 1
zipstring · nullableOptional

Postal code

Example: 1051
citystring · nullableOptional

City

Example: Budapest
addressstring · nullableOptional

Address

Example: Váci utca 1
Responses
201

Contact created successfully

application/json
post/v3/contacts
POST /api/v3/contacts HTTP/1.1
Host: app.packli.hu
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 166

{
  "first_name": "John",
  "family_name": "Doe",
  "email": "[email protected]",
  "phone": "+36123456789",
  "country_id": 1,
  "zip": "1051",
  "city": "Budapest",
  "address": "Váci utca 1"
}
{
  "data": {
    "id": 5012347,
    "account_id": 10003,
    "country_id": 1,
    "is_warehouse": 0,
    "is_billing": 0,
    "zip": "1051",
    "city": "Budapest",
    "address": "Váci utca 1",
    "position_lat": null,
    "position_lng": null,
    "phone": "+36301111111",
    "email": "[email protected]",
    "family_name": "Doe",
    "first_name": "John",
    "company_name": null,
    "dpd_buCode": "017",
    "dpd_customerId": null,
    "dpd_addressId": null,
    "deleted_at": null,
    "created_at": "2025-09-10T10:36:10.000000Z",
    "updated_at": "2025-09-10T10:36:10.000000Z",
    "country": {
      "id": 1,
      "name": "Hungary",
      "iso": "hu",
      "currency_id": 1,
      "cod_payout_limit": 50000,
      "vat": 27,
      "created_at": "-000001-11-30T00:00:00.000000Z",
      "updated_at": "-000001-11-30T00:00:00.000000Z"
    }
  }
}

Get contact details

get

Retrieve detailed information about a specific contact

Authorizations
AuthorizationstringRequired

Laravel Sanctum token authentication. Include the token in the Authorization header: Bearer {your-token}

Path parameters
idintegerRequired

Contact ID

Example: 1
Responses
200

Contact details

application/json
get/v3/contacts/{id}
GET /api/v3/contacts/{id} HTTP/1.1
Host: app.packli.hu
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": {
    "id": 5012347,
    "account_id": 10003,
    "country_id": 1,
    "is_warehouse": 0,
    "is_billing": 0,
    "zip": "1051",
    "city": "Budapest",
    "address": "Váci utca 1",
    "position_lat": null,
    "position_lng": null,
    "phone": "+36301111111",
    "email": "[email protected]",
    "family_name": "Doe",
    "first_name": "John",
    "company_name": null,
    "dpd_buCode": "017",
    "dpd_customerId": null,
    "dpd_addressId": null,
    "deleted_at": null,
    "created_at": "2025-09-10T10:36:10.000000Z",
    "updated_at": "2025-09-10T10:36:10.000000Z",
    "country": {
      "id": 1,
      "name": "Hungary",
      "iso": "hu",
      "currency_id": 1,
      "cod_payout_limit": 50000,
      "vat": 27,
      "created_at": "-000001-11-30T00:00:00.000000Z",
      "updated_at": "-000001-11-30T00:00:00.000000Z"
    }
  }
}

Utoljára frissítve: