Contacts
Contact management operations
Retrieve a paginated list of contacts
Laravel Sanctum token authentication.
Include the token in the Authorization header: Bearer {your-token}
Page number for pagination
1Number of items per page
10Filter by warehouse status
falseList of contacts
Authentication required
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
Laravel Sanctum token authentication.
Include the token in the Authorization header: Bearer {your-token}
First name
JohnFamily name
DoePhone number
+36123456789Country ID
1Postal code
1051City
BudapestAddress
Váci utca 1Contact created successfully
Authentication required
Validation failed
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"
}
}
}Retrieve detailed information about a specific contact
Laravel Sanctum token authentication.
Include the token in the Authorization header: Bearer {your-token}
Contact ID
1Contact details
Authentication required
Access forbidden
Resource not found
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: