Service: ShipmentPublicService

Version: 1_17 (other versions, change log) Latest stable version. Please base all your developments on this one.

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

REST Demo endpoint (only POST): https://secutix.ws.secutix.com/tnpsb/backend-apis/shipmentPublicService/v1_17/{methodName} Replace {methodName} for the desired method name as shown below.

To get the endpoint for your own institution, replace "secutix" (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

pointOfSalesIdlongTechnical 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)
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.
productFamilyIdsList of Longoptional parameter, if defined filter shipment modes based on the order content, but for only given product families in the order; 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
baseShipmentFeeShipmentFeeData     
catalogTypesSet of (TICKETING|GOODS|
HOSPITALITY)
     
collectionDateRequiredBoolean     
collectionEndDateDate     
collectionStartDateDate     
contactAddressRequiredboolean     
deliveryTimeInDaysInteger     
descriptionString     
externalNameExternalName60 characters max for each translation
externalProviderboolean     
idCodeString (8)     
maxTimeToPerformanceInDaysInteger     
nameString     
productIdsList of Long     
publicDescriptionPublicDescription     
rankInteger     
shipmentFeeShipmentFeeData     
shipmentFeeProductDataMapMap of Long, ShipmentFeeData     
ticketSupportsList of (THERMAL|ETICKET|PAPER_A4|
PASSBOOK|MOBILE|
BLOCKCHAIN|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|BLOCKCHAIN|
LOAD_BADGE|LOAD_RFID_CARD|
ELECTRONIC|EXTERNAL)
     
EMPTY_IDlong     
idlong     
requestIdInteger     
statusCodeString (8)     
statusDetailString     

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

MoneyData
currencyString     
digitsint     
valueBigDecimal     

ExternalName
translationsList of Translation     

Translation
localeString (2)     
valueString     

PublicDescription
translationsList of Translation     

getAvailableShipmentModesByContactAddressId

REST_RPCMOSACUBEPLAY
SOAPMOSACUBEPLAY

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

Parameters

pointOfSalesIdlongTechnical 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)
Filter shipment modes based on their support for tickets, documents or both of those elements; mandatory parameter.
contactAddressIdLongFilter shipment modes based on country code of the given contact address; supersede the destinationCountryCode parameter if defined.
contactNumberString (20)Contact number of the contact selected which will be the distributee and from who we need to get the shipment modes availables

Return value

ShipmentModesDetailedData

getAvailableShipmentModesWithProducts

REST_RPCMOSACUBEPLAY
SOAPMOSACUBEPLAY

Parameters

pointOfSalesIdlong     
shipmentContents(TICKETS|DOCUMENTS|
TICKETS_AND_DOCUMENTS)
     
destinationCountryCodeString (8)     
contactAddressIdLong     
productIdsList of Long     
orderIdLong     

Return value

ShipmentModesDetailedData

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

orderIdlongtechnical identifier of the order from which to retrieve shipments.

Return value

ShipmentsData
shipmentsList of ShipmentData     
requestIdInteger     
statusCodeString (8)     
statusDetailString     

ShipmentData
collectionDateTimeDate     
contactAddressContactAddressData     
contactNumberString (20)     
documentsList of DocumentData     
emailString     
numberOfTicketsint     
operationIdsList of Long     
originalContactAddressIdLongThe original contact address corresponding to the denormalized address
referenceNumberString     
shipmentDateDate     
shipmentModeShipmentModeDetailedData     
shipmentSentboolean     
shipmentState(UNSENT|SENT|CANCELLED|
REFERENCE|REPROCESS|
COLLECTED)
     
strCollectionDateTimeString     
ticketsList of TicketData     
trackingUrlString (255)     
EMPTY_IDlong     
idlong     
requestIdInteger     
statusCodeString (8)     
statusDetailString     

ContactAddressData
countryCodeString (8)     
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|PASSWORD_RESET|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|INSTALMENT_REMINDER|INSTALMENT_PAYING_FAILURE|INSTALMENT_PAYING_SUCCESS|EMAIL_RESERVATION_REMINDER|CODE_EMAIL|REQUEST_CONFIRMATION|REQUEST_SUMMARY|EMAIL_CANCEL_CONFIRMATION|EMAIL_REQUEST_REMINDER|ADVANTAGE_NOTIFICATION|PAYMENT_CONFIRMATION|CAMPAIGN_EMAIL_BASIC|CAMPAIGN_EMAIL_NEWSLET|CAMPAIGN_EMAIL_ECOMM|PUT_ON_RESALE_ACK|CANCEL_RESALE_ACK|REFUND_CREDIT_ACK|RFD_PMT_NOTIFICATION_EMAIL|WAITACC_INVOICE_FINAL|ARTIST_WAITLIST_EMAIL|AUTHORIZATION_CONFIRMATION|CONFIRM_WAITLIST_EMAIL|CONFIRM_PROD_WAITLIST_EMAIL|TICKET_RECEIPT|TICKET_DETAILS_EMAIL|REQUEST_CONTACT_CONSENT|APPLICATION_CONFIRMATION|TAX_REFUND)
     
documentTypeString     
orderIdLong     
alreadyPrintedboolean     
availableForPrintboolean     
EMPTY_IDlong     
idlong     
requestIdInteger     
statusCodeString (8)     
statusDetailString     

TicketData
barcodeString (8)     
humanReadableBarcodeString (8)     
refundMovementIdLong     
salesMovementIdlong     
taxNumberString     
ticketKind(EBO|PRODUCER|SECUTIX|
THIRD_PARTY|SECUTIX_EXT|
IMPORTED_ITR|UNDEFINED)
     
ticketPrintingMode(CARD|CARD_AND_TICKETS|
TICKETS|BADGE|
BADGE_AND_TICKETS|NONE)
     
alreadyPrintedboolean     
availableForPrintboolean     
EMPTY_IDlong     
idlong     
requestIdInteger     
statusCodeString (8)     
statusDetailString     

getShipmentsForOrderWithGranularity

REST_RPCMOSACUBEPLAY
SOAPMOSACUBEPLAY

As getShipmentsForOrder(orderId) but with specified granularity (see {@link ShipmentDataGranularity}). Allows for returning the ShipmentData without tickets, for use with very large orders.

Parameters

orderIdlong     
shipmentDataGranularity(SHIPMENT|TICKETS|
SHIPMENT_OR_TICKETS)
     

Return value

ShipmentsData

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

shipmentModeIdlongshipment mode to create; mandatory parameter.
orderIdlongorder 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

shipmentModeIdlongshipment mode to set to ticket.
ticketsIdList of Longtickets which we want to set shipment mode.

Return value

ShipmentsIdData
shipmentdIdDataList of ShipmentIdData     
requestIdInteger     
statusCodeString (8)     
statusDetailString     

ShipmentIdData
shipmentIdLong     
requestIdInteger     
statusCodeString (8)     
statusDetailString     

setShipmentModesForOrder

REST_RPCMOSACUBEPLAY
SOAPMOSACUBEPLAY

This function support one order maybe has 2 shipment modes

Parameters

orderIdlongorder 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
collectionDateDate     
contactAddressIdLong     
emailString     
operationIdsList of Long     
shipmentIdLong     
shipmentModeIdlong     

Return value

ShipmentModesDetailedData