Skip to content


API - Usage Methods

API Usage Methods

The list below gives a brief description of each supported method exposed by the Sequoia API. The 'version' column indicates in which version of the software the method was introduced.

Each method is further described in the following section.

Airline Messaging

Method Description
SendFhlMessage Transmits an FHL (Air Manifest data) message to an airline
SendFwbMessage Transmits an FWB (Air Waybill data) message to an airline

Consolidation

Method Description
CreateConsolidation Creates a consolidation.
DeleteConsolidation Deletes a consolidation.
UpdateConsolidation Updates an existing consolidation

CCS-UK Inventory

Method Description
GetAgentInventoriesFromDate Gets a summary list of agent inventory records modified or created from a specified data.
GetAgentInventoryRecord Gets a specific agent inventory record given its natural key.

CRM

Method Description
CreateCrmAccount Creates a CRM Account.
GetUniqueCrmAccount Method to retrieve details of a CRM account record
UpdateCrmAccount Updates an existing CRM Account.

Declaration (CHIEF)

Method Description
AmendAcceptedExportGbDeclaration Amends an accepted export declaration.
AmendAcceptedImportGbDeclaration Amends an accepted import declaration.
CreateExportGbDeclaration Creates an export declaration.
CreateFsdImportGbDeclaration Creates a final supplementary declaration (FSD) for CFSP.
CreateImportGbDeclaration Creates an import declaration.
DeleteGbDeclaration Deletes a declaration.
GetCustomsReportDeclarationResponse Gets the full data for a specified declaration and report type.
GetFrontierDeclarationResponse Gets specific declaration response data.
GetFullAcceptedDeclarationResponse Gets the full response data for an accepted declaration.
GetGbDeclaration Gets declaration data.
GetGbDeclarationErrorResponseList Gets the error response(s) for the given declaration.
GetGbDeclarationFromTemplate Gets template (full or item only) data formatted as a declaration.
GetGbDeclarationReportList Gets a list of available reports for the specified declaration.
GetGbDeclarationsModifiedSince Gets a list of declarations modified (or created) since the specified date/time.
SendGbDeclaration Send a declaration.
SendGbDeclarationCancellation Sends a declaration cancellation request.
UpdateExportGbDeclaration Updates an existing export declaration.
UpdateImportGbDeclaration Updates an existing import declaration.
ValidateGbDeclaration Validates an existing declaration.

ETSF

Method Description
AddEtsfHouseConsignment Adds a single ETSF House air waybill to an existing consolidation or basic consignment (adding to a Basic will automatically convert the Basic to a Consolidation Master record).
CreateEtsfConsignment Creates an ETSF (formerly ERTS) inventory consignment record.
CreateEtsfPreArrivalConsignment Creates an ETSF (formerly ERTS) pre-arrival inventory consignment record.
DeleteEtsfConsignment Deletes an ETSF inventory record.
GetEtsfConsignment Gets details of an ETSF inventory record.
MaintainEtsfSplitConsignment Create/extend/delete ETSF split consignment records.
UpdateEtsfConsignment Updates an ETSF record
UpdateEtsfPrearrivalConsignment Updates a Pre-arrival ETSF record

Export Messaging

Method Description
ArriveExportGbDeclaration Arrive an export declaration in DEP
AssociateDucrToMucr Sends a UKCINV message to CHIEF to associate a DUCR to a MUCR
CloseMucr Sends a UKCINV message to CHIEF to close a MUCR
DisassociateDucrFromMucr Sends a UKCINV message to CHIEF to disassociate a DUCR from a MUCR

Job

Method Description
AddReferenceToJob Adds a miscellaneous reference to a job.
CreateJob Creates a job.
CreateJobReferenceType Creates a Job Reference type, against which a miscellaneous reference can be specified and associated to a Job.
DeleteJob Deletes a job.
UpdateJob Updates an existing job.
Method Description
LinkJobToAgentInventory Links a job to an agent inventory record.
LinkJobToDeclaration Links a job to a declaration.
LinkJobToShipment Links a job to a shipment.
LinkShipmentToConsolidation Links a shipment to a consolidation
UnlinkJobFromAgentInventory Removes the existing link between a job and an agent inventory record.
UnlinkJobFromShipment Removes the existing link between a job and a shipment.

NCTS

Method Description
CreateNctsDeclaration Creates an NCTS movement and declaration.
GetNctsDeclarationStatus Returns the current status of an NCTS declaration.
GetNctsTransitStatus Returns the current status of an NCTS movement.
SendNctsDeclaration Sends an existing NCTS declaration.

Shipment

Method Description
CreateShipment Creates a shipment.
DeleteShipment Deletes a shipment.
UpdateShipment Updates an existing shipment.

Worksheet

Method Description
CreateWorksheet Creates a worksheet.
GetWorksheetReport Gets a detailed item level report based on a worksheet.
GetWorksheetsModifiedWithinDateRange Gets a list of worksheets modified within a date range.

Process Flow Service Methods

The following methods will help to programmatically automate Sequoia functionality.

Sequoia v1.74

Batch

Description

Payload Schema / Return value
Request: None
Response (success): .xsd
Response (failure):
Sequoia v1.74

BatchProcess

Commits the specified transactions

Payload Schema / Return value
Request: None
Response (success): .xsd
Response (failure):

Example Batch Processing

The following is an example of the BatchProcess service request where data from successful responses to individual service requests is used to seed a subsequent request.
This example uses XPath to parse data from successful responses and to store the required information into variables which are then used to replace the information in the subsequent request.
The example is based on creating a job (CreateJob), a declaration (CreateImportGbDeclaration) and then linking both the job and declaration together (LinkJobToDeclaration).

<?xml version="1.0" encoding="utf-8"?>
<this:batch xmlns:this="asm.org.uk/Sequoia/BatchProcess"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="asm.org.uk/Sequoia/BatchProcess">
  <this:messages>
    <this:message request="CreateJob">
      <this:payload>
        <![CDATA[<jobHeader xmlns="asm.org.uk/Sequoia/JobHeader" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="asm.org.uk/Sequoia/JobHeader JobHeader.xsd" xmlns:nsAccount="asm.org.uk/Sequoia/Account" xmlns:nsAccAddr="asm.org.uk/Sequoia/AccountAddress">
  <jobType>AI</jobType>
  <customer>
    <nsAccount:shortCode>APITEST</nsAccount:shortCode>
    <nsAccount:name>API Test Customer Ltd</nsAccount:name>
    <nsAccount:address>
      <nsAccAddr:street1>123 New Street</nsAccAddr:street1>
      <nsAccAddr:countryCode>GB</nsAccAddr:countryCode>
      <nsAccAddr:description>Test description</nsAccAddr:description>
    </nsAccount:address>
  </customer>
  <consignee>
    ...
</jobHeader>]]>
      </this:payload>
      <this:variables>
        <this:parseInstruction xPath="" variableName="@[email protected]" />
      </this:variables>
    </this:message>
    <this:message request="CreateImportGbDeclaration">
      <this:payload>
        <![CDATA[<importDeclaration xmlns="asm.org.uk/Sequoia/DeclarationGbImport">
    <declarantBadge>
    <code xmlns="asm.org.uk/Sequoia/Badge">BOB</code>
    <location xmlns="asm.org.uk/Sequoia/Badge">
      <iataPortCode xmlns="asm.org.uk/Sequoia/UnLocation">LHR</iataPortCode>
    </location>
  </declarantBadge>
  <declarationCurrency>
    <currencyCode xmlns="asm.org.uk/Sequoia/Currency">GBP</currencyCode>
  </declarationCurrency>
    ...
</importDeclaration>]]>
      </this:payload>
      <this:variables>
        <this:parseInstruction xPath="//*[local-name() = 'declarationIdentifier']/*[local-name() = 'declarationIdentity']/*[local-name() = 'declarationUcr']" variableName="@[email protected]" />
      </this:variables>
    </this:message>
    <this:message request="LinkJobToDeclaration">
      <this:payload>
        <![CDATA[<linkJobToDeclaration xmlns="asm.org.uk/Sequoia/LinkJobAndDeclaration" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="asm.org.uk/Sequoia/LinkJobAndDeclaration LinkJobToDeclaration.xsd" xmlns:nsJobIdentityType="asm.org.uk/Sequoia/JobIdentityType" xmlns:nsDeclarationIdentityType="asm.org.uk/Sequoia/DeclarationGbIdentityType">
  <JobId>
    <nsJobIdentityType:jobReference>@[email protected]</nsJobIdentityType:jobReference>
  </JobId>
  <DeclarationId>
    <nsDeclarationIdentityType:declarationUcr>@[email protected]</nsDeclarationIdentityType:declarationUcr>
  </DeclarationId>
</linkJobToDeclaration>]]>
      </this:payload>
      <this:variables>
        <this:replaceInstruction variableName="@[email protected]" />
        <this:replaceInstruction variableName="@[email protected]" />
      </this:variables>
    </this:message>
  </this:messages>
</this:batch>
Sequoia v1.74

CommitTransactions

Commits the specified transactions

Payload Schema / Return value
None - see WSDL for service description.
Notes
Pass the TransactionId to the method.
An array of any errors will be populated in the response XML.
Sequoia v1.74

GetApiVersion

Gets the API version number

Payload Schema / Return value
Request: None
Response (success): ApiVersionNumber.xsd
Response (failure):
Sequoia v1.74

GetEvents

Retrieves events raised by Sequoia. Note that this method is not available for services where there is a callback channel as these events will get reported directly to the registered callback method in that case. This method will return a maximum of 50 distinct event notifications for one query. This method can be re-queried to bring back further event notifications in page sizes of 50 notifications. If there are no events available, an xml file matching the schema but containing an empty collection of events is returned. Events will not be duplicated - for example if a user saves a job 3 times within ten seconds, there will only be one 'job updated' event returned by subsequently calling this service method.

Payload Schema / Return value
Request: None
Response (success): EventsResponse.xsd
Response (failure):
Sequoia v1.74

Logon

Creates an authenticated session within which an application can invoke methods on the API service.

None - see WSDL for service description. Usage Pass username and password to this method. An array of any errors will be populated in the response XML.

Sequoia v1.74

LookUp

Method to look up an entity based on a code or reference. Currently only supports an air carrier based on its master air waybill prefix.

Payload Schema / Return value
Request: LookupRequest.xsd
Response (success): LookupResponse.xsd
Response (failure): See Error Reporting above
Sequoia v1.74

RollbackTransactions

Rollback the specified transactions.

Payload Schema / Return value
None - see WSDL for service description.

Notes
Pass TransactionId to this method.