Place of cost creation (MPK)
For the purposes of cost settlements, you can use the COD Report. MPK Resource - place of cost creation - dictionary value defined by user means, e.g: organization department which generated the cost (sent the parcel) - marketing department, logistics department, etc.
It could be freely defined, but should be unique. MPK is assigned to a parcel and even after the change of the MPK name, it cannot change in the historical data.
On this page
Structure
Resource MPK
has attributes:
Attribute | Type | Description |
---|---|---|
| Integer | Unique id. |
| String | Place of cost creation name. |
| String | Place of cost creation description. |
| DateTime | Last update. |
| DateTime | Creation date. |
Example:
{
"href": "https://api-shipx-pl.easypack24.net/v1/mpks/1",
"id": 1,
"name": "Place of cost creation name.",
"description": "Place of cost creation description",
"created_at": "2018-05-15T21:58:49.427+02:00",
"updated_at": "2018-05-17T10:35:59.644+02:00"
}
List of MPK
Resource is paged.
GET /v1/organizations/:organization_id/mpks
Sorting
Parameter | Description |
---|---|
| Attribute by which list will be sorted |
| Default: |
Request example
curl -X GET https://api-shipx-pl.easypack24.net/v1/organizations/1/mpks -H 'Authorization: Bearer token' -H 'Content-Type: application/json'
Response
Details of MPK
Request example
Response
Details of MPK
Request example
Response
Creation of MPK
Parameters
Parameter | Type | Description | Requirements |
---|---|---|---|
| String | MPK name |
|
| String | MPK description |
|
Request example
Response
List of error keys that may occur:
resource_not_found
- organization with this ID does not exist
Updating of MPK
Parameters
Parameter | Type | Description | Requirements |
---|---|---|---|
| String | MPK name |
|
| String | MPK description |
|
Request example
Response
List of error keys that may occur:
resource_not_found
- webhook with the given ID does not exist