POST api/Hmrc

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
hmrcDocumnet
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "SaveId": "cc2cc1db-ccca-4443-9cff-76f3f40c17ca",
  "Status": "sample string 2",
  "SaleOrderId": "sample string 3",
  "SaleSaveId": "9092ca88-a88c-4037-a160-1fd369b79dcc",
  "DocumentDate": "sample string 4",
  "DocumentNo": "sample string 5",
  "TenantId": "sample string 6",
  "DeclarantOrganisation": "sample string 7",
  "DeclarantTelelephone": "sample string 8",
  "DeclarationPlace": "sample string 9",
  "ChamberLaunched": true,
  "DeclarationDate": "sample string 11",
  "DeclarantName": "sample string 12",
  "DeclarantJoTitle": "sample string 13",
  "DeclarantSignature": "sample string 14",
  "PdfReport": "sample string 15",
  "CreatedDateTimeStamp": "2026-03-21T21:08:26.4983608+00:00",
  "UpdatedDateTimeStamp": "2026-03-21T21:08:26.4983608+00:00",
  "HmrcAddresses": {
    "$id": "2",
    "$values": [
      {
        "$id": "3",
        "SaveId": "f5dcda1e-89bb-4ea6-955a-50ff7898968e",
        "NAType": "sample string 2",
        "LongName": "sample string 3",
        "ShortName": "sample string 4",
        "CountryId": "sample string 5",
        "CountryName": "sample string 6",
        "AddressLine1": "sample string 7",
        "AddressLine2": "sample string 8",
        "TownLocality": "sample string 9",
        "CityRegion": "sample string 10",
        "PostalZipCode": "sample string 11",
        "State": "sample string 12",
        "VATNumber": "sample string 13",
        "EORINumber": "sample string 14",
        "ContactSaveId": "7e8af1b9-9f29-4f0a-ac34-957bd09713fc",
        "HmrcSaveId": "cabbcbc6-24f5-47cb-b9e6-679eb95d1443",
        "HmrcDocumnet": {
          "$ref": "1"
        }
      },
      {
        "$ref": "3"
      },
      {
        "$ref": "3"
      }
    ]
  },
  "HmrcDetailProducts": {
    "$id": "4",
    "$values": [
      {
        "$id": "5",
        "SaveId": "ecb0e858-6ab2-48ef-a6bd-6909b559e105",
        "ProductId": "sample string 2",
        "CustomsProcedureCode": "sample string 3",
        "NetWeight": "sample string 4",
        "GoodsDescription": "sample string 5",
        "CommodityCode": "sample string 6",
        "GrossWeight": "sample string 7",
        "SupplementryUnits": "sample string 8",
        "StatedValue": "sample string 9",
        "ItemPrice": "sample string 10",
        "UNDGNCode": "sample string 11",
        "AICode": "sample string 12",
        "AIStatement": "sample string 13",
        "HmrcSaveId": "8dacf9a5-9664-4fe1-9aa6-5eb69c60d315",
        "ProductSaveId": "86e084d1-cf08-45f6-9d93-a2fd4e43afda",
        "HmrcDocumnet": {
          "$ref": "1"
        }
      },
      {
        "$ref": "5"
      },
      {
        "$ref": "5"
      }
    ]
  },
  "HmrcDetail": {
    "$id": "6",
    "HmrcSaveId": "83dd7f96-9323-4798-aa77-f380894f4032",
    "PackageType": "sample string 2",
    "PackageMarks": "sample string 3",
    "PackageCount": "sample string 4",
    "DocumentType": "sample string 5",
    "DocumentRefId": "sample string 6",
    "DocumentExportClass": "sample string 7",
    "DocumentLongName": "sample string 8",
    "CommercialInvoice": "sample string 9",
    "InvoiceSaveId": "6572f657-be31-4396-818f-6eb312c81125",
    "HmrcDocumnet": {
      "$ref": "1"
    }
  },
  "HmrcHeader": {
    "$id": "7",
    "HmrcSaveId": "ec78e9e1-9b48-4037-87ba-485db9a6bc01",
    "ClientRef": "sample string 2",
    "MessageType": "sample string 3",
    "DeclarationCcy": "sample string 4",
    "DeclarationRep": "sample string 5",
    "DeclarationUCR": "sample string 6",
    "DeparturePort": "sample string 7",
    "DestinationCountry": "sample string 8",
    "ConsignorId": "sample string 9",
    "ConsigneeId": "sample string 10",
    "TotalPackages": "sample string 11",
    "GoodsDepartureDate": "sample string 12",
    "SpecialCircimstances": "sample string 13",
    "InvoiceCcy": "sample string 14",
    "ExitOffice": "sample string 15",
    "MasterUCR": "sample string 16",
    "TransportModeCode": "sample string 17",
    "TrnasportModeInland": "sample string 18",
    "TransportCharges": "sample string 19",
    "SingleTransportContract": "sample string 20",
    "UKExportOffice": "sample string 21",
    "HmrcDocumnet": {
      "$ref": "1"
    }
  },
  "HmrcHistories": {
    "$id": "8",
    "$values": [
      {
        "$id": "9",
        "SaveId": "e82c456f-356d-4017-bf3d-0fae958acdf0",
        "Status": "sample string 2",
        "ProcessDate": "sample string 3",
        "ProcessUser": "sample string 4",
        "UserComments": "sample string 5",
        "HmrcSaveId": "8db0ecf0-cf5f-4c24-abf6-0ef8f28f3251",
        "HmrcDocumnet": {
          "$ref": "1"
        }
      },
      {
        "$ref": "9"
      },
      {
        "$ref": "9"
      }
    ]
  }
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: One or more errors occurred.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: One or more errors occurred.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'HmrcDocumnet'.

Response Information

No documentation available.

Response body formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.