{
  "version": "https://schema.openattestation.com/3.0/schema.json",
  "@context": [
    "https://www.w3.org/2018/credentials/v1",
    "https://w3id.org/traceability/v1",
    "https://schemata.openattestation.com/io/tradetrust/Invoice/1.0/invoice-context.json",
    "https://schemata.openattestation.com/com/openattestation/1.0/OpenAttestation.v3.json"
  ],
  "id": "urn:uuid:5e45f155-c949-4005-a7e5-26ni58b6a59a",
  "type": [
    "VerifiableCredential",
    "CommercialInvoiceCredential"
  ],
  "name": "Commercial Invoice Certificate",
  "description": "Document recording a transaction between a seller and a buyer",
  "issuanceDate": "2022-02-23T11:55:00Z",
  "issuer": {
    "type": [
      "Organization"
    ],
    "id": "did:key:z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U",
    "name": "Maxi Acero Mexicano",
    "email": "info@example.net",
    "phoneNumber": "555-127-7813"
  },
  "openAttestationMetadata": {
    "template": {
      "type": "EMBEDDED_RENDERER",
      "name": "INVOICE",
      "url": "https://generic-templates.tradetrust.io"
    },
    "proof": {
      "type": "OpenAttestationProofMethod",
      "method": "DID",
      "value": "did:ethr:0x4FC1E99Fb7833517e3460de4b38C3C9218bB8F52",
      "revocation": {
        "type": "NONE"
      }
    },
    "identityProof": {
      "type": "DID",
      "identifier": "did:ethr:0x4FC1E99Fb7833517e3460de4b38C3C9218bB8F52"
    }
  },
  "credentialSubject": {
    "type": [
      "Invoice"
    ],
    "portOfEntry": {
      "type": [
        "Place"
      ],
      "unLocode": "USLGB"
    },
    "destinationCountry": "MX",
    "purchaseDate": "2021-02-21",
    "seller": {
      "type": [
        "Organization"
      ],
      "name": "Maxi Acero Mexicano",
      "location": {
        "type": [
          "Place"
        ],
        "address": {
          "type": [
            "PostalAddress"
          ],
          "streetAddress": "Avenida Carlos 100",
          "addressLocality": "Hernádez de Mara",
          "addressRegion": "Nuevo Leon",
          "postalCode": "32200",
          "addressCountry": "Mexico"
        }
      },
      "email": "info@example.net",
      "phoneNumber": "555-127-7813"
    },
    "buyer": {
      "type": [
        "Organization"
      ],
      "id": "did:web:generic-motors.example.com",
      "location": {
        "type": [
          "Place"
        ],
        "address": {
          "type": [
            "PostalAddress"
          ],
          "name": "Generic Motors of America",
          "streetAddress": "12 Generic Motors Dr",
          "addressLocality": "Detroit",
          "addressRegion": "Michigan",
          "postalCode": "48232-5170",
          "addressCountry": "USA"
        }
      }
    },
    "consignee": {
      "type": [
        "Organization"
      ],
      "id": "did:web:generic-motors.example.com"
    },
    "itemsShipped": [
      {
        "type": [
          "TradeLineItem"
        ],
        "product": {
          "type": [
            "Product"
          ],
          "manufacturer": {
            "type": [
              "Organization"
            ],
            "name": "Maxi Acero Mexicano",
            "location": {
              "type": [
                "Place"
              ],
              "address": {
                "type": [
                  "PostalAddress"
                ],
                "streetAddress": "Avenida Carlos 100",
                "addressLocality": "Hernádez de Mara",
                "addressRegion": "Nuevo Leon",
                "postalCode": "32200",
                "addressCountry": "Mexico"
              }
            }
          },
          "description": "UNS S30400 chromium-nickel stainless steel rolls.",
          "weight": {
            "type": [
              "QuantitativeValue"
            ],
            "unitCode": "lbs",
            "value": "16500"
          }
        },
        "itemCount": 5,
        "grossWeight": {
          "type": [
            "QuantitativeValue"
          ],
          "value": "82500",
          "unitCode": "lbs"
        },
        "lineItemTotalPrice": {
          "type": [
            "PriceSpecification"
          ],
          "price": 5200,
          "priceCurrency": "USD"
        }
      },
      {
        "type": [
          "TradeLineItem"
        ],
        "product": {
          "type": [
            "Product"
          ],
          "manufacturer": {
            "type": [
              "Organization"
            ],
            "name": "Maxi Acero Mexicano",
            "location": {
              "type": [
                "Place"
              ],
              "address": {
                "type": [
                  "PostalAddress"
                ],
                "streetAddress": "Avenida Carlos 100",
                "addressLocality": "Hernádez de Mara",
                "addressRegion": "Nuevo Leon",
                "postalCode": "32200",
                "addressCountry": "Mexico"
              }
            }
          },
          "description": "Galvalannealed ASTM A-653 zinc-iron alloy-coated steel sheets.",
          "weight": {
            "type": [
              "QuantitativeValue"
            ],
            "value": "12680",
            "unitCode": "lbs"
          }
        },
        "itemCount": 20,
        "grossWeight": {
          "type": [
            "QuantitativeValue"
          ],
          "value": "253600",
          "unitCode": "lbs"
        },
        "lineItemTotalPrice": {
          "type": [
            "PriceSpecification"
          ],
          "price": 4400,
          "priceCurrency": "USD"
        }
      }
    ],
    "totalWeight": {
      "type": [
        "QuantitativeValue"
      ],
      "value": "336100",
      "unitCode": "lbs"
    },
    "totalPaymentDue": {
      "type": [
        "PriceSpecification"
      ],
      "price": 9600,
      "priceCurrency": "USD"
    }
  }
}