Skip to content

Commit

Permalink
docs: extra example for DPD
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-MyParcel authored Sep 12, 2024
1 parent 4df9378 commit b57ac92
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions src/api-reference/06.shipments.md
Original file line number Diff line number Diff line change
Expand Up @@ -1612,6 +1612,80 @@ Authorization: bearer BASE64_ENCODED_API_KEY

:::

::: expand h4: DPD: Create European shipment with DE pickup location

##### Request

```
POST https://api.myparcel.nl/shipments HTTP/1.1
Content-Type: application/vnd.shipment+json;version=1.1;charset=utf-8
User-Agent: CustomApiCall/2
Authorization: bearer BASE64_ENCODED_API_KEY
```

```json
{
"data": {
"shipments": [
{
"reference_identifier": "FOO-222-BAR-42",
"recipient": {
"cc": "DE",
"region": "Berlin",
"postal_code": "10117",
"city": "Berlin",
"street": "Unter den Linden",
"number": "1",
"person": "Mr. Parcel",
"phone": "0233030315",
"email": "[email protected]"
},
"physical_properties": {
"weight": 1000,
"height": 10,
"width": 10,
"length": 12
},
"options": {
"package_type": 1,
"label_description": "European shipment with DPD carrier and pickup",
"delivery_type": 4
},
"pickup": {
"postal_code": "13057",
"location_name": "Foto Runge",
"city": "Berlin",
"street": "Warnitzer Straße",
"number": "16",
"cc": "DE",
"location_code": "68695056525155"
},
"carrier": 4
}
]
}
}
```

##### Response

<Http code="200" />

```json
{
"data": {
"ids": [
{
"id": 192789044,
"reference_identifier": "FOO-222-BAR-42"
}
]
}
}
```

:::

::: expand h4: DHL for you: Create domestic shipment

##### Request
Expand Down

0 comments on commit b57ac92

Please sign in to comment.