Canonical URL

DeliveryAttestation Credential

The delivery of a parcel either via the postal service or a commercial service.

Canonical URL
Property Description
address
The parcel’s destination address.
issuedBy
The organization issuing the verifiable credential.
reference
The delivery reference on the Compellio Registry.
provider
The service provider, service operator, or service performer; the goods producer.
Example

The following JSON object is an example of how data can be expressed in the credentialSubject section of a DeliveryAttestation verifiable credential.

This example represents a DeliveryAttestation for a package that was delivered by a postal service, named “Postal Service A”, to a recipient residing at 21 rue Glesener, L-1631 Luxembourg, Luxembourg.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
{
  "address": "21 rue Glesener, L-1631 Luxembourg, Luxembourg",
  "issuedBy": {
    "logo": "https://example.com/logo.png",
    "name": "Postal Service A"
  },
  "reference": "reg_1234567890123",
  "provider": {
    "legalname": "Postal Service A",
    "logo": "https://example.com/logo.png",
    "url": "https://example.com",
    "vatID": "LU12345672",
    "reference": "reg_0987654321234",
  },
}
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
{
  "credentialPreview": {
    "@context": [
      "https://www.w3.org/2018/credentials/v1",
      {
        "name": "https://schema.org/name",
        "DeliveryAttestation": {
          "@context": {
            "@protected": true,
            "@version": 1.1,
            "address": "https://vocabulary.trustmydata.compell.io/properties/address",
            "id": "@id",
            "issuedBy": {
              "@context": {
                "@protected": true,
                "@version": 1.1,
                "logo": {
                  "@id": "schema:logo",
                  "@type": "@id"
                },
                "name": "schema:name",
                "schema": "https://schema.org/",
                "type": "schema:Organization"
              },
              "@id": "https://vocabulary.trustmydata.compell.io/properties/issuedBy"
            },
            "provider": {
              "@context": {
                "@protected": true,
                "@version": 1.1,
                "legalName": "schema:legalName",
                "logo": {
                  "@id": "schema:logo",
                  "@type": "@id"
                },
                "reference": {
                  "@id": "https://vocabulary.trustmydata.compell.io/properties/reference",
                  "@type": "@id"
                },
                "schema": "https://schema.org/",
                "type": "schema:Organization",
                "url": {
                  "@id": "schema:url",
                  "@type": "@id"
                },
                "vatID": "schema:vatID"
              },
              "@id": "https://vocabulary.trustmydata.compell.io/properties/provider"
            },
            "reference": {
              "@id": "https://vocabulary.trustmydata.compell.io/properties/reference",
              "@type": "@id"
            },
            "schema": "https://schema.org/",
            "type": "@type"
          },
          "@id": "https://vocabulary.trustmydata.compell.io/credentials/DeliveryAttestation"
        },
        "description": "https://schema.org/description"
      }
    ],
    "id": "urn:...",
    "type": [
      "VerifiableCredential",
      "DeliveryAttestation"
    ],
    "credentialSubject": {
      "id": "did:...",
      "type": "DeliveryAttestation",
      "address": "21 rue Glesener, L-1631 Luxembourg, Luxembourg",
      "issuedBy": {
        "logo": "https://example.com/logo.png",
        "name": "Postal Service A"
      },
      "reference": "reg_1234567890123",
      "provider": {
        "legalname": "Postal Service A",
        "logo": "https://example.com/logo.png",
        "url": "https://example.com",
        "vatID": "LU12345672",
        "reference": "reg_0987654321234",
      },
    },
    "issuer": "did:...",
    "issuanceDate": "2021-11-27T10:22:40Z",
    "credentialSchema": {
      "id": "...",
      "type": "JsonSchemaValidator2021"
    },
    "description": [
      {
        "@language": "en",
        "@value": "The delivery of a parcel either via the postal service or a commercial service."
      }
    ],
    "name": [
      {
        "@language": "en",
        "@value": "Delivery attestation"
      }
    ]
  },
  "expires": "2024-11-27T10:22:40Z",
  "type": "CredentialOffer",
}
Copyright © 2021 Compellio S.A., Talao SAS. All rights reserved.
Last modified on Dec 11, 2021 17:50