sanmar_sdk.promostandards.shipment_notification

SanMar’s PromoStandards Order Shipment Notification service, version 1.0.0.

Reports what shipped, from where, and under which tracking numbers, by purchase order, by SanMar sales order, or for everything shipped since a point in the last seven days. SanMar recommends its daily status file on the SFTP server instead, and asks that this service be called no more than three times a day.

Attributes

Classes

ShipmentAddress

Where a shipment left from or went to.

ShippedItem

What went into a package.

ShipmentPackage

One box, and its tracking number.

ShipmentLocation

Everything that shipped from one warehouse to one address.

SalesOrderShipment

What shipped against one of SanMar's sales orders.

ShipmentNotification

What shipped against one purchase order.

ShipmentNotificationService

SanMar's PromoStandards Order Shipment Notification service.

Module Contents

sanmar_sdk.promostandards.shipment_notification.MAX_AGE[source]
class sanmar_sdk.promostandards.shipment_notification.ShipmentAddress(/, **data: Any)[source]

Bases: sanmar_sdk.base.Record

Where a shipment left from or went to.

address1: str | None = None[source]
address2: str | None = None[source]
address3: str | None = None[source]
address4: str | None = None[source]
city: str | None = None[source]
region: str | None = None[source]

The state.

postal_code: str | None = None[source]
country: str | None = None[source]
class sanmar_sdk.promostandards.shipment_notification.ShippedItem(/, **data: Any)[source]

Bases: sanmar_sdk.base.Record

What went into a package.

product_id: str | None = None[source]

The style.

part_id: str | None = None[source]

SanMar’s unique key for the style, color and size.

quantity: decimal.Decimal | None = None[source]
po_line_number: str | None = None[source]
distributor_product_id: str | None = None[source]
distributor_part_id: str | None = None[source]
class sanmar_sdk.promostandards.shipment_notification.ShipmentPackage(/, **data: Any)[source]

Bases: sanmar_sdk.base.Record

One box, and its tracking number.

tracking_number: str = None[source]
shipment_date: datetime.datetime = None[source]
id: int | None = None[source]
carrier: str | None = None[source]
shipment_method: str | None = None[source]

The carrier’s service, such as Ground.

dimension_uom: str | None = None[source]
length: decimal.Decimal | None = None[source]
width: decimal.Decimal | None = None[source]
height: decimal.Decimal | None = None[source]
weight_uom: str | None = None[source]
weight: decimal.Decimal | None = None[source]
shipping_account: str | None = None[source]
shipment_terms: str | None = None[source]
items: list[ShippedItem] = None[source]
class sanmar_sdk.promostandards.shipment_notification.ShipmentLocation(/, **data: Any)[source]

Bases: sanmar_sdk.base.Record

Everything that shipped from one warehouse to one address.

complete: bool[source]
ship_from: ShipmentAddress = None[source]
ship_to: ShipmentAddress = None[source]
id: int | None = None[source]
destination_type: str | None = None[source]

Commercial or Residential.

packages: list[ShipmentPackage] = None[source]
class sanmar_sdk.promostandards.shipment_notification.SalesOrderShipment(/, **data: Any)[source]

Bases: sanmar_sdk.base.Record

What shipped against one of SanMar’s sales orders.

sales_order_number: str = None[source]
complete: bool[source]
locations: list[ShipmentLocation] = None[source]
class sanmar_sdk.promostandards.shipment_notification.ShipmentNotification(/, **data: Any)[source]

Bases: sanmar_sdk.base.Record

What shipped against one purchase order.

po_number: str = None[source]
complete: bool[source]

Whether the whole purchase order has shipped.

sales_orders: list[SalesOrderShipment] = None[source]
property tracking_numbers: list[str][source]

Every package’s tracking number, in the order SanMar listed them.

class sanmar_sdk.promostandards.shipment_notification.ShipmentNotificationService(soap: SoapClient, credentials: Credentials)[source]

Bases: sanmar_sdk.promostandards._common.PromoStandardsService

SanMar’s PromoStandards Order Shipment Notification service.

endpoint[source]
version = '1.0.0'[source]

The PromoStandards version SanMar implements, sent as wsVersion.

by_purchase_order(po_number: str) → list[ShipmentNotification][source]

Report what has shipped against a purchase order.

by_sales_order(sales_order_number: str) → list[ShipmentNotification][source]

Report what has shipped against one of SanMar’s sales orders.

since(since: datetime.datetime) → list[ShipmentNotification][source]

Report everything shipped after a point in time, at most seven days ago.

Raises:

ValueError – If since has no time zone, or is more than seven days ago.