[1.23.0] Address book
Warning!
Resource is available only in the following countries: PL, IT
AddressBook
resource represents an address book assigned to organization.
Structure
AddressBook
resource has the following attributes:
Attribute | Type | Description | Availability |
---|---|---|---|
| Integer | unique identifier | PL, IT |
| String | name of entry, unique in the context of the organization. | PL, IT |
| String | First name | PL, IT |
| String | Last name | PL, IT |
| String | Phone | PL, IT |
| String | E-mail address | PL, IT |
| Integer | organization ID which owns this entry | PL, IT |
| Address | Addressee's main address | PL, IT |
| Address | Shipment delivery address | PL, IT |
| Boolean | Paczkomat® parcel station shipment sender | PL, IT |
| Boolean | Courier shipment sender | PL, IT |
| Boolean | Letter shipment sender | PL, IT |
| String | Type of entry | PL, IT |
| String | Company name | PL, IT |
| String | Preferred shipping point | PL, IT |
| DateTime | Address book creation date and time. | PL, IT |
| DateTime | Last address book update date and time. | PL, IT |
AddressBook resource example JSON format:
{
"id":5,
"first_name":"Jan",
"last_name":"Nowak",
"email":"jan@nowak.pl",
"phone":"123456789",
"created_at":"2016-02-24T09:22:27.212+01:00",
"updated_at":"2016-02-24T09:22:27.212+01:00",
"organization_id":1,
"name":"Nowak Corp",
"sender_parcel":false,
"sender_courier":false,
"sender_letter":true,
"kind": "sender",
"company_name": "MyCompanyName",
"preferred_dropoff_point": "KRA120",
"main_address":{
"id": "123",
"street": "Malborska",
"building_number": "130",
"city":"Warsaw","id": "123",
"post_code":"33-666",
"country_code":"PO"
},
"delivery_address":{
"id": "123",
"street": "Malborska",
"building_number": "140",
"city":"Cracow",
"post_code":"66-666",
"country_code":"AZ"
}
}
Address book list
Address book list within the given organization:
GET /v1/organizations/:organization_id/address_books
Request example
curl -X GET https://api-shipx-pl.easypack24.net/v1/organizations/1/address_books -H "Authorization: Bearer token" -H "Content-Type: application/json"
Response
Address book details
Retrieving address book information to which the user has access to
Request example
Response
Address book creation
Creating a new address book for organization
Parameters
Parameter | Type | Description | Availability |
---|---|---|---|
| String | The attribute is required.
| PL, IT |
| String | The attribute is required.
| PL, IT |
| String | The attribute is required.
| PL, IT |
| String | The attribute is required.
| PL, IT |
| String | The attribute is required.
| PL, IT |
| String | The attribute is required.
| PL, IT |
| String | The attribute is not required.
| PL, IT |
| String | The attribute is not required.
| PL, IT |
| Address | The attribute is required. | PL, IT |
| Address | The attribute is required. | PL, IT |
| Boolean | The attribute is not required.
| PL, IT |
| Boolean | The attribute is not required.
| PL, IT |
| Boolean | The attribute is not required.
| PL, IT |
Request example
Response
Address book editing
Edition of an existing address book
Parameters
Parameter | Type | Description | Availability |
---|---|---|---|
| String | The attribute is required.
| PL, IT |
| String | The attribute is required.
| PL, IT |
| String | The attribute is required.
| PL, IT |
| String | The attribute is required.
| PL, IT |
| String | The attribute is required.
| PL, IT |
kind | String | The attribute is required.
| PL, IT |
| String | The attribute is not required.
| PL, IT |
| String | The attribute is not required.
| PL, IT |
| Address | The attribute is required. | PL, IT |
| Address | The attribute is required. | PL, IT |
| Boolean | The attribute is not required.
| PL, IT |
| Boolean | The attribute is not required.
| PL, IT |
| Boolean | The attribute is not required.
| PL, IT |
Request example
Response
Address book deletion
Deleting an existing address book
Request example
Response