sanmar_sdk.client

The SanMar web services client.

Classes

SanMar

A client for SanMar's web services, both SanMar's own and PromoStandards.

Module Contents

class sanmar_sdk.client.SanMar(customer_number: int, username: str, password: str, *, environment: sanmar_sdk.common.Environment = Environment.PRODUCTION, timeout: float = 30.0, transport: zeep.Transport | None = None)[source]

A client for SanMar’s web services, both SanMar’s own and PromoStandards.

Parameters:
  • customer_number – The SanMar customer number. SanMar’s own services require it; PromoStandards services do not use it.

  • username – A SanMar.com login. Create one at https://www.sanmar.com/signup/webuser, then ask sanmarintegrations@sanmar.com to enable web service access. EDEV logins are separate from production ones, and neither works on SanMar’s SFTP server.

  • password – A SanMar.com login. Create one at https://www.sanmar.com/signup/webuser, then ask sanmarintegrations@sanmar.com to enable web service access. EDEV logins are separate from production ones, and neither works on SanMar’s SFTP server.

  • environment – Production, or SanMar’s EDEV test environment.

  • timeout – Seconds to wait for a WSDL to load or a call to finish.

  • transport – A zeep Transport to use instead of the default one, for example to cache WSDLs or go through a proxy. It is used as-is, so timeout does not apply.

products[source]

SanMar’s own product information service.

inventory[source]

SanMar’s own inventory service.

pricing[source]

SanMar’s own pricing service, including this account’s prices.

invoices[source]

SanMar’s own invoicing service.

purchase_orders[source]

SanMar’s own purchase order service.

packing_slips[source]

The packing slip service, which looks boxes up by license plate number.

promostandards[source]

SanMar’s PromoStandards services.

property environment: sanmar_sdk.common.Environment[source]

The environment this client calls.