The MPK (cost center) resource has the following Name center Sample MPK resource in the JSON formatNazwamiejscapowstaniakosztówOpismiejscapowstaniakosztówAuthentication the provision of the valid for the Organization Code Block GET :organization_idHTTP/1.1
Host: api-shipx-pl.easypack24.net
codeParameter Type Description Requirements String description String Code Block POST /v1/organizations/:organization_id/mpks HTTP/1.1
Host:
Content-Type: application/json
{NazwaOpisSample responseHTTP/1.1 201 Created
Location:3
33NazwaOpis16T13362833216T133628332 Code Block PUTmpksmpk the organization • Maximum Cost center • The attribute Sample requestv1/mpks:mpk_id HTTP/1.1
Host: Nazwa miejsca powstania kosztówOpis miejsca powstania kosztów",code Code Block GET /v1/mpks/1 HTTP/1.1
Host: X-ShipX-OrganizationId: 1No
Content Nowa nazwa miejsca powstania kosztówNowy opis miejsca powstania kosztów15T223104316
Cost center description
Downloading the collection of cost centers
Collecting lists of all cost centers for the selected organizationParameters The resource is paged.
Determines the sorting type - descending(desc) or ascending (asc).
Sample request
In the response the server will return collections with the MPK (cost center) list and HTTP 200 OK code
Creating a cost centerPOSTadmin/organizationsorganization_/mpksThe server will return a HTTP response with the 201 Created status.
Parameters
name
Name of cost center
• The attribute is required
• The attribute value is unique within the organization
• Maximum length 255 characters
Cost center description
• The attribute is required
Sample request
Errors:
resource_not_found
- the organization with the stated ID does not exist
Updating the place of collection order
• The attribute is required
• The attribute valueName of cost center
After completing the request correctly, the server will return a response containing the mpk object with the changed data, with HTTP 200 OK code.
200OK /admin11Nazwa miejsca powstania kosztówOpis miejsca powstania kosztów15T21584942717T103559644Errors webhook the stated ,Downloading a single objectGET1Sample request