Skip to main content
developer

Book Pakke til hentestedPickup parcel booking example

Request

Pakke til hentested (5800) med Valgfritt hentested (1036), Legitimasjonsplikt (1333) og fri retur av pakken. Pickup parcel with Optional pickup point, ID verification and free return of parcel.

{
  "schemaVersion": 1,
  "consignments": [
    {
      "shippingDateTime": 2021-06-09T10:49:47.389+02:00,
      "parties": {
        "sender": {
          "name": "Ola Nordmann",
          "addressLine": "Testsvingen 12",
          "addressLine2": "Postboks 123",
          "postalCode": "0263",
          "city": "OSLO",
          "countryCode": "NO",
          "reference": "12345",
          "additionalAddressInfo": null,
          "contact": {
            "name": "Trond Nordmann",
            "email": "trond@nordmanntest.no",
            "phoneNumber": "99999999"
          }
        },
        "recipient": {
          "name": "Tore Mottaker",
          "addressLine": "Mottakerveien 14",
          "addressLine2": null,
          "postalCode": "9011",
          "city": "TROMSØ",
          "countryCode": "NO",
          "reference": null,
          "additionalAddressInfo": "Bruk ringeklokken",
          "contact": {
            "name": "Tore mottaker",
            "email": "tore@mottakertest.no",
            "phoneNumber": "+4791234567"
          }
        },
        "pickupPoint": {
          "id": "122594",
          "countryCode": "NO"
        }
      },
      "product": {
        "id": "5800",
        "customerNumber": "**********",
        "additionalServices": [
          {
            "id": "1133"
          }
        ]
      },
      "returnProduct": {
        "id": "9300",
        "additionalServices": null
      },
      "packages": {
          "correlationId": "PACKAGE-123"
          "weightInKg": 1.1,
          "goodsDescription": "Testing equipment",
          "dimensions": {
            "heightInCm": 13,
            "widthInCm": 23,
            "lengthInCm": 10
          },
        }
      ]
    }
  ],
  "testIndicator": false
}

Submit the request

Post your request to

https://api.bring.com/booking/api/booking

Response

The Booking API generates and sends all necessary EDI messages to carry out the shipment. A URL to a PDF label is returned in the response. The label must be printed and attached to the shipment. A URL for the tracking information is also returned.

A GET request to the label URL will result in a HTTP 302 redirect to the concrete storage facility (e.g. redirect to Amazon S3). Ensure that your client follows these redirects.

{
  "consignments": [
    {
      "confirmation": {
        "consignmentNumber": "70438103433585280",
        "returnConsignmentNumber": "70438103433585297",
        "links": {
          "labels": "https://www.mybring.com/booking/labels/1234567?auth-token=5cf1dcee-4f01-4c9a-9870-12345678950b",
          "waybill": null,
          "tracking": "http://sporing.bring.no/sporing.html?q=70438103433585280"
        },
        "dateAndTimes": {
          "earliestPickup": "2021-06-09T10:49:00+02:00",
          "expectedDelivery": "2021-06-14T00:00:00+02:00"
        },
        "packages": [
          {
            "packageNumber": "370438101268058536",
            "correlationId": "PACKAGE-123"
          }
        ]
      },
      "errors": null,
      "correlationId": "INTERNAL-123456"
    }
  ]
}