---
# System prepended metadata

title: Api Vasp Expresso V2

---

# Api Vasp Expresso V2
# Criar serviço com etiqueta

#### C#
```csharp=
var client = new RestClient("https://vaspapirest.vaspexpresso.pt/api/V2/Shipment/Service/Label/LabelType/ZPL");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjE0NTAiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjpbInRlc3RlQHZhc3AucHQiLCJ0ZXN0ZUB2YXNwLnB0Il0sImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYWNjZXNzY29udHJvbHNlcnZpY2UvMjAxMC8wNy9jbGFpbXMvaWRlbnRpdHlwcm92aWRlciI6IkFTUC5ORVQgSWRlbnRpdHkiLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6IjdjMTRhZGQwLWZhZDEtNDkyYi1iMWFkLTFlN2JkODZiZDY3NyIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL2VtYWlsYWRkcmVzcyI6InRlc3RlQHZhc3AucHQiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJQUk9EIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbW9iaWxlcGhvbmUiOiI5NjAwMDAwMDAiLCJjbGllbnRfaWQiOiIxNyIsIm5iZiI6MTYzNjcxOTY0MywiZXhwIjoxNjM2ODA2MDQzLCJpc3MiOiJodHRwczovL3Zhc3BhcGlyZXN0LnZhc3BleHByZXNzby5wdCIsImF1ZCI6IjhFcHlVNVIzNUV4YzdWQld1OXdkS3JuWXRMVjlOOE4yIn0.k8NzkdGzaNnZ3YrueZpnhvIoX-s6yrnRVkWo7D7SnqE");
request.AddHeader("Content-Type", "application/json");
var body = @"{
" + "\n" +
@"  ""service"": {
" + "\n" +
@"    ""serviceTypeId"": 93,
" + "\n" +
@"    ""serviceMustDeliverOnRemote"": false,
" + "\n" +
@"    ""serviceDeliveryPointCode"": null,
" + "\n" +
@"    ""serviceFlow"": 0,
" + "\n" +
@"    ""serviceClientReference"": ""teste"",
" + "\n" +
@"    ""serviceClientBarCode"": null,
" + "\n" +
@"    ""servicePinCode"": null,
" + "\n" +
@"    ""serviceNumberOfVolumes"": ""2"",
" + "\n" +
@"    ""serviceTotalWeightOfVolumes"": ""24"",
" + "\n" +
@"    ""serviceAmount"": 1.2,
" + "\n" +
@"    ""servicePoD"": true,
" + "\n" +
@"    ""serviceSms"": false,
" + "\n" +
@"    ""serviceInstructions"": ""Enviar de manhã"",
" + "\n" +
@"    ""serviceEstimatedDateOfConclusion"": ""2022-01-11T17:07:16.646Z"",
" + "\n" +
@"    ""servicePickingDate"": null,
" + "\n" +
@"    ""servicePreferentialPeriod"": null,
" + "\n" +
@"    ""senderClientCode"": ""123"",
" + "\n" +
@"    ""senderName"": ""Diogo Almeida"",
" + "\n" +
@"    ""senderContactName"": ""Diogo Almeida"",
" + "\n" +
@"    ""senderContactPhoneNumber"": ""960000000"",
" + "\n" +
@"    ""senderContactEmail"": ""dalmeida@teste.pt"",
" + "\n" +
@"    ""senderAddressStreet"": ""Rua Alto do monte, nr 5"",
" + "\n" +
@"    ""senderAddressDoorNumber"": null,
" + "\n" +
@"    ""senderAddressFloor"": null,
" + "\n" +
@"    ""senderAddressPlace"": ""Lisboa"",
" + "\n" +
@"    ""senderAddressZipCode"": ""1000-123"",
" + "\n" +
@"    ""senderAddressZipCodePlace"": ""Lisboa"",
" + "\n" +
@"    ""senderAddressDistrict"":  ""null"",
" + "\n" +
@"    ""senderAddressCountryCode"": ""PT"",
" + "\n" +
@"    ""receiverClientCode"": ""312"",
" + "\n" +
@"    ""receiverName"": ""Pedro Ameixas"",
" + "\n" +
@"    ""receiverContactName"": ""Pedro Ameixas"",
" + "\n" +
@"    ""receiverContactPhoneNumber"": ""910000000"",
" + "\n" +
@"    ""receiverContactEmail"": ""pameixas@teste.pt"",
" + "\n" +
@"    ""receiverAddressStreet"": ""Av Perto da Ponte, nr 6"",
" + "\n" +
@"    ""receiverAddressDoorNumber"": null,
" + "\n" +
@"    ""receiverAddressFloor"": null,
" + "\n" +
@"    ""receiverAddressPlace"": ""Porto"",
" + "\n" +
@"    ""receiverAddressZipCode"": null,
" + "\n" +
@"    ""receiverAddressCountryCode"": ""PT"",
" + "\n" +
@"    ""receiverFixedInstructions"": null,
" + "\n" +
@"    ""clientObservations1"": ""Cuidado, frágil."",
" + "\n" +
@"    ""clientObservations2"": ""Manter fresco."",
" + "\n" +
@"    ""volumes"": null
" + "\n" +
@"  }
" + "\n" +
@"}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
```
#### Java
```java=
Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.post("https://vaspapirest.vaspexpresso.pt/api/V2/Shipment/Service/Label/LabelType/ZPL")
  .header("Authorization", "Bearer eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjE0NTAiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjpbInRlc3RlQHZhc3AucHQiLCJ0ZXN0ZUB2YXNwLnB0Il0sImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYWNjZXNzY29udHJvbHNlcnZpY2UvMjAxMC8wNy9jbGFpbXMvaWRlbnRpdHlwcm92aWRlciI6IkFTUC5ORVQgSWRlbnRpdHkiLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6IjdjMTRhZGQwLWZhZDEtNDkyYi1iMWFkLTFlN2JkODZiZDY3NyIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL2VtYWlsYWRkcmVzcyI6InRlc3RlQHZhc3AucHQiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJQUk9EIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbW9iaWxlcGhvbmUiOiI5NjAwMDAwMDAiLCJjbGllbnRfaWQiOiIxNyIsIm5iZiI6MTYzNjcxOTY0MywiZXhwIjoxNjM2ODA2MDQzLCJpc3MiOiJodHRwczovL3Zhc3BhcGlyZXN0LnZhc3BleHByZXNzby5wdCIsImF1ZCI6IjhFcHlVNVIzNUV4YzdWQld1OXdkS3JuWXRMVjlOOE4yIn0.k8NzkdGzaNnZ3YrueZpnhvIoX-s6yrnRVkWo7D7SnqE")
  .header("Content-Type", "application/json")
  .body("{\r\n  \"service\": {\r\n    \"serviceTypeId\": 93,\r\n    \"serviceMustDeliverOnRemote\": false,\r\n    \"serviceDeliveryPointCode\": null,\r\n    \"serviceFlow\": 0,\r\n    \"serviceClientReference\": \"teste\",\r\n    \"serviceClientBarCode\": null,\r\n    \"servicePinCode\": null,\r\n    \"serviceNumberOfVolumes\": \"2\",\r\n    \"serviceTotalWeightOfVolumes\": \"24\",\r\n    \"serviceAmount\": 1.2,\r\n    \"servicePoD\": true,\r\n    \"serviceSms\": false,\r\n    \"serviceInstructions\": \"Enviar de manhã\",\r\n    \"serviceEstimatedDateOfConclusion\": \"2022-01-11T17:07:16.646Z\",\r\n    \"servicePickingDate\": null,\r\n    \"servicePreferentialPeriod\": null,\r\n    \"senderClientCode\": \"123\",\r\n    \"senderName\": \"Diogo Almeida\",\r\n    \"senderContactName\": \"Diogo Almeida\",\r\n    \"senderContactPhoneNumber\": \"960000000\",\r\n    \"senderContactEmail\": \"dalmeida@teste.pt\",\r\n    \"senderAddressStreet\": \"Rua Alto do monte, nr 5\",\r\n    \"senderAddressDoorNumber\": null,\r\n    \"senderAddressFloor\": null,\r\n    \"senderAddressPlace\": \"Lisboa\",\r\n    \"senderAddressZipCode\": \"1000-123\",\r\n    \"senderAddressZipCodePlace\": \"Lisboa\",\r\n    \"senderAddressDistrict\":  \"null\",\r\n    \"senderAddressCountryCode\": \"PT\",\r\n    \"receiverClientCode\": \"312\",\r\n    \"receiverName\": \"Pedro Ameixas\",\r\n    \"receiverContactName\": \"Pedro Ameixas\",\r\n    \"receiverContactPhoneNumber\": \"910000000\",\r\n    \"receiverContactEmail\": \"pameixas@teste.pt\",\r\n    \"receiverAddressStreet\": \"Av Perto da Ponte, nr 6\",\r\n    \"receiverAddressDoorNumber\": null,\r\n    \"receiverAddressFloor\": null,\r\n    \"receiverAddressPlace\": \"Porto\",\r\n    \"receiverAddressZipCode\": null,\r\n    \"receiverAddressCountryCode\": \"PT\",\r\n    \"receiverFixedInstructions\": null,\r\n    \"clientObservations1\": \"Cuidado, frágil.\",\r\n    \"clientObservations2\": \"Manter fresco.\",\r\n    \"volumes\": null\r\n  }\r\n}")
  .asString();


```


