Service: ShipmentPublicService

Version: 1_9 (other versions, change log, ZUMSTEIN_V3.12-SNAPSHOT) END OF LIFE. Please consider switching to the latest version of the webservices, because this version may be removed anytime from support.

SOAP Demo endpoint: https://myinstit.ws.secutix.com/tnpsb/external-remoting/com.secutix.facade.shipment.v1_9.ShipmentPublicService.webservice?wsdl

To get the endpoint for your own institution, replace "myinstit" (just after https://) in the url by your own institution code.

For further documentation and examples, please check in Platform Website.Shipment public service. Responsible of handling shipments linked to orders, where a shipment is composed of tickets and documents.

Methods:

getAvailableShipmentModes

REST_RPCMOSACUBEPLAY
SOAPMOSACUBEPLAY

Retrieve the list of available shipment modes based on filtering parameters.

Parameters

pointOfSalesIdlongMandatory
Technical ID of the point of sales; mandatory, used to find shipment modes authorized for the sales channel the point of sales belongs to.
shipmentContents(TICKETS|DOCUMENTS|
TICKETS_AND_DOCUMENTS)
Mandatory
Filter shipment modes based on their support for tickets, documents or both of those elements; mandatory parameter.
destinationCountryCodeString (8)filter shipment modes that support mail in the given country code; optional parameter.
contactAddressIdLongfilter shipment modes based on country code of the given contact address; supersede the destinationCountryCode parameter if defined.
orderIdLongoptional parameter, if defined filter shipment modes based on the order content; the following filters are applied:
  • if mail shipments are available in the sales channel, only the ones with valid delivery times will be returned;
  • if print@home shipment mode is available, will check that the order content allow it;
  • If vending machine shipment mode is available, will check that the order content allow it;
  • if the order amount is greater than or equal to the shipment mode shipping fee "free from amount" value, then the shipping fee for the shipment mode is set to 0.

Return value

ShipmentModesDetailedData
shipmentModesList of ShipmentModeDetailedData     
requestIdInteger     
statusCodeString (8)     
statusDetailString     

ShipmentModeDetailedData
catalogTypesSet of (TICKETING|GOODS|
HOSPITALITY)
     
contactAddressRequiredboolean     
deliveryTimeInDaysInteger     
descriptionString     
externalProviderboolean     
idCodeString (8)     
nameString     
shipmentFeeShipmentFeeData     
ticketSupportsList of (THERMAL|ETICKET|PAPER_A4|
PASSBOOK|MOBILE|BADGE|
RFID|PR_RFID_CARD|
DEMAT_BADGE)
     
type(HANDED_AT_BO|
HANDED_POSTPONED|
LEFT_AT_CONTROL|BY_MAIL|
BY_RECOMMANDED_MAIL|
BY_BROKER|BY_EMAIL|
PRINT_AT_HOME|DHL|FEDEX|
MOBILE|LOAD_BADGE|
LOAD_RFID_CARD|
ELECTRONIC)
     
EMPTY_IDlong     
idlong     
requestIdInteger     
statusCodeString (8)     
statusDetailString     

ShipmentFeeData
amountMoneyData     
freeFromAmountMoneyData     
vatRateString     
EMPTY_IDlong     
idlong     
requestIdInteger     
statusCodeString (8)     
statusDetailString     

MoneyData
currencyString     
digitsint     
valueBigDecimal     

getShipmentsForOrder

REST_RPCMOSACUBEPLAY
SOAPMOSACUBEPLAY

Retrieve all shipments that exists for the given order id. For each movement of the order, if multiple tickets are available, this method will only return the ticket ID of the only valid ticket. For each shipment's shipping mode, if the order amount is greater than or equal to the shipment mode shipping fee "free from amount" value, then the shipping fee for the shipment mode is set to 0.

Parameters

orderIdlongMandatory
technical identifier of the order from which to retrieve shipments.

Return value

ShipmentsData
shipmentsList of ShipmentData     
requestIdInteger     
statusCodeString (8)     
statusDetailString     

ShipmentData
contactAddressContactAddressData     
contactNumberString (20)     
documentsList of DocumentData     
emailString     
referenceNumberString     
shipmentDateDate     
shipmentModeShipmentModeDetailedData     
shipmentSentboolean     
shipmentState(UNSENT|SENT|CANCELLED|
REFERENCE|REPROCESS)
     
ticketsList of TicketData     
trackingUrlString (255)     
EMPTY_IDlong     
idlong     
requestIdInteger     
statusCodeString (8)     
statusDetailString     

ContactAddressData
countryCodeString (8)     
documentFormattedAddressString     
formattedAddressString     
nameString     
street1String     
street2String     
street3String     
street4String     
townString     
townComplementString     
zipCodeString (8)     
EMPTY_IDlong     
idlong     
requestIdInteger     
statusCodeString (8)     
statusDetailString     

DocumentData
documentClassString     
documentClassEnum(B2B_ACCOUNT|
EMAIL_OPTION_WAIT_LIST|
OPTION_SUMMARY|
ORDER_BANKCREDIT|
ORDER_CONFIRMATION|
ORDER_FILE_SUMMARY|
GOODS_ORDER|
OPTION_REQUEST_ACKNOWLEDGEMENT|OPTION_ORDER_ACK|ORDER_REJECTED|LETTER|RAR|BVR|TICKETS_ACKNOWLEDGEMENT|ACCOUNT_BANKDEBIT|FILE_SUMMARY|ORDER_BANKDEBIT|ORDER_INVOICE|ORDER_SUMMARY|PASSWORD_CHANGE|NEW_ACCOUNT|CONTACT|OPTION_REQUEST_DELETION|ACCOUNT_BANKCREDIT|ST_SUBSCRIPTION|EMAIL_EXPIRED_OPTION|OPTION_REQUEST_MODIFICATION|ORDER_ACKNOWLEDGEMENT|WAITACC_INVOICE|ORDER_ACK_WITH_CONF|PROFORMA|CREDIT_NOTES|PARTNER|PRODUCT_WAITLIST_EMAIL|EXCHANGE_TICKET_ACK|FILE_PROFORMA|CGV|EMAIL_FOLLOW_SHIPMENT|EMAIL_OPTION_BOOKING_REMINDER|EMAIL_RESERVATION_REMINDER|CODE_EMAIL|REQUEST_CONFIRMATION|REQUEST_SUMMARY|EMAIL_CANCEL_CONFIRMATION|EMAIL_REQUEST_REMINDER|ADVANTAGE_NOTIFICATION|PAYMENT_CONFIRMATION)
     
documentTypeString     
alreadyPrintedboolean     
availableForPrintboolean     
EMPTY_IDlong     
idlong     
requestIdInteger     
statusCodeString (8)     
statusDetailString     

TicketData
barcodeString (8)     
humanReadableBarcodeString (8)     
refundMovementIdLong     
salesMovementIdlong     
taxNumberString     
alreadyPrintedboolean     
availableForPrintboolean     
EMPTY_IDlong     
idlong     
requestIdInteger     
statusCodeString (8)     
statusDetailString     

setShipmentModeForOrder

REST_RPCMOSACUBEPLAY
SOAPMOSACUBEPLAY

Set the shipment mode to use for the given order. Return the technical identifier of the underlying shipment created.

In a shipment mode is already associated with the given order, it will be updated with the new shipment mode and other given information.

This method can only be used for open orders, if the given order is closed this method will raise an exception.
If there's a shipment fee associated with the given shipment mode, the order amount is compared to the shipping fee "free from amount" value. If the order amount is under this value, a shipment fee operation will be created for the order. Any previous shipping fee operation will be replaced by the new operation.

Parameters

shipmentModeIdlongMandatory
shipment mode to create; mandatory parameter.
orderIdlongMandatory
order id linked to the shipment to create; mandatory parameter.
contactNumberString (20)number of the contact to associate with the shipment; optional parameter.
contactAddressIdLongcontact address id to associate with the shipment; optional parameter.
emailStringEmail of the contact; optional parameter; will create a new Email entry associated to the contact if it does not already exist; if none given, the contact main email adress will be used instead; if this parameter is specified, either a contactId or a contactAddressId must be given!

Return value

ShipmentModesDetailedData

setShipmentModeForTickets

REST_RPCMOSACUBEPLAY
SOAPMOSACUBEPLAY

Set the shipment mode to use for the given ticket. Return the technical identifier of the underlying shipment created.

If the order of ticket has associated with a SENT shipment, and the shipment's shipment mode is shipmentModeId, the ticket will attached to this shipment. Otherwise, create new {@link Shipment} has same data with current shipment, and set state of this shipment is SENT.

Currently, the following function only handle the case when want to attach ticket to PRINT_AT_HOME {@link ShipmentMode}.

Parameters

shipmentModeIdlongMandatory
shipment mode to set to ticket.
ticketsIdList of Long     

Return value

ShipmentsIdData
shipmentdIdDataList of ShipmentIdData     
requestIdInteger     
statusCodeString (8)     
statusDetailString     

ShipmentIdData
shipmentIdInteger     
requestIdInteger     
statusCodeString (8)     
statusDetailString     

setShipmentModesForOrder

REST_RPCMOSACUBEPLAY
SOAPMOSACUBEPLAY

This function support one order maybe has 2 shipment modes

Parameters

orderIdlongMandatory
order id linked to the shipment to create; mandatory parameter.
contactNumberString (20)number of the contact to associate with the shipment; optional parameter.
shipmentRequestDataList of ShipmentRequestDatashipmentRequestData include shipmentModeId, contactAddressid, email and operations

ShipmentRequestData
contactAddressIdLong     
emailString     
opearationIdsList of Integer     
shipmentModeIdlong     

Return value

ShipmentModesDetailedData