POST /deliveries/partner/{code}/pickup-point

Replaced by /v2/transports endpoints.

Body Required

  • code string Required

    Pickup point identifier. Allowed characters are: A-Z, a-z, 0-9, _, . and -.

  • title string Required

    Title of pickup point

  • street string Required

    Street and number

  • city string Required

    City or town

  • zip string Required

    Zip code

  • district_code string Required

    Code of the district (see Districts)

  • phone string Required

    Phone number of the pickup point

  • email string Required

    Email of the pickup point

  • latitude number Required

    Latitude of the pickup point

  • longitude number Required

    Longitude of the pickup point

  • opening_hours object Required

    Opening hour

    Hide opening_hours attributes Show opening_hours attributes object
    • day_from string Required

      Start week day the pickup point is open

    • day_to string Required

      Last week day the pickup point is open

    • hour_from string Required

      Start time

    • hour_to string Required

      Closing time

  • payment_methods array[string] Required

    Available payment methods

  • note string

    Additional information

  • dimensions object Required

    Maximal dimensions of packages to be acceptable for the pickup point

    Hide dimensions attributes Show dimensions attributes object
    • weight object
      Hide weight attributes Show weight attributes object
      • min number

        Minimal weight in kg, 3 decimal points float format

      • max number

        Maximal weight in kg, 3 decimal points float format

    • width object
      Hide width attributes Show width attributes object
      • min number

        Minimal width in cm, 1 decimal point float format

      • max number

        Maximal width in cm, 1 decimal point float format

    • length object
      Hide length attributes Show length attributes object
      • min number

        Minimal length in cm, 1 decimal point float format

      • max number

        Maximal length in cm, 1 decimal point float format

    • height object
      Hide height attributes Show height attributes object
      • min number

        Min height in cm, 1 decimal point float format

      • max number

        Maximal height in cm, 1 decimal point float format

  • priority integer

    Priority of pickup point method

  • package_size string Required

    smallbox or bigbox package size

    Values are smallbox or bigbox. Default value is smallbox.

Responses

  • 201

    OK

POST /deliveries/partner/{code}/pickup-point
curl \
 -X POST https://mpapi.proxy.omnicado.com/v1/deliveries/partner/{code}/pickup-point?client_id=api_token_value \
 -H "Content-Type: application/json" \
 -d '{"code":"PUP1","title":"Partner PUP","street":"U garazi 11","city":"Praha","zip":"17000","district_code":"PR","phone":"777777777","email":"info@some-pickup-point-domain.cz","latitude":50.100797,"longitude":14.444889,"opening_hours":{"day_from":"Mon","day_to":"Mon","hour_from":32400,"hour_to":72000},"payment_methods":["Cash","Visa","MasterCard"],"note":"Barrier-free access, parking.","dimensions":{"weight":{"min":1.0,"max":80.0},"width":{"min":1.0,"max":10.0},"length":{"min":1.0,"max":100.0},"height":{"min":1.0,"max":10.0}},"priority":1,"package_size":"smallbox"}'
Request example
{
  "code": "PUP1",
  "title": "Partner PUP",
  "street": "U garazi 11",
  "city": "Praha",
  "zip": "17000",
  "district_code": "PR",
  "phone": "777777777",
  "email": "info@some-pickup-point-domain.cz",
  "latitude": 50.100797,
  "longitude": 14.444889,
  "opening_hours": {
    "day_from": "Mon",
    "day_to": "Mon",
    "hour_from": 32400,
    "hour_to": 72000
  },
  "payment_methods": [
    "Cash",
    "Visa",
    "MasterCard"
  ],
  "note": "Barrier-free access, parking.",
  "dimensions": {
    "weight": {
      "min": 1.0,
      "max": 80.0
    },
    "width": {
      "min": 1.0,
      "max": 10.0
    },
    "length": {
      "min": 1.0,
      "max": 100.0
    },
    "height": {
      "min": 1.0,
      "max": 10.0
    }
  },
  "priority": 1,
  "package_size": "smallbox"
}
Request examples
{
  "code": "PUP1",
  "title": "Partner PUP",
  "street": "U garazi 11",
  "city": "Praha",
  "zip": "17000",
  "district_code": "PR",
  "phone": "777777777",
  "email": "info@some-pickup-point-domain.cz",
  "latitude": 50.100797,
  "longitude": 14.444889,
  "opening_hours": {
    "day_from": "Mon",
    "day_to": "Mon",
    "hour_from": 32400,
    "hour_to": 72000
  },
  "payment_methods": [
    "Cash",
    "Visa",
    "MasterCard"
  ],
  "note": "Barrier-free access, parking.",
  "dimensions": {
    "weight": {
      "min": 1.0,
      "max": 80.0
    },
    "width": {
      "min": 1.0,
      "max": 10.0
    },
    "length": {
      "min": 1.0,
      "max": 100.0
    },
    "height": {
      "min": 1.0,
      "max": 10.0
    }
  },
  "priority": 1,
  "package_size": "smallbox"
}