#### Javascript
```javascript=
var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0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.append("Content-Type", "application/json");

var raw = JSON.stringify({
  "service": {
    "serviceTypeId": 93,
    "serviceMustDeliverOnRemote": false,
    "serviceDeliveryPointCode": null,
    "serviceFlow": 0,
    "serviceClientReference": "teste",
    "serviceClientBarCode": null,
    "servicePinCode": null,
    "serviceNumberOfVolumes": "2",
    "serviceTotalWeightOfVolumes": "24",
    "serviceAmount": 1.2,
    "servicePoD": true,
    "serviceSms": false,
    "serviceInstructions": "Enviar de manhã",
    "serviceEstimatedDateOfConclusion": "2022-01-11T17:07:16.646Z",
    "servicePickingDate": null,
    "servicePreferentialPeriod": null,
    "senderClientCode": "123",
    "senderName": "Diogo Almeida",
    "senderContactName": "Diogo Almeida",
    "senderContactPhoneNumber": "960000000",
    "senderContactEmail": "dalmeida@teste.pt",
    "senderAddressStreet": "Rua Alto do monte, nr 5",
    "senderAddressDoorNumber": null,
    "senderAddressFloor": null,
    "senderAddressPlace": "Lisboa",
    "senderAddressZipCode": "1000-123",
    "senderAddressZipCodePlace": "Lisboa",
    "senderAddressDistrict": "null",
    "senderAddressCountryCode": "PT",
    "receiverClientCode": "312",
    "receiverName": "Pedro Ameixas",
    "receiverContactName": "Pedro Ameixas",
    "receiverContactPhoneNumber": "910000000",
    "receiverContactEmail": "pameixas@teste.pt",
    "receiverAddressStreet": "Av Perto da Ponte, nr 6",
    "receiverAddressDoorNumber": null,
    "receiverAddressFloor": null,
    "receiverAddressPlace": "Porto",
    "receiverAddressZipCode": null,
    "receiverAddressCountryCode": "PT",
    "receiverFixedInstructions": null,
    "clientObservations1": "Cuidado, frágil.",
    "clientObservations2": "Manter fresco.",
    "volumes": null
  }
});

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'
};

fetch("https://vaspapirest.vaspexpresso.pt/api/V2/Shipment/Service/Label/LabelType/ZPL", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
```

#### PHP
```php=
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://vaspapirest.vaspexpresso.pt/api/V2/Shipment/Service/Label/LabelType/ZPL',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
  "service": {
    "serviceTypeId": 93,
    "serviceMustDeliverOnRemote": false,
    "serviceDeliveryPointCode": null,
    "serviceFlow": 0,
    "serviceClientReference": "teste",
    "serviceClientBarCode": null,
    "servicePinCode": null,
    "serviceNumberOfVolumes": "2",
    "serviceTotalWeightOfVolumes": "24",
    "serviceAmount": 1.2,
    "servicePoD": true,
    "serviceSms": false,
    "serviceInstructions": "Enviar de manhã",
    "serviceEstimatedDateOfConclusion": "2022-01-11T17:07:16.646Z",
    "servicePickingDate": null,
    "servicePreferentialPeriod": null,
    "senderClientCode": "123",
    "senderName": "Diogo Almeida",
    "senderContactName": "Diogo Almeida",
    "senderContactPhoneNumber": "960000000",
    "senderContactEmail": "dalmeida@teste.pt",
    "senderAddressStreet": "Rua Alto do monte, nr 5",
    "senderAddressDoorNumber": null,
    "senderAddressFloor": null,
    "senderAddressPlace": "Lisboa",
    "senderAddressZipCode": "1000-123",
    "senderAddressZipCodePlace": "Lisboa",
    "senderAddressDistrict":  "null",
    "senderAddressCountryCode": "PT",
    "receiverClientCode": "312",
    "receiverName": "Pedro Ameixas",
    "receiverContactName": "Pedro Ameixas",
    "receiverContactPhoneNumber": "910000000",
    "receiverContactEmail": "pameixas@teste.pt",
    "receiverAddressStreet": "Av Perto da Ponte, nr 6",
    "receiverAddressDoorNumber": null,
    "receiverAddressFloor": null,
    "receiverAddressPlace": "Porto",
    "receiverAddressZipCode": null,
    "receiverAddressCountryCode": "PT",
    "receiverFixedInstructions": null,
    "clientObservations1": "Cuidado, frágil.",
    "clientObservations2": "Manter fresco.",
    "volumes": null
  }
}',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjE0NTAiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjpbInRlc3RlQHZhc3AucHQiLCJ0ZXN0ZUB2YXNwLnB0Il0sImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYWNjZXNzY29udHJvbHNlcnZpY2UvMjAxMC8wNy9jbGFpbXMvaWRlbnRpdHlwcm92aWRlciI6IkFTUC5ORVQgSWRlbnRpdHkiLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6IjdjMTRhZGQwLWZhZDEtNDkyYi1iMWFkLTFlN2JkODZiZDY3NyIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL2VtYWlsYWRkcmVzcyI6InRlc3RlQHZhc3AucHQiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJQUk9EIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbW9iaWxlcGhvbmUiOiI5NjAwMDAwMDAiLCJjbGllbnRfaWQiOiIxNyIsIm5iZiI6MTYzNjcxOTY0MywiZXhwIjoxNjM2ODA2MDQzLCJpc3MiOiJodHRwczovL3Zhc3BhcGlyZXN0LnZhc3BleHByZXNzby5wdCIsImF1ZCI6IjhFcHlVNVIzNUV4YzdWQld1OXdkS3JuWXRMVjlOOE4yIn0.k8NzkdGzaNnZ3YrueZpnhvIoX-s6yrnRVkWo7D7SnqE',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

#### Python
```python=
import http.client
import json

conn = http.client.HTTPSConnection("vaspapirest.vaspexpresso.pt")
payload = json.dumps({
  "service": {
    "serviceTypeId": 93,
    "serviceMustDeliverOnRemote": False,
    "serviceDeliveryPointCode": None,
    "serviceFlow": 0,
    "serviceClientReference": "teste",
    "serviceClientBarCode": None,
    "servicePinCode": None,
    "serviceNumberOfVolumes": "2",
    "serviceTotalWeightOfVolumes": "24",
    "serviceAmount": 1.2,
    "servicePoD": True,
    "serviceSms": False,
    "serviceInstructions": "Enviar de manhã",
    "serviceEstimatedDateOfConclusion": "2022-01-11T17:07:16.646Z",
    "servicePickingDate": None,
    "servicePreferentialPeriod": None,
    "senderClientCode": "123",
    "senderName": "Diogo Almeida",
    "senderContactName": "Diogo Almeida",
    "senderContactPhoneNumber": "960000000",
    "senderContactEmail": "dalmeida@teste.pt",
    "senderAddressStreet": "Rua Alto do monte, nr 5",
    "senderAddressDoorNumber": None,
    "senderAddressFloor": None,
    "senderAddressPlace": "Lisboa",
    "senderAddressZipCode": "1000-123",
    "senderAddressZipCodePlace": "Lisboa",
    "senderAddressDistrict": "null",
    "senderAddressCountryCode": "PT",
    "receiverClientCode": "312",
    "receiverName": "Pedro Ameixas",
    "receiverContactName": "Pedro Ameixas",
    "receiverContactPhoneNumber": "910000000",
    "receiverContactEmail": "pameixas@teste.pt",
    "receiverAddressStreet": "Av Perto da Ponte, nr 6",
    "receiverAddressDoorNumber": None,
    "receiverAddressFloor": None,
    "receiverAddressPlace": "Porto",
    "receiverAddressZipCode": None,
    "receiverAddressCountryCode": "PT",
    "receiverFixedInstructions": None,
    "clientObservations1": "Cuidado, frágil.",
    "clientObservations2": "Manter fresco.",
    "volumes": None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XRMVjlOOE4yIn0.k8NzkdGzaNnZ3YrueZpnhvIoX-s6yrnRVkWo7D7SnqE',
  'Content-Type': 'application/json'
}
conn.request("POST", "/api/V2/Shipment/Service/Label/LabelType/ZPL", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```


