merchantapi package

Submodules

merchantapi.abstract module

This file is part of the MerchantAPI package.

  1. Miva Inc <https://www.miva.com/>

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

$Id: abstract.py 77675 2019-08-29 21:03:50Z gidriss $

class merchantapi.abstract.Client[source]

Bases: object

abstract generate_auth_header(data: str) → str[source]

Generates the authentication header value.

Parameters

data – str

Returns

str

abstract get_api_token()[source]

Get the api token used to authenticate the request.

Returns

str

abstract get_endpoint()[source]

Get the API endpoint URL.

Returns

str

abstract get_signing_key()[source]

Get the signing key used to sign requests. Base64 encoded.

Returns

str

abstract send(request: merchantapi.abstract.Request) → merchantapi.abstract.Response[source]

Send a Request object with callback.

Parameters

request – Request

Raises

Exception

Returns

Response

class merchantapi.abstract.Model(data: dict = None)[source]

Bases: dict

get_field(name: str, default=None)[source]

Get a field value.

Parameters
  • name – str

  • default – mixed

Returns

mixed

has_field(name: str)[source]

Check if a field is defined.

Parameters

name – str

Returns

bool

set_field(name: str, value)[source]

Set a field value.

Parameters
  • name – str

  • value – mixed

Returns

Model

to_dict()[source]

Reduce the model to a dict.

class merchantapi.abstract.Request(client: merchantapi.abstract.Client = None)[source]

Bases: object

SCOPE_DOMAIN = 2
SCOPE_STORE = 1
create_response(data) → merchantapi.abstract.Response[source]

Override this method to create a response for this request.

Parameters

data – dict

Returns

Response

get_client() → merchantapi.abstract.Client[source]

Return the assigned client.

Returns

Client

get_function()[source]

Get the function of the request.

Returns

str

get_scope()[source]

Get the scope of request.

Returns

str

get_store_code()[source]

Get the store code set for the request.

Returns

str

send() → merchantapi.abstract.Response[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_client(client: merchantapi.abstract.Client) → merchantapi.abstract.Request[source]

Set the Client used for the request.

Parameters

client – Client

Returns

Request

set_store_code(store_code)[source]

Set the store code for the request.

Parameters

store_code – str

Returns

Request

to_dict() → dict[source]

Reduce the request to a dict

Returns

dict

class merchantapi.abstract.Response(request, data: dict)[source]

Bases: object

get_data()[source]

Get the underlying data object.

Returns

dict

get_error_code()[source]

Get the error code.

Returns

str|None

get_error_field()[source]

Get the field which triggered the error.

Returns

str|None

get_error_field_message()[source]

Get the error message associated with the error field that cause the error. :returns: str|None

get_error_fields()[source]

Get the fields which encountered a validation error.

Returns

list

get_error_input_count()[source]

Get the number of input errors.

Returns

int

get_error_message()[source]

Get the error message.

Returns

str|None

get_errors()[source]

Get the error messages associated with the response.

Returns

list

get_request()[source]

Get the initiating Request object.

Returns

Request

is_error()[source]

Check if the response was a error.

Returns

bool

is_input_error()[source]

Check if the error response is a input error.

Returns

bool

is_list_error()[source]

Check if the error response is a list error.

Returns

bool

is_success()[source]

Check if the response was a success.

Returns

bool

is_validation_error()[source]

Check if the error response is a validation error.

Returns

bool

merchantapi.client module

This file is part of the MerchantAPI package.

  1. Miva Inc <https://www.miva.com/>

For the full copyright and license information, please view the LICENSE file that was distributed with self source code.

$Id: client.py 77669 2019-08-29 19:21:04Z gidriss $

class merchantapi.client.Client(endpoint: str, api_token: str, signing_key: str, options: dict = None)[source]

Bases: object

DEFAULT_OPTIONS = {'default_store_code': None, 'require_timestamps': True, 'signing_key_digest': 'sha256', 'ssl_verify': True}
SIGN_DIGEST_NONE = None
SIGN_DIGEST_SHA1 = 'sha1'
SIGN_DIGEST_SHA256 = 'sha256'
generate_auth_header(data: str) → str[source]

Generates the authentication header value.

Parameters

data – str

Returns

str

get_api_token() → str[source]

Get the api token used to authenticate the request.

Returns

str

get_endpoint() → str[source]

Get the API endpoint URL.

Returns

str

get_option(name: str, default=None)[source]

Get a client option.

Parameters
  • name – str

  • default – default return value if not set

Returns

mixed

get_signing_key() → str[source]

Get the signing key used to sign requests. Base64 encoded.

Returns

str

send(request: merchantapi.abstract.Request) → merchantapi.abstract.Response[source]

Send a Request object with callback.

Parameters

request – Request

Raises

Exception

Returns

Response

set_api_token(api_token: str) → merchantapi.client.Client[source]

Set the api token used to authenticate the request.

Parameters

api_token – str

Returns

Client

set_endpoint(endpoint: str) → merchantapi.client.Client[source]

Set the API endpoint URL.

Parameters

endpoint – str

Returns

Client

set_option(name: str, value) → merchantapi.client.Client[source]

Set a client option.

Parameters
  • name – str

  • value – mixed

Returns

Client

set_signing_key(signing_key: str) → merchantapi.client.Client[source]

Set the signing key used to sign requests. Base64 encoded.

Parameters

signing_key – str

Returns

Client

exception merchantapi.client.ClientException(request: merchantapi.abstract.Request = None, http_response: requests.models.Response = None, other: Exception = None)[source]

Bases: Exception

get_http_response() → requests.models.Response[source]

Get the Response object of the resulting http request, if available :return: requests.Response|None

get_other() → Exception[source]

Get the passed Exception, if available :return: Exception|None

get_request() → merchantapi.abstract.Request[source]

Get the Request object being sent :return: Request

merchantapi.listquery module

This file is part of the MerchantAPI package.

  1. Miva Inc <https://www.miva.com/>

For the full copyright and license information, please view the LICENSE file that was distributed with self source code.

$Id: listquery.py 77682 2019-08-29 23:21:44Z gidriss $

class merchantapi.listquery.FilterExpression(request: Optional[merchantapi.listquery.ListQueryRequest] = None)[source]

Bases: object

FILTER_SEARCH_AND = 'search_AND'
FILTER_SEARCH_OR = 'search_OR'
OPERATOR_CO = 'CO'
OPERATOR_EQ = 'EQ'
OPERATOR_FALSE = 'FALSE'
OPERATOR_GE = 'GE'
OPERATOR_GT = 'GT'
OPERATOR_IN = 'IN'
OPERATOR_LE = 'LE'
OPERATOR_LIKE = 'LIKE'
OPERATOR_LT = 'LT'
OPERATOR_NC = 'NC'
OPERATOR_NE = 'NE'
OPERATOR_NOTLIKE = 'NOTLIKE'
OPERATOR_NOT_IN = 'NOT_IN'
OPERATOR_NULL = 'NULL'
OPERATOR_SUBWHERE = 'SUBWHERE'
OPERATOR_TRUE = 'TRUE'
VALID_FILTERS = ['search', 'search_AND', 'search_OR']
VALID_OPERATORS = ['EQ', 'GT', 'GE', 'LT', 'LE', 'CO', 'NC', 'LIKE', 'NOTLIKE', 'NE', 'TRUE', 'FALSE', 'NULL', 'IN', 'NOT_IN', 'SUBWHERE']
add(field: str, operator, value, filter_type) → merchantapi.listquery.FilterExpression[source]

Add a search filter.

Parameters
  • field – str

  • operator – str

  • value – mixed

  • filter_type – str

Returns

FilterExpression

Raises

Exception

and_contains(field: str, value: str) → merchantapi.listquery.FilterExpression[source]

Add a contains (AND x CO y) filter for specified field.

Parameters
  • field – str

  • value – str

Returns

FilterExpression

and_does_not_contain(field: str, value: str) → merchantapi.listquery.FilterExpression[source]

Add a does not contains (AND x NC y) filter for specified field.

Parameters
  • field – str

  • value – str

Returns

FilterExpression

and_equal(field: str, value: (<class 'str'>, <class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a equal (AND x EQ y) filter for specified field.

Parameters
  • field – str

  • value – mixed

Returns

FilterExpression

and_greater_than(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a greater than (AND x GT y) filter for specified field.

Parameters
  • field – str

  • value – int|float

Returns

FilterExpression

and_greater_than_equal(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a greater than or equal (AND x GE y) filter for specified field.

Parameters
  • field – str

  • value – int|float

Returns

FilterExpression

and_is_false(field: str) → merchantapi.listquery.FilterExpression[source]

Add a false (AND x == false) filter for specified field.

Parameters

field – str

Returns

FilterExpression

and_is_in(field: str, values: (<class 'str'>, <class 'list'>)) → merchantapi.listquery.FilterExpression[source]

Add a in (AND x IN y,z,.. ) filter for specified field.

Parameters
  • field – str

  • values – list|str

Returns

FilterExpression

and_is_null(field: str) → merchantapi.listquery.FilterExpression[source]

Add a is None (AND x == None) filter for specified field.

Parameters

field – str

Returns

FilterExpression

and_is_true(field: str) → merchantapi.listquery.FilterExpression[source]

Add a true (AND x == true) filter for specified field.

Parameters

field – str

Returns

FilterExpression

and_less_than(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a less than (AND x LT y) filter for specified field.

Parameters
  • field – str

  • value – int|float

Returns

FilterExpression

and_less_than_equal(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a less than or equal (AND x LE y) filter for specified field.

Parameters
  • field – str

  • value – int|float

Returns

FilterExpression

and_like(field: str, value: str) → merchantapi.listquery.FilterExpression[source]

Add a like (AND x LIKE y) filter for specified field.

Parameters
  • field – str

  • value – str

Returns

FilterExpression

and_not_equal(field: str, value: (<class 'str'>, <class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a not equal (AND x NE y) filter for specified field.

Parameters
  • field – str

  • value – mixed

Returns

FilterExpression

and_not_in(field: str, values: (<class 'str'>, <class 'list'>)) → merchantapi.listquery.FilterExpression[source]

Add a not in (AND x NOTIN y,z,.. ) filter for specified field.

Parameters
  • field – str

  • values – list|str

Returns

FilterExpression

and_not_like(field: str, value: str) → merchantapi.listquery.FilterExpression[source]

Add a not like (AND x NOTLIKE y) filter for specified field.

Parameters
  • field – str

  • value – str

Returns

FilterExpression

and_x(expression) → merchantapi.listquery.FilterExpression[source]

Add a AND expression.

Parameters

expression – FilterExpression

Returns

FilterExpression

Raises

Exception

child_depth() → int[source]

Get the child depth.

Returns

int

contains(field: str, value: str) → merchantapi.listquery.FilterExpression[source]

Add a contains (x CO y) filter for specified field.

Parameters
  • field – str

  • value – str

Returns

FilterExpression

does_not_contain(field: str, value: str) → merchantapi.listquery.FilterExpression[source]

Add a does not contains (x NC y) filter for specified field.

Parameters
  • field – str

  • value – str

Returns

FilterExpression

equal(field: str, value: (<class 'str'>, <class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a equal (x EQ y) filter for specified field.

Parameters
  • field – str

  • value – mixed

Returns

FilterExpression

expr() → merchantapi.listquery.FilterExpression[source]

Create a new expression instance.

Returns

FilterExpression

get_parent() -> ('FilterExpression', None)[source]

Get the parent expression.

Returns

FilterExpression|None

greater_than(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a greater than (x GT y) filter for specified field.

Parameters
  • field – str

  • value – int|float

Returns

FilterExpression

greater_than_equal(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a greater than or equal (x GE y) filter for specified field.

Parameters
  • field – str

  • value – int|float

Returns

FilterExpression

is_child() → bool[source]

Check if self expression is a child of another.

Returns

bool

is_false(field: str) → merchantapi.listquery.FilterExpression[source]

Add a false (x == false) filter for specified field.

Parameters

field – str

Returns

FilterExpression

is_in(field: str, values: (<class 'str'>, <class 'list'>)) → merchantapi.listquery.FilterExpression[source]

Add a in (x IN y,z,.. ) filter for specified field.

Parameters
  • field – str

  • values – list|str

Returns

FilterExpression

is_null(field: str) → merchantapi.listquery.FilterExpression[source]

Add a is None (x == None) filter for specified field.

Parameters

field – str

Returns

FilterExpression

is_true(field: str) → merchantapi.listquery.FilterExpression[source]

Add a true (x == true) filter for specified field.

Parameters

field – str

Returns

FilterExpression

less_than(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a less than (x LT y) filter for specified field. :param field: str :param value: int|float :return: FilterExpression

less_than_equal(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a less than or equal (x LE y) filter for specified field.

Parameters
  • field – str

  • value – int|float

Returns

FilterExpression

like(field: str, value: str) → merchantapi.listquery.FilterExpression[source]

Add a like (x LIKE y) filter for specified field.

Parameters
  • field – str

  • value – str

Returns

FilterExpression

not_equal(field: str, value: (<class 'str'>, <class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a not equal (x NE y) filter for specified field.

Parameters
  • field – str

  • value – mixed

Returns

FilterExpression

not_in(field: str, values: (<class 'str'>, <class 'list'>)) → merchantapi.listquery.FilterExpression[source]

Add a not in (x NOTIN y,z,.. ) filter for specified field.

Parameters
  • field – str

  • values – list|str

Returns

FilterExpression

not_like(field: str, value: str) → merchantapi.listquery.FilterExpression[source]

Add a not like (x NOTLIKE y) filter for specified field.

Parameters
  • field – str

  • value – str

Returns

FilterExpression

or_contains(field: str, value: str) → merchantapi.listquery.FilterExpression[source]

Add a contains (OR x CO y) filter for specified field.

Parameters
  • field – str

  • value – str

Returns

FilterExpression

or_does_not_contain(field: str, value: str) → merchantapi.listquery.FilterExpression[source]

Add a does not contains (OR x NC y) filter for specified field.

Parameters
  • field – str

  • value – str

Returns

FilterExpression

or_equal(field: str, value: (<class 'str'>, <class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a equal (OR x EQ y) filter for specified field.

Parameters
  • field – str

  • value – mixed

Returns

FilterExpression

or_greater_than(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a greater than (OR x GT y) filter for specified field.

Parameters
  • field – str

  • value – int|float

Returns

FilterExpression

or_greater_than_equal(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a greater than or equal (OR x GE y) filter for specified field.

Parameters
  • field – str

  • value – int|float

Returns

FilterExpression

or_is_false(field: str) → merchantapi.listquery.FilterExpression[source]

Add a false (OR x == false) filter for specified field.

Parameters

field – str

Returns

FilterExpression

or_is_in(field: str, values: (<class 'str'>, <class 'list'>)) → merchantapi.listquery.FilterExpression[source]

Add a in (OR x IN y,z,.. ) filter for specified field.

Parameters
  • field – str

  • values – list|str

Returns

FilterExpression

or_is_null(field: str) → merchantapi.listquery.FilterExpression[source]

Add a is None (OR x == None) filter for specified field.

Parameters

field – str

Returns

FilterExpression

or_is_true(field: str) → merchantapi.listquery.FilterExpression[source]

Add a true (OR x == true) filter for specified field.

Parameters

field – str

Returns

FilterExpression

or_less_than(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a less than (OR x LT y) filter for specified field.

Parameters
  • field – str

  • value – int|float

Returns

FilterExpression

or_less_than_equal(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a less than or equal (OR x LE y) filter for specified field.

Parameters
  • field – str

  • value – int|float

Returns

FilterExpression

or_like(field: str, value: str) → merchantapi.listquery.FilterExpression[source]

Add a like (OR x LIKE y) filter for specified field.

Parameters
  • field – str

  • value – str

Returns

FilterExpression

or_not_equal(field: str, value: (<class 'str'>, <class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]

Add a not equal (OR x NE y) filter for specified field.

Parameters
  • field – str

  • value – mixed

Returns

FilterExpression

or_not_in(field: str, values: (<class 'str'>, <class 'list'>)) → merchantapi.listquery.FilterExpression[source]

Add a not in (OR x NOTIN y,z,.. ) filter for specified field.

Parameters
  • field – str

  • values – list|str

Returns

FilterExpression

or_not_like(field: str, value: str) → merchantapi.listquery.FilterExpression[source]

Add a not like (OR x NOTLIKE y) filter for specified field.

Parameters
  • field – str

  • value – str

Returns

FilterExpression

or_x(expression) → merchantapi.listquery.FilterExpression[source]

Add a OR expression.

Parameters

expression – FilterExpression

Returns

FilterExpression

Raises

Exception

set_parent(parent=None) → merchantapi.listquery.FilterExpression[source]

Set the parent expression.

Parameters

parent – FilterExpression|None

Returns

FilterExpression

to_list() → list[source]

Reduce the built expression(s) to an array.

Returns

list

class merchantapi.listquery.FilterExpressionEntry(left, operator, right, search='search')[source]

Bases: object

get_left() → str[source]

Get the left side of the expression.

Returns

str

get_operator() → str[source]

Get the expression operator.

Returns

str

get_right() → str[source]

Get the right side of the expression.

Returns

str

set_left(left) → merchantapi.listquery.FilterExpressionEntry[source]

Set the left side of the comparison.

Parameters

left – str

Returns

FilterExpressionEntry

set_operator(operator) → merchantapi.listquery.FilterExpressionEntry[source]

Set the expression operator.

Parameters

operator – str

Returns

FilterExpressionEntry

set_right(right) → merchantapi.listquery.FilterExpressionEntry[source]

Set the right side of the expression.

Parameters

right – str

Returns

FilterExpressionEntry

class merchantapi.listquery.ListQueryRequest(client: merchantapi.abstract.Client = None)[source]

Bases: merchantapi.abstract.Request

SORT_ASCENDING = 'asc'
SORT_DESCENDING = 'desc'
add_on_demand_column(column: str) → merchantapi.listquery.ListQueryRequest[source]

Add an on demand column to the request.

Parameters

column – str

Returns

ListQueryRequest

Raises

Exception

available_custom_filters = {}
available_on_demand_columns = []
available_search_fields = []
available_sort_fields = []
create_response(data) → merchantapi.listquery.ListQueryResponse[source]

Creates a ListQueryResponse from an api response

Returns

ListQueryResponse

filter_expression()[source]

Creates a new FilterExpression object in the context of the request. :returns: FilterExpression

get_available_custom_filters() → dict[source]

Get the available custom filters for the request.

Returns

dict

get_available_on_demand_columns() → list[source]

Get the available on demand columns for the request.

Returns

list

get_available_search_fields() → list[source]

Get the available search fields for the request.

Returns

list

get_available_sort_fields() → list[source]

Get the available sorting fields for the request.

@returns: list

get_count() → int[source]

Get the maximum records to request.

Returns

int

get_custom_filters() → list[source]

Get the custom filters to apply.

Returns

list

get_filters() -> (<class 'list'>, 'FilterExpression')[source]

Get the search filters to apply to the request.

Returns

list|FilterExpression

get_offset() → int[source]

Get the record offset.

Returns

int

get_on_demand_columns() → list[source]

Get the on demand columns to fetch.

Returns

list

get_sort() → str[source]

Get the sorting field.

Returns

str

remove_custom_filter(name) → merchantapi.listquery.ListQueryRequest[source]

Remove a custom filter applied to the request.

Parameters

name – str

Returns

ListQueryRequest

remove_on_demand_column(column: str) → merchantapi.listquery.ListQueryRequest[source]

Remove an on demand column from the request.

Parameters

column – str

Returns

ListQueryRequest

set_count(count: int) → merchantapi.listquery.ListQueryRequest[source]

Set the maximum records to request.

Parameters

count – int

Returns

ListQueryRequest

set_custom_filter(name: str, value) → merchantapi.listquery.ListQueryRequest[source]

Set a custom filter supported by the request.

Parameters
  • name – str

  • value – mixed

Returns

ListQueryRequest

Raises

Exception

set_filters(filters: (<class 'list'>, 'FilterExpression')) → merchantapi.listquery.ListQueryRequest[source]

Set the search filters to apply to the request.

Parameters

filters – list|FilterExpression

Raises

Exception

Returns

ListQueryRequest

set_offset(offset: int) → merchantapi.listquery.ListQueryRequest[source]

Set the record offset.

Parameters

offset – int

Returns

ListQueryRequest

set_on_demand_columns(columns: list) → merchantapi.listquery.ListQueryRequest[source]

Set the on demand columns to fetch.

Param

list

Returns

ListQueryRequest

set_sort(field: str, direction: str = 'asc') → merchantapi.listquery.ListQueryRequest[source]

Set the sorting field.

Parameters
  • field – str

  • direction – str

Returns

ListQueryRequest

to_dict() → dict[source]

Reduce the request to a dict

Returns

dict

class merchantapi.listquery.ListQueryResponse(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.abstract.Response

get_start_offset() → int[source]

Get the starting offset of the result set

Returns

get_total_count() → int[source]

Get the total count of returned records

Returns

int

merchantapi.model module

This file is part of the MerchantAPI package.

  1. Miva Inc <https://www.miva.com/>

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

$Id: model.py 77709 2019-08-30 16:41:54Z gidriss $

class merchantapi.model.AvailabilityGroup(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_id() → int[source]

Get id.

Returns

int

get_name() → str[source]

Get name.

Returns

string

class merchantapi.model.Category(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_active() → bool[source]

Get active.

Returns

bool

get_availability_group_count() → int[source]

Get agrpcount.

Returns

int

get_code() → str[source]

Get code.

Returns

string

get_custom_field_values()[source]

Get CustomField_Values.

Returns

CustomFieldValues|None

get_date_time_created() → int[source]

Get dt_created.

Returns

int

get_date_time_updated() → int[source]

Get dt_updated.

Returns

int

get_depth() → int[source]

Get depth.

Returns

int

get_display_order() → int[source]

Get disp_order.

Returns

int

get_id() → int[source]

Get id.

Returns

int

get_name() → str[source]

Get name.

Returns

string

get_page_code() → str[source]

Get page_code.

Returns

string

get_page_id() → int[source]

Get page_id.

Returns

int

get_page_title() → str[source]

Get page_title.

Returns

string

get_parent_category() → str[source]

Get parent_category.

Returns

string

get_parent_id() → int[source]

Get parent_id.

Returns

int

set_active(active: bool) → merchantapi.model.Category[source]

Set active.

Parameters

active – bool

Returns

Category

set_code(code: str) → merchantapi.model.Category[source]

Set code.

Parameters

code – string

Returns

Category

set_custom_field_values(custom_field_values) → merchantapi.model.Category[source]

Set CustomField_Values.

Parameters

custom_field_values – CustomFieldValues|dict

Returns

Category

Raises

Exception

set_name(name: str) → merchantapi.model.Category[source]

Set name.

Parameters

name – string

Returns

Category

set_page_code(page_code: str) → merchantapi.model.Category[source]

Set page_code.

Parameters

page_code – string

Returns

Category

set_page_title(page_title: str) → merchantapi.model.Category[source]

Set page_title.

Parameters

page_title – string

Returns

Category

set_parent_category(parent_category: str) → merchantapi.model.Category[source]

Set parent_category.

Parameters

parent_category – string

Returns

Category

to_dict() → dict[source]

Reduce the model to a dict.

class merchantapi.model.CategoryProduct(data: dict = None)[source]

Bases: merchantapi.model.Product

get_assigned() → bool[source]

Get assigned.

Returns

bool

class merchantapi.model.Coupon(data: dict = None)[source]

Bases: merchantapi.abstract.Model

CUSTOMER_SCOPE_ALL_LOGGED_IN = 'L'
CUSTOMER_SCOPE_ALL_SHOPPERS = 'A'
CUSTOMER_SCOPE_SPECIFIC_CUSTOMERS = 'X'
get_active() → bool[source]

Get active.

Returns

bool

get_code() → str[source]

Get code.

Returns

string

get_customer_scope() → str[source]

Get custscope.

Returns

string

get_date_time_end() → int[source]

Get dt_end.

Returns

int

get_date_time_start() → int[source]

Get dt_start.

Returns

int

get_description() → str[source]

Get descrip.

Returns

string

get_id() → int[source]

Get id.

Returns

int

get_max_per() → int[source]

Get max_per.

Returns

int

get_max_use() → int[source]

Get max_use.

Returns

int

get_use_count() → int[source]

Get use_count.

Returns

int

set_active(active: bool) → merchantapi.model.Coupon[source]

Set active.

Parameters

active – bool

Returns

Coupon

set_code(code: str) → merchantapi.model.Coupon[source]

Set code.

Parameters

code – string

Returns

Coupon

set_customer_scope(customer_scope: str) → merchantapi.model.Coupon[source]

Set custscope.

Parameters

customer_scope – string

Returns

Coupon

set_date_time_end(date_time_end)[source]

Set dt_end.

Parameters

date_time_end – int

Returns

Coupon

set_date_time_start(date_time_start)[source]

Set dt_start.

Parameters

date_time_start – int

Returns

Coupon

set_description(description: str) → merchantapi.model.Coupon[source]

Set descrip.

Parameters

description – string

Returns

Coupon

set_max_per(max_per: int) → merchantapi.model.Coupon[source]

Set max_per.

Parameters

max_per – int

Returns

Coupon

set_max_use(max_use: int) → merchantapi.model.Coupon[source]

Set max_use.

Parameters

max_use – int

Returns

Coupon

class merchantapi.model.CouponPriceGroup(data: dict = None)[source]

Bases: merchantapi.model.PriceGroup

get_assigned() → bool[source]

Get assigned.

Returns

bool

class merchantapi.model.CustomFieldValues(data: dict = None)[source]

Bases: merchantapi.abstract.Model

add_value(field: str, value, module: str = 'customfields') → merchantapi.model.CustomFieldValues[source]

Same as set_value.

Parameters
  • field – str

  • value – mixed

  • module – std

Returns

CustomFieldValues

get_module(module: str)[source]

Get a specific modules custom field values.

Parameters

module – str

Returns

dict

get_value(code: str, module: str = 'customfields')[source]

Get a value for a module by its code.

Parameters
  • code – str

  • module – str

Returns

mixed

has_module(module: str)[source]

Check if a specific module is defined.

Parameters

module – str

Returns

boolean

has_value(code: str, module: str = 'customfields')[source]

Check if a value for code and module exists.

Parameters
  • code – {string}

  • module – {string}

Returns

bool

set_value(field: str, value, module: str = 'customfields') → merchantapi.model.CustomFieldValues[source]

Add a custom field value.

Parameters
  • field – str

  • value – mixed

  • module – std

Returns

CustomFieldValues

class merchantapi.model.Customer(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_account_id() → int[source]

Get account_id.

Returns

int

get_bill_address1() → str[source]

Get bill_addr1.

Returns

string

get_bill_address2() → str[source]

Get bill_addr2.

Returns

string

get_bill_city() → str[source]

Get bill_city.

Returns

string

get_bill_company() → str[source]

Get bill_comp.

Returns

string

get_bill_country() → str[source]

Get bill_cntry.

Returns

string

get_bill_email() → str[source]

Get bill_email.

Returns

string

get_bill_fax() → str[source]

Get bill_fax.

Returns

string

get_bill_first_name() → str[source]

Get bill_fname.

Returns

string

get_bill_id() → int[source]

Get bill_id.

Returns

int

get_bill_last_name() → str[source]

Get bill_lname.

Returns

string

get_bill_phone() → str[source]

Get bill_phone.

Returns

string

get_bill_state() → str[source]

Get bill_state.

Returns

string

get_bill_zip() → str[source]

Get bill_zip.

Returns

string

get_business_title() → str[source]

Get business_title.

Returns

string

get_created_on() → int[source]

Get dt_created.

Returns

int

get_credit() → float[source]

Get credit.

Returns

float

get_custom_field_values()[source]

Get CustomField_Values.

Returns

CustomFieldValues|None

get_formatted_credit() → str[source]

Get formatted_credit.

Returns

string

get_id() → int[source]

Get id.

Returns

int

get_last_login() → int[source]

Get dt_login.

Returns

int

get_login() → str[source]

Get login.

Returns

string

get_note_count() → int[source]

Get note_count.

Returns

int

get_password_email() → str[source]

Get pw_email.

Returns

string

get_ship_address1() → str[source]

Get ship_addr1.

Returns

string

get_ship_address2() → str[source]

Get ship_addr2.

Returns

string

get_ship_city() → str[source]

Get ship_city.

Returns

string

get_ship_company() → str[source]

Get ship_comp.

Returns

string

get_ship_country() → str[source]

Get ship_cntry.

Returns

string

get_ship_email() → str[source]

Get ship_email.

Returns

string

get_ship_fax() → str[source]

Get ship_fax.

Returns

string

get_ship_first_name() → str[source]

Get ship_fname.

Returns

string

get_ship_id() → int[source]

Get ship_id.

Returns

int

get_ship_last_name() → str[source]

Get ship_lname.

Returns

string

get_ship_phone() → str[source]

Get ship_phone.

Returns

string

get_ship_state() → str[source]

Get ship_state.

Returns

string

get_ship_zip() → str[source]

Get ship_zip.

Returns

string

get_shipping_residential() → bool[source]

Get ship_res.

Returns

bool

set_bill_address1(bill_address1: str) → merchantapi.model.Customer[source]

Set bill_addr1.

Parameters

bill_address1 – string

Returns

Customer

set_bill_address2(bill_address2: str) → merchantapi.model.Customer[source]

Set bill_addr2.

Parameters

bill_address2 – string

Returns

Customer

set_bill_city(bill_city: str) → merchantapi.model.Customer[source]

Set bill_city.

Parameters

bill_city – string

Returns

Customer

set_bill_company(bill_company: str) → merchantapi.model.Customer[source]

Set bill_comp.

Parameters

bill_company – string

Returns

Customer

set_bill_country(bill_country: str) → merchantapi.model.Customer[source]

Set bill_cntry.

Parameters

bill_country – string

Returns

Customer

set_bill_email(bill_email: str) → merchantapi.model.Customer[source]

Set bill_email.

Parameters

bill_email – string

Returns

Customer

set_bill_fax(bill_fax: str) → merchantapi.model.Customer[source]

Set bill_fax.

Parameters

bill_fax – string

Returns

Customer

set_bill_first_name(bill_first_name: str) → merchantapi.model.Customer[source]

Set bill_fname.

Parameters

bill_first_name – string

Returns

Customer

set_bill_last_name(bill_last_name: str) → merchantapi.model.Customer[source]

Set bill_lname.

Parameters

bill_last_name – string

Returns

Customer

set_bill_phone(bill_phone: str) → merchantapi.model.Customer[source]

Set bill_phone.

Parameters

bill_phone – string

Returns

Customer

set_bill_state(bill_state: str) → merchantapi.model.Customer[source]

Set bill_state.

Parameters

bill_state – string

Returns

Customer

set_bill_zip(bill_zip: str) → merchantapi.model.Customer[source]

Set bill_zip.

Parameters

bill_zip – string

Returns

Customer

set_custom_field_values(custom_field_values) → merchantapi.model.Customer[source]

Set CustomField_Values.

Parameters

custom_field_values – CustomFieldValues|dict

Returns

Customer

Raises

Exception

set_login(login: str) → merchantapi.model.Customer[source]

Set login.

Parameters

login – string

Returns

Customer

set_password_email(password_email: str) → merchantapi.model.Customer[source]

Set pw_email.

Parameters

password_email – string

Returns

Customer

set_ship_address1(ship_address1: str) → merchantapi.model.Customer[source]

Set ship_addr1.

Parameters

ship_address1 – string

Returns

Customer

set_ship_address2(ship_address2: str) → merchantapi.model.Customer[source]

Set ship_addr2.

Parameters

ship_address2 – string

Returns

Customer

set_ship_city(ship_city: str) → merchantapi.model.Customer[source]

Set ship_city.

Parameters

ship_city – string

Returns

Customer

set_ship_company(ship_company: str) → merchantapi.model.Customer[source]

Set ship_comp.

Parameters

ship_company – string

Returns

Customer

set_ship_country(ship_country: str) → merchantapi.model.Customer[source]

Set ship_cntry.

Parameters

ship_country – string

Returns

Customer

set_ship_email(ship_email: str) → merchantapi.model.Customer[source]

Set ship_email.

Parameters

ship_email – string

Returns

Customer

set_ship_fax(ship_fax: str) → merchantapi.model.Customer[source]

Set ship_fax.

Parameters

ship_fax – string

Returns

Customer

set_ship_first_name(ship_first_name: str) → merchantapi.model.Customer[source]

Set ship_fname.

Parameters

ship_first_name – string

Returns

Customer

set_ship_last_name(ship_last_name: str) → merchantapi.model.Customer[source]

Set ship_lname.

Parameters

ship_last_name – string

Returns

Customer

set_ship_phone(ship_phone: str) → merchantapi.model.Customer[source]

Set ship_phone.

Parameters

ship_phone – string

Returns

Customer

set_ship_state(ship_state: str) → merchantapi.model.Customer[source]

Set ship_state.

Parameters

ship_state – string

Returns

Customer

set_ship_zip(ship_zip: str) → merchantapi.model.Customer[source]

Set ship_zip.

Parameters

ship_zip – string

Returns

Customer

set_shipping_residential(shipping_residential: bool) → merchantapi.model.Customer[source]

Set ship_res.

Parameters

shipping_residential – bool

Returns

Customer

to_dict() → dict[source]

Reduce the model to a dict.

class merchantapi.model.CustomerAddress(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_address1() → str[source]

Get addr1.

Returns

string

get_address2() → str[source]

Get addr2.

Returns

string

get_city() → str[source]

Get city.

Returns

string

get_company() → str[source]

Get comp.

Returns

string

get_country() → str[source]

Get cntry.

Returns

string

get_customer_id() → int[source]

Get cust_id.

Returns

int

get_description() → str[source]

Get descrip.

Returns

string

get_email() → str[source]

Get email.

Returns

string

get_fax() → str[source]

Get fax.

Returns

string

get_first_name() → str[source]

Get fname.

Returns

string

get_id() → int[source]

Get id.

Returns

int

get_last_name() → str[source]

Get lname.

Returns

string

get_phone() → str[source]

Get phone.

Returns

string

get_residential() → bool[source]

Get resdntl.

Returns

bool

get_state() → str[source]

Get state.

Returns

string

get_zip() → str[source]

Get zip.

Returns

string

class merchantapi.model.CustomerPaymentCard(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_address1() → str[source]

Get addr1.

Returns

string

get_address2() → str[source]

Get addr2.

Returns

string

get_city() → str[source]

Get city.

Returns

string

get_country() → str[source]

Get cntry.

Returns

string

get_customer_id() → int[source]

Get cust_id.

Returns

int

get_expiration_month() → int[source]

Get exp_month.

Returns

int

get_expiration_year() → int[source]

Get exp_year.

Returns

int

get_first_name() → str[source]

Get fname.

Returns

string

get_id() → int[source]

Get id.

Returns

int

get_last_four() → str[source]

Get lastfour.

Returns

string

get_last_name() → str[source]

Get lname.

Returns

string

get_last_used() → str[source]

Get lastused.

Returns

string

get_method_code() → str[source]

Get meth_code.

Returns

string

get_module_code() → str[source]

Get mod_code.

Returns

string

get_reference_count() → int[source]

Get refcount.

Returns

int

get_state() → str[source]

Get state.

Returns

string

get_token() → str[source]

Get token.

Returns

string

get_type() → str[source]

Get type.

Returns

string

get_type_id() → int[source]

Get type_id.

Returns

int

get_zip() → str[source]

Get zip.

Returns

string

class merchantapi.model.CustomerPriceGroup(data: dict = None)[source]

Bases: merchantapi.model.PriceGroup

get_assigned() → bool[source]

Get assigned.

Returns

bool

class merchantapi.model.DiscountModuleCapabilities(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_basket() → bool[source]

Get basket.

Returns

bool

get_eligibility() → str[source]

Get eligibility.

Returns

string

get_items() → bool[source]

Get items.

Returns

bool

get_preitems() → bool[source]

Get preitems.

Returns

bool

get_qualifying() → bool[source]

Get qualifying.

Returns

bool

get_shipping() → bool[source]

Get shipping.

Returns

bool

class merchantapi.model.Module(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_active() → bool[source]

Get active.

Returns

bool

get_api_version() → str[source]

Get api_ver.

Returns

string

get_code() → str[source]

Get code.

Returns

string

get_id() → int[source]

Get id.

Returns

int

get_module() → str[source]

Get module.

Returns

string

get_name() → str[source]

Get name.

Returns

string

get_provider() → str[source]

Get provider.

Returns

string

get_reference_count() → int[source]

Get refcount.

Returns

int

get_version() → str[source]

Get version.

Returns

string

class merchantapi.model.Note(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_account_id() → int[source]

Get account_id.

Returns

int

get_admin_user() → str[source]

Get admin_user.

Returns

string

get_business_title() → str[source]

Get business_title.

Returns

string

get_customer_id() → int[source]

Get cust_id.

Returns

int

get_customer_login() → str[source]

Get cust_login.

Returns

string

get_date_time_stamp() → int[source]

Get dtstamp.

Returns

int

get_id() → int[source]

Get id.

Returns

int

get_note_text() → str[source]

Get notetext.

Returns

string

get_order_id() → int[source]

Get order_id.

Returns

int

get_user_id() → int[source]

Get user_id.

Returns

int

set_account_id(account_id: int) → merchantapi.model.Note[source]

Set account_id.

Parameters

account_id – int

Returns

Note

set_customer_id(customer_id: int) → merchantapi.model.Note[source]

Set cust_id.

Parameters

customer_id – int

Returns

Note

set_note_text(note_text: str) → merchantapi.model.Note[source]

Set notetext.

Parameters

note_text – string

Returns

Note

set_order_id(order_id: int) → merchantapi.model.Note[source]

Set order_id.

Parameters

order_id – int

Returns

Note

class merchantapi.model.Order(data: dict = None)[source]

Bases: merchantapi.abstract.Model

ORDER_PAYMENT_STATUS_AUTHORIZED = 100
ORDER_PAYMENT_STATUS_CAPTURED = 200
ORDER_PAYMENT_STATUS_PARTIALLY_CAPTURED = 201
ORDER_PAYMENT_STATUS_PENDING = 0
ORDER_STATUS_BACKORDERED = 400
ORDER_STATUS_CANCELLED = 300
ORDER_STATUS_PARTIALLY_SHIPPED = 201
ORDER_STATUS_PENDING = 0
ORDER_STATUS_PROCESSING = 100
ORDER_STATUS_RETURNED = 600
ORDER_STATUS_RMA_ISSUED = 500
ORDER_STATUS_SHIPPED = 200
ORDER_STOCK_STATUS_AVAILABLE = 100
ORDER_STOCK_STATUS_PARTIAL = 201
ORDER_STOCK_STATUS_UNAVAILABLE = 200
get_backorder_count() → int[source]

Get bord_count.

Returns

int

get_batch_id() → int[source]

Get batch_id.

Returns

int

get_bill_address1() → str[source]

Get bill_addr1.

Returns

string

get_bill_address2() → str[source]

Get bill_addr2.

Returns

string

get_bill_city() → str[source]

Get bill_city.

Returns

string

get_bill_company() → str[source]

Get bill_comp.

Returns

string

get_bill_country() → str[source]

Get bill_cntry.

Returns

string

get_bill_email() → str[source]

Get bill_email.

Returns

string

get_bill_fax() → str[source]

Get bill_fax.

Returns

string

get_bill_first_name() → str[source]

Get bill_fname.

Returns

string

get_bill_last_name() → str[source]

Get bill_lname.

Returns

string

get_bill_phone() → str[source]

Get bill_phone.

Returns

string

get_bill_state() → str[source]

Get bill_state.

Returns

string

get_bill_zip() → str[source]

Get bill_zip.

Returns

string

get_business_title() → str[source]

Get business_title.

Returns

string

get_charges()[source]

Get charges.

Returns

List of OrderCharge

get_coupons()[source]

Get coupons.

Returns

List of OrderCoupon

get_custom_field_values()[source]

Get CustomField_Values.

Returns

CustomFieldValues|None

get_customer()[source]

Get customer.

Returns

Customer|None

get_customer_id() → int[source]

Get cust_id.

Returns

int

get_customer_login() → str[source]

Get cust_login.

Returns

string

get_customer_password_email() → str[source]

Get cust_pw_email.

Returns

string

get_date_in_stock() → int[source]

Get dt_instock.

Returns

int

get_discounts()[source]

Get discounts.

Returns

List of OrderDiscountTotal

get_formatted_net_captured() → str[source]

Get formatted_net_capt.

Returns

string

get_formatted_total() → str[source]

Get formatted_total.

Returns

string

get_formatted_total_authorized() → str[source]

Get formatted_total_auth.

Returns

string

get_formatted_total_captured() → str[source]

Get formatted_total_capt.

Returns

string

get_formatted_total_refunded() → str[source]

Get formatted_total_rfnd.

Returns

string

get_formatted_total_ship() → str[source]

Get formatted_total_ship.

Returns

string

get_formatted_total_tax() → str[source]

Get formatted_total_tax.

Returns

string

get_id() → int[source]

Get id.

Returns

int

get_items()[source]

Get items.

Returns

List of OrderItem

get_net_captured() → float[source]

Get net_capt.

Returns

float

get_note_count() → int[source]

Get note_count.

Returns

int

get_notes()[source]

Get notes.

Returns

List of OrderNote

get_order_date() → int[source]

Get orderdate.

Returns

int

get_payment_id() → int[source]

Get pay_id.

Returns

int

get_payment_module() → str[source]

Get payment_module.

Returns

string

get_payment_status() → int[source]

Get pay_status.

Returns

int

get_payments()[source]

Get payments.

Returns

List of OrderPayment

get_pending_count() → int[source]

Get pend_count.

Returns

int

get_ship_address1() → str[source]

Get ship_addr1.

Returns

string

get_ship_address2() → str[source]

Get ship_addr2.

Returns

string

get_ship_city() → str[source]

Get ship_city.

Returns

string

get_ship_company() → str[source]

Get ship_comp.

Returns

string

get_ship_country() → str[source]

Get ship_cntry.

Returns

string

get_ship_data() → str[source]

Get ship_data.

Returns

string

get_ship_email() → str[source]

Get ship_email.

Returns

string

get_ship_fax() → str[source]

Get ship_fax.

Returns

string

get_ship_first_name() → str[source]

Get ship_fname.

Returns

string

get_ship_last_name() → str[source]

Get ship_lname.

Returns

string

get_ship_method() → str[source]

Get ship_method.

Returns

string

get_ship_phone() → str[source]

Get ship_phone.

Returns

string

get_ship_residential() → bool[source]

Get ship_res.

Returns

bool

get_ship_state() → str[source]

Get ship_state.

Returns

string

get_ship_zip() → str[source]

Get ship_zip.

Returns

string

get_shipment_id() → int[source]

Get ship_id.

Returns

int

get_source() → str[source]

Get source.

Returns

string

get_source_id() → int[source]

Get source_id.

Returns

int

get_status() → int[source]

Get status.

Returns

int

get_stock_status() → int[source]

Get stk_status.

Returns

int

get_total() → float[source]

Get total.

Returns

float

get_total_authorized() → float[source]

Get total_auth.

Returns

float

get_total_captured() → float[source]

Get total_capt.

Returns

float

get_total_refunded() → float[source]

Get total_rfnd.

Returns

float

get_total_ship() → float[source]

Get total_ship.

Returns

float

get_total_tax() → float[source]

Get total_tax.

Returns

float

set_bill_address1(bill_address1: str) → merchantapi.model.Order[source]

Set bill_addr1.

Parameters

bill_address1 – string

Returns

Order

set_bill_address2(bill_address2: str) → merchantapi.model.Order[source]

Set bill_addr2.

Parameters

bill_address2 – string

Returns

Order

set_bill_city(bill_city: str) → merchantapi.model.Order[source]

Set bill_city.

Parameters

bill_city – string

Returns

Order

set_bill_company(bill_company: str) → merchantapi.model.Order[source]

Set bill_comp.

Parameters

bill_company – string

Returns

Order

set_bill_country(bill_country: str) → merchantapi.model.Order[source]

Set bill_cntry.

Parameters

bill_country – string

Returns

Order

set_bill_email(bill_email: str) → merchantapi.model.Order[source]

Set bill_email.

Parameters

bill_email – string

Returns

Order

set_bill_fax(bill_fax: str) → merchantapi.model.Order[source]

Set bill_fax.

Parameters

bill_fax – string

Returns

Order

set_bill_first_name(bill_first_name: str) → merchantapi.model.Order[source]

Set bill_fname.

Parameters

bill_first_name – string

Returns

Order

set_bill_last_name(bill_last_name: str) → merchantapi.model.Order[source]

Set bill_lname.

Parameters

bill_last_name – string

Returns

Order

set_bill_phone(bill_phone: str) → merchantapi.model.Order[source]

Set bill_phone.

Parameters

bill_phone – string

Returns

Order

set_bill_state(bill_state: str) → merchantapi.model.Order[source]

Set bill_state.

Parameters

bill_state – string

Returns

Order

set_bill_zip(bill_zip: str) → merchantapi.model.Order[source]

Set bill_zip.

Parameters

bill_zip – string

Returns

Order

set_customer_id(customer_id: int) → merchantapi.model.Order[source]

Set cust_id.

Parameters

customer_id – int

Returns

Order

set_ship_address1(ship_address1: str) → merchantapi.model.Order[source]

Set ship_addr1.

Parameters

ship_address1 – string

Returns

Order

set_ship_address2(ship_address2: str) → merchantapi.model.Order[source]

Set ship_addr2.

Parameters

ship_address2 – string

Returns

Order

set_ship_city(ship_city: str) → merchantapi.model.Order[source]

Set ship_city.

Parameters

ship_city – string

Returns

Order

set_ship_company(ship_company: str) → merchantapi.model.Order[source]

Set ship_comp.

Parameters

ship_company – string

Returns

Order

set_ship_country(ship_country: str) → merchantapi.model.Order[source]

Set ship_cntry.

Parameters

ship_country – string

Returns

Order

set_ship_email(ship_email: str) → merchantapi.model.Order[source]

Set ship_email.

Parameters

ship_email – string

Returns

Order

set_ship_fax(ship_fax: str) → merchantapi.model.Order[source]

Set ship_fax.

Parameters

ship_fax – string

Returns

Order

set_ship_first_name(ship_first_name: str) → merchantapi.model.Order[source]

Set ship_fname.

Parameters

ship_first_name – string

Returns

Order

set_ship_last_name(ship_last_name: str) → merchantapi.model.Order[source]

Set ship_lname.

Parameters

ship_last_name – string

Returns

Order

set_ship_phone(ship_phone: str) → merchantapi.model.Order[source]

Set ship_phone.

Parameters

ship_phone – string

Returns

Order

set_ship_state(ship_state: str) → merchantapi.model.Order[source]

Set ship_state.

Parameters

ship_state – string

Returns

Order

set_ship_zip(ship_zip: str) → merchantapi.model.Order[source]

Set ship_zip.

Parameters

ship_zip – string

Returns

Order

to_dict() → dict[source]

Reduce the model to a dict.

class merchantapi.model.OrderCharge(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_amount() → float[source]

Get amount.

Returns

float

get_charge_id() → int[source]

Get charge_id.

Returns

int

get_description() → str[source]

Get descrip.

Returns

string

get_display_amount() → float[source]

Get disp_amt.

Returns

float

get_module_id() → int[source]

Get module_id.

Returns

int

get_order_id() → int[source]

Get order_id.

Returns

int

get_tax_exempt() → bool[source]

Get tax_exempt.

Returns

bool

get_type() → str[source]

Get type.

Returns

string

set_amount(amount: float) → merchantapi.model.OrderCharge[source]

Set amount.

Parameters

amount – int

Returns

OrderCharge

set_description(description: str) → merchantapi.model.OrderCharge[source]

Set descrip.

Parameters

description – string

Returns

OrderCharge

set_display_amount(display_amount: float) → merchantapi.model.OrderCharge[source]

Set disp_amt.

Parameters

display_amount – int

Returns

OrderCharge

set_tax_exempt(tax_exempt: bool) → merchantapi.model.OrderCharge[source]

Set tax_exempt.

Parameters

tax_exempt – bool

Returns

OrderCharge

set_type(type: str) → merchantapi.model.OrderCharge[source]

Set type.

Parameters

type – string

Returns

OrderCharge

class merchantapi.model.OrderCoupon(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_code() → str[source]

Get code.

Returns

string

get_coupon_id() → int[source]

Get coupon_id.

Returns

int

get_description() → str[source]

Get descrip.

Returns

string

get_order_id() → int[source]

Get order_id.

Returns

int

get_total() → float[source]

Get total.

Returns

float

class merchantapi.model.OrderCustomField(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_choices() → dict[source]

Get choices.

Returns

dict

get_code() → str[source]

Get code.

Returns

string

get_module()[source]

Get module.

Returns

Module|None

get_name() → str[source]

Get name.

Returns

string

get_searchable() → bool[source]

Get searchable.

Returns

bool

get_sortable() → bool[source]

Get sortable.

Returns

bool

get_type() → str[source]

Get type.

Returns

string

set_choices(choices) → merchantapi.model.OrderCustomField[source]

Set choices.

Parameters

choices – list

Returns

OrderCustomField

set_code(code: str) → merchantapi.model.OrderCustomField[source]

Set code.

Parameters

code – string

Returns

OrderCustomField

set_module(module) → merchantapi.model.OrderCustomField[source]

Set module.

Parameters

module – Module|dict

Returns

OrderCustomField

Raises

Exception

set_name(name: str) → merchantapi.model.OrderCustomField[source]

Set name.

Parameters

name – string

Returns

OrderCustomField

set_searchable(searchable: bool) → merchantapi.model.OrderCustomField[source]

Set searchable.

Parameters

searchable – bool

Returns

OrderCustomField

set_sortable(sortable: bool) → merchantapi.model.OrderCustomField[source]

Set sortable.

Parameters

sortable – bool

Returns

OrderCustomField

set_type(type: str) → merchantapi.model.OrderCustomField[source]

Set type.

Parameters

type – string

Returns

OrderCustomField

to_dict() → dict[source]

Reduce the model to a dict.

class merchantapi.model.OrderDiscountTotal(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_description() → str[source]

Get descrip.

Returns

string

get_name() → str[source]

Get name.

Returns

string

get_order_id() → int[source]

Get order_id.

Returns

int

get_price_group_id() → int[source]

Get pgrp_id.

Returns

int

get_total() → float[source]

Get total.

Returns

float

class merchantapi.model.OrderItem(data: dict = None)[source]

Bases: merchantapi.abstract.Model

ORDER_ITEM_STATUS_BACKORDERED = 400
ORDER_ITEM_STATUS_CANCELLED = 300
ORDER_ITEM_STATUS_DIGITAL_DOWNLOADED = 221
ORDER_ITEM_STATUS_DIGITAL_NOT_DOWNLOADED = 220
ORDER_ITEM_STATUS_GIFT_CERT_NOT_REDEEMED = 210
ORDER_ITEM_STATUS_GIFT_CERT_REDEEMED = 211
ORDER_ITEM_STATUS_PARTIALLY_SHIPPED = 201
ORDER_ITEM_STATUS_PENDING = 0
ORDER_ITEM_STATUS_PROCESSING = 100
ORDER_ITEM_STATUS_RETURNED = 600
ORDER_ITEM_STATUS_RMA_ISSUED = 500
ORDER_ITEM_STATUS_SHIPPED = 200
add_option(option: merchantapi.model.OrderItemOption) → merchantapi.model.OrderItem[source]

Add a OrderItemOption.

Parameters

option – OrderItemOption

Returns

OrderItem

get_base_price() → float[source]

Get base_price.

Returns

float

get_code() → str[source]

Get code.

Returns

string

get_date_in_stock() → int[source]

Get dt_instock.

Returns

int

get_discounts()[source]

Get discounts.

Returns

List of OrderItemDiscount

get_line_id() → int[source]

Get line_id.

Returns

int

get_name() → str[source]

Get name.

Returns

string

get_options()[source]

Get options.

Returns

List of OrderItemOption

get_order_id() → int[source]

Get order_id.

Returns

int

get_price() → float[source]

Get price.

Returns

float

get_quantity() → int[source]

Get quantity.

Returns

int

get_retail() → float[source]

Get retail.

Returns

float

get_rma_code() → str[source]

Get rma_code.

Returns

string

get_rma_data_time_issued() → int[source]

Get rma_dt_issued.

Returns

int

get_rma_date_time_received() → int[source]

Get rma_dt_recvd.

Returns

int

get_rma_id() → int[source]

Get rma_id.

Returns

int

get_shipment()[source]

Get shipment.

Returns

OrderShipment|None

get_sku() → str[source]

Get sku.

Returns

string

get_status() → int[source]

Get status.

Returns

int

get_subscription()[source]

Get subscription.

Returns

OrderItemSubscription|None

get_subscription_id() → int[source]

Get subscrp_id.

Returns

int

get_subscription_term_id() → int[source]

Get subterm_id.

Returns

int

get_taxable() → bool[source]

Get taxable.

Returns

bool

get_total() → float[source]

Get total.

Returns

float

get_tracking_number() → str[source]

Get tracknum.

Returns

string

get_tracking_type() → str[source]

Get tracktype.

Returns

string

get_upsold() → bool[source]

Get upsold.

Returns

bool

get_weight() → float[source]

Get weight.

Returns

float

set_code(code: str) → merchantapi.model.OrderItem[source]

Set code.

Parameters

code – string

Returns

OrderItem

set_name(name: str) → merchantapi.model.OrderItem[source]

Set name.

Parameters

name – string

Returns

OrderItem

set_options(options: list) → merchantapi.model.OrderItem[source]

Set options.

Parameters

options – List of OrderItemOption

Raises

Exception

Returns

OrderItem

set_price(price: float) → merchantapi.model.OrderItem[source]

Set price.

Parameters

price – int

Returns

OrderItem

set_quantity(quantity: int) → merchantapi.model.OrderItem[source]

Set quantity.

Parameters

quantity – int

Returns

OrderItem

set_sku(sku: str) → merchantapi.model.OrderItem[source]

Set sku.

Parameters

sku – string

Returns

OrderItem

set_status(status: int) → merchantapi.model.OrderItem[source]

Set status.

Parameters

status – int

Returns

OrderItem

set_taxable(taxable: bool) → merchantapi.model.OrderItem[source]

Set taxable.

Parameters

taxable – bool

Returns

OrderItem

set_tracking_number(tracking_number: str) → merchantapi.model.OrderItem[source]

Set tracknum.

Parameters

tracking_number – string

Returns

OrderItem

set_tracking_type(tracking_type: str) → merchantapi.model.OrderItem[source]

Set tracktype.

Parameters

tracking_type – string

Returns

OrderItem

set_upsold(upsold: bool) → merchantapi.model.OrderItem[source]

Set upsold.

Parameters

upsold – bool

Returns

OrderItem

set_weight(weight: float) → merchantapi.model.OrderItem[source]

Set weight.

Parameters

weight – int

Returns

OrderItem

to_dict() → dict[source]

Reduce the model to a dict.

class merchantapi.model.OrderItemAttribute(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_attribute_code() → str[source]

Get attr_code.

Returns

string

get_option_code_or_data() → str[source]

Get opt_code_or_data.

Returns

string

get_price() → float[source]

Get price.

Returns

float

get_weight() → float[source]

Get weight.

Returns

float

set_attribute_code(attribute_code: str) → merchantapi.model.OrderItemAttribute[source]

Set attr_code.

Parameters

attribute_code – string

Returns

OrderItemAttribute

set_option_code_or_data(option_code_or_data: str) → merchantapi.model.OrderItemAttribute[source]

Set opt_code_or_data.

Parameters

option_code_or_data – string

Returns

OrderItemAttribute

set_price(price: float) → merchantapi.model.OrderItemAttribute[source]

Set price.

Parameters

price – int

Returns

OrderItemAttribute

set_weight(weight: float) → merchantapi.model.OrderItemAttribute[source]

Set weight.

Parameters

weight – int

Returns

OrderItemAttribute

class merchantapi.model.OrderItemDiscount(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_description() → str[source]

Get descrip.

Returns

string

get_discount() → float[source]

Get discount.

Returns

float

get_display() → bool[source]

Get display.

Returns

bool

get_line_id() → int[source]

Get line_id.

Returns

int

get_order_id() → int[source]

Get order_id.

Returns

int

get_price_group_id() → int[source]

Get pgrp_id.

Returns

int

class merchantapi.model.OrderItemOption(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_attribute() → str[source]

Get attribute.

Returns

string

get_base_price() → float[source]

Get base_price.

Returns

float

get_price() → float[source]

Get price.

Returns

float

get_retail() → float[source]

Get retail.

Returns

float

get_value() → str[source]

Get value.

Returns

string

get_weight() → float[source]

Get weight.

Returns

float

set_attribute(attribute: str) → merchantapi.model.OrderItemOption[source]

Set attribute.

Parameters

attribute – string

Returns

OrderItemOption

set_price(price: float) → merchantapi.model.OrderItemOption[source]

Set price.

Parameters

price – int

Returns

OrderItemOption

set_value(value: str) → merchantapi.model.OrderItemOption[source]

Set value.

Parameters

value – string

Returns

OrderItemOption

set_weight(weight: float) → merchantapi.model.OrderItemOption[source]

Set weight.

Parameters

weight – int

Returns

OrderItemOption

to_dict() → dict[source]

Reduce the model to a dict.

class merchantapi.model.OrderItemSubscription(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_method() → str[source]

Get method.

Returns

string

get_options()[source]

Get options.

Returns

List of SubscriptionOption

get_product_subscription_term()[source]

Get productsubscriptionterm.

Returns

ProductSubscriptionTerm|None

to_dict() → dict[source]

Reduce the model to a dict.

class merchantapi.model.OrderNote(data: dict = None)[source]

Bases: merchantapi.model.Note

class merchantapi.model.OrderPayment(data: dict = None)[source]

Bases: merchantapi.abstract.Model

ORDER_PAYMENT_TYPE_AUTH = 3
ORDER_PAYMENT_TYPE_AUTH_CAPTURE = 5
ORDER_PAYMENT_TYPE_CAPTURE = 4
ORDER_PAYMENT_TYPE_DECLINED = 0
ORDER_PAYMENT_TYPE_LEGACY_AUTH = 1
ORDER_PAYMENT_TYPE_LEGACY_CAPTURE = 2
ORDER_PAYMENT_TYPE_REFUND = 6
ORDER_PAYMENT_TYPE_VOID = 7
get_amount() → float[source]

Get amount.

Returns

float

get_available() → float[source]

Get available.

Returns

float

get_date_time_stamp() → int[source]

Get dtstamp.

Returns

int

get_decrypt_error() → str[source]

Get decrypt_error.

Returns

string

get_decrypt_status() → str[source]

Get decrypt_status.

Returns

string

get_description() → str[source]

Get description.

Returns

string

get_expires() → str[source]

Get expires.

Returns

string

get_formatted_amount() → str[source]

Get formatted_amount.

Returns

string

get_formatted_available() → str[source]

Get formatted_available.

Returns

string

get_id() → int[source]

Get id.

Returns

int

get_order_id() → int[source]

Get order_id.

Returns

int

get_payment_data() → dict[source]

Get data.

Returns

dict

get_payment_id() → int[source]

Get pay_id.

Returns

int

get_payment_sec_id() → int[source]

Get pay_secid.

Returns

int

get_reference_number() → str[source]

Get refnum.

Returns

string

get_type() → int[source]

Get type.

Returns

int

class merchantapi.model.OrderPaymentAuthorize(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_formatted_net_captured() → str[source]

Get formatted_net_capt.

Returns

string

get_formatted_total_authorized() → str[source]

Get formatted_total_auth.

Returns

string

get_formatted_total_captured() → str[source]

Get formatted_total_capt.

Returns

string

get_formatted_total_refunded() → str[source]

Get formatted_total_rfnd.

Returns

string

get_net_captured() → float[source]

Get net_capt.

Returns

float

get_total_authorized() → float[source]

Get total_auth.

Returns

float

get_total_captured() → float[source]

Get total_capt.

Returns

float

get_total_refunded() → float[source]

Get total_rfnd.

Returns

float

get_valid() → bool[source]

Get valid.

Returns

bool

class merchantapi.model.OrderPaymentCard(data: dict = None)[source]

Bases: merchantapi.model.CustomerPaymentCard

class merchantapi.model.OrderPaymentTotal(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_formatted_net_captured() → str[source]

Get formatted_net_capt.

Returns

string

get_formatted_total_authorized() → str[source]

Get formatted_total_auth.

Returns

string

get_formatted_total_captured() → str[source]

Get formatted_total_capt.

Returns

string

get_formatted_total_refunded() → str[source]

Get formatted_total_rfnd.

Returns

string

get_net_captured() → float[source]

Get net_capt.

Returns

float

get_order_id() → int[source]

Get order_id.

Returns

int

get_total_authorized() → float[source]

Get total_auth.

Returns

float

get_total_captured() → float[source]

Get total_capt.

Returns

float

get_total_refunded() → float[source]

Get total_rfnd.

Returns

float

class merchantapi.model.OrderProduct(data: dict = None)[source]

Bases: merchantapi.abstract.Model

add_attribute(attribute: merchantapi.model.OrderProductAttribute) → merchantapi.model.OrderProduct[source]

Add a OrderProductAttribute.

Parameters

attribute – OrderProductAttribute

Returns

OrderProduct

get_attributes()[source]

Get attributes.

Returns

List of OrderProductAttribute

get_code() → str[source]

Get code.

Returns

string

get_quantity() → int[source]

Get quantity.

Returns

int

get_sku() → str[source]

Get sku.

Returns

string

get_status() → int[source]

Get status.

Returns

int

get_tracking_number() → str[source]

Get tracknum.

Returns

string

get_tracking_type() → str[source]

Get tracktype.

Returns

string

set_attributes(attributes: list) → merchantapi.model.OrderProduct[source]

Set attributes.

Parameters

attributes – List of OrderProductAttribute

Raises

Exception

Returns

OrderProduct

set_code(code: str) → merchantapi.model.OrderProduct[source]

Set code.

Parameters

code – string

Returns

OrderProduct

set_quantity(quantity: int) → merchantapi.model.OrderProduct[source]

Set quantity.

Parameters

quantity – int

Returns

OrderProduct

set_sku(sku: str) → merchantapi.model.OrderProduct[source]

Set sku.

Parameters

sku – string

Returns

OrderProduct

set_status(status: int) → merchantapi.model.OrderProduct[source]

Set status.

Parameters

status – int

Returns

OrderProduct

set_tracking_number(tracking_number: str) → merchantapi.model.OrderProduct[source]

Set tracknum.

Parameters

tracking_number – string

Returns

OrderProduct

set_tracking_type(tracking_type: str) → merchantapi.model.OrderProduct[source]

Set tracktype.

Parameters

tracking_type – string

Returns

OrderProduct

to_dict() → dict[source]

Reduce the model to a dict.

class merchantapi.model.OrderProductAttribute(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_code() → str[source]

Get code.

Returns

string

get_template_code() → str[source]

Get template_code.

Returns

string

get_value() → str[source]

Get value.

Returns

string

set_code(code: str) → merchantapi.model.OrderProductAttribute[source]

Set code.

Parameters

code – string

Returns

OrderProductAttribute

set_template_code(template_code: str) → merchantapi.model.OrderProductAttribute[source]

Set template_code.

Parameters

template_code – string

Returns

OrderProductAttribute

set_value(value: str) → merchantapi.model.OrderProductAttribute[source]

Set value.

Parameters

value – string

Returns

OrderProductAttribute

class merchantapi.model.OrderShipment(data: dict = None)[source]

Bases: merchantapi.abstract.Model

ORDER_SHIPMENT_STATUS_PENDING = 0
ORDER_SHIPMENT_STATUS_PICKING = 100
ORDER_SHIPMENT_STATUS_SHIPPED = 200
get_batch_id() → int[source]

Get batch_id.

Returns

int

get_code() → str[source]

Get code.

Returns

string

get_cost() → float[source]

Get cost.

Returns

float

get_formatted_cost() → str[source]

Get formatted_cost.

Returns

string

get_id() → int[source]

Get id.

Returns

int

get_label_count() → int[source]

Get labelcount.

Returns

int

get_order_id() → int[source]

Get order_id.

Returns

int

get_ship_date() → int[source]

Get ship_date.

Returns

int

get_status() → int[source]

Get status.

Returns

int

Get tracklink.

Returns

string

get_tracking_number() → str[source]

Get tracknum.

Returns

string

get_tracking_type() → str[source]

Get tracktype.

Returns

string

get_weight() → float[source]

Get weight.

Returns

float

set_batch_id(batch_id: int) → merchantapi.model.OrderShipment[source]

Set batch_id.

Parameters

batch_id – int

Returns

OrderShipment

set_code(code: str) → merchantapi.model.OrderShipment[source]

Set code.

Parameters

code – string

Returns

OrderShipment

set_cost(cost: float) → merchantapi.model.OrderShipment[source]

Set cost.

Parameters

cost – int

Returns

OrderShipment

set_id(id: int) → merchantapi.model.OrderShipment[source]

Set id.

Parameters

id – int

Returns

OrderShipment

set_label_count(label_count: int) → merchantapi.model.OrderShipment[source]

Set labelcount.

Parameters

label_count – int

Returns

OrderShipment

set_order_id(order_id: int) → merchantapi.model.OrderShipment[source]

Set order_id.

Parameters

order_id – int

Returns

OrderShipment

set_ship_date(ship_date: int) → merchantapi.model.OrderShipment[source]

Set ship_date.

Parameters

ship_date – int

Returns

OrderShipment

set_status(status: int) → merchantapi.model.OrderShipment[source]

Set status.

Parameters

status – int

Returns

OrderShipment

Set tracklink.

Parameters

tracking_link – string

Returns

OrderShipment

set_tracking_number(tracking_number: str) → merchantapi.model.OrderShipment[source]

Set tracknum.

Parameters

tracking_number – string

Returns

OrderShipment

set_tracking_type(tracking_type: str) → merchantapi.model.OrderShipment[source]

Set tracktype.

Parameters

tracking_type – string

Returns

OrderShipment

set_weight(weight: float) → merchantapi.model.OrderShipment[source]

Set weight.

Parameters

weight – int

Returns

OrderShipment

class merchantapi.model.OrderShipmentUpdate(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_cost() → float[source]

Get cost.

Returns

float

get_mark_shipped() → bool[source]

Get mark_shipped.

Returns

bool

get_shipment_id() → int[source]

Get shpmnt_id.

Returns

int

get_tracking_number() → str[source]

Get tracknum.

Returns

string

get_tracking_type() → str[source]

Get tracktype.

Returns

string

set_cost(cost: float) → merchantapi.model.OrderShipmentUpdate[source]

Set cost.

Parameters

cost – int

Returns

OrderShipmentUpdate

set_mark_shipped(mark_shipped: bool) → merchantapi.model.OrderShipmentUpdate[source]

Set mark_shipped.

Parameters

mark_shipped – bool

Returns

OrderShipmentUpdate

set_shipment_id(shipment_id: int) → merchantapi.model.OrderShipmentUpdate[source]

Set shpmnt_id.

Parameters

shipment_id – int

Returns

OrderShipmentUpdate

set_tracking_number(tracking_number: str) → merchantapi.model.OrderShipmentUpdate[source]

Set tracknum.

Parameters

tracking_number – string

Returns

OrderShipmentUpdate

set_tracking_type(tracking_type: str) → merchantapi.model.OrderShipmentUpdate[source]

Set tracktype.

Parameters

tracking_type – string

Returns

OrderShipmentUpdate

class merchantapi.model.OrderTotal(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_formatted_total() → str[source]

Get formatted_total.

Returns

string

get_total() → float[source]

Get total.

Returns

float

class merchantapi.model.PaymentCardType(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_cvv() → bool[source]

Get cvv.

Returns

bool

get_id() → int[source]

Get id.

Returns

int

get_lengths() → str[source]

Get lengths.

Returns

string

get_prefixes() → str[source]

Get prefixes.

Returns

string

get_type() → str[source]

Get type.

Returns

string

class merchantapi.model.PaymentMethod(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_method_code() → str[source]

Get method_code.

Returns

string

get_method_name() → str[source]

Get method_name.

Returns

string

get_mivapay() → bool[source]

Get mivapay.

Returns

bool

get_module_api() → float[source]

Get module_api.

Returns

float

get_module_id() → int[source]

Get module_id.

Returns

int

get_order_payment_card()[source]

Get orderpaymentcard.

Returns

OrderPaymentCard|None

get_payment_card()[source]

Get paymentcard.

Returns

CustomerPaymentCard|None

get_payment_card_type()[source]

Get paymentcardtype.

Returns

PaymentCardType|None

to_dict() → dict[source]

Reduce the model to a dict.

class merchantapi.model.PriceGroup(data: dict = None)[source]

Bases: merchantapi.abstract.Model

ELIGIBILITY_ALL = 'A'
ELIGIBILITY_COUPON = 'C'
ELIGIBILITY_CUSTOMER = 'X'
ELIGIBILITY_LOGGED_IN = 'L'
get_basket_maximum_quantity() → int[source]

Get bmx_quan.

Returns

int

get_basket_maximum_subtotal() → float[source]

Get bmx_subtot.

Returns

float

get_basket_maximum_weight() → float[source]

Get bmx_weight.

Returns

float

get_basket_minimum_quantity() → int[source]

Get bmn_quan.

Returns

int

get_basket_minimum_subtotal() → float[source]

Get bmn_subtot.

Returns

float

get_basket_minimum_weight() → float[source]

Get bmn_weight.

Returns

float

get_capabilities()[source]

Get capabilities.

Returns

DiscountModuleCapabilities|None

get_customer_scope() → str[source]

Get custscope.

Returns

string

get_date_time_end() → int[source]

Get dt_end.

Returns

int

get_date_time_start() → int[source]

Get dt_start.

Returns

int

get_description() → str[source]

Get descrip.

Returns

string

get_discount() → float[source]

Get discount.

Returns

float

get_display() → bool[source]

Get display.

Returns

bool

get_exclusion() → bool[source]

Get exclusion.

Returns

bool

get_id() → int[source]

Get id.

Returns

int

get_markup() → float[source]

Get markup.

Returns

float

get_maximum_quantity() → int[source]

Get qmx_quan.

Returns

int

get_maximum_subtotal() → float[source]

Get qmx_subtot.

Returns

float

get_maximum_weight() → float[source]

Get qmx_weight.

Returns

float

get_minimum_quantity() → int[source]

Get qmn_quan.

Returns

int

get_minimum_subtotal() → float[source]

Get qmn_subtot.

Returns

float

get_minimum_weight() → float[source]

Get qmn_weight.

Returns

float

get_module()[source]

Get module.

Returns

Module|None

get_name() → str[source]

Get name.

Returns

string

get_priority() → int[source]

Get priority.

Returns

int

set_basket_maximum_quantity(basket_maximum_quantity: int) → merchantapi.model.PriceGroup[source]

Set bmx_quan.

Parameters

basket_maximum_quantity – int

Returns

PriceGroup

set_basket_maximum_subtotal(basket_maximum_subtotal: float) → merchantapi.model.PriceGroup[source]

Set bmx_subtot.

Parameters

basket_maximum_subtotal – int

Returns

PriceGroup

set_basket_maximum_weight(basket_maximum_weight: float) → merchantapi.model.PriceGroup[source]

Set bmx_weight.

Parameters

basket_maximum_weight – int

Returns

PriceGroup

set_basket_minimum_quantity(basket_minimum_quantity: int) → merchantapi.model.PriceGroup[source]

Set bmn_quan.

Parameters

basket_minimum_quantity – int

Returns

PriceGroup

set_basket_minimum_subtotal(basket_minimum_subtotal: float) → merchantapi.model.PriceGroup[source]

Set bmn_subtot.

Parameters

basket_minimum_subtotal – int

Returns

PriceGroup

set_basket_minimum_weight(basket_minimum_weight: float) → merchantapi.model.PriceGroup[source]

Set bmn_weight.

Parameters

basket_minimum_weight – int

Returns

PriceGroup

set_customer_scope(customer_scope: str) → merchantapi.model.PriceGroup[source]

Set custscope.

Parameters

customer_scope – string

Returns

PriceGroup

set_date_time_end(date_time_end)[source]

Set dt_end.

Parameters

date_time_end – int

Returns

PriceGroup

set_date_time_start(date_time_start)[source]

Set dt_start.

Parameters

date_time_start – int

Returns

PriceGroup

set_description(description: str) → merchantapi.model.PriceGroup[source]

Set descrip.

Parameters

description – string

Returns

PriceGroup

set_discount(discount: float) → merchantapi.model.PriceGroup[source]

Set discount.

Parameters

discount – int

Returns

PriceGroup

set_display(display: bool) → merchantapi.model.PriceGroup[source]

Set display.

Parameters

display – bool

Returns

PriceGroup

set_exclusion(exclusion: bool) → merchantapi.model.PriceGroup[source]

Set exclusion.

Parameters

exclusion – bool

Returns

PriceGroup

set_maximum_quantity(maximum_quantity: int) → merchantapi.model.PriceGroup[source]

Set qmx_quan.

Parameters

maximum_quantity – int

Returns

PriceGroup

set_maximum_subtotal(maximum_subtotal: float) → merchantapi.model.PriceGroup[source]

Set qmx_subtot.

Parameters

maximum_subtotal – int

Returns

PriceGroup

set_maximum_weight(maximum_weight: float) → merchantapi.model.PriceGroup[source]

Set qmx_weight.

Parameters

maximum_weight – int

Returns

PriceGroup

set_minimum_quantity(minimum_quantity: int) → merchantapi.model.PriceGroup[source]

Set qmn_quan.

Parameters

minimum_quantity – int

Returns

PriceGroup

set_minimum_subtotal(minimum_subtotal: float) → merchantapi.model.PriceGroup[source]

Set qmn_subtot.

Parameters

minimum_subtotal – int

Returns

PriceGroup

set_minimum_weight(minimum_weight: float) → merchantapi.model.PriceGroup[source]

Set qmn_weight.

Parameters

minimum_weight – int

Returns

PriceGroup

set_module(module) → merchantapi.model.PriceGroup[source]

Set module.

Parameters

module – Module|dict

Returns

PriceGroup

Raises

Exception

set_priority(priority: int) → merchantapi.model.PriceGroup[source]

Set priority.

Parameters

priority – int

Returns

PriceGroup

to_dict() → dict[source]

Reduce the model to a dict.

class merchantapi.model.PriceGroupCustomer(data: dict = None)[source]

Bases: merchantapi.model.Customer

get_assigned() → bool[source]

Get assigned.

Returns

bool

class merchantapi.model.PriceGroupProduct(data: dict = None)[source]

Bases: merchantapi.model.Product

get_assigned() → bool[source]

Get assigned.

Returns

bool

class merchantapi.model.PrintQueue(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_description() → str[source]

Get descrip.

Returns

string

get_id() → int[source]

Get id.

Returns

int

class merchantapi.model.PrintQueueJob(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_date_time_created() → int[source]

Get dt_created.

Returns

int

get_description() → str[source]

Get descrip.

Returns

string

get_id() → int[source]

Get id.

Returns

int

get_job_data() → str[source]

Get job_data.

Returns

string

get_job_format() → str[source]

Get job_fmt.

Returns

string

get_print_queue_description() → str[source]

Get printqueue_descrip.

Returns

string

get_queue_id() → int[source]

Get queue_id.

Returns

int

get_store_code() → str[source]

Get store_code.

Returns

string

get_store_id() → int[source]

Get store_id.

Returns

int

get_store_name() → str[source]

Get store_name.

Returns

string

get_user_id() → int[source]

Get user_id.

Returns

int

get_user_name() → str[source]

Get user_name.

Returns

string

class merchantapi.model.Product(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_active() → bool[source]

Get active.

Returns

bool

get_attributes()[source]

Get attributes.

Returns

List of ProductAttribute

get_canonical_category_code() → str[source]

Get cancat_code.

Returns

string

get_categories()[source]

Get categories.

Returns

List of Category

get_category_count() → int[source]

Get catcount.

Returns

int

get_code() → str[source]

Get code.

Returns

string

get_cost() → float[source]

Get cost.

Returns

float

get_custom_field_values()[source]

Get CustomField_Values.

Returns

CustomFieldValues|None

get_date_time_created() → int[source]

Get dt_created.

Returns

int

get_date_time_update() → int[source]

Get dt_updated.

Returns

int

get_description() → str[source]

Get descrip.

Returns

string

get_formatted_cost() → str[source]

Get formatted_cost.

Returns

string

get_formatted_price() → str[source]

Get formatted_price.

Returns

string

get_id() → int[source]

Get id.

Returns

int

get_image() → str[source]

Get image.

Returns

string

get_name() → str[source]

Get name.

Returns

string

get_page_code() → str[source]

Get page_code.

Returns

string

get_page_title() → str[source]

Get page_title.

Returns

string

get_price() → float[source]

Get price.

Returns

float

get_product_image_data()[source]

Get productimagedata.

Returns

List of ProductImageData

get_product_inventory() → int[source]

Get product_inventory.

Returns

int

get_product_inventory_active() → bool[source]

Get product_inventory_active.

Returns

bool

get_product_inventory_settings()[source]

Get productinventorysettings.

Returns

ProductInventorySettings|None

get_product_shupping_rules()[source]

Get productshippingrules.

Returns

ProductShippingRules|None

Get relatedproducts.

Returns

List of RelatedProduct

get_sku() → str[source]

Get sku.

Returns

string

get_taxable() → bool[source]

Get taxable.

Returns

bool

get_thumbnail() → str[source]

Get thumbnail.

Returns

string

get_uris()[source]

Get uris.

Returns

List of Uri

get_weight() → float[source]

Get weight.

Returns

float

set_active(active: bool) → merchantapi.model.Product[source]

Set active.

Parameters

active – bool

Returns

Product

set_canonical_category_code(canonical_category_code: str) → merchantapi.model.Product[source]

Set cancat_code.

Parameters

canonical_category_code – string

Returns

Product

set_code(code: str) → merchantapi.model.Product[source]

Set code.

Parameters

code – string

Returns

Product

set_cost(cost: float) → merchantapi.model.Product[source]

Set cost.

Parameters

cost – int

Returns

Product

set_custom_field_values(custom_field_values) → merchantapi.model.Product[source]

Set CustomField_Values.

Parameters

custom_field_values – CustomFieldValues|dict

Returns

Product

Raises

Exception

set_description(description: str) → merchantapi.model.Product[source]

Set descrip.

Parameters

description – string

Returns

Product

set_image(image: str) → merchantapi.model.Product[source]

Set image.

Parameters

image – string

Returns

Product

set_name(name: str) → merchantapi.model.Product[source]

Set name.

Parameters

name – string

Returns

Product

set_page_code(page_code: str) → merchantapi.model.Product[source]

Set page_code.

Parameters

page_code – string

Returns

Product

set_page_title(page_title: str) → merchantapi.model.Product[source]

Set page_title.

Parameters

page_title – string

Returns

Product

set_price(price: float) → merchantapi.model.Product[source]

Set price.

Parameters

price – int

Returns

Product

set_product_inventory(product_inventory: int) → merchantapi.model.Product[source]

Set product_inventory.

Parameters

product_inventory – int

Returns

Product

set_sku(sku: str) → merchantapi.model.Product[source]

Set sku.

Parameters

sku – string

Returns

Product

set_taxable(taxable: bool) → merchantapi.model.Product[source]

Set taxable.

Parameters

taxable – bool

Returns

Product

set_thumbnail(thumbnail: str) → merchantapi.model.Product[source]

Set thumbnail.

Parameters

thumbnail – string

Returns

Product

set_weight(weight: float) → merchantapi.model.Product[source]

Set weight.

Parameters

weight – int

Returns

Product

to_dict() → dict[source]

Reduce the model to a dict.

class merchantapi.model.ProductAttribute(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_attribute_template_id() → int[source]

Get attemp_id.

Returns

int

get_code() → str[source]

Get code.

Returns

string

get_cost() → float[source]

Get cost.

Returns

float

get_default_id() → int[source]

Get default_id.

Returns

int

get_display_order() → int[source]

Get disp_order.

Returns

int

get_id() → int[source]

Get id.

Returns

int

get_image() → str[source]

Get image.

Returns

string

get_inventory() → bool[source]

Get inventory.

Returns

bool

get_options()[source]

Get options.

Returns

List of ProductOption

get_price() → float[source]

Get price.

Returns

float

get_product_id() → int[source]

Get product_id.

Returns

int

get_prompt() → str[source]

Get prompt.

Returns

string

get_required() → bool[source]

Get required.

Returns

bool

get_type() → str[source]

Get type.

Returns

string

get_weight() → float[source]

Get weight.

Returns

float

to_dict() → dict[source]

Reduce the model to a dict.

class merchantapi.model.ProductImageData(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_code() → str[source]

Get code.

Returns

string

get_display_order() → int[source]

Get disp_order.

Returns

int

get_height() → int[source]

Get height.

Returns

int

get_id() → int[source]

Get id.

Returns

int

get_image() → str[source]

Get image.

Returns

string

get_image_id() → int[source]

Get image_id.

Returns

int

get_product_id() → int[source]

Get product_id.

Returns

int

get_type_description() → str[source]

Get type_desc.

Returns

string

get_type_id() → int[source]

Get type_id.

Returns

int

get_width() → int[source]

Get width.

Returns

int

class merchantapi.model.ProductInventoryAdjustment(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_adjustment() → float[source]

Get adjustment.

Returns

float

get_product_code() → str[source]

Get product_code.

Returns

string

get_product_id() → int[source]

Get product_id.

Returns

int

get_product_sku() → str[source]

Get product_sku.

Returns

string

set_adjustment(adjustment: float) → merchantapi.model.ProductInventoryAdjustment[source]

Set adjustment.

Parameters

adjustment – int

Returns

ProductInventoryAdjustment

set_product_code(product_code: str) → merchantapi.model.ProductInventoryAdjustment[source]

Set product_code.

Parameters

product_code – string

Returns

ProductInventoryAdjustment

set_product_id(product_id: int) → merchantapi.model.ProductInventoryAdjustment[source]

Set product_id.

Parameters

product_id – int

Returns

ProductInventoryAdjustment

set_product_sku(product_sku: str) → merchantapi.model.ProductInventoryAdjustment[source]

Set product_sku.

Parameters

product_sku – string

Returns

ProductInventoryAdjustment

class merchantapi.model.ProductInventorySettings(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_active() → bool[source]

Get active.

Returns

bool

get_hide_out_of_stock() → str[source]

Get out_hide.

Returns

string

get_in_stock_message_long() → str[source]

Get in_long.

Returns

string

get_in_stock_message_short() → str[source]

Get in_short.

Returns

string

get_limited_stock_message() → str[source]

Get ltd_long.

Returns

string

get_low_stock_level() → int[source]

Get low_level.

Returns

int

get_low_stock_level_default() → bool[source]

Get low_lvl_d.

Returns

bool

get_low_stock_message_long() → str[source]

Get low_long.

Returns

string

get_low_stock_message_short() → str[source]

Get low_short.

Returns

string

get_out_of_stock_level() → int[source]

Get out_level.

Returns

int

get_out_of_stock_level_default() → bool[source]

Get out_lvl_d.

Returns

bool

get_out_of_stock_message_long() → str[source]

Get out_long.

Returns

string

get_out_of_stock_message_short() → str[source]

Get out_short.

Returns

string

get_track_low_stock_level() → str[source]

Get low_track.

Returns

string

get_track_out_of_stock_level() → str[source]

Get out_track.

Returns

string

class merchantapi.model.ProductOption(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_attemp_id() → int[source]

Get attemp_id.

Returns

int

get_attmpat_id() → int[source]

Get attmpat_id.

Returns

int

get_attribute_id() → int[source]

Get attr_id.

Returns

int

get_code() → str[source]

Get code.

Returns

string

get_cost() → float[source]

Get cost.

Returns

float

get_display_order() → int[source]

Get disp_order.

Returns

int

get_id() → int[source]

Get id.

Returns

int

get_image() → str[source]

Get image.

Returns

string

get_price() → float[source]

Get price.

Returns

float

get_product_id() → int[source]

Get product_id.

Returns

int

get_prompt() → str[source]

Get prompt.

Returns

string

get_weight() → float[source]

Get weight.

Returns

float

class merchantapi.model.ProductShippingMethod(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_method_code() → str[source]

Get meth_code.

Returns

string

get_module_code() → str[source]

Get mod_code.

Returns

string

class merchantapi.model.ProductShippingRules(data: dict = None)[source]

Bases: merchantapi.abstract.Model

add_method(method: merchantapi.model.ProductShippingMethod) → merchantapi.model.ProductShippingRules[source]

Add a ProductShippingMethod.

Parameters

method – ProductShippingMethod

Returns

ProductShippingRules

get_height() → float[source]

Get height.

Returns

float

get_length() → float[source]

Get length.

Returns

float

get_limit_methods() → bool[source]

Get limitmeths.

Returns

bool

get_methods()[source]

Get methods.

Returns

List of ProductShippingMethod

get_own_package() → bool[source]

Get ownpackage.

Returns

bool

get_product_id() → int[source]

Get product_id.

Returns

int

get_width() → float[source]

Get width.

Returns

float

set_methods(methods: list) → merchantapi.model.ProductShippingRules[source]

Set methods.

Parameters

methods – List of ProductShippingMethod

Raises

Exception

Returns

ProductShippingRules

to_dict() → dict[source]

Reduce the model to a dict.

class merchantapi.model.ProductSubscriptionTerm(data: dict = None)[source]

Bases: merchantapi.abstract.Model

TERM_FREQUENCY_ANNUALLY = 'annually'
TERM_FREQUENCY_BIWEEKLY = 'biweekly'
TERM_FREQUENCY_DAILY = 'daily'
TERM_FREQUENCY_DATES = 'dates'
TERM_FREQUENCY_FIXED_MONTHLY = 'fixedmonthly'
TERM_FREQUENCY_FIXED_WEEKLY = 'fixedweekly'
TERM_FREQUENCY_N_DAYS = 'n'
TERM_FREQUENCY_N_MONTHS = 'n_months'
TERM_FREQUENCY_QUARTERLY = 'quarterly'
TERM_FREQUENCY_SEMIANNUALLY = 'semiannually'
TERM_FREQUENCY_WEEKLY = 'weekly'
get_description() → str[source]

Get descrip.

Returns

string

get_fixed_day_of_month() → int[source]

Get fixed_dom.

Returns

int

get_fixed_day_of_week() → int[source]

Get fixed_dow.

Returns

int

get_frequency() → str[source]

Get frequency.

Returns

string

get_id() → int[source]

Get id.

Returns

int

get_n() → int[source]

Get n.

Returns

int

get_product_id() → int[source]

Get product_id.

Returns

int

get_subscription_count() → int[source]

Get sub_count.

Returns

int

get_term() → int[source]

Get term.

Returns

int

class merchantapi.model.ProductVariant(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_dimensions()[source]

Get dimensions.

Returns

List of ProductVariantDimension

get_parts()[source]

Get parts.

Returns

List of ProductVariantPart

get_product_id() → int[source]

Get product_id.

Returns

int

get_variant_id() → int[source]

Get variant_id.

Returns

int

to_dict() → dict[source]

Reduce the model to a dict.

class merchantapi.model.ProductVariantDimension(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_attribute_id() → int[source]

Get attr_id.

Returns

int

get_attribute_template_attribute_id() → int[source]

Get attmpat_id.

Returns

int

get_option_code() → str[source]

Get option_code.

Returns

string

get_option_id() → int[source]

Get option_id.

Returns

int

class merchantapi.model.ProductVariantExclusion(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_attribute_id() → int[source]

Get attr_id.

Returns

int

get_attribute_template_id() → int[source]

Get attmpat_id.

Returns

int

get_option_id() → int[source]

Get option_id.

Returns

int

set_attribute_id(attribute_id: int) → merchantapi.model.ProductVariantExclusion[source]

Set attr_id.

Parameters

attribute_id – int

Returns

ProductVariantExclusion

set_attribute_template_id(attribute_template_id: int) → merchantapi.model.ProductVariantExclusion[source]

Set attmpat_id.

Parameters

attribute_template_id – int

Returns

ProductVariantExclusion

set_option_id(option_id: int) → merchantapi.model.ProductVariantExclusion[source]

Set option_id.

Parameters

option_id – int

Returns

ProductVariantExclusion

class merchantapi.model.ProductVariantLimit(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_attribute_id() → int[source]

Get attr_id.

Returns

int

get_attribute_template_id() → int[source]

Get attmpat_id.

Returns

int

get_option_id() → int[source]

Get option_id.

Returns

int

set_attribute_id(attribute_id: int) → merchantapi.model.ProductVariantLimit[source]

Set attr_id.

Parameters

attribute_id – int

Returns

ProductVariantLimit

set_attribute_template_id(attribute_template_id: int) → merchantapi.model.ProductVariantLimit[source]

Set attmpat_id.

Parameters

attribute_template_id – int

Returns

ProductVariantLimit

set_option_id(option_id: int) → merchantapi.model.ProductVariantLimit[source]

Set option_id.

Parameters

option_id – int

Returns

ProductVariantLimit

class merchantapi.model.ProductVariantPart(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_product_code() → str[source]

Get product_code.

Returns

string

get_product_id() → int[source]

Get product_id.

Returns

int

get_product_name() → str[source]

Get product_name.

Returns

string

get_quantity() → int[source]

Get quantity.

Returns

int

class merchantapi.model.ProvisionMessage(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_date_time_stamp() → str[source]

Get dtstamp.

Returns

string

get_line_number() → int[source]

Get lineno.

Returns

int

get_message() → str[source]

Get message.

Returns

string

get_tag() → str[source]

Get tag.

Returns

string

class merchantapi.model.RelatedProduct(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_active() → bool[source]

Get active.

Returns

bool

get_code() → str[source]

Get code.

Returns

string

get_cost() → float[source]

Get cost.

Returns

float

get_date_time_created() → int[source]

Get dt_created.

Returns

int

get_date_time_updated() → int[source]

Get dt_updated.

Returns

int

get_formatted_cost() → str[source]

Get formatted_cost.

Returns

string

get_formatted_price() → str[source]

Get formatted_price.

Returns

string

get_id() → int[source]

Get id.

Returns

int

get_image() → str[source]

Get image.

Returns

string

get_name() → str[source]

Get name.

Returns

string

get_page_title() → str[source]

Get page_title.

Returns

string

get_price() → float[source]

Get price.

Returns

float

get_sku() → str[source]

Get sku.

Returns

string

get_taxable() → bool[source]

Get taxable.

Returns

bool

get_thumbnail() → str[source]

Get thumbnail.

Returns

string

get_weight() → float[source]

Get weight.

Returns

float

set_active(active: bool) → merchantapi.model.RelatedProduct[source]

Set active.

Parameters

active – bool

Returns

RelatedProduct

set_code(code: str) → merchantapi.model.RelatedProduct[source]

Set code.

Parameters

code – string

Returns

RelatedProduct

set_cost(cost: float) → merchantapi.model.RelatedProduct[source]

Set cost.

Parameters

cost – int

Returns

RelatedProduct

set_image(image: str) → merchantapi.model.RelatedProduct[source]

Set image.

Parameters

image – string

Returns

RelatedProduct

set_name(name: str) → merchantapi.model.RelatedProduct[source]

Set name.

Parameters

name – string

Returns

RelatedProduct

set_page_title(page_title: str) → merchantapi.model.RelatedProduct[source]

Set page_title.

Parameters

page_title – string

Returns

RelatedProduct

set_price(price: float) → merchantapi.model.RelatedProduct[source]

Set price.

Parameters

price – int

Returns

RelatedProduct

set_sku(sku: str) → merchantapi.model.RelatedProduct[source]

Set sku.

Parameters

sku – string

Returns

RelatedProduct

set_taxable(taxable: bool) → merchantapi.model.RelatedProduct[source]

Set taxable.

Parameters

taxable – bool

Returns

RelatedProduct

set_thumbnail(thumbnail: str) → merchantapi.model.RelatedProduct[source]

Set thumbnail.

Parameters

thumbnail – string

Returns

RelatedProduct

set_weight(weight: float) → merchantapi.model.RelatedProduct[source]

Set weight.

Parameters

weight – int

Returns

RelatedProduct

class merchantapi.model.Subscription(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_address_id() → int[source]

Get addr_id.

Returns

int

get_cancel_date() → str[source]

Get cncldate.

Returns

string

get_customer_id() → int[source]

Get cust_id.

Returns

int

get_customer_payment_card_id() → int[source]

Get custpc_id.

Returns

int

get_first_date() → int[source]

Get firstdate.

Returns

int

get_formatted_shipping() → str[source]

Get formatted_shipping.

Returns

string

get_formatted_subtotal() → str[source]

Get formatted_subtotal.

Returns

string

get_formatted_tax() → str[source]

Get formatted_tax.

Returns

string

get_formatted_total() → str[source]

Get formatted_total.

Returns

string

get_id() → int[source]

Get id.

Returns

int

get_last_date() → int[source]

Get lastdate.

Returns

int

get_line_id() → int[source]

Get line_id.

Returns

int

get_message() → str[source]

Get message.

Returns

string

get_next_date() → int[source]

Get nextdate.

Returns

int

get_order_id() → int[source]

Get order_id.

Returns

int

get_product_id() → int[source]

Get product_id.

Returns

int

get_quantity() → int[source]

Get quantity.

Returns

int

get_ship_data() → str[source]

Get ship_data.

Returns

string

get_ship_id() → int[source]

Get ship_id.

Returns

int

get_shipping() → float[source]

Get shipping.

Returns

float

get_status() → str[source]

Get status.

Returns

string

get_subscription_term_id() → int[source]

Get subterm_id.

Returns

int

get_subtotal() → float[source]

Get subtotal.

Returns

float

get_tax() → float[source]

Get tax.

Returns

float

get_term_processed() → int[source]

Get termproc.

Returns

int

get_term_remaining() → int[source]

Get termrem.

Returns

int

get_total() → float[source]

Get total.

Returns

float

set_cancel_date(cancel_date: str) → merchantapi.model.Subscription[source]

Set cncldate.

Parameters

cancel_date – string

Returns

Subscription

class merchantapi.model.SubscriptionOption(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_attribute_code() → str[source]

Get attr_code.

Returns

string

get_subscription_id() → int[source]

Get subscrp_id.

Returns

int

get_template_code() → str[source]

Get templ_code.

Returns

string

get_value() → str[source]

Get value.

Returns

string

class merchantapi.model.Uri(data: dict = None)[source]

Bases: merchantapi.abstract.Model

get_canonical() → bool[source]

Get canonical.

Returns

bool

get_category_id() → int[source]

Get cat_id.

Returns

int

get_feed_id() → int[source]

Get feed_id.

Returns

int

get_id() → int[source]

Get id.

Returns

int

get_page_id() → int[source]

Get page_id.

Returns

int

get_product_id() → int[source]

Get product_id.

Returns

int

get_screen() → str[source]

Get screen.

Returns

string

get_status() → int[source]

Get status.

Returns

int

get_store_id() → int[source]

Get store_id.

Returns

int

get_uri() → str[source]

Get uri.

Returns

string

merchantapi.multicall module

This file is part of the MerchantAPI package.

  1. Miva Inc <https://www.miva.com/>

For the full copyright and license information, please view the LICENSE file that was distributed with self source code.

$Id: multicall.py 77667 2019-08-29 19:18:13Z gidriss $

class merchantapi.multicall.MultiCallOperation(request: merchantapi.abstract.Request = None, shared_data: dict = None)[source]

Bases: object

add_request(request: merchantapi.abstract.Request) → merchantapi.multicall.MultiCallOperation[source]

Add a request iteration.

Parameters

request – Request

Returns

MultiCallOperation

Raises

Exception

add_requests(requests: list) → merchantapi.multicall.MultiCallOperation[source]

Add an array of requests iterations.

Parameters

requests – list[Request]

Returns

MultiCallOperation

Raises

Exception

add_shared_data(key: str, value) → merchantapi.multicall.MultiCallOperation[source]

Add a shared data value for key.

Parameters
  • key – str

  • value – str|dict

Returns

MultiCallOperation

get_function()[source]
get_requests()[source]

Get the request iterations.

Returns

list

get_shared_data() → dict[source]

Get the shared data between the iterations.

Returns

dict

set_requests(requests: list) → merchantapi.multicall.MultiCallOperation[source]

Set and override the request iterations.

Parameters

requests – list[Request]

Returns

MultiCallOperation

Raises

Exception

set_shared_data(values: dict) → merchantapi.multicall.MultiCallOperation[source]

Set the shared data object.

Parameters

values – dict

Returns

MultiCallOperation

to_dict() → dict[source]

Reduce the operation to a dict

Returns

dict

class merchantapi.multicall.MultiCallRequest(client: merchantapi.abstract.Client = None, requests: list = None)[source]

Bases: merchantapi.abstract.Request

add_operation(operation: merchantapi.multicall.MultiCallOperation) → merchantapi.multicall.MultiCallRequest[source]

Add a operation to be sent.

Parameters

operation – MultiCallOperation

Returns

MultiCallRequest

add_operations(operations: list) → merchantapi.multicall.MultiCallRequest[source]

Add an array of operations.

Param

list[MultiCallOperation]

Returns

MultiCallRequest

add_request(request: merchantapi.abstract.Request) → merchantapi.multicall.MultiCallRequest[source]

Add a request to be sent.

Parameters

request – Request

Returns

MultiCallRequest

add_requests(requests: list)[source]

Add requests to be sent.

:param :Array requests :returns:MultiCallRequest

create_response(data: dict) → merchantapi.multicall.MultiCallResponse[source]
Parameters

data – dict

get_requests() → list[source]

Get the requests to be sent.

Returns

list

operation(request: merchantapi.abstract.Request = None, shared_data: dict = None) → merchantapi.multicall.MultiCallOperation[source]

Create an operation instance and add it to the request.

Parameters
  • request – Request|list[Request]|None

  • shared_data – dict|None

Returns

send() → merchantapi.multicall.MultiCallResponse[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_requests(requests: list)[source]

Set and override the requests to be sent.

Parameters

requests – list

Returns

MultiCallRequest

to_dict() → dict[source]

Reduce the request to an Object.

Returns

dict

class merchantapi.multicall.MultiCallResponse(request: merchantapi.multicall.MultiCallRequest, data: dict)[source]

Bases: merchantapi.abstract.Response

add_response(response: merchantapi.abstract.Response) → merchantapi.multicall.MultiCallResponse[source]

Add a response.

Parameters

response – Response

Returns

MultiCallResponse

Raises

Exception

get_responses() → list[source]

Get the responses.

Returns

list[Response]

is_success()[source]
Returns

bool

set_responses(responses: list) → merchantapi.multicall.MultiCallResponse[source]

Set and overwrite the responses.

Parameters

responses – list[Response]

Returns

MultiCallResponse

merchantapi.request module

This file is part of the MerchantAPI package.

  1. Miva Inc <https://www.miva.com/>

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

$Id: request.py 77709 2019-08-30 16:41:54Z gidriss $

class merchantapi.request.AvailabilityGroupBusinessAccountUpdateAssigned(client: merchantapi.client.Client = None, availability_group: merchantapi.model.AvailabilityGroup = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.AvailabilityGroupBusinessAccountUpdateAssigned[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_assigned() → bool[source]

Get Assigned.

Returns

bool

get_availability_group_id() → int[source]

Get AvailabilityGroup_ID.

Returns

int

get_availability_group_name() → str[source]

Get AvailabilityGroup_Name.

Returns

str

get_business_account_id() → int[source]

Get BusinessAccount_ID.

Returns

int

get_business_account_title() → str[source]

Get BusinessAccount_Title.

Returns

str

get_edit_availability_group() → str[source]

Get Edit_AvailabilityGroup.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.AvailabilityGroupBusinessAccountUpdateAssigned[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_assigned(assigned: bool) → merchantapi.request.AvailabilityGroupBusinessAccountUpdateAssigned[source]

Set Assigned.

Parameters

assigned – bool

Returns

AvailabilityGroupBusinessAccountUpdateAssigned

set_availability_group_id(availability_group_id: int) → merchantapi.request.AvailabilityGroupBusinessAccountUpdateAssigned[source]

Set AvailabilityGroup_ID.

Parameters

availability_group_id – int

Returns

AvailabilityGroupBusinessAccountUpdateAssigned

set_availability_group_name(availability_group_name: str) → merchantapi.request.AvailabilityGroupBusinessAccountUpdateAssigned[source]

Set AvailabilityGroup_Name.

Parameters

availability_group_name – str

Returns

AvailabilityGroupBusinessAccountUpdateAssigned

set_business_account_id(business_account_id: int) → merchantapi.request.AvailabilityGroupBusinessAccountUpdateAssigned[source]

Set BusinessAccount_ID.

Parameters

business_account_id – int

Returns

AvailabilityGroupBusinessAccountUpdateAssigned

set_business_account_title(business_account_title: str) → merchantapi.request.AvailabilityGroupBusinessAccountUpdateAssigned[source]

Set BusinessAccount_Title.

Parameters

business_account_title – str

Returns

AvailabilityGroupBusinessAccountUpdateAssigned

set_edit_availability_group(edit_availability_group: str) → merchantapi.request.AvailabilityGroupBusinessAccountUpdateAssigned[source]

Set Edit_AvailabilityGroup.

Parameters

edit_availability_group – str

Returns

AvailabilityGroupBusinessAccountUpdateAssigned

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.AvailabilityGroupCustomerUpdateAssigned(client: merchantapi.client.Client = None, availability_group: merchantapi.model.AvailabilityGroup = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.AvailabilityGroupCustomerUpdateAssigned[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_assigned() → bool[source]

Get Assigned.

Returns

bool

get_availability_group_id() → int[source]

Get AvailabilityGroup_ID.

Returns

int

get_availability_group_name() → str[source]

Get AvailabilityGroup_Name.

Returns

str

get_customer_id() → int[source]

Get Customer_ID.

Returns

int

get_customer_login() → str[source]

Get Customer_Login.

Returns

str

get_edit_availability_group() → str[source]

Get Edit_AvailabilityGroup.

Returns

str

get_edit_customer() → str[source]

Get Edit_Customer.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.AvailabilityGroupCustomerUpdateAssigned[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_assigned(assigned: bool) → merchantapi.request.AvailabilityGroupCustomerUpdateAssigned[source]

Set Assigned.

Parameters

assigned – bool

Returns

AvailabilityGroupCustomerUpdateAssigned

set_availability_group_id(availability_group_id: int) → merchantapi.request.AvailabilityGroupCustomerUpdateAssigned[source]

Set AvailabilityGroup_ID.

Parameters

availability_group_id – int

Returns

AvailabilityGroupCustomerUpdateAssigned

set_availability_group_name(availability_group_name: str) → merchantapi.request.AvailabilityGroupCustomerUpdateAssigned[source]

Set AvailabilityGroup_Name.

Parameters

availability_group_name – str

Returns

AvailabilityGroupCustomerUpdateAssigned

set_customer_id(customer_id: int) → merchantapi.request.AvailabilityGroupCustomerUpdateAssigned[source]

Set Customer_ID.

Parameters

customer_id – int

Returns

AvailabilityGroupCustomerUpdateAssigned

set_customer_login(customer_login: str) → merchantapi.request.AvailabilityGroupCustomerUpdateAssigned[source]

Set Customer_Login.

Parameters

customer_login – str

Returns

AvailabilityGroupCustomerUpdateAssigned

set_edit_availability_group(edit_availability_group: str) → merchantapi.request.AvailabilityGroupCustomerUpdateAssigned[source]

Set Edit_AvailabilityGroup.

Parameters

edit_availability_group – str

Returns

AvailabilityGroupCustomerUpdateAssigned

set_edit_customer(edit_customer: str) → merchantapi.request.AvailabilityGroupCustomerUpdateAssigned[source]

Set Edit_Customer.

Parameters

edit_customer – str

Returns

AvailabilityGroupCustomerUpdateAssigned

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.AvailabilityGroupListLoadQuery(client: merchantapi.client.Client = None)[source]

Bases: merchantapi.listquery.ListQueryRequest

available_search_fields = ['id', 'name']
available_sort_fields = ['id', 'name']
create_response(data) → merchantapi.request.AvailabilityGroupListLoadQuery[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.AvailabilityGroupListLoadQuery[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

class merchantapi.request.AvailabilityGroupPaymentMethodUpdateAssigned(client: merchantapi.client.Client = None, availability_group: merchantapi.model.AvailabilityGroup = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.AvailabilityGroupPaymentMethodUpdateAssigned[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_assigned() → bool[source]

Get Assigned.

Returns

bool

get_availability_group_id() → int[source]

Get AvailabilityGroup_ID.

Returns

int

get_availability_group_name() → str[source]

Get AvailabilityGroup_Name.

Returns

str

get_edit_availability_group() → str[source]

Get Edit_AvailabilityGroup.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_method_code() → str[source]

Get Method_Code.

Returns

str

get_module_code() → str[source]

Get Module_Code.

Returns

str

get_payment_card_type_id() → int[source]

Get PaymentCardType_ID.

Returns

int

send() → merchantapi.response.AvailabilityGroupPaymentMethodUpdateAssigned[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_assigned(assigned: bool) → merchantapi.request.AvailabilityGroupPaymentMethodUpdateAssigned[source]

Set Assigned.

Parameters

assigned – bool

Returns

AvailabilityGroupPaymentMethodUpdateAssigned

set_availability_group_id(availability_group_id: int) → merchantapi.request.AvailabilityGroupPaymentMethodUpdateAssigned[source]

Set AvailabilityGroup_ID.

Parameters

availability_group_id – int

Returns

AvailabilityGroupPaymentMethodUpdateAssigned

set_availability_group_name(availability_group_name: str) → merchantapi.request.AvailabilityGroupPaymentMethodUpdateAssigned[source]

Set AvailabilityGroup_Name.

Parameters

availability_group_name – str

Returns

AvailabilityGroupPaymentMethodUpdateAssigned

set_edit_availability_group(edit_availability_group: str) → merchantapi.request.AvailabilityGroupPaymentMethodUpdateAssigned[source]

Set Edit_AvailabilityGroup.

Parameters

edit_availability_group – str

Returns

AvailabilityGroupPaymentMethodUpdateAssigned

set_method_code(method_code: str) → merchantapi.request.AvailabilityGroupPaymentMethodUpdateAssigned[source]

Set Method_Code.

Parameters

method_code – str

Returns

AvailabilityGroupPaymentMethodUpdateAssigned

set_module_code(module_code: str) → merchantapi.request.AvailabilityGroupPaymentMethodUpdateAssigned[source]

Set Module_Code.

Parameters

module_code – str

Returns

AvailabilityGroupPaymentMethodUpdateAssigned

set_payment_card_type_id(payment_card_type_id: int) → merchantapi.request.AvailabilityGroupPaymentMethodUpdateAssigned[source]

Set PaymentCardType_ID.

Parameters

payment_card_type_id – int

Returns

AvailabilityGroupPaymentMethodUpdateAssigned

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.AvailabilityGroupProductUpdateAssigned(client: merchantapi.client.Client = None, availability_group: merchantapi.model.AvailabilityGroup = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.AvailabilityGroupProductUpdateAssigned[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_assigned() → bool[source]

Get Assigned.

Returns

bool

get_availability_group_id() → int[source]

Get AvailabilityGroup_ID.

Returns

int

get_availability_group_name() → str[source]

Get AvailabilityGroup_Name.

Returns

str

get_edit_availability_group() → str[source]

Get Edit_AvailabilityGroup.

Returns

str

get_edit_product() → str[source]

Get Edit_Product.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_product_code() → str[source]

Get Product_Code.

Returns

str

get_product_id() → int[source]

Get Product_ID.

Returns

int

get_product_sku() → str[source]

Get Product_SKU.

Returns

str

send() → merchantapi.response.AvailabilityGroupProductUpdateAssigned[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_assigned(assigned: bool) → merchantapi.request.AvailabilityGroupProductUpdateAssigned[source]

Set Assigned.

Parameters

assigned – bool

Returns

AvailabilityGroupProductUpdateAssigned

set_availability_group_id(availability_group_id: int) → merchantapi.request.AvailabilityGroupProductUpdateAssigned[source]

Set AvailabilityGroup_ID.

Parameters

availability_group_id – int

Returns

AvailabilityGroupProductUpdateAssigned

set_availability_group_name(availability_group_name: str) → merchantapi.request.AvailabilityGroupProductUpdateAssigned[source]

Set AvailabilityGroup_Name.

Parameters

availability_group_name – str

Returns

AvailabilityGroupProductUpdateAssigned

set_edit_availability_group(edit_availability_group: str) → merchantapi.request.AvailabilityGroupProductUpdateAssigned[source]

Set Edit_AvailabilityGroup.

Parameters

edit_availability_group – str

Returns

AvailabilityGroupProductUpdateAssigned

set_edit_product(edit_product: str) → merchantapi.request.AvailabilityGroupProductUpdateAssigned[source]

Set Edit_Product.

Parameters

edit_product – str

Returns

AvailabilityGroupProductUpdateAssigned

set_product_code(product_code: str) → merchantapi.request.AvailabilityGroupProductUpdateAssigned[source]

Set Product_Code.

Parameters

product_code – str

Returns

AvailabilityGroupProductUpdateAssigned

set_product_id(product_id: int) → merchantapi.request.AvailabilityGroupProductUpdateAssigned[source]

Set Product_ID.

Parameters

product_id – int

Returns

AvailabilityGroupProductUpdateAssigned

set_product_sku(product_sku: str) → merchantapi.request.AvailabilityGroupProductUpdateAssigned[source]

Set Product_SKU.

Parameters

product_sku – str

Returns

AvailabilityGroupProductUpdateAssigned

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.AvailabilityGroupShippingMethodUpdateAssigned(client: merchantapi.client.Client = None, availability_group: merchantapi.model.AvailabilityGroup = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.AvailabilityGroupShippingMethodUpdateAssigned[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_assigned() → bool[source]

Get Assigned.

Returns

bool

get_availability_group_id() → int[source]

Get AvailabilityGroup_ID.

Returns

int

get_availability_group_name() → str[source]

Get AvailabilityGroup_Name.

Returns

str

get_edit_availability_group() → str[source]

Get Edit_AvailabilityGroup.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_method_code() → str[source]

Get Method_Code.

Returns

str

get_module_code() → str[source]

Get Module_Code.

Returns

str

send() → merchantapi.response.AvailabilityGroupShippingMethodUpdateAssigned[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_assigned(assigned: bool) → merchantapi.request.AvailabilityGroupShippingMethodUpdateAssigned[source]

Set Assigned.

Parameters

assigned – bool

Returns

AvailabilityGroupShippingMethodUpdateAssigned

set_availability_group_id(availability_group_id: int) → merchantapi.request.AvailabilityGroupShippingMethodUpdateAssigned[source]

Set AvailabilityGroup_ID.

Parameters

availability_group_id – int

Returns

AvailabilityGroupShippingMethodUpdateAssigned

set_availability_group_name(availability_group_name: str) → merchantapi.request.AvailabilityGroupShippingMethodUpdateAssigned[source]

Set AvailabilityGroup_Name.

Parameters

availability_group_name – str

Returns

AvailabilityGroupShippingMethodUpdateAssigned

set_edit_availability_group(edit_availability_group: str) → merchantapi.request.AvailabilityGroupShippingMethodUpdateAssigned[source]

Set Edit_AvailabilityGroup.

Parameters

edit_availability_group – str

Returns

AvailabilityGroupShippingMethodUpdateAssigned

set_method_code(method_code: str) → merchantapi.request.AvailabilityGroupShippingMethodUpdateAssigned[source]

Set Method_Code.

Parameters

method_code – str

Returns

AvailabilityGroupShippingMethodUpdateAssigned

set_module_code(module_code: str) → merchantapi.request.AvailabilityGroupShippingMethodUpdateAssigned[source]

Set Module_Code.

Parameters

module_code – str

Returns

AvailabilityGroupShippingMethodUpdateAssigned

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CategoryDelete(client: merchantapi.client.Client = None, category: merchantapi.model.Category = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.CategoryDelete[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_category_code() → str[source]

Get Category_Code.

Returns

str

get_category_id() → int[source]

Get Category_ID.

Returns

int

get_edit_category() → str[source]

Get Edit_Category.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.CategoryDelete[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_category_code(category_code: str) → merchantapi.request.CategoryDelete[source]

Set Category_Code.

Parameters

category_code – str

Returns

CategoryDelete

set_category_id(category_id: int) → merchantapi.request.CategoryDelete[source]

Set Category_ID.

Parameters

category_id – int

Returns

CategoryDelete

set_edit_category(edit_category: str) → merchantapi.request.CategoryDelete[source]

Set Edit_Category.

Parameters

edit_category – str

Returns

CategoryDelete

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CategoryInsert(client: merchantapi.client.Client = None, category: merchantapi.model.Category = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.CategoryInsert[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_category_active() → bool[source]

Get Category_Active.

Returns

bool

get_category_alternate_display_page() → str[source]

Get Category_Alternate_Display_Page.

Returns

str

get_category_code() → str[source]

Get Category_Code.

Returns

str

get_category_name() → str[source]

Get Category_Name.

Returns

str

get_category_page_title() → str[source]

Get Category_Page_Title.

Returns

str

get_category_parent_category() → str[source]

Get Category_Parent_Category.

Returns

str

get_custom_field_values() → merchantapi.model.CustomFieldValues[source]

Get CustomField_Values.

Returns

CustomFieldValues}|None

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.CategoryInsert[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_category_active(category_active: bool) → merchantapi.request.CategoryInsert[source]

Set Category_Active.

Parameters

category_active – bool

Returns

CategoryInsert

set_category_alternate_display_page(category_alternate_display_page: str) → merchantapi.request.CategoryInsert[source]

Set Category_Alternate_Display_Page.

Parameters

category_alternate_display_page – str

Returns

CategoryInsert

set_category_code(category_code: str) → merchantapi.request.CategoryInsert[source]

Set Category_Code.

Parameters

category_code – str

Returns

CategoryInsert

set_category_name(category_name: str) → merchantapi.request.CategoryInsert[source]

Set Category_Name.

Parameters

category_name – str

Returns

CategoryInsert

set_category_page_title(category_page_title: str) → merchantapi.request.CategoryInsert[source]

Set Category_Page_Title.

Parameters

category_page_title – str

Returns

CategoryInsert

set_category_parent_category(category_parent_category: str) → merchantapi.request.CategoryInsert[source]

Set Category_Parent_Category.

Parameters

category_parent_category – str

Returns

CategoryInsert

set_custom_field_values(custom_field_values: merchantapi.model.CustomFieldValues) → merchantapi.request.CategoryInsert[source]

Set CustomField_Values.

Parameters

custom_field_values – CustomFieldValues}|None

Raises

Exception

Returns

CategoryInsert

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CategoryListLoadParent(client: merchantapi.client.Client = None, category: merchantapi.model.Category = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.CategoryListLoadParent[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_parent_id() → int[source]

Get Parent_ID.

Returns

int

send() → merchantapi.response.CategoryListLoadParent[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_parent_id(parent_id: int) → merchantapi.request.CategoryListLoadParent[source]

Set Parent_ID.

Parameters

parent_id – int

Returns

CategoryListLoadParent

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CategoryListLoadQuery(client: merchantapi.client.Client = None)[source]

Bases: merchantapi.listquery.ListQueryRequest

CATEGORY_SHOW_ACTIVE = 'Active'
CATEGORY_SHOW_ALL = 'All'
available_custom_filters = {'Category_Show': ['All', 'Active']}
available_search_fields = ['id', 'code', 'name', 'page_title', 'parent_category', 'page_code', 'dt_created', 'dt_updated', 'depth']
available_sort_fields = ['id', 'code', 'name', 'page_title', 'active', 'page_code', 'parent_category', 'disp_order', 'dt_created', 'dt_updated', 'depth']
create_response(data) → merchantapi.request.CategoryListLoadQuery[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.CategoryListLoadQuery[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

class merchantapi.request.CategoryProductListLoadQuery(client: merchantapi.client.Client = None, category: merchantapi.model.Category = None)[source]

Bases: merchantapi.request.ProductListLoadQuery

create_response(data) → merchantapi.request.CategoryProductListLoadQuery[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_assigned() → bool[source]

Get Assigned.

Returns

bool

get_category_code() → str[source]

Get Category_Code.

Returns

str

get_category_id() → int[source]

Get Category_ID.

Returns

int

get_edit_category() → str[source]

Get Edit_Category.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_unassigned() → bool[source]

Get Unassigned.

Returns

bool

send() → merchantapi.response.CategoryProductListLoadQuery[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_assigned(assigned: bool) → merchantapi.request.CategoryProductListLoadQuery[source]

Set Assigned.

Parameters

assigned – bool

Returns

CategoryProductListLoadQuery

set_category_code(category_code: str) → merchantapi.request.CategoryProductListLoadQuery[source]

Set Category_Code.

Parameters

category_code – str

Returns

CategoryProductListLoadQuery

set_category_id(category_id: int) → merchantapi.request.CategoryProductListLoadQuery[source]

Set Category_ID.

Parameters

category_id – int

Returns

CategoryProductListLoadQuery

set_edit_category(edit_category: str) → merchantapi.request.CategoryProductListLoadQuery[source]

Set Edit_Category.

Parameters

edit_category – str

Returns

CategoryProductListLoadQuery

set_unassigned(unassigned: bool) → merchantapi.request.CategoryProductListLoadQuery[source]

Set Unassigned.

Parameters

unassigned – bool

Returns

CategoryProductListLoadQuery

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CategoryProductUpdateAssigned(client: merchantapi.client.Client = None, category: merchantapi.model.Category = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.CategoryProductUpdateAssigned[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_assigned() → bool[source]

Get Assigned.

Returns

bool

get_category_code() → str[source]

Get Category_Code.

Returns

str

get_category_id() → int[source]

Get Category_ID.

Returns

int

get_edit_category() → str[source]

Get Edit_Category.

Returns

str

get_edit_product() → str[source]

Get Edit_Product.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_product_code() → str[source]

Get Product_Code.

Returns

str

get_product_id() → int[source]

Get Product_ID.

Returns

int

get_product_sku() → str[source]

Get Product_SKU.

Returns

str

send() → merchantapi.response.CategoryProductUpdateAssigned[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_assigned(assigned: bool) → merchantapi.request.CategoryProductUpdateAssigned[source]

Set Assigned.

Parameters

assigned – bool

Returns

CategoryProductUpdateAssigned

set_category_code(category_code: str) → merchantapi.request.CategoryProductUpdateAssigned[source]

Set Category_Code.

Parameters

category_code – str

Returns

CategoryProductUpdateAssigned

set_category_id(category_id: int) → merchantapi.request.CategoryProductUpdateAssigned[source]

Set Category_ID.

Parameters

category_id – int

Returns

CategoryProductUpdateAssigned

set_edit_category(edit_category: str) → merchantapi.request.CategoryProductUpdateAssigned[source]

Set Edit_Category.

Parameters

edit_category – str

Returns

CategoryProductUpdateAssigned

set_edit_product(edit_product: str) → merchantapi.request.CategoryProductUpdateAssigned[source]

Set Edit_Product.

Parameters

edit_product – str

Returns

CategoryProductUpdateAssigned

set_product_code(product_code: str) → merchantapi.request.CategoryProductUpdateAssigned[source]

Set Product_Code.

Parameters

product_code – str

Returns

CategoryProductUpdateAssigned

set_product_id(product_id: int) → merchantapi.request.CategoryProductUpdateAssigned[source]

Set Product_ID.

Parameters

product_id – int

Returns

CategoryProductUpdateAssigned

set_product_sku(product_sku: str) → merchantapi.request.CategoryProductUpdateAssigned[source]

Set Product_SKU.

Parameters

product_sku – str

Returns

CategoryProductUpdateAssigned

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CategoryUpdate(client: merchantapi.client.Client = None, category: merchantapi.model.Category = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.CategoryUpdate[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_category_active() → bool[source]

Get Category_Active.

Returns

bool

get_category_alternate_display_page() → str[source]

Get Category_Alternate_Display_Page.

Returns

str

get_category_code() → str[source]

Get Category_Code.

Returns

str

get_category_id() → int[source]

Get Category_ID.

Returns

int

get_category_name() → str[source]

Get Category_Name.

Returns

str

get_category_page_title() → str[source]

Get Category_Page_Title.

Returns

str

get_category_parent_category() → str[source]

Get Category_Parent_Category.

Returns

str

get_custom_field_values() → merchantapi.model.CustomFieldValues[source]

Get CustomField_Values.

Returns

CustomFieldValues}|None

get_edit_category() → str[source]

Get Edit_Category.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.CategoryUpdate[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_category_active(category_active: bool) → merchantapi.request.CategoryUpdate[source]

Set Category_Active.

Parameters

category_active – bool

Returns

CategoryUpdate

set_category_alternate_display_page(category_alternate_display_page: str) → merchantapi.request.CategoryUpdate[source]

Set Category_Alternate_Display_Page.

Parameters

category_alternate_display_page – str

Returns

CategoryUpdate

set_category_code(category_code: str) → merchantapi.request.CategoryUpdate[source]

Set Category_Code.

Parameters

category_code – str

Returns

CategoryUpdate

set_category_id(category_id: int) → merchantapi.request.CategoryUpdate[source]

Set Category_ID.

Parameters

category_id – int

Returns

CategoryUpdate

set_category_name(category_name: str) → merchantapi.request.CategoryUpdate[source]

Set Category_Name.

Parameters

category_name – str

Returns

CategoryUpdate

set_category_page_title(category_page_title: str) → merchantapi.request.CategoryUpdate[source]

Set Category_Page_Title.

Parameters

category_page_title – str

Returns

CategoryUpdate

set_category_parent_category(category_parent_category: str) → merchantapi.request.CategoryUpdate[source]

Set Category_Parent_Category.

Parameters

category_parent_category – str

Returns

CategoryUpdate

set_custom_field_values(custom_field_values: merchantapi.model.CustomFieldValues) → merchantapi.request.CategoryUpdate[source]

Set CustomField_Values.

Parameters

custom_field_values – CustomFieldValues}|None

Raises

Exception

Returns

CategoryUpdate

set_edit_category(edit_category: str) → merchantapi.request.CategoryUpdate[source]

Set Edit_Category.

Parameters

edit_category – str

Returns

CategoryUpdate

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CouponInsert(client: merchantapi.client.Client = None, coupon: merchantapi.model.Coupon = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.CouponInsert[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_active() → bool[source]

Get Active.

Returns

bool

get_code() → str[source]

Get Code.

Returns

str

get_customer_scope() → str[source]

Get CustomerScope.

Returns

str

get_date_time_end() → int[source]

Get DateTime_End.

Returns

int

get_date_time_start() → int[source]

Get DateTime_Start.

Returns

int

get_description() → str[source]

Get Description.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_max_per() → int[source]

Get Max_Per.

Returns

int

get_max_use() → int[source]

Get Max_Use.

Returns

int

get_price_group_id() → int[source]

Get PriceGroup_ID.

Returns

int

send() → merchantapi.response.CouponInsert[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_active(active: bool) → merchantapi.request.CouponInsert[source]

Set Active.

Parameters

active – bool

Returns

CouponInsert

set_code(code: str) → merchantapi.request.CouponInsert[source]

Set Code.

Parameters

code – str

Returns

CouponInsert

set_customer_scope(customer_scope: str) → merchantapi.request.CouponInsert[source]

Set CustomerScope.

Parameters

customer_scope – str

Returns

CouponInsert

set_date_time_end(date_time_end: int) → merchantapi.request.CouponInsert[source]

Set DateTime_End.

Parameters

date_time_end – int

Returns

CouponInsert

set_date_time_start(date_time_start: int) → merchantapi.request.CouponInsert[source]

Set DateTime_Start.

Parameters

date_time_start – int

Returns

CouponInsert

set_description(description: str) → merchantapi.request.CouponInsert[source]

Set Description.

Parameters

description – str

Returns

CouponInsert

set_max_per(max_per: int) → merchantapi.request.CouponInsert[source]

Set Max_Per.

Parameters

max_per – int

Returns

CouponInsert

set_max_use(max_use: int) → merchantapi.request.CouponInsert[source]

Set Max_Use.

Parameters

max_use – int

Returns

CouponInsert

set_price_group_id(price_group_id: int) → merchantapi.request.CouponInsert[source]

Set PriceGroup_ID.

Parameters

price_group_id – int

Returns

CouponInsert

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CouponListDelete(client: merchantapi.client.Client = None)[source]

Bases: merchantapi.abstract.Request

add_coupon(coupon: merchantapi.model.Coupon) → merchantapi.request.CouponListDelete[source]

Add Coupon model.

Parameters

coupon – Coupon

Raises

Exception

Returns

CouponListDelete

add_coupon_id(coupon_id) → merchantapi.request.CouponListDelete[source]

Add Coupon_IDs.

Parameters

coupon_id – int

Returns

{CouponListDelete}

create_response(data) → merchantapi.request.CouponListDelete[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_coupon_ids()[source]

Get Coupon_IDs.

Returns

list

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.CouponListDelete[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CouponListLoadQuery(client: merchantapi.client.Client = None)[source]

Bases: merchantapi.listquery.ListQueryRequest

available_search_fields = ['id', 'code', 'descrip', 'custscope', 'dt_start', 'dt_end', 'max_use', 'max_per', 'active', 'use_count']
available_sort_fields = ['id', 'code', 'descrip', 'custscope', 'dt_start', 'dt_end', 'max_use', 'max_per', 'active', 'use_count']
create_response(data) → merchantapi.request.CouponListLoadQuery[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.CouponListLoadQuery[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

class merchantapi.request.CouponPriceGroupListLoadQuery(client: merchantapi.client.Client = None, coupon: merchantapi.model.Coupon = None)[source]

Bases: merchantapi.request.PriceGroupListLoadQuery

create_response(data) → merchantapi.request.CouponPriceGroupListLoadQuery[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_assigned() → bool[source]

Get Assigned.

Returns

bool

get_coupon_code() → str[source]

Get Coupon_Code.

Returns

str

get_coupon_id() → int[source]

Get Coupon_ID.

Returns

int

get_edit_coupon() → str[source]

Get Edit_Coupon.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_unassigned() → bool[source]

Get Unassigned.

Returns

bool

send() → merchantapi.response.CouponPriceGroupListLoadQuery[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_assigned(assigned: bool) → merchantapi.request.CouponPriceGroupListLoadQuery[source]

Set Assigned.

Parameters

assigned – bool

Returns

CouponPriceGroupListLoadQuery

set_coupon_code(coupon_code: str) → merchantapi.request.CouponPriceGroupListLoadQuery[source]

Set Coupon_Code.

Parameters

coupon_code – str

Returns

CouponPriceGroupListLoadQuery

set_coupon_id(coupon_id: int) → merchantapi.request.CouponPriceGroupListLoadQuery[source]

Set Coupon_ID.

Parameters

coupon_id – int

Returns

CouponPriceGroupListLoadQuery

set_edit_coupon(edit_coupon: str) → merchantapi.request.CouponPriceGroupListLoadQuery[source]

Set Edit_Coupon.

Parameters

edit_coupon – str

Returns

CouponPriceGroupListLoadQuery

set_unassigned(unassigned: bool) → merchantapi.request.CouponPriceGroupListLoadQuery[source]

Set Unassigned.

Parameters

unassigned – bool

Returns

CouponPriceGroupListLoadQuery

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CouponPriceGroupUpdateAssigned(client: merchantapi.client.Client = None, coupon: merchantapi.model.Coupon = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.CouponPriceGroupUpdateAssigned[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_assigned() → bool[source]

Get Assigned.

Returns

bool

get_coupon_code() → str[source]

Get Coupon_Code.

Returns

str

get_coupon_id() → int[source]

Get Coupon_ID.

Returns

int

get_edit_coupon() → str[source]

Get Edit_Coupon.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_price_group_id() → int[source]

Get PriceGroup_ID.

Returns

int

get_price_group_name() → str[source]

Get PriceGroup_Name.

Returns

str

send() → merchantapi.response.CouponPriceGroupUpdateAssigned[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_assigned(assigned: bool) → merchantapi.request.CouponPriceGroupUpdateAssigned[source]

Set Assigned.

Parameters

assigned – bool

Returns

CouponPriceGroupUpdateAssigned

set_coupon_code(coupon_code: str) → merchantapi.request.CouponPriceGroupUpdateAssigned[source]

Set Coupon_Code.

Parameters

coupon_code – str

Returns

CouponPriceGroupUpdateAssigned

set_coupon_id(coupon_id: int) → merchantapi.request.CouponPriceGroupUpdateAssigned[source]

Set Coupon_ID.

Parameters

coupon_id – int

Returns

CouponPriceGroupUpdateAssigned

set_edit_coupon(edit_coupon: str) → merchantapi.request.CouponPriceGroupUpdateAssigned[source]

Set Edit_Coupon.

Parameters

edit_coupon – str

Returns

CouponPriceGroupUpdateAssigned

set_price_group_id(price_group_id: int) → merchantapi.request.CouponPriceGroupUpdateAssigned[source]

Set PriceGroup_ID.

Parameters

price_group_id – int

Returns

CouponPriceGroupUpdateAssigned

set_price_group_name(price_group_name: str) → merchantapi.request.CouponPriceGroupUpdateAssigned[source]

Set PriceGroup_Name.

Parameters

price_group_name – str

Returns

CouponPriceGroupUpdateAssigned

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CouponUpdate(client: merchantapi.client.Client = None, coupon: merchantapi.model.Coupon = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.CouponUpdate[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_active() → bool[source]

Get Active.

Returns

bool

get_code() → str[source]

Get Code.

Returns

str

get_coupon_code() → str[source]

Get Coupon_Code.

Returns

str

get_coupon_id() → int[source]

Get Coupon_ID.

Returns

int

get_customer_scope() → str[source]

Get CustomerScope.

Returns

str

get_date_time_end() → int[source]

Get DateTime_End.

Returns

int

get_date_time_start() → int[source]

Get DateTime_Start.

Returns

int

get_description() → str[source]

Get Description.

Returns

str

get_edit_coupon() → str[source]

Get Edit_Coupon.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_max_per() → int[source]

Get Max_Per.

Returns

int

get_max_use() → int[source]

Get Max_Use.

Returns

int

send() → merchantapi.response.CouponUpdate[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_active(active: bool) → merchantapi.request.CouponUpdate[source]

Set Active.

Parameters

active – bool

Returns

CouponUpdate

set_code(code: str) → merchantapi.request.CouponUpdate[source]

Set Code.

Parameters

code – str

Returns

CouponUpdate

set_coupon_code(coupon_code: str) → merchantapi.request.CouponUpdate[source]

Set Coupon_Code.

Parameters

coupon_code – str

Returns

CouponUpdate

set_coupon_id(coupon_id: int) → merchantapi.request.CouponUpdate[source]

Set Coupon_ID.

Parameters

coupon_id – int

Returns

CouponUpdate

set_customer_scope(customer_scope: str) → merchantapi.request.CouponUpdate[source]

Set CustomerScope.

Parameters

customer_scope – str

Returns

CouponUpdate

set_date_time_end(date_time_end: int) → merchantapi.request.CouponUpdate[source]

Set DateTime_End.

Parameters

date_time_end – int

Returns

CouponUpdate

set_date_time_start(date_time_start: int) → merchantapi.request.CouponUpdate[source]

Set DateTime_Start.

Parameters

date_time_start – int

Returns

CouponUpdate

set_description(description: str) → merchantapi.request.CouponUpdate[source]

Set Description.

Parameters

description – str

Returns

CouponUpdate

set_edit_coupon(edit_coupon: str) → merchantapi.request.CouponUpdate[source]

Set Edit_Coupon.

Parameters

edit_coupon – str

Returns

CouponUpdate

set_max_per(max_per: int) → merchantapi.request.CouponUpdate[source]

Set Max_Per.

Parameters

max_per – int

Returns

CouponUpdate

set_max_use(max_use: int) → merchantapi.request.CouponUpdate[source]

Set Max_Use.

Parameters

max_use – int

Returns

CouponUpdate

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CustomerAddressListLoadQuery(client: merchantapi.client.Client = None, customer: merchantapi.model.Customer = None)[source]

Bases: merchantapi.listquery.ListQueryRequest

available_search_fields = ['cust_id', 'id', 'descrip', 'fname', 'lname', 'email', 'comp', 'phone', 'fax', 'addr1', 'addr2', 'city', 'state', 'zip', 'cntry', 'resdntl']
available_sort_fields = ['cust_id', 'id', 'descrip', 'fname', 'lname', 'email', 'comp', 'phone', 'fax', 'addr1', 'addr2', 'city', 'state', 'zip', 'cntry', 'resdntl']
create_response(data) → merchantapi.request.CustomerAddressListLoadQuery[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_customer_id() → int[source]

Get Customer_ID.

Returns

int

get_customer_login() → str[source]

Get Customer_Login.

Returns

str

get_edit_customer() → str[source]

Get Edit_Customer.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.CustomerAddressListLoadQuery[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_customer_id(customer_id: int) → merchantapi.request.CustomerAddressListLoadQuery[source]

Set Customer_ID.

Parameters

customer_id – int

Returns

CustomerAddressListLoadQuery

set_customer_login(customer_login: str) → merchantapi.request.CustomerAddressListLoadQuery[source]

Set Customer_Login.

Parameters

customer_login – str

Returns

CustomerAddressListLoadQuery

set_edit_customer(edit_customer: str) → merchantapi.request.CustomerAddressListLoadQuery[source]

Set Edit_Customer.

Parameters

edit_customer – str

Returns

CustomerAddressListLoadQuery

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CustomerDelete(client: merchantapi.client.Client = None, customer: merchantapi.model.Customer = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.CustomerDelete[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_customer_id() → int[source]

Get Customer_ID.

Returns

int

get_customer_login() → str[source]

Get Customer_Login.

Returns

str

get_edit_customer() → str[source]

Get Edit_Customer.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.CustomerDelete[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_customer_id(customer_id: int) → merchantapi.request.CustomerDelete[source]

Set Customer_ID.

Parameters

customer_id – int

Returns

CustomerDelete

set_customer_login(customer_login: str) → merchantapi.request.CustomerDelete[source]

Set Customer_Login.

Parameters

customer_login – str

Returns

CustomerDelete

set_edit_customer(edit_customer: str) → merchantapi.request.CustomerDelete[source]

Set Edit_Customer.

Parameters

edit_customer – str

Returns

CustomerDelete

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CustomerInsert(client: merchantapi.client.Client = None, customer: merchantapi.model.Customer = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.CustomerInsert[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_custom_field_values() → merchantapi.model.CustomFieldValues[source]

Get CustomField_Values.

Returns

CustomFieldValues}|None

get_customer_bill_address1() → str[source]

Get Customer_BillAddress1.

Returns

str

get_customer_bill_address2() → str[source]

Get Customer_BillAddress2.

Returns

str

get_customer_bill_city() → str[source]

Get Customer_BillCity.

Returns

str

get_customer_bill_company() → str[source]

Get Customer_BillCompany.

Returns

str

get_customer_bill_country() → str[source]

Get Customer_BillCountry.

Returns

str

get_customer_bill_email() → str[source]

Get Customer_BillEmail.

Returns

str

get_customer_bill_fax() → str[source]

Get Customer_BillFax.

Returns

str

get_customer_bill_first_name() → str[source]

Get Customer_BillFirstName.

Returns

str

get_customer_bill_last_name() → str[source]

Get Customer_BillLastName.

Returns

str

get_customer_bill_phone() → str[source]

Get Customer_BillPhone.

Returns

str

get_customer_bill_state() → str[source]

Get Customer_BillState.

Returns

str

get_customer_bill_zip() → str[source]

Get Customer_BillZip.

Returns

str

get_customer_business_account() → str[source]

Get Customer_BusinessAccount.

Returns

str

get_customer_login() → str[source]

Get Customer_Login.

Returns

str

get_customer_password() → str[source]

Get Customer_Password.

Returns

str

get_customer_password_email() → str[source]

Get Customer_PasswordEmail.

Returns

str

get_customer_ship_address1() → str[source]

Get Customer_ShipAddress1.

Returns

str

get_customer_ship_address2() → str[source]

Get Customer_ShipAddress2.

Returns

str

get_customer_ship_city() → str[source]

Get Customer_ShipCity.

Returns

str

get_customer_ship_company() → str[source]

Get Customer_ShipCompany.

Returns

str

get_customer_ship_country() → str[source]

Get Customer_ShipCountry.

Returns

str

get_customer_ship_email() → str[source]

Get Customer_ShipEmail.

Returns

str

get_customer_ship_fax() → str[source]

Get Customer_ShipFax.

Returns

str

get_customer_ship_first_name() → str[source]

Get Customer_ShipFirstName.

Returns

str

get_customer_ship_last_name() → str[source]

Get Customer_ShipLastName.

Returns

str

get_customer_ship_phone() → str[source]

Get Customer_ShipPhone.

Returns

str

get_customer_ship_residential() → bool[source]

Get Customer_ShipResidential.

Returns

bool

get_customer_ship_state() → str[source]

Get Customer_ShipState.

Returns

str

get_customer_ship_zip() → str[source]

Get Customer_ShipZip.

Returns

str

get_customer_tax_exempt() → bool[source]

Get Customer_Tax_Exempt.

Returns

bool

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.CustomerInsert[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_custom_field_values(custom_field_values: merchantapi.model.CustomFieldValues) → merchantapi.request.CustomerInsert[source]

Set CustomField_Values.

Parameters

custom_field_values – CustomFieldValues}|None

Raises

Exception

Returns

CustomerInsert

set_customer_bill_address1(customer_bill_address1: str) → merchantapi.request.CustomerInsert[source]

Set Customer_BillAddress1.

Parameters

customer_bill_address1 – str

Returns

CustomerInsert

set_customer_bill_address2(customer_bill_address2: str) → merchantapi.request.CustomerInsert[source]

Set Customer_BillAddress2.

Parameters

customer_bill_address2 – str

Returns

CustomerInsert

set_customer_bill_city(customer_bill_city: str) → merchantapi.request.CustomerInsert[source]

Set Customer_BillCity.

Parameters

customer_bill_city – str

Returns

CustomerInsert

set_customer_bill_company(customer_bill_company: str) → merchantapi.request.CustomerInsert[source]

Set Customer_BillCompany.

Parameters

customer_bill_company – str

Returns

CustomerInsert

set_customer_bill_country(customer_bill_country: str) → merchantapi.request.CustomerInsert[source]

Set Customer_BillCountry.

Parameters

customer_bill_country – str

Returns

CustomerInsert

set_customer_bill_email(customer_bill_email: str) → merchantapi.request.CustomerInsert[source]

Set Customer_BillEmail.

Parameters

customer_bill_email – str

Returns

CustomerInsert

set_customer_bill_fax(customer_bill_fax: str) → merchantapi.request.CustomerInsert[source]

Set Customer_BillFax.

Parameters

customer_bill_fax – str

Returns

CustomerInsert

set_customer_bill_first_name(customer_bill_first_name: str) → merchantapi.request.CustomerInsert[source]

Set Customer_BillFirstName.

Parameters

customer_bill_first_name – str

Returns

CustomerInsert

set_customer_bill_last_name(customer_bill_last_name: str) → merchantapi.request.CustomerInsert[source]

Set Customer_BillLastName.

Parameters

customer_bill_last_name – str

Returns

CustomerInsert

set_customer_bill_phone(customer_bill_phone: str) → merchantapi.request.CustomerInsert[source]

Set Customer_BillPhone.

Parameters

customer_bill_phone – str

Returns

CustomerInsert

set_customer_bill_state(customer_bill_state: str) → merchantapi.request.CustomerInsert[source]

Set Customer_BillState.

Parameters

customer_bill_state – str

Returns

CustomerInsert

set_customer_bill_zip(customer_bill_zip: str) → merchantapi.request.CustomerInsert[source]

Set Customer_BillZip.

Parameters

customer_bill_zip – str

Returns

CustomerInsert

set_customer_business_account(customer_business_account: str) → merchantapi.request.CustomerInsert[source]

Set Customer_BusinessAccount.

Parameters

customer_business_account – str

Returns

CustomerInsert

set_customer_login(customer_login: str) → merchantapi.request.CustomerInsert[source]

Set Customer_Login.

Parameters

customer_login – str

Returns

CustomerInsert

set_customer_password(customer_password: str) → merchantapi.request.CustomerInsert[source]

Set Customer_Password.

Parameters

customer_password – str

Returns

CustomerInsert

set_customer_password_email(customer_password_email: str) → merchantapi.request.CustomerInsert[source]

Set Customer_PasswordEmail.

Parameters

customer_password_email – str

Returns

CustomerInsert

set_customer_ship_address1(customer_ship_address1: str) → merchantapi.request.CustomerInsert[source]

Set Customer_ShipAddress1.

Parameters

customer_ship_address1 – str

Returns

CustomerInsert

set_customer_ship_address2(customer_ship_address2: str) → merchantapi.request.CustomerInsert[source]

Set Customer_ShipAddress2.

Parameters

customer_ship_address2 – str

Returns

CustomerInsert

set_customer_ship_city(customer_ship_city: str) → merchantapi.request.CustomerInsert[source]

Set Customer_ShipCity.

Parameters

customer_ship_city – str

Returns

CustomerInsert

set_customer_ship_company(customer_ship_company: str) → merchantapi.request.CustomerInsert[source]

Set Customer_ShipCompany.

Parameters

customer_ship_company – str

Returns

CustomerInsert

set_customer_ship_country(customer_ship_country: str) → merchantapi.request.CustomerInsert[source]

Set Customer_ShipCountry.

Parameters

customer_ship_country – str

Returns

CustomerInsert

set_customer_ship_email(customer_ship_email: str) → merchantapi.request.CustomerInsert[source]

Set Customer_ShipEmail.

Parameters

customer_ship_email – str

Returns

CustomerInsert

set_customer_ship_fax(customer_ship_fax: str) → merchantapi.request.CustomerInsert[source]

Set Customer_ShipFax.

Parameters

customer_ship_fax – str

Returns

CustomerInsert

set_customer_ship_first_name(customer_ship_first_name: str) → merchantapi.request.CustomerInsert[source]

Set Customer_ShipFirstName.

Parameters

customer_ship_first_name – str

Returns

CustomerInsert

set_customer_ship_last_name(customer_ship_last_name: str) → merchantapi.request.CustomerInsert[source]

Set Customer_ShipLastName.

Parameters

customer_ship_last_name – str

Returns

CustomerInsert

set_customer_ship_phone(customer_ship_phone: str) → merchantapi.request.CustomerInsert[source]

Set Customer_ShipPhone.

Parameters

customer_ship_phone – str

Returns

CustomerInsert

set_customer_ship_residential(customer_ship_residential: bool) → merchantapi.request.CustomerInsert[source]

Set Customer_ShipResidential.

Parameters

customer_ship_residential – bool

Returns

CustomerInsert

set_customer_ship_state(customer_ship_state: str) → merchantapi.request.CustomerInsert[source]

Set Customer_ShipState.

Parameters

customer_ship_state – str

Returns

CustomerInsert

set_customer_ship_zip(customer_ship_zip: str) → merchantapi.request.CustomerInsert[source]

Set Customer_ShipZip.

Parameters

customer_ship_zip – str

Returns

CustomerInsert

set_customer_tax_exempt(customer_tax_exempt: bool) → merchantapi.request.CustomerInsert[source]

Set Customer_Tax_Exempt.

Parameters

customer_tax_exempt – bool

Returns

CustomerInsert

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CustomerListLoadQuery(client: merchantapi.client.Client = None)[source]

Bases: merchantapi.listquery.ListQueryRequest

available_search_fields = ['id', 'login', 'pw_email', 'ship_fname', 'ship_lname', 'ship_email', 'ship_comp', 'ship_phone', 'ship_fax', 'ship_addr1', 'ship_addr2', 'ship_city', 'ship_state', 'ship_zip', 'ship_cntry', 'ship_res', 'bill_fname', 'bill_lname', 'bill_email', 'bill_comp', 'bill_phone', 'bill_fax', 'bill_addr1', 'bill_addr2', 'bill_city', 'bill_state', 'bill_zip', 'bill_cntry', 'business_title', 'note_count', 'dt_created', 'dt_login', 'credit']
available_sort_fields = ['id', 'login', 'pw_email', 'ship_fname', 'ship_lname', 'ship_email', 'ship_comp', 'ship_phone', 'ship_fax', 'ship_addr1', 'ship_addr2', 'ship_city', 'ship_state', 'ship_zip', 'ship_cntry', 'ship_res', 'bill_fname', 'bill_lname', 'bill_email', 'bill_comp', 'bill_phone', 'bill_fax', 'bill_addr1', 'bill_addr2', 'bill_city', 'bill_state', 'bill_zip', 'bill_cntry', 'business_title', 'note_count', 'dt_created', 'dt_login', 'credit']
create_response(data) → merchantapi.request.CustomerListLoadQuery[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.CustomerListLoadQuery[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

class merchantapi.request.CustomerPaymentCardListLoadQuery(client: merchantapi.client.Client = None, customer: merchantapi.model.Customer = None)[source]

Bases: merchantapi.listquery.ListQueryRequest

available_search_fields = ['fname', 'lname', 'exp_month', 'exp_year', 'lastfour', 'lastused', 'type', 'addr1', 'addr2', 'city', 'state', 'zip', 'cntry', 'refcount', 'mod_code', 'meth_code', 'id']
available_sort_fields = ['fname', 'lname', 'expires', 'lastfour', 'lastused', 'type', 'addr1', 'addr2', 'city', 'state', 'zip', 'cntry', 'refcount', 'mod_code', 'meth_code', 'id']
create_response(data) → merchantapi.request.CustomerPaymentCardListLoadQuery[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_customer_id() → int[source]

Get Customer_ID.

Returns

int

get_customer_login() → str[source]

Get Customer_Login.

Returns

str

get_edit_customer() → str[source]

Get Edit_Customer.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.CustomerPaymentCardListLoadQuery[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_customer_id(customer_id: int) → merchantapi.request.CustomerPaymentCardListLoadQuery[source]

Set Customer_ID.

Parameters

customer_id – int

Returns

CustomerPaymentCardListLoadQuery

set_customer_login(customer_login: str) → merchantapi.request.CustomerPaymentCardListLoadQuery[source]

Set Customer_Login.

Parameters

customer_login – str

Returns

CustomerPaymentCardListLoadQuery

set_edit_customer(edit_customer: str) → merchantapi.request.CustomerPaymentCardListLoadQuery[source]

Set Edit_Customer.

Parameters

edit_customer – str

Returns

CustomerPaymentCardListLoadQuery

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CustomerPaymentCardRegister(client: merchantapi.client.Client = None, customer: merchantapi.model.Customer = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.CustomerPaymentCardRegister[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_address1() → str[source]

Get Address1.

Returns

str

get_address2() → str[source]

Get Address2.

Returns

str

get_card_number() → str[source]

Get CardNumber.

Returns

str

get_card_type() → str[source]

Get CardType.

Returns

str

get_city() → str[source]

Get City.

Returns

str

get_country() → str[source]

Get Country.

Returns

str

get_customer_id() → int[source]

Get Customer_ID.

Returns

int

get_customer_login() → str[source]

Get Customer_Login.

Returns

str

get_edit_customer() → str[source]

Get Edit_Customer.

Returns

str

get_expiration_month() → int[source]

Get ExpirationMonth.

Returns

int

get_expiration_year() → int[source]

Get ExpirationYear.

Returns

int

get_first_name() → str[source]

Get FirstName.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_last_name() → str[source]

Get LastName.

Returns

str

get_state() → str[source]

Get State.

Returns

str

get_zip() → str[source]

Get Zip.

Returns

str

send() → merchantapi.response.CustomerPaymentCardRegister[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_address1(address1: str) → merchantapi.request.CustomerPaymentCardRegister[source]

Set Address1.

Parameters

address1 – str

Returns

CustomerPaymentCardRegister

set_address2(address2: str) → merchantapi.request.CustomerPaymentCardRegister[source]

Set Address2.

Parameters

address2 – str

Returns

CustomerPaymentCardRegister

set_card_number(card_number: str) → merchantapi.request.CustomerPaymentCardRegister[source]

Set CardNumber.

Parameters

card_number – str

Returns

CustomerPaymentCardRegister

set_card_type(card_type: str) → merchantapi.request.CustomerPaymentCardRegister[source]

Set CardType.

Parameters

card_type – str

Returns

CustomerPaymentCardRegister

set_city(city: str) → merchantapi.request.CustomerPaymentCardRegister[source]

Set City.

Parameters

city – str

Returns

CustomerPaymentCardRegister

set_country(country: str) → merchantapi.request.CustomerPaymentCardRegister[source]

Set Country.

Parameters

country – str

Returns

CustomerPaymentCardRegister

set_customer_id(customer_id: int) → merchantapi.request.CustomerPaymentCardRegister[source]

Set Customer_ID.

Parameters

customer_id – int

Returns

CustomerPaymentCardRegister

set_customer_login(customer_login: str) → merchantapi.request.CustomerPaymentCardRegister[source]

Set Customer_Login.

Parameters

customer_login – str

Returns

CustomerPaymentCardRegister

set_edit_customer(edit_customer: str) → merchantapi.request.CustomerPaymentCardRegister[source]

Set Edit_Customer.

Parameters

edit_customer – str

Returns

CustomerPaymentCardRegister

set_expiration_month(expiration_month: int) → merchantapi.request.CustomerPaymentCardRegister[source]

Set ExpirationMonth.

Parameters

expiration_month – int

Returns

CustomerPaymentCardRegister

set_expiration_year(expiration_year: int) → merchantapi.request.CustomerPaymentCardRegister[source]

Set ExpirationYear.

Parameters

expiration_year – int

Returns

CustomerPaymentCardRegister

set_first_name(first_name: str) → merchantapi.request.CustomerPaymentCardRegister[source]

Set FirstName.

Parameters

first_name – str

Returns

CustomerPaymentCardRegister

set_last_name(last_name: str) → merchantapi.request.CustomerPaymentCardRegister[source]

Set LastName.

Parameters

last_name – str

Returns

CustomerPaymentCardRegister

set_state(state: str) → merchantapi.request.CustomerPaymentCardRegister[source]

Set State.

Parameters

state – str

Returns

CustomerPaymentCardRegister

set_zip(zip: str) → merchantapi.request.CustomerPaymentCardRegister[source]

Set Zip.

Parameters

zip – str

Returns

CustomerPaymentCardRegister

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CustomerPriceGroupListLoadQuery(client: merchantapi.client.Client = None, customer: merchantapi.model.Customer = None)[source]

Bases: merchantapi.request.PriceGroupListLoadQuery

create_response(data) → merchantapi.request.CustomerPriceGroupListLoadQuery[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_assigned() → bool[source]

Get Assigned.

Returns

bool

get_customer_id() → int[source]

Get Customer_ID.

Returns

int

get_customer_login() → str[source]

Get Customer_Login.

Returns

str

get_edit_customer() → str[source]

Get Edit_Customer.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_unassigned() → bool[source]

Get Unassigned.

Returns

bool

send() → merchantapi.response.CustomerPriceGroupListLoadQuery[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_assigned(assigned: bool) → merchantapi.request.CustomerPriceGroupListLoadQuery[source]

Set Assigned.

Parameters

assigned – bool

Returns

CustomerPriceGroupListLoadQuery

set_customer_id(customer_id: int) → merchantapi.request.CustomerPriceGroupListLoadQuery[source]

Set Customer_ID.

Parameters

customer_id – int

Returns

CustomerPriceGroupListLoadQuery

set_customer_login(customer_login: str) → merchantapi.request.CustomerPriceGroupListLoadQuery[source]

Set Customer_Login.

Parameters

customer_login – str

Returns

CustomerPriceGroupListLoadQuery

set_edit_customer(edit_customer: str) → merchantapi.request.CustomerPriceGroupListLoadQuery[source]

Set Edit_Customer.

Parameters

edit_customer – str

Returns

CustomerPriceGroupListLoadQuery

set_unassigned(unassigned: bool) → merchantapi.request.CustomerPriceGroupListLoadQuery[source]

Set Unassigned.

Parameters

unassigned – bool

Returns

CustomerPriceGroupListLoadQuery

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.CustomerUpdate(client: merchantapi.client.Client = None, customer: merchantapi.model.Customer = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.CustomerUpdate[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_custom_field_values() → merchantapi.model.CustomFieldValues[source]

Get CustomField_Values.

Returns

CustomFieldValues}|None

get_customer_bill_address1() → str[source]

Get Customer_BillAddress1.

Returns

str

get_customer_bill_address2() → str[source]

Get Customer_BillAddress2.

Returns

str

get_customer_bill_city() → str[source]

Get Customer_BillCity.

Returns

str

get_customer_bill_company() → str[source]

Get Customer_BillCompany.

Returns

str

get_customer_bill_country() → str[source]

Get Customer_BillCountry.

Returns

str

get_customer_bill_email() → str[source]

Get Customer_BillEmail.

Returns

str

get_customer_bill_fax() → str[source]

Get Customer_BillFax.

Returns

str

get_customer_bill_first_name() → str[source]

Get Customer_BillFirstName.

Returns

str

get_customer_bill_last_name() → str[source]

Get Customer_BillLastName.

Returns

str

get_customer_bill_phone() → str[source]

Get Customer_BillPhone.

Returns

str

get_customer_bill_state() → str[source]

Get Customer_BillState.

Returns

str

get_customer_bill_zip() → str[source]

Get Customer_BillZip.

Returns

str

get_customer_business_account() → str[source]

Get Customer_BusinessAccount.

Returns

str

get_customer_id() → int[source]

Get Customer_ID.

Returns

int

get_customer_login() → str[source]

Get Customer_Login.

Returns

str

get_customer_password() → str[source]

Get Customer_Password.

Returns

str

get_customer_password_email() → str[source]

Get Customer_PasswordEmail.

Returns

str

get_customer_ship_address1() → str[source]

Get Customer_ShipAddress1.

Returns

str

get_customer_ship_address2() → str[source]

Get Customer_ShipAddress2.

Returns

str

get_customer_ship_city() → str[source]

Get Customer_ShipCity.

Returns

str

get_customer_ship_company() → str[source]

Get Customer_ShipCompany.

Returns

str

get_customer_ship_country() → str[source]

Get Customer_ShipCountry.

Returns

str

get_customer_ship_email() → str[source]

Get Customer_ShipEmail.

Returns

str

get_customer_ship_fax() → str[source]

Get Customer_ShipFax.

Returns

str

get_customer_ship_first_name() → str[source]

Get Customer_ShipFirstName.

Returns

str

get_customer_ship_last_name() → str[source]

Get Customer_ShipLastName.

Returns

str

get_customer_ship_phone() → str[source]

Get Customer_ShipPhone.

Returns

str

get_customer_ship_residential() → bool[source]

Get Customer_ShipResidential.

Returns

bool

get_customer_ship_state() → str[source]

Get Customer_ShipState.

Returns

str

get_customer_ship_zip() → str[source]

Get Customer_ShipZip.

Returns

str

get_customer_tax_exempt() → str[source]

Get Customer_Tax_Exempt.

Returns

str

get_edit_customer() → str[source]

Get Edit_Customer.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.CustomerUpdate[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_custom_field_values(custom_field_values: merchantapi.model.CustomFieldValues) → merchantapi.request.CustomerUpdate[source]

Set CustomField_Values.

Parameters

custom_field_values – CustomFieldValues}|None

Raises

Exception

Returns

CustomerUpdate

set_customer_bill_address1(customer_bill_address1: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_BillAddress1.

Parameters

customer_bill_address1 – str

Returns

CustomerUpdate

set_customer_bill_address2(customer_bill_address2: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_BillAddress2.

Parameters

customer_bill_address2 – str

Returns

CustomerUpdate

set_customer_bill_city(customer_bill_city: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_BillCity.

Parameters

customer_bill_city – str

Returns

CustomerUpdate

set_customer_bill_company(customer_bill_company: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_BillCompany.

Parameters

customer_bill_company – str

Returns

CustomerUpdate

set_customer_bill_country(customer_bill_country: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_BillCountry.

Parameters

customer_bill_country – str

Returns

CustomerUpdate

set_customer_bill_email(customer_bill_email: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_BillEmail.

Parameters

customer_bill_email – str

Returns

CustomerUpdate

set_customer_bill_fax(customer_bill_fax: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_BillFax.

Parameters

customer_bill_fax – str

Returns

CustomerUpdate

set_customer_bill_first_name(customer_bill_first_name: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_BillFirstName.

Parameters

customer_bill_first_name – str

Returns

CustomerUpdate

set_customer_bill_last_name(customer_bill_last_name: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_BillLastName.

Parameters

customer_bill_last_name – str

Returns

CustomerUpdate

set_customer_bill_phone(customer_bill_phone: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_BillPhone.

Parameters

customer_bill_phone – str

Returns

CustomerUpdate

set_customer_bill_state(customer_bill_state: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_BillState.

Parameters

customer_bill_state – str

Returns

CustomerUpdate

set_customer_bill_zip(customer_bill_zip: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_BillZip.

Parameters

customer_bill_zip – str

Returns

CustomerUpdate

set_customer_business_account(customer_business_account: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_BusinessAccount.

Parameters

customer_business_account – str

Returns

CustomerUpdate

set_customer_id(customer_id: int) → merchantapi.request.CustomerUpdate[source]

Set Customer_ID.

Parameters

customer_id – int

Returns

CustomerUpdate

set_customer_login(customer_login: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_Login.

Parameters

customer_login – str

Returns

CustomerUpdate

set_customer_password(customer_password: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_Password.

Parameters

customer_password – str

Returns

CustomerUpdate

set_customer_password_email(customer_password_email: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_PasswordEmail.

Parameters

customer_password_email – str

Returns

CustomerUpdate

set_customer_ship_address1(customer_ship_address1: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_ShipAddress1.

Parameters

customer_ship_address1 – str

Returns

CustomerUpdate

set_customer_ship_address2(customer_ship_address2: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_ShipAddress2.

Parameters

customer_ship_address2 – str

Returns

CustomerUpdate

set_customer_ship_city(customer_ship_city: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_ShipCity.

Parameters

customer_ship_city – str

Returns

CustomerUpdate

set_customer_ship_company(customer_ship_company: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_ShipCompany.

Parameters

customer_ship_company – str

Returns

CustomerUpdate

set_customer_ship_country(customer_ship_country: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_ShipCountry.

Parameters

customer_ship_country – str

Returns

CustomerUpdate

set_customer_ship_email(customer_ship_email: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_ShipEmail.

Parameters

customer_ship_email – str

Returns

CustomerUpdate

set_customer_ship_fax(customer_ship_fax: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_ShipFax.

Parameters

customer_ship_fax – str

Returns

CustomerUpdate

set_customer_ship_first_name(customer_ship_first_name: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_ShipFirstName.

Parameters

customer_ship_first_name – str

Returns

CustomerUpdate

set_customer_ship_last_name(customer_ship_last_name: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_ShipLastName.

Parameters

customer_ship_last_name – str

Returns

CustomerUpdate

set_customer_ship_phone(customer_ship_phone: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_ShipPhone.

Parameters

customer_ship_phone – str

Returns

CustomerUpdate

set_customer_ship_residential(customer_ship_residential: bool) → merchantapi.request.CustomerUpdate[source]

Set Customer_ShipResidential.

Parameters

customer_ship_residential – bool

Returns

CustomerUpdate

set_customer_ship_state(customer_ship_state: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_ShipState.

Parameters

customer_ship_state – str

Returns

CustomerUpdate

set_customer_ship_zip(customer_ship_zip: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_ShipZip.

Parameters

customer_ship_zip – str

Returns

CustomerUpdate

set_customer_tax_exempt(customer_tax_exempt: str) → merchantapi.request.CustomerUpdate[source]

Set Customer_Tax_Exempt.

Parameters

customer_tax_exempt – str

Returns

CustomerUpdate

set_edit_customer(edit_customer: str) → merchantapi.request.CustomerUpdate[source]

Set Edit_Customer.

Parameters

edit_customer – str

Returns

CustomerUpdate

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.Module(client: merchantapi.client.Client = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.Module[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_module_code() → str[source]

Get Module_Code.

Returns

str

get_module_fields()[source]

Get Module_Fields.

Returns

dict

get_module_function() → str[source]

Get Module_Function.

Returns

str

send() → merchantapi.response.Module[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_module_code(module_code: str) → merchantapi.request.Module[source]

Set Module_Code.

Parameters

module_code – str

Returns

Module

set_module_field(field: str, value) → merchantapi.request.Module[source]

Add custom data to the request.

Parameters
  • field – str

  • value – mixed

Returns

{Module}

set_module_fields(module_fields) → merchantapi.request.Module[source]

Set Module_Fields.

Parameters

module_fields – dict

Returns

Module

set_module_function(module_function: str) → merchantapi.request.Module[source]

Set Module_Function.

Parameters

module_function – str

Returns

Module

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.NoteDelete(client: merchantapi.client.Client = None, note: merchantapi.model.Note = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.NoteDelete[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_note_id() → int[source]

Get Note_ID.

Returns

int

send() → merchantapi.response.NoteDelete[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_note_id(note_id: int) → merchantapi.request.NoteDelete[source]

Set Note_ID.

Parameters

note_id – int

Returns

NoteDelete

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.NoteInsert(client: merchantapi.client.Client = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.NoteInsert[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_account_id() → int[source]

Get Account_ID.

Returns

int

get_customer_id() → int[source]

Get Customer_ID.

Returns

int

get_function()[source]

Get the function of the request.

Returns

str

get_note_text() → str[source]

Get NoteText.

Returns

str

get_order_id() → int[source]

Get Order_ID.

Returns

int

send() → merchantapi.response.NoteInsert[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_account_id(account_id: int) → merchantapi.request.NoteInsert[source]

Set Account_ID.

Parameters

account_id – int

Returns

NoteInsert

set_customer_id(customer_id: int) → merchantapi.request.NoteInsert[source]

Set Customer_ID.

Parameters

customer_id – int

Returns

NoteInsert

set_note_text(note_text: str) → merchantapi.request.NoteInsert[source]

Set NoteText.

Parameters

note_text – str

Returns

NoteInsert

set_order_id(order_id: int) → merchantapi.request.NoteInsert[source]

Set Order_ID.

Parameters

order_id – int

Returns

NoteInsert

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.NoteListLoadQuery(client: merchantapi.client.Client = None)[source]

Bases: merchantapi.listquery.ListQueryRequest

available_search_fields = ['id', 'notetext', 'dtstamp', 'cust_id', 'account_id', 'order_id', 'admin_user', 'cust_login', 'business_title']
available_sort_fields = ['id', 'notetext', 'dtstamp', 'cust_id', 'account_id', 'order_id', 'admin_user', 'cust_login', 'business_title']
create_response(data) → merchantapi.request.NoteListLoadQuery[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.NoteListLoadQuery[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

class merchantapi.request.NoteUpdate(client: merchantapi.client.Client = None, note: merchantapi.model.Note = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.NoteUpdate[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_note_id() → int[source]

Get Note_ID.

Returns

int

get_note_text() → str[source]

Get NoteText.

Returns

str

send() → merchantapi.response.NoteUpdate[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_note_id(note_id: int) → merchantapi.request.NoteUpdate[source]

Set Note_ID.

Parameters

note_id – int

Returns

NoteUpdate

set_note_text(note_text: str) → merchantapi.request.NoteUpdate[source]

Set NoteText.

Parameters

note_text – str

Returns

NoteUpdate

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.OrderAuthorize(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.OrderAuthorize[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_amount() → float[source]

Get Amount.

Returns

float

get_function()[source]

Get the function of the request.

Returns

str

get_module_data() → str[source]

Get Module_Data.

Returns

str

get_module_fields()[source]

Get Module_Fields.

Returns

dict

get_module_id() → int[source]

Get Module_ID.

Returns

int

get_order_id() → int[source]

Get Order_ID.

Returns

int

send() → merchantapi.response.OrderAuthorize[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_amount(amount: float) → merchantapi.request.OrderAuthorize[source]

Set Amount.

Parameters

amount – float

Returns

OrderAuthorize

set_module_data(module_data: str) → merchantapi.request.OrderAuthorize[source]

Set Module_Data.

Parameters

module_data – str

Returns

OrderAuthorize

set_module_field(field: str, value) → merchantapi.request.OrderAuthorize[source]

Add custom data to the request.

Parameters
  • field – str

  • value – mixed

Returns

{OrderAuthorize}

set_module_fields(module_fields) → merchantapi.request.OrderAuthorize[source]

Set Module_Fields.

Parameters

module_fields – dict

Returns

OrderAuthorize

set_module_id(module_id: int) → merchantapi.request.OrderAuthorize[source]

Set Module_ID.

Parameters

module_id – int

Returns

OrderAuthorize

set_order_id(order_id: int) → merchantapi.request.OrderAuthorize[source]

Set Order_ID.

Parameters

order_id – int

Returns

OrderAuthorize

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.OrderCreate(client: merchantapi.client.Client = None, customer: merchantapi.model.Customer = None)[source]

Bases: merchantapi.abstract.Request

add_charge(charge) → merchantapi.request.OrderCreate[source]

Add Charges.

Parameters

charge – OrderCharge

Raises

Exception

Returns

{OrderCreate}

add_charges(charges: list) → merchantapi.request.OrderCreate[source]

Add many OrderCharge.

Parameters

charges – List of OrderCharge

Raises

Exception

Returns

OrderCreate

add_item(item) → merchantapi.request.OrderCreate[source]

Add Items.

Parameters

item – OrderItem

Raises

Exception

Returns

{OrderCreate}

add_items(items: list) → merchantapi.request.OrderCreate[source]

Add many OrderItem.

Parameters

items – List of OrderItem

Raises

Exception

Returns

OrderCreate

add_product(product) → merchantapi.request.OrderCreate[source]

Add Products.

Parameters

product – OrderProduct

Raises

Exception

Returns

{OrderCreate}

add_products(products: list) → merchantapi.request.OrderCreate[source]

Add many OrderProduct.

Parameters

products – List of OrderProduct

Raises

Exception

Returns

OrderCreate

create_response(data) → merchantapi.request.OrderCreate[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_bill_address1() → str[source]

Get BillAddress1.

Returns

str

get_bill_address2() → str[source]

Get BillAddress2.

Returns

str

get_bill_city() → str[source]

Get BillCity.

Returns

str

get_bill_company() → str[source]

Get BillCompany.

Returns

str

get_bill_country() → str[source]

Get BillCountry.

Returns

str

get_bill_email() → str[source]

Get BillEmail.

Returns

str

get_bill_fax() → str[source]

Get BillFax.

Returns

str

get_bill_first_name() → str[source]

Get BillFirstName.

Returns

str

get_bill_last_name() → str[source]

Get BillLastName.

Returns

str

get_bill_phone() → str[source]

Get BillPhone.

Returns

str

get_bill_state() → str[source]

Get BillState.

Returns

str

get_bill_zip() → str[source]

Get BillZip.

Returns

str

get_calculate_charges() → bool[source]

Get CalculateCharges.

Returns

bool

get_charges() → list[source]

Get Charges.

Returns

List of OrderCharge

get_custom_field_values() → merchantapi.model.CustomFieldValues[source]

Get CustomField_Values.

Returns

CustomFieldValues}|None

get_customer_id() → int[source]

Get Customer_ID.

Returns

int

get_customer_login() → str[source]

Get Customer_Login.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_items() → list[source]

Get Items.

Returns

List of OrderItem

get_products() → list[source]

Get Products.

Returns

List of OrderProduct

get_ship_address1() → str[source]

Get ShipAddress1.

Returns

str

get_ship_address2() → str[source]

Get ShipAddress2.

Returns

str

get_ship_city() → str[source]

Get ShipCity.

Returns

str

get_ship_company() → str[source]

Get ShipCompany.

Returns

str

get_ship_country() → str[source]

Get ShipCountry.

Returns

str

get_ship_email() → str[source]

Get ShipEmail.

Returns

str

get_ship_fax() → str[source]

Get ShipFax.

Returns

str

get_ship_first_name() → str[source]

Get ShipFirstName.

Returns

str

get_ship_last_name() → str[source]

Get ShipLastName.

Returns

str

get_ship_phone() → str[source]

Get ShipPhone.

Returns

str

get_ship_residential() → bool[source]

Get ShipResidential.

Returns

bool

get_ship_state() → str[source]

Get ShipState.

Returns

str

get_ship_zip() → str[source]

Get ShipZip.

Returns

str

get_shipping_module_code() → str[source]

Get Shipping_Module_Code.

Returns

str

get_shipping_module_data() → str[source]

Get Shipping_Module_Data.

Returns

str

get_trigger_fulfillment_modules() → bool[source]

Get TriggerFulfillmentModules.

Returns

bool

send() → merchantapi.response.OrderCreate[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_bill_address1(bill_address1: str) → merchantapi.request.OrderCreate[source]

Set BillAddress1.

Parameters

bill_address1 – str

Returns

OrderCreate

set_bill_address2(bill_address2: str) → merchantapi.request.OrderCreate[source]

Set BillAddress2.

Parameters

bill_address2 – str

Returns

OrderCreate

set_bill_city(bill_city: str) → merchantapi.request.OrderCreate[source]

Set BillCity.

Parameters

bill_city – str

Returns

OrderCreate

set_bill_company(bill_company: str) → merchantapi.request.OrderCreate[source]

Set BillCompany.

Parameters

bill_company – str

Returns

OrderCreate

set_bill_country(bill_country: str) → merchantapi.request.OrderCreate[source]

Set BillCountry.

Parameters

bill_country – str

Returns

OrderCreate

set_bill_email(bill_email: str) → merchantapi.request.OrderCreate[source]

Set BillEmail.

Parameters

bill_email – str

Returns

OrderCreate

set_bill_fax(bill_fax: str) → merchantapi.request.OrderCreate[source]

Set BillFax.

Parameters

bill_fax – str

Returns

OrderCreate

set_bill_first_name(bill_first_name: str) → merchantapi.request.OrderCreate[source]

Set BillFirstName.

Parameters

bill_first_name – str

Returns

OrderCreate

set_bill_last_name(bill_last_name: str) → merchantapi.request.OrderCreate[source]

Set BillLastName.

Parameters

bill_last_name – str

Returns

OrderCreate

set_bill_phone(bill_phone: str) → merchantapi.request.OrderCreate[source]

Set BillPhone.

Parameters

bill_phone – str

Returns

OrderCreate

set_bill_state(bill_state: str) → merchantapi.request.OrderCreate[source]

Set BillState.

Parameters

bill_state – str

Returns

OrderCreate

set_bill_zip(bill_zip: str) → merchantapi.request.OrderCreate[source]

Set BillZip.

Parameters

bill_zip – str

Returns

OrderCreate

set_calculate_charges(calculate_charges: bool) → merchantapi.request.OrderCreate[source]

Set CalculateCharges.

Parameters

calculate_charges – bool

Returns

OrderCreate

set_charges(charges: list) → merchantapi.request.OrderCreate[source]

Set Charges.

Parameters

charges – {OrderCharge[]}

Raises

Exception

Returns

OrderCreate

set_custom_field_values(custom_field_values: merchantapi.model.CustomFieldValues) → merchantapi.request.OrderCreate[source]

Set CustomField_Values.

Parameters

custom_field_values – CustomFieldValues}|None

Raises

Exception

Returns

OrderCreate

set_customer_id(customer_id: int) → merchantapi.request.OrderCreate[source]

Set Customer_ID.

Parameters

customer_id – int

Returns

OrderCreate

set_customer_login(customer_login: str) → merchantapi.request.OrderCreate[source]

Set Customer_Login.

Parameters

customer_login – str

Returns

OrderCreate

set_items(items: list) → merchantapi.request.OrderCreate[source]

Set Items.

Parameters

items – {OrderItem[]}

Raises

Exception

Returns

OrderCreate

set_products(products: list) → merchantapi.request.OrderCreate[source]

Set Products.

Parameters

products – {OrderProduct[]}

Raises

Exception

Returns

OrderCreate

set_ship_address1(ship_address1: str) → merchantapi.request.OrderCreate[source]

Set ShipAddress1.

Parameters

ship_address1 – str

Returns

OrderCreate

set_ship_address2(ship_address2: str) → merchantapi.request.OrderCreate[source]

Set ShipAddress2.

Parameters

ship_address2 – str

Returns

OrderCreate

set_ship_city(ship_city: str) → merchantapi.request.OrderCreate[source]

Set ShipCity.

Parameters

ship_city – str

Returns

OrderCreate

set_ship_company(ship_company: str) → merchantapi.request.OrderCreate[source]

Set ShipCompany.

Parameters

ship_company – str

Returns

OrderCreate

set_ship_country(ship_country: str) → merchantapi.request.OrderCreate[source]

Set ShipCountry.

Parameters

ship_country – str

Returns

OrderCreate

set_ship_email(ship_email: str) → merchantapi.request.OrderCreate[source]

Set ShipEmail.

Parameters

ship_email – str

Returns

OrderCreate

set_ship_fax(ship_fax: str) → merchantapi.request.OrderCreate[source]

Set ShipFax.

Parameters

ship_fax – str

Returns

OrderCreate

set_ship_first_name(ship_first_name: str) → merchantapi.request.OrderCreate[source]

Set ShipFirstName.

Parameters

ship_first_name – str

Returns

OrderCreate

set_ship_last_name(ship_last_name: str) → merchantapi.request.OrderCreate[source]

Set ShipLastName.

Parameters

ship_last_name – str

Returns

OrderCreate

set_ship_phone(ship_phone: str) → merchantapi.request.OrderCreate[source]

Set ShipPhone.

Parameters

ship_phone – str

Returns

OrderCreate

set_ship_residential(ship_residential: bool) → merchantapi.request.OrderCreate[source]

Set ShipResidential.

Parameters

ship_residential – bool

Returns

OrderCreate

set_ship_state(ship_state: str) → merchantapi.request.OrderCreate[source]

Set ShipState.

Parameters

ship_state – str

Returns

OrderCreate

set_ship_zip(ship_zip: str) → merchantapi.request.OrderCreate[source]

Set ShipZip.

Parameters

ship_zip – str

Returns

OrderCreate

set_shipping_module_code(shipping_module_code: str) → merchantapi.request.OrderCreate[source]

Set Shipping_Module_Code.

Parameters

shipping_module_code – str

Returns

OrderCreate

set_shipping_module_data(shipping_module_data: str) → merchantapi.request.OrderCreate[source]

Set Shipping_Module_Data.

Parameters

shipping_module_data – str

Returns

OrderCreate

set_trigger_fulfillment_modules(trigger_fulfillment_modules: bool) → merchantapi.request.OrderCreate[source]

Set TriggerFulfillmentModules.

Parameters

trigger_fulfillment_modules – bool

Returns

OrderCreate

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.OrderCreateFromOrder(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.OrderCreateFromOrder[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_order_id() → int[source]

Get Order_ID.

Returns

int

send() → merchantapi.response.OrderCreateFromOrder[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_order_id(order_id: int) → merchantapi.request.OrderCreateFromOrder[source]

Set Order_ID.

Parameters

order_id – int

Returns

OrderCreateFromOrder

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.OrderCustomFieldListLoad(client: merchantapi.client.Client = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.OrderCustomFieldListLoad[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.OrderCustomFieldListLoad[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

class merchantapi.request.OrderCustomFieldsUpdate(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.OrderCustomFieldsUpdate[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_custom_field_values() → merchantapi.model.CustomFieldValues[source]

Get CustomField_Values.

Returns

CustomFieldValues}|None

get_function()[source]

Get the function of the request.

Returns

str

get_order_id() → int[source]

Get Order_ID.

Returns

int

send() → merchantapi.response.OrderCustomFieldsUpdate[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_custom_field_values(custom_field_values: merchantapi.model.CustomFieldValues) → merchantapi.request.OrderCustomFieldsUpdate[source]

Set CustomField_Values.

Parameters

custom_field_values – CustomFieldValues}|None

Raises

Exception

Returns

OrderCustomFieldsUpdate

set_order_id(order_id: int) → merchantapi.request.OrderCustomFieldsUpdate[source]

Set Order_ID.

Parameters

order_id – int

Returns

OrderCustomFieldsUpdate

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.OrderDelete(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.OrderDelete[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_order_id() → int[source]

Get Order_ID.

Returns

int

send() → merchantapi.response.OrderDelete[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_order_id(order_id: int) → merchantapi.request.OrderDelete[source]

Set Order_ID.

Parameters

order_id – int

Returns

OrderDelete

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.OrderItemAdd(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]

Bases: merchantapi.abstract.Request

add_option(option) → merchantapi.request.OrderItemAdd[source]

Add Options.

Parameters

option – OrderItemOption

Raises

Exception

Returns

{OrderItemAdd}

add_options(options: list) → merchantapi.request.OrderItemAdd[source]

Add many OrderItemOption.

Parameters

options – List of OrderItemOption

Raises

Exception

Returns

OrderItemAdd

create_response(data) → merchantapi.request.OrderItemAdd[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_code() → str[source]

Get Code.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_name() → str[source]

Get Name.

Returns

str

get_options() → list[source]

Get Options.

Returns

List of OrderItemOption

get_order_id() → int[source]

Get Order_ID.

Returns

int

get_price() → float[source]

Get Price.

Returns

float

get_quantity() → int[source]

Get Quantity.

Returns

int

get_sku() → str[source]

Get Sku.

Returns

str

get_taxable() → bool[source]

Get Taxable.

Returns

bool

get_weight() → float[source]

Get Weight.

Returns

float

send() → merchantapi.response.OrderItemAdd[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_code(code: str) → merchantapi.request.OrderItemAdd[source]

Set Code.

Parameters

code – str

Returns

OrderItemAdd

set_name(name: str) → merchantapi.request.OrderItemAdd[source]

Set Name.

Parameters

name – str

Returns

OrderItemAdd

set_options(options: list) → merchantapi.request.OrderItemAdd[source]

Set Options.

Parameters

options – {OrderItemOption[]}

Raises

Exception

Returns

OrderItemAdd

set_order_id(order_id: int) → merchantapi.request.OrderItemAdd[source]

Set Order_ID.

Parameters

order_id – int

Returns

OrderItemAdd

set_price(price: float) → merchantapi.request.OrderItemAdd[source]

Set Price.

Parameters

price – float

Returns

OrderItemAdd

set_quantity(quantity: int) → merchantapi.request.OrderItemAdd[source]

Set Quantity.

Parameters

quantity – int

Returns

OrderItemAdd

set_sku(sku: str) → merchantapi.request.OrderItemAdd[source]

Set Sku.

Parameters

sku – str

Returns

OrderItemAdd

set_taxable(taxable: bool) → merchantapi.request.OrderItemAdd[source]

Set Taxable.

Parameters

taxable – bool

Returns

OrderItemAdd

set_weight(weight: float) → merchantapi.request.OrderItemAdd[source]

Set Weight.

Parameters

weight – float

Returns

OrderItemAdd

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.OrderItemListBackOrder(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]

Bases: merchantapi.abstract.Request

add_line_id(line_id) → merchantapi.request.OrderItemListBackOrder[source]

Add Line_IDs.

Parameters

line_id – int

Returns

{OrderItemListBackOrder}

add_order_item(order_item: merchantapi.model.OrderItem) → merchantapi.request.OrderItemListBackOrder[source]

Add OrderItem model.

Parameters

order_item – OrderItem

Raises

Exception

Returns

OrderItemListBackOrder

create_response(data) → merchantapi.request.OrderItemListBackOrder[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_date_in_stock() → int[source]

Get Date_InStock.

Returns

int

get_function()[source]

Get the function of the request.

Returns

str

get_line_ids()[source]

Get Line_IDs.

Returns

list

get_order_id() → int[source]

Get Order_ID.

Returns

int

send() → merchantapi.response.OrderItemListBackOrder[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_date_in_stock(date_in_stock: int) → merchantapi.request.OrderItemListBackOrder[source]

Set Date_InStock.

Parameters

date_in_stock – int

Returns

OrderItemListBackOrder

set_order_id(order_id: int) → merchantapi.request.OrderItemListBackOrder[source]

Set Order_ID.

Parameters

order_id – int

Returns

OrderItemListBackOrder

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.OrderItemListCancel(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]

Bases: merchantapi.abstract.Request

add_line_id(line_id) → merchantapi.request.OrderItemListCancel[source]

Add Line_IDs.

Parameters

line_id – int

Returns

{OrderItemListCancel}

add_order_item(order_item: merchantapi.model.OrderItem) → merchantapi.request.OrderItemListCancel[source]

Add OrderItem model.

Parameters

order_item – OrderItem

Raises

Exception

Returns

OrderItemListCancel

create_response(data) → merchantapi.request.OrderItemListCancel[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_line_ids()[source]

Get Line_IDs.

Returns

list

get_order_id() → int[source]

Get Order_ID.

Returns

int

get_reason() → str[source]

Get Reason.

Returns

str

send() → merchantapi.response.OrderItemListCancel[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_order_id(order_id: int) → merchantapi.request.OrderItemListCancel[source]

Set Order_ID.

Parameters

order_id – int

Returns

OrderItemListCancel

set_reason(reason: str) → merchantapi.request.OrderItemListCancel[source]

Set Reason.

Parameters

reason – str

Returns

OrderItemListCancel

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.OrderItemListCreateShipment(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]

Bases: merchantapi.abstract.Request

add_line_id(line_id) → merchantapi.request.OrderItemListCreateShipment[source]

Add Line_IDs.

Parameters

line_id – int

Returns

{OrderItemListCreateShipment}

add_order_item(order_item: merchantapi.model.OrderItem) → merchantapi.request.OrderItemListCreateShipment[source]

Add OrderItem model.

Parameters

order_item – OrderItem

Raises

Exception

Returns

OrderItemListCreateShipment

create_response(data) → merchantapi.request.OrderItemListCreateShipment[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_line_ids()[source]

Get Line_IDs.

Returns

list

get_order_id() → int[source]

Get Order_ID.

Returns

int

send() → merchantapi.response.OrderItemListCreateShipment[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_order_id(order_id: int) → merchantapi.request.OrderItemListCreateShipment[source]

Set Order_ID.

Parameters

order_id – int

Returns

OrderItemListCreateShipment

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.OrderItemListDelete(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]

Bases: merchantapi.abstract.Request

add_line_id(line_id) → merchantapi.request.OrderItemListDelete[source]

Add Line_IDs.

Parameters

line_id – int

Returns

{OrderItemListDelete}

add_order_item(order_item: merchantapi.model.OrderItem) → merchantapi.request.OrderItemListDelete[source]

Add OrderItem model.

Parameters

order_item – OrderItem

Raises

Exception

Returns

OrderItemListDelete

create_response(data) → merchantapi.request.OrderItemListDelete[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_line_ids()[source]

Get Line_IDs.

Returns

list

get_order_id() → int[source]

Get Order_ID.

Returns

int

send() → merchantapi.response.OrderItemListDelete[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_order_id(order_id: int) → merchantapi.request.OrderItemListDelete[source]

Set Order_ID.

Parameters

order_id – int

Returns

OrderItemListDelete

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.OrderItemUpdate(client: merchantapi.client.Client = None, order_item: merchantapi.model.OrderItem = None)[source]

Bases: merchantapi.abstract.Request

add_option(option) → merchantapi.request.OrderItemUpdate[source]

Add Options.

Parameters

option – OrderItemOption

Raises

Exception

Returns

{OrderItemUpdate}

add_options(options: list) → merchantapi.request.OrderItemUpdate[source]

Add many OrderItemOption.

Parameters

options – List of OrderItemOption

Raises

Exception

Returns

OrderItemUpdate

create_response(data) → merchantapi.request.OrderItemUpdate[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_code() → str[source]

Get Code.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_line_id() → int[source]

Get Line_ID.

Returns

int

get_name() → str[source]

Get Name.

Returns

str

get_options() → list[source]

Get Options.

Returns

List of OrderItemOption

get_order_id() → int[source]

Get Order_ID.

Returns

int

get_price() → float[source]

Get Price.

Returns

float

get_quantity() → int[source]

Get Quantity.

Returns

int

get_sku() → str[source]

Get Sku.

Returns

str

get_taxable() → bool[source]

Get Taxable.

Returns

bool

get_weight() → float[source]

Get Weight.

Returns

float

send() → merchantapi.response.OrderItemUpdate[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_code(code: str) → merchantapi.request.OrderItemUpdate[source]

Set Code.

Parameters

code – str

Returns

OrderItemUpdate

set_line_id(line_id: int) → merchantapi.request.OrderItemUpdate[source]

Set Line_ID.

Parameters

line_id – int

Returns

OrderItemUpdate

set_name(name: str) → merchantapi.request.OrderItemUpdate[source]

Set Name.

Parameters

name – str

Returns

OrderItemUpdate

set_options(options: list) → merchantapi.request.OrderItemUpdate[source]

Set Options.

Parameters

options – {OrderItemOption[]}

Raises

Exception

Returns

OrderItemUpdate

set_order_id(order_id: int) → merchantapi.request.OrderItemUpdate[source]

Set Order_ID.

Parameters

order_id – int

Returns

OrderItemUpdate

set_price(price: float) → merchantapi.request.OrderItemUpdate[source]

Set Price.

Parameters

price – float

Returns

OrderItemUpdate

set_quantity(quantity: int) → merchantapi.request.OrderItemUpdate[source]

Set Quantity.

Parameters

quantity – int

Returns

OrderItemUpdate

set_sku(sku: str) → merchantapi.request.OrderItemUpdate[source]

Set Sku.

Parameters

sku – str

Returns

OrderItemUpdate

set_taxable(taxable: bool) → merchantapi.request.OrderItemUpdate[source]

Set Taxable.

Parameters

taxable – bool

Returns

OrderItemUpdate

set_weight(weight: float) → merchantapi.request.OrderItemUpdate[source]

Set Weight.

Parameters

weight – float

Returns

OrderItemUpdate

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.OrderListLoadQuery(client: merchantapi.client.Client = None)[source]

Bases: merchantapi.listquery.ListQueryRequest

PAY_STATUS_FILTER_AUTH_ONLY = 'auth_0_capt'
PAY_STATUS_FILTER_CAPTURED_NOT_SHIPPED = 'capt_not_ship'
PAY_STATUS_FILTER_PARTIAL_CAPTURE = 'partial_capt'
PAY_STATUS_FILTER_SHIPPED_NOT_CAPTURED = 'ship_not_capt'
available_custom_filters = {'BusinessAccount_ID': 'int', 'Customer_ID': 'int', 'pay_id': 'int', 'payment': ['auth_0_capt', 'partial_capt', 'capt_not_ship', 'ship_not_capt'], 'product_code': 'str'}
available_on_demand_columns = ['ship_method', 'cust_login', 'cust_pw_email', 'business_title', 'payment_module', 'customer', 'items', 'charges', 'coupons', 'discounts', 'payments', 'notes']
available_search_fields = ['id', 'batch_id', 'status', 'pay_status', 'orderdate', 'dt_instock', 'ship_res', 'ship_fname', 'ship_lname', 'ship_email', 'ship_comp', 'ship_phone', 'ship_fax', 'ship_addr1', 'ship_addr2', 'ship_city', 'ship_state', 'ship_zip', 'ship_cntry', 'bill_fname', 'bill_lname', 'bill_email', 'bill_comp', 'bill_phone', 'bill_fax', 'bill_addr1', 'bill_addr2', 'bill_city', 'bill_state', 'bill_zip', 'bill_cntry', 'ship_id', 'ship_data', 'source', 'source_id', 'total', 'total_ship', 'total_tax', 'total_auth', 'total_capt', 'total_rfnd', 'net_capt', 'pend_count', 'bord_count', 'cust_login', 'cust_pw_email', 'business_title', 'note_count']
available_sort_fields = ['id', 'batch_id', 'status', 'pay_status', 'orderdate', 'dt_instock', 'ship_res', 'ship_fname', 'ship_lname', 'ship_email', 'ship_comp', 'ship_phone', 'ship_fax', 'ship_addr1', 'ship_addr2', 'ship_city', 'ship_state', 'ship_zip', 'ship_cntry', 'bill_fname', 'bill_lname', 'bill_email', 'bill_comp', 'bill_phone', 'bill_fax', 'bill_addr1', 'bill_addr2', 'bill_city', 'bill_state', 'bill_zip', 'bill_cntry', 'ship_data', 'source', 'source_id', 'total', 'total_ship', 'total_tax', 'total_auth', 'total_capt', 'total_rfnd', 'net_capt', 'pend_count', 'bord_count', 'cust_login', 'cust_pw_email', 'business_title', 'note_count', 'payment_module']
create_response(data) → merchantapi.request.OrderListLoadQuery[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_passphrase() → str[source]

Get Passphrase.

Returns

str

send() → merchantapi.response.OrderListLoadQuery[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_passphrase(passphrase: str) → merchantapi.request.OrderListLoadQuery[source]

Set Passphrase.

Parameters

passphrase – str

Returns

OrderListLoadQuery

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.OrderPaymentCapture(client: merchantapi.client.Client = None, order_payment: merchantapi.model.OrderPayment = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.OrderPaymentCapture[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_amount() → float[source]

Get Amount.

Returns

float

get_function()[source]

Get the function of the request.

Returns

str

get_order_payment_id() → int[source]

Get OrderPayment_ID.

Returns

int

send() → merchantapi.response.OrderPaymentCapture[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_amount(amount: float) → merchantapi.request.OrderPaymentCapture[source]

Set Amount.

Parameters

amount – float

Returns

OrderPaymentCapture

set_order_payment_id(order_payment_id: int) → merchantapi.request.OrderPaymentCapture[source]

Set OrderPayment_ID.

Parameters

order_payment_id – int

Returns

OrderPaymentCapture

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.OrderPaymentRefund(client: merchantapi.client.Client = None, order_payment: merchantapi.model.OrderPayment = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.OrderPaymentRefund[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_amount() → float[source]

Get Amount.

Returns

float

get_function()[source]

Get the function of the request.

Returns

str

get_order_payment_id() → int[source]

Get OrderPayment_ID.

Returns

int

send() → merchantapi.response.OrderPaymentRefund[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_amount(amount: float) → merchantapi.request.OrderPaymentRefund[source]

Set Amount.

Parameters

amount – float

Returns

OrderPaymentRefund

set_order_payment_id(order_payment_id: int) → merchantapi.request.OrderPaymentRefund[source]

Set OrderPayment_ID.

Parameters

order_payment_id – int

Returns

OrderPaymentRefund

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.OrderPaymentVoid(client: merchantapi.client.Client = None, order_payment: merchantapi.model.OrderPayment = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.OrderPaymentVoid[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_amount() → float[source]

Get Amount.

Returns

float

get_function()[source]

Get the function of the request.

Returns

str

get_order_payment_id() → int[source]

Get OrderPayment_ID.

Returns

int

send() → merchantapi.response.OrderPaymentVoid[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_amount(amount: float) → merchantapi.request.OrderPaymentVoid[source]

Set Amount.

Parameters

amount – float

Returns

OrderPaymentVoid

set_order_payment_id(order_payment_id: int) → merchantapi.request.OrderPaymentVoid[source]

Set OrderPayment_ID.

Parameters

order_payment_id – int

Returns

OrderPaymentVoid

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.OrderShipmentListUpdate(client: merchantapi.client.Client = None)[source]

Bases: merchantapi.abstract.Request

add_shipment_update(shipment_update) → merchantapi.request.OrderShipmentListUpdate[source]

Add Shipment_Updates.

Parameters

shipment_update – OrderShipmentUpdate

Raises

Exception

Returns

{OrderShipmentListUpdate}

add_shipment_updates(shipment_updates: list) → merchantapi.request.OrderShipmentListUpdate[source]

Add many OrderShipmentUpdate.

Parameters

shipment_updates – List of OrderShipmentUpdate

Raises

Exception

Returns

OrderShipmentListUpdate

create_response(data) → merchantapi.request.OrderShipmentListUpdate[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_shipment_updates() → list[source]

Get Shipment_Updates.

Returns

List of OrderShipmentUpdate

send() → merchantapi.response.OrderShipmentListUpdate[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_shipment_updates(shipment_updates: list) → merchantapi.request.OrderShipmentListUpdate[source]

Set Shipment_Updates.

Parameters

shipment_updates – {OrderShipmentUpdate[]}

Raises

Exception

Returns

OrderShipmentListUpdate

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.OrderUpdateCustomerInformation(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.OrderUpdateCustomerInformation[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_bill_address1() → str[source]

Get Bill_Address1.

Returns

str

get_bill_address2() → str[source]

Get Bill_Address2.

Returns

str

get_bill_city() → str[source]

Get Bill_City.

Returns

str

get_bill_company() → str[source]

Get Bill_Company.

Returns

str

get_bill_country() → str[source]

Get Bill_Country.

Returns

str

get_bill_email() → str[source]

Get Bill_Email.

Returns

str

get_bill_fax() → str[source]

Get Bill_Fax.

Returns

str

get_bill_first_name() → str[source]

Get Bill_FirstName.

Returns

str

get_bill_last_name() → str[source]

Get Bill_LastName.

Returns

str

get_bill_phone() → str[source]

Get Bill_Phone.

Returns

str

get_bill_state() → str[source]

Get Bill_State.

Returns

str

get_bill_zip() → str[source]

Get Bill_Zip.

Returns

str

get_customer_id() → int[source]

Get Customer_ID.

Returns

int

get_function()[source]

Get the function of the request.

Returns

str

get_order_id() → int[source]

Get Order_ID.

Returns

int

get_ship_address1() → str[source]

Get Ship_Address1.

Returns

str

get_ship_address2() → str[source]

Get Ship_Address2.

Returns

str

get_ship_city() → str[source]

Get Ship_City.

Returns

str

get_ship_company() → str[source]

Get Ship_Company.

Returns

str

get_ship_country() → str[source]

Get Ship_Country.

Returns

str

get_ship_email() → str[source]

Get Ship_Email.

Returns

str

get_ship_fax() → str[source]

Get Ship_Fax.

Returns

str

get_ship_first_name() → str[source]

Get Ship_FirstName.

Returns

str

get_ship_last_name() → str[source]

Get Ship_LastName.

Returns

str

get_ship_phone() → str[source]

Get Ship_Phone.

Returns

str

get_ship_residential() → bool[source]

Get Ship_Residential.

Returns

bool

get_ship_state() → str[source]

Get Ship_State.

Returns

str

get_ship_zip() → str[source]

Get Ship_Zip.

Returns

str

send() → merchantapi.response.OrderUpdateCustomerInformation[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_bill_address1(bill_address1: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Bill_Address1.

Parameters

bill_address1 – str

Returns

OrderUpdateCustomerInformation

set_bill_address2(bill_address2: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Bill_Address2.

Parameters

bill_address2 – str

Returns

OrderUpdateCustomerInformation

set_bill_city(bill_city: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Bill_City.

Parameters

bill_city – str

Returns

OrderUpdateCustomerInformation

set_bill_company(bill_company: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Bill_Company.

Parameters

bill_company – str

Returns

OrderUpdateCustomerInformation

set_bill_country(bill_country: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Bill_Country.

Parameters

bill_country – str

Returns

OrderUpdateCustomerInformation

set_bill_email(bill_email: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Bill_Email.

Parameters

bill_email – str

Returns

OrderUpdateCustomerInformation

set_bill_fax(bill_fax: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Bill_Fax.

Parameters

bill_fax – str

Returns

OrderUpdateCustomerInformation

set_bill_first_name(bill_first_name: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Bill_FirstName.

Parameters

bill_first_name – str

Returns

OrderUpdateCustomerInformation

set_bill_last_name(bill_last_name: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Bill_LastName.

Parameters

bill_last_name – str

Returns

OrderUpdateCustomerInformation

set_bill_phone(bill_phone: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Bill_Phone.

Parameters

bill_phone – str

Returns

OrderUpdateCustomerInformation

set_bill_state(bill_state: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Bill_State.

Parameters

bill_state – str

Returns

OrderUpdateCustomerInformation

set_bill_zip(bill_zip: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Bill_Zip.

Parameters

bill_zip – str

Returns

OrderUpdateCustomerInformation

set_customer_id(customer_id: int) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Customer_ID.

Parameters

customer_id – int

Returns

OrderUpdateCustomerInformation

set_order_id(order_id: int) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Order_ID.

Parameters

order_id – int

Returns

OrderUpdateCustomerInformation

set_ship_address1(ship_address1: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Ship_Address1.

Parameters

ship_address1 – str

Returns

OrderUpdateCustomerInformation

set_ship_address2(ship_address2: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Ship_Address2.

Parameters

ship_address2 – str

Returns

OrderUpdateCustomerInformation

set_ship_city(ship_city: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Ship_City.

Parameters

ship_city – str

Returns

OrderUpdateCustomerInformation

set_ship_company(ship_company: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Ship_Company.

Parameters

ship_company – str

Returns

OrderUpdateCustomerInformation

set_ship_country(ship_country: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Ship_Country.

Parameters

ship_country – str

Returns

OrderUpdateCustomerInformation

set_ship_email(ship_email: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Ship_Email.

Parameters

ship_email – str

Returns

OrderUpdateCustomerInformation

set_ship_fax(ship_fax: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Ship_Fax.

Parameters

ship_fax – str

Returns

OrderUpdateCustomerInformation

set_ship_first_name(ship_first_name: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Ship_FirstName.

Parameters

ship_first_name – str

Returns

OrderUpdateCustomerInformation

set_ship_last_name(ship_last_name: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Ship_LastName.

Parameters

ship_last_name – str

Returns

OrderUpdateCustomerInformation

set_ship_phone(ship_phone: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Ship_Phone.

Parameters

ship_phone – str

Returns

OrderUpdateCustomerInformation

set_ship_residential(ship_residential: bool) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Ship_Residential.

Parameters

ship_residential – bool

Returns

OrderUpdateCustomerInformation

set_ship_state(ship_state: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Ship_State.

Parameters

ship_state – str

Returns

OrderUpdateCustomerInformation

set_ship_zip(ship_zip: str) → merchantapi.request.OrderUpdateCustomerInformation[source]

Set Ship_Zip.

Parameters

ship_zip – str

Returns

OrderUpdateCustomerInformation

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.PaymentMethodListLoad(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.PaymentMethodListLoad[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_order_id() → int[source]

Get Order_ID.

Returns

int

send() → merchantapi.response.PaymentMethodListLoad[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_order_id(order_id: int) → merchantapi.request.PaymentMethodListLoad[source]

Set Order_ID.

Parameters

order_id – int

Returns

PaymentMethodListLoad

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.PriceGroupCustomerListLoadQuery(client: merchantapi.client.Client = None, price_group: merchantapi.model.PriceGroup = None)[source]

Bases: merchantapi.request.CustomerListLoadQuery

create_response(data) → merchantapi.request.PriceGroupCustomerListLoadQuery[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_assigned() → bool[source]

Get Assigned.

Returns

bool

get_function()[source]

Get the function of the request.

Returns

str

get_price_group_id() → int[source]

Get PriceGroup_ID.

Returns

int

get_price_group_name() → str[source]

Get PriceGroup_Name.

Returns

str

get_unassigned() → bool[source]

Get Unassigned.

Returns

bool

send() → merchantapi.response.PriceGroupCustomerListLoadQuery[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_assigned(assigned: bool) → merchantapi.request.PriceGroupCustomerListLoadQuery[source]

Set Assigned.

Parameters

assigned – bool

Returns

PriceGroupCustomerListLoadQuery

set_price_group_id(price_group_id: int) → merchantapi.request.PriceGroupCustomerListLoadQuery[source]

Set PriceGroup_ID.

Parameters

price_group_id – int

Returns

PriceGroupCustomerListLoadQuery

set_price_group_name(price_group_name: str) → merchantapi.request.PriceGroupCustomerListLoadQuery[source]

Set PriceGroup_Name.

Parameters

price_group_name – str

Returns

PriceGroupCustomerListLoadQuery

set_unassigned(unassigned: bool) → merchantapi.request.PriceGroupCustomerListLoadQuery[source]

Set Unassigned.

Parameters

unassigned – bool

Returns

PriceGroupCustomerListLoadQuery

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.PriceGroupCustomerUpdateAssigned(client: merchantapi.client.Client = None, price_group: merchantapi.model.PriceGroup = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.PriceGroupCustomerUpdateAssigned[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_assigned() → bool[source]

Get Assigned.

Returns

bool

get_customer_id() → int[source]

Get Customer_ID.

Returns

int

get_customer_login() → str[source]

Get Customer_Login.

Returns

str

get_edit_customer() → str[source]

Get Edit_Customer.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_price_group_id() → int[source]

Get PriceGroup_ID.

Returns

int

get_price_group_name() → str[source]

Get PriceGroup_Name.

Returns

str

send() → merchantapi.response.PriceGroupCustomerUpdateAssigned[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_assigned(assigned: bool) → merchantapi.request.PriceGroupCustomerUpdateAssigned[source]

Set Assigned.

Parameters

assigned – bool

Returns

PriceGroupCustomerUpdateAssigned

set_customer_id(customer_id: int) → merchantapi.request.PriceGroupCustomerUpdateAssigned[source]

Set Customer_ID.

Parameters

customer_id – int

Returns

PriceGroupCustomerUpdateAssigned

set_customer_login(customer_login: str) → merchantapi.request.PriceGroupCustomerUpdateAssigned[source]

Set Customer_Login.

Parameters

customer_login – str

Returns

PriceGroupCustomerUpdateAssigned

set_edit_customer(edit_customer: str) → merchantapi.request.PriceGroupCustomerUpdateAssigned[source]

Set Edit_Customer.

Parameters

edit_customer – str

Returns

PriceGroupCustomerUpdateAssigned

set_price_group_id(price_group_id: int) → merchantapi.request.PriceGroupCustomerUpdateAssigned[source]

Set PriceGroup_ID.

Parameters

price_group_id – int

Returns

PriceGroupCustomerUpdateAssigned

set_price_group_name(price_group_name: str) → merchantapi.request.PriceGroupCustomerUpdateAssigned[source]

Set PriceGroup_Name.

Parameters

price_group_name – str

Returns

PriceGroupCustomerUpdateAssigned

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.PriceGroupListLoadQuery(client: merchantapi.client.Client = None)[source]

Bases: merchantapi.listquery.ListQueryRequest

available_search_fields = ['id', 'name', 'type', 'module_id', 'custscope', 'rate', 'discount', 'markup', 'dt_start', 'dt_end', 'priority', 'exclusion', 'descrip', 'display', 'qmn_subtot', 'qmx_subtot', 'qmn_quan', 'qmx_quan', 'qmn_weight', 'qmx_weight', 'bmn_subtot', 'bmx_subtot', 'bmn_quan', 'bmx_quan', 'bmn_weight', 'bmx_weight']
available_sort_fields = ['id', 'name', 'type', 'module_id', 'custscope', 'rate', 'discount', 'markup', 'dt_start', 'dt_end', 'priority', 'exclusion', 'descrip', 'display', 'qmn_subtot', 'qmx_subtot', 'qmn_quan', 'qmx_quan', 'qmn_weight', 'qmx_weight', 'bmn_subtot', 'bmx_subtot', 'bmn_quan', 'bmx_quan', 'bmn_weight', 'bmx_weight']
create_response(data) → merchantapi.request.PriceGroupListLoadQuery[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.PriceGroupListLoadQuery[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

class merchantapi.request.PriceGroupProductListLoadQuery(client: merchantapi.client.Client = None, price_group: merchantapi.model.PriceGroup = None)[source]

Bases: merchantapi.request.ProductListLoadQuery

create_response(data) → merchantapi.request.PriceGroupProductListLoadQuery[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_assigned() → bool[source]

Get Assigned.

Returns

bool

get_function()[source]

Get the function of the request.

Returns

str

get_price_group_id() → int[source]

Get PriceGroup_ID.

Returns

int

get_price_group_name() → str[source]

Get PriceGroup_Name.

Returns

str

get_unassigned() → bool[source]

Get Unassigned.

Returns

bool

send() → merchantapi.response.PriceGroupProductListLoadQuery[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_assigned(assigned: bool) → merchantapi.request.PriceGroupProductListLoadQuery[source]

Set Assigned.

Parameters

assigned – bool

Returns

PriceGroupProductListLoadQuery

set_price_group_id(price_group_id: int) → merchantapi.request.PriceGroupProductListLoadQuery[source]

Set PriceGroup_ID.

Parameters

price_group_id – int

Returns

PriceGroupProductListLoadQuery

set_price_group_name(price_group_name: str) → merchantapi.request.PriceGroupProductListLoadQuery[source]

Set PriceGroup_Name.

Parameters

price_group_name – str

Returns

PriceGroupProductListLoadQuery

set_unassigned(unassigned: bool) → merchantapi.request.PriceGroupProductListLoadQuery[source]

Set Unassigned.

Parameters

unassigned – bool

Returns

PriceGroupProductListLoadQuery

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.PriceGroupProductUpdateAssigned(client: merchantapi.client.Client = None, price_group: merchantapi.model.PriceGroup = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.PriceGroupProductUpdateAssigned[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_assigned() → bool[source]

Get Assigned.

Returns

bool

get_edit_product() → str[source]

Get Edit_Product.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_price_group_id() → int[source]

Get PriceGroup_ID.

Returns

int

get_price_group_name() → str[source]

Get PriceGroup_Name.

Returns

str

get_product_code() → str[source]

Get Product_Code.

Returns

str

get_product_id() → int[source]

Get Product_ID.

Returns

int

get_product_sku() → str[source]

Get Product_SKU.

Returns

str

send() → merchantapi.response.PriceGroupProductUpdateAssigned[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_assigned(assigned: bool) → merchantapi.request.PriceGroupProductUpdateAssigned[source]

Set Assigned.

Parameters

assigned – bool

Returns

PriceGroupProductUpdateAssigned

set_edit_product(edit_product: str) → merchantapi.request.PriceGroupProductUpdateAssigned[source]

Set Edit_Product.

Parameters

edit_product – str

Returns

PriceGroupProductUpdateAssigned

set_price_group_id(price_group_id: int) → merchantapi.request.PriceGroupProductUpdateAssigned[source]

Set PriceGroup_ID.

Parameters

price_group_id – int

Returns

PriceGroupProductUpdateAssigned

set_price_group_name(price_group_name: str) → merchantapi.request.PriceGroupProductUpdateAssigned[source]

Set PriceGroup_Name.

Parameters

price_group_name – str

Returns

PriceGroupProductUpdateAssigned

set_product_code(product_code: str) → merchantapi.request.PriceGroupProductUpdateAssigned[source]

Set Product_Code.

Parameters

product_code – str

Returns

PriceGroupProductUpdateAssigned

set_product_id(product_id: int) → merchantapi.request.PriceGroupProductUpdateAssigned[source]

Set Product_ID.

Parameters

product_id – int

Returns

PriceGroupProductUpdateAssigned

set_product_sku(product_sku: str) → merchantapi.request.PriceGroupProductUpdateAssigned[source]

Set Product_SKU.

Parameters

product_sku – str

Returns

PriceGroupProductUpdateAssigned

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.PrintQueueJobDelete(client: merchantapi.client.Client = None, print_queue_job: merchantapi.model.PrintQueueJob = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.PrintQueueJobDelete[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_print_queue_job_id() → int[source]

Get PrintQueueJob_ID.

Returns

int

send() → merchantapi.response.PrintQueueJobDelete[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_print_queue_job_id(print_queue_job_id: int) → merchantapi.request.PrintQueueJobDelete[source]

Set PrintQueueJob_ID.

Parameters

print_queue_job_id – int

Returns

PrintQueueJobDelete

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.PrintQueueJobInsert(client: merchantapi.client.Client = None, print_queue: merchantapi.model.PrintQueue = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.PrintQueueJobInsert[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_edit_print_queue() → str[source]

Get Edit_PrintQueue.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_print_queue_description() → str[source]

Get PrintQueue_Description.

Returns

str

get_print_queue_id() → int[source]

Get PrintQueue_ID.

Returns

int

get_print_queue_job_data() → str[source]

Get PrintQueueJob_Data.

Returns

str

get_print_queue_job_description() → str[source]

Get PrintQueueJob_Description.

Returns

str

get_print_queue_job_format() → str[source]

Get PrintQueueJob_Format.

Returns

str

send() → merchantapi.response.PrintQueueJobInsert[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_edit_print_queue(edit_print_queue: str) → merchantapi.request.PrintQueueJobInsert[source]

Set Edit_PrintQueue.

Parameters

edit_print_queue – str

Returns

PrintQueueJobInsert

set_print_queue_description(print_queue_description: str) → merchantapi.request.PrintQueueJobInsert[source]

Set PrintQueue_Description.

Parameters

print_queue_description – str

Returns

PrintQueueJobInsert

set_print_queue_id(print_queue_id: int) → merchantapi.request.PrintQueueJobInsert[source]

Set PrintQueue_ID.

Parameters

print_queue_id – int

Returns

PrintQueueJobInsert

set_print_queue_job_data(print_queue_job_data: str) → merchantapi.request.PrintQueueJobInsert[source]

Set PrintQueueJob_Data.

Parameters

print_queue_job_data – str

Returns

PrintQueueJobInsert

set_print_queue_job_description(print_queue_job_description: str) → merchantapi.request.PrintQueueJobInsert[source]

Set PrintQueueJob_Description.

Parameters

print_queue_job_description – str

Returns

PrintQueueJobInsert

set_print_queue_job_format(print_queue_job_format: str) → merchantapi.request.PrintQueueJobInsert[source]

Set PrintQueueJob_Format.

Parameters

print_queue_job_format – str

Returns

PrintQueueJobInsert

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.PrintQueueJobListLoadQuery(client: merchantapi.client.Client = None, print_queue: merchantapi.model.PrintQueue = None)[source]

Bases: merchantapi.listquery.ListQueryRequest

available_on_demand_columns = ['job_data']
available_search_fields = ['id', 'queue_id', 'store_id', 'user_id', 'descrip', 'job_fmt', 'job_data', 'dt_created']
available_sort_fields = ['id', 'queue_id', 'store_id', 'user_id', 'descrip', 'job_fmt', 'job_data', 'dt_created']
create_response(data) → merchantapi.request.PrintQueueJobListLoadQuery[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_edit_print_queue() → str[source]

Get Edit_PrintQueue.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_print_queue_description() → str[source]

Get PrintQueue_Description.

Returns

str

get_print_queue_id() → int[source]

Get PrintQueue_ID.

Returns

int

send() → merchantapi.response.PrintQueueJobListLoadQuery[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_edit_print_queue(edit_print_queue: str) → merchantapi.request.PrintQueueJobListLoadQuery[source]

Set Edit_PrintQueue.

Parameters

edit_print_queue – str

Returns

PrintQueueJobListLoadQuery

set_print_queue_description(print_queue_description: str) → merchantapi.request.PrintQueueJobListLoadQuery[source]

Set PrintQueue_Description.

Parameters

print_queue_description – str

Returns

PrintQueueJobListLoadQuery

set_print_queue_id(print_queue_id: int) → merchantapi.request.PrintQueueJobListLoadQuery[source]

Set PrintQueue_ID.

Parameters

print_queue_id – int

Returns

PrintQueueJobListLoadQuery

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.PrintQueueJobStatus(client: merchantapi.client.Client = None, print_queue_job: merchantapi.model.PrintQueueJob = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.PrintQueueJobStatus[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_print_queue_job_id() → int[source]

Get PrintQueueJob_ID.

Returns

int

send() → merchantapi.response.PrintQueueJobStatus[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_print_queue_job_id(print_queue_job_id: int) → merchantapi.request.PrintQueueJobStatus[source]

Set PrintQueueJob_ID.

Parameters

print_queue_job_id – int

Returns

PrintQueueJobStatus

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.PrintQueueListLoadQuery(client: merchantapi.client.Client = None)[source]

Bases: merchantapi.listquery.ListQueryRequest

available_search_fields = ['descrip']
available_sort_fields = ['descrip']
create_response(data) → merchantapi.request.PrintQueueListLoadQuery[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.PrintQueueListLoadQuery[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

class merchantapi.request.ProductDelete(client: merchantapi.client.Client = None, product: merchantapi.model.Product = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.ProductDelete[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_edit_product() → str[source]

Get Edit_Product.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_product_code() → str[source]

Get Product_Code.

Returns

str

get_product_id() → int[source]

Get Product_ID.

Returns

int

get_product_sku() → str[source]

Get Product_SKU.

Returns

str

send() → merchantapi.response.ProductDelete[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_edit_product(edit_product: str) → merchantapi.request.ProductDelete[source]

Set Edit_Product.

Parameters

edit_product – str

Returns

ProductDelete

set_product_code(product_code: str) → merchantapi.request.ProductDelete[source]

Set Product_Code.

Parameters

product_code – str

Returns

ProductDelete

set_product_id(product_id: int) → merchantapi.request.ProductDelete[source]

Set Product_ID.

Parameters

product_id – int

Returns

ProductDelete

set_product_sku(product_sku: str) → merchantapi.request.ProductDelete[source]

Set Product_SKU.

Parameters

product_sku – str

Returns

ProductDelete

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.ProductImageAdd(client: merchantapi.client.Client = None, product: merchantapi.model.Product = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.ProductImageAdd[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_edit_product() → str[source]

Get Edit_Product.

Returns

str

get_filepath() → str[source]

Get Filepath.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_image_type_id() → int[source]

Get ImageType_ID.

Returns

int

get_product_code() → str[source]

Get Product_Code.

Returns

str

get_product_id() → int[source]

Get Product_ID.

Returns

int

get_product_sku() → str[source]

Get Product_SKU.

Returns

str

send() → merchantapi.response.ProductImageAdd[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_edit_product(edit_product: str) → merchantapi.request.ProductImageAdd[source]

Set Edit_Product.

Parameters

edit_product – str

Returns

ProductImageAdd

set_filepath(filepath: str) → merchantapi.request.ProductImageAdd[source]

Set Filepath.

Parameters

filepath – str

Returns

ProductImageAdd

set_image_type_id(image_type_id: int) → merchantapi.request.ProductImageAdd[source]

Set ImageType_ID.

Parameters

image_type_id – int

Returns

ProductImageAdd

set_product_code(product_code: str) → merchantapi.request.ProductImageAdd[source]

Set Product_Code.

Parameters

product_code – str

Returns

ProductImageAdd

set_product_id(product_id: int) → merchantapi.request.ProductImageAdd[source]

Set Product_ID.

Parameters

product_id – int

Returns

ProductImageAdd

set_product_sku(product_sku: str) → merchantapi.request.ProductImageAdd[source]

Set Product_SKU.

Parameters

product_sku – str

Returns

ProductImageAdd

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.ProductImageDelete(client: merchantapi.client.Client = None, product_image_data: merchantapi.model.ProductImageData = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.ProductImageDelete[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_product_image_id() → int[source]

Get ProductImage_ID.

Returns

int

send() → merchantapi.response.ProductImageDelete[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_product_image_id(product_image_id: int) → merchantapi.request.ProductImageDelete[source]

Set ProductImage_ID.

Parameters

product_image_id – int

Returns

ProductImageDelete

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.ProductInsert(client: merchantapi.client.Client = None, product: merchantapi.model.Product = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.ProductInsert[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_custom_field_values() → merchantapi.model.CustomFieldValues[source]

Get CustomField_Values.

Returns

CustomFieldValues}|None

get_function()[source]

Get the function of the request.

Returns

str

get_product_active() → bool[source]

Get Product_Active.

Returns

bool

get_product_alternate_display_page() → str[source]

Get Product_Alternate_Display_Page.

Returns

str

get_product_canonical_category_code() → str[source]

Get Product_Canonical_Category_Code.

Returns

str

get_product_code() → str[source]

Get Product_Code.

Returns

str

get_product_cost() → float[source]

Get Product_Cost.

Returns

float

get_product_description() → str[source]

Get Product_Description.

Returns

str

get_product_image() → str[source]

Get Product_Image.

Returns

str

get_product_inventory() → int[source]

Get Product_Inventory.

Returns

int

get_product_name() → str[source]

Get Product_Name.

Returns

str

get_product_page_title() → str[source]

Get Product_Page_Title.

Returns

str

get_product_price() → float[source]

Get Product_Price.

Returns

float

get_product_sku() → str[source]

Get Product_SKU.

Returns

str

get_product_taxable() → bool[source]

Get Product_Taxable.

Returns

bool

get_product_thumbnail() → str[source]

Get Product_Thumbnail.

Returns

str

get_product_weight() → float[source]

Get Product_Weight.

Returns

float

send() → merchantapi.response.ProductInsert[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_custom_field_values(custom_field_values: merchantapi.model.CustomFieldValues) → merchantapi.request.ProductInsert[source]

Set CustomField_Values.

Parameters

custom_field_values – CustomFieldValues}|None

Raises

Exception

Returns

ProductInsert

set_product_active(product_active: bool) → merchantapi.request.ProductInsert[source]

Set Product_Active.

Parameters

product_active – bool

Returns

ProductInsert

set_product_alternate_display_page(product_alternate_display_page: str) → merchantapi.request.ProductInsert[source]

Set Product_Alternate_Display_Page.

Parameters

product_alternate_display_page – str

Returns

ProductInsert

set_product_canonical_category_code(product_canonical_category_code: str) → merchantapi.request.ProductInsert[source]

Set Product_Canonical_Category_Code.

Parameters

product_canonical_category_code – str

Returns

ProductInsert

set_product_code(product_code: str) → merchantapi.request.ProductInsert[source]

Set Product_Code.

Parameters

product_code – str

Returns

ProductInsert

set_product_cost(product_cost: float) → merchantapi.request.ProductInsert[source]

Set Product_Cost.

Parameters

product_cost – float

Returns

ProductInsert

set_product_description(product_description: str) → merchantapi.request.ProductInsert[source]

Set Product_Description.

Parameters

product_description – str

Returns

ProductInsert

set_product_image(product_image: str) → merchantapi.request.ProductInsert[source]

Set Product_Image.

Parameters

product_image – str

Returns

ProductInsert

set_product_inventory(product_inventory: int) → merchantapi.request.ProductInsert[source]

Set Product_Inventory.

Parameters

product_inventory – int

Returns

ProductInsert

set_product_name(product_name: str) → merchantapi.request.ProductInsert[source]

Set Product_Name.

Parameters

product_name – str

Returns

ProductInsert

set_product_page_title(product_page_title: str) → merchantapi.request.ProductInsert[source]

Set Product_Page_Title.

Parameters

product_page_title – str

Returns

ProductInsert

set_product_price(product_price: float) → merchantapi.request.ProductInsert[source]

Set Product_Price.

Parameters

product_price – float

Returns

ProductInsert

set_product_sku(product_sku: str) → merchantapi.request.ProductInsert[source]

Set Product_SKU.

Parameters

product_sku – str

Returns

ProductInsert

set_product_taxable(product_taxable: bool) → merchantapi.request.ProductInsert[source]

Set Product_Taxable.

Parameters

product_taxable – bool

Returns

ProductInsert

set_product_thumbnail(product_thumbnail: str) → merchantapi.request.ProductInsert[source]

Set Product_Thumbnail.

Parameters

product_thumbnail – str

Returns

ProductInsert

set_product_weight(product_weight: float) → merchantapi.request.ProductInsert[source]

Set Product_Weight.

Parameters

product_weight – float

Returns

ProductInsert

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.ProductListAdjustInventory(client: merchantapi.client.Client = None)[source]

Bases: merchantapi.abstract.Request

add_inventory_adjustment(inventory_adjustment) → merchantapi.request.ProductListAdjustInventory[source]

Add Inventory_Adjustments.

Parameters

inventory_adjustment – ProductInventoryAdjustment

Raises

Exception

Returns

{ProductListAdjustInventory}

add_inventory_adjustments(inventory_adjustments: list) → merchantapi.request.ProductListAdjustInventory[source]

Add many ProductInventoryAdjustment.

Parameters

inventory_adjustments – List of ProductInventoryAdjustment

Raises

Exception

Returns

ProductListAdjustInventory

create_response(data) → merchantapi.request.ProductListAdjustInventory[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_inventory_adjustments() → list[source]

Get Inventory_Adjustments.

Returns

List of ProductInventoryAdjustment

send() → merchantapi.response.ProductListAdjustInventory[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_inventory_adjustments(inventory_adjustments: list) → merchantapi.request.ProductListAdjustInventory[source]

Set Inventory_Adjustments.

Parameters

inventory_adjustments – {ProductInventoryAdjustment[]}

Raises

Exception

Returns

ProductListAdjustInventory

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.ProductListLoadQuery(client: merchantapi.client.Client = None)[source]

Bases: merchantapi.listquery.ListQueryRequest

PRODUCT_SHOW_ACTIVE = 'Active'
PRODUCT_SHOW_ALL = 'All'
PRODUCT_SHOW_UNCATEGORIZED = 'Uncategorized'
available_custom_filters = {'Product_Show': ['All', 'Uncategorized', 'Active']}
available_on_demand_columns = ['descrip', 'catcount', 'productinventorysettings', 'attributes', 'productimagedata', 'categories', 'productshippingrules', 'relatedproducts', 'uris']
available_search_fields = ['id', 'code', 'sku', 'cancat_code', 'page_code', 'name', 'thumbnail', 'image', 'price', 'cost', 'descrip', 'weight', 'taxable', 'active', 'page_title', 'dt_created', 'dt_updated', 'category', 'product_inventory']
available_sort_fields = ['id', 'code', 'sku', 'cancat_code', 'page_code', 'name', 'thumbnail', 'image', 'price', 'cost', 'descrip', 'weight', 'taxable', 'active', 'page_title', 'dt_created', 'dt_updated']
create_response(data) → merchantapi.request.ProductListLoadQuery[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

send() → merchantapi.response.ProductListLoadQuery[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

class merchantapi.request.ProductUpdate(client: merchantapi.client.Client = None, product: merchantapi.model.Product = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.ProductUpdate[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_custom_field_values() → merchantapi.model.CustomFieldValues[source]

Get CustomField_Values.

Returns

CustomFieldValues}|None

get_edit_product() → str[source]

Get Edit_Product.

Returns

str

get_function()[source]

Get the function of the request.

Returns

str

get_product_active() → bool[source]

Get Product_Active.

Returns

bool

get_product_alternate_display_page() → str[source]

Get Product_Alternate_Display_Page.

Returns

str

get_product_canonical_category_code() → str[source]

Get Product_Canonical_Category_Code.

Returns

str

get_product_code() → str[source]

Get Product_Code.

Returns

str

get_product_cost() → float[source]

Get Product_Cost.

Returns

float

get_product_description() → str[source]

Get Product_Description.

Returns

str

get_product_id() → int[source]

Get Product_ID.

Returns

int

get_product_image() → str[source]

Get Product_Image.

Returns

str

get_product_inventory() → int[source]

Get Product_Inventory.

Returns

int

get_product_name() → str[source]

Get Product_Name.

Returns

str

get_product_page_title() → str[source]

Get Product_Page_Title.

Returns

str

get_product_price() → float[source]

Get Product_Price.

Returns

float

get_product_sku() → str[source]

Get Product_SKU.

Returns

str

get_product_taxable() → bool[source]

Get Product_Taxable.

Returns

bool

get_product_thumbnail() → str[source]

Get Product_Thumbnail.

Returns

str

get_product_weight() → float[source]

Get Product_Weight.

Returns

float

send() → merchantapi.response.ProductUpdate[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_custom_field_values(custom_field_values: merchantapi.model.CustomFieldValues) → merchantapi.request.ProductUpdate[source]

Set CustomField_Values.

Parameters

custom_field_values – CustomFieldValues}|None

Raises

Exception

Returns

ProductUpdate

set_edit_product(edit_product: str) → merchantapi.request.ProductUpdate[source]

Set Edit_Product.

Parameters

edit_product – str

Returns

ProductUpdate

set_product_active(product_active: bool) → merchantapi.request.ProductUpdate[source]

Set Product_Active.

Parameters

product_active – bool

Returns

ProductUpdate

set_product_alternate_display_page(product_alternate_display_page: str) → merchantapi.request.ProductUpdate[source]

Set Product_Alternate_Display_Page.

Parameters

product_alternate_display_page – str

Returns

ProductUpdate

set_product_canonical_category_code(product_canonical_category_code: str) → merchantapi.request.ProductUpdate[source]

Set Product_Canonical_Category_Code.

Parameters

product_canonical_category_code – str

Returns

ProductUpdate

set_product_code(product_code: str) → merchantapi.request.ProductUpdate[source]

Set Product_Code.

Parameters

product_code – str

Returns

ProductUpdate

set_product_cost(product_cost: float) → merchantapi.request.ProductUpdate[source]

Set Product_Cost.

Parameters

product_cost – float

Returns

ProductUpdate

set_product_description(product_description: str) → merchantapi.request.ProductUpdate[source]

Set Product_Description.

Parameters

product_description – str

Returns

ProductUpdate

set_product_id(product_id: int) → merchantapi.request.ProductUpdate[source]

Set Product_ID.

Parameters

product_id – int

Returns

ProductUpdate

set_product_image(product_image: str) → merchantapi.request.ProductUpdate[source]

Set Product_Image.

Parameters

product_image – str

Returns

ProductUpdate

set_product_inventory(product_inventory: int) → merchantapi.request.ProductUpdate[source]

Set Product_Inventory.

Parameters

product_inventory – int

Returns

ProductUpdate

set_product_name(product_name: str) → merchantapi.request.ProductUpdate[source]

Set Product_Name.

Parameters

product_name – str

Returns

ProductUpdate

set_product_page_title(product_page_title: str) → merchantapi.request.ProductUpdate[source]

Set Product_Page_Title.

Parameters

product_page_title – str

Returns

ProductUpdate

set_product_price(product_price: float) → merchantapi.request.ProductUpdate[source]

Set Product_Price.

Parameters

product_price – float

Returns

ProductUpdate

set_product_sku(product_sku: str) → merchantapi.request.ProductUpdate[source]

Set Product_SKU.

Parameters

product_sku – str

Returns

ProductUpdate

set_product_taxable(product_taxable: bool) → merchantapi.request.ProductUpdate[source]

Set Product_Taxable.

Parameters

product_taxable – bool

Returns

ProductUpdate

set_product_thumbnail(product_thumbnail: str) → merchantapi.request.ProductUpdate[source]

Set Product_Thumbnail.

Parameters

product_thumbnail – str

Returns

ProductUpdate

set_product_weight(product_weight: float) → merchantapi.request.ProductUpdate[source]

Set Product_Weight.

Parameters

product_weight – float

Returns

ProductUpdate

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.ProductVariantListLoadProduct(client: merchantapi.client.Client = None, product: merchantapi.model.Product = None)[source]

Bases: merchantapi.abstract.Request

add_exclusion(exclusion) → merchantapi.request.ProductVariantListLoadProduct[source]

Add Exclusions.

Parameters

exclusion – ProductVariantExclusion

Raises

Exception

Returns

{ProductVariantListLoadProduct}

add_exclusions(exclusions: list) → merchantapi.request.ProductVariantListLoadProduct[source]

Add many ProductVariantExclusion.

Parameters

exclusions – List of ProductVariantExclusion

Raises

Exception

Returns

ProductVariantListLoadProduct

add_limit(limit) → merchantapi.request.ProductVariantListLoadProduct[source]

Add Limits.

Parameters

limit – ProductVariantLimit

Raises

Exception

Returns

{ProductVariantListLoadProduct}

add_limits(limits: list) → merchantapi.request.ProductVariantListLoadProduct[source]

Add many ProductVariantLimit.

Parameters

limits – List of ProductVariantLimit

Raises

Exception

Returns

ProductVariantListLoadProduct

create_response(data) → merchantapi.request.ProductVariantListLoadProduct[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_edit_product() → str[source]

Get Edit_Product.

Returns

str

get_exclusions() → list[source]

Get Exclusions.

Returns

List of ProductVariantExclusion

get_function()[source]

Get the function of the request.

Returns

str

get_include_default_variant() → bool[source]

Get Include_Default_Variant.

Returns

bool

get_limits() → list[source]

Get Limits.

Returns

List of ProductVariantLimit

get_product_code() → str[source]

Get Product_Code.

Returns

str

get_product_id() → int[source]

Get Product_ID.

Returns

int

get_product_sku() → str[source]

Get Product_SKU.

Returns

str

send() → merchantapi.response.ProductVariantListLoadProduct[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_edit_product(edit_product: str) → merchantapi.request.ProductVariantListLoadProduct[source]

Set Edit_Product.

Parameters

edit_product – str

Returns

ProductVariantListLoadProduct

set_exclusions(exclusions: list) → merchantapi.request.ProductVariantListLoadProduct[source]

Set Exclusions.

Parameters

exclusions – {ProductVariantExclusion[]}

Raises

Exception

Returns

ProductVariantListLoadProduct

set_include_default_variant(include_default_variant: bool) → merchantapi.request.ProductVariantListLoadProduct[source]

Set Include_Default_Variant.

Parameters

include_default_variant – bool

Returns

ProductVariantListLoadProduct

set_limits(limits: list) → merchantapi.request.ProductVariantListLoadProduct[source]

Set Limits.

Parameters

limits – {ProductVariantLimit[]}

Raises

Exception

Returns

ProductVariantListLoadProduct

set_product_code(product_code: str) → merchantapi.request.ProductVariantListLoadProduct[source]

Set Product_Code.

Parameters

product_code – str

Returns

ProductVariantListLoadProduct

set_product_id(product_id: int) → merchantapi.request.ProductVariantListLoadProduct[source]

Set Product_ID.

Parameters

product_id – int

Returns

ProductVariantListLoadProduct

set_product_sku(product_sku: str) → merchantapi.request.ProductVariantListLoadProduct[source]

Set Product_SKU.

Parameters

product_sku – str

Returns

ProductVariantListLoadProduct

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.ProvisionDomain(client: merchantapi.client.Client = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.ProvisionDomain[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_xml() → str[source]

Get xml.

Returns

str

send() → merchantapi.response.ProvisionDomain[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_xml(xml: str) → merchantapi.request.ProvisionDomain[source]

Set xml.

Parameters

xml – str

Returns

ProvisionDomain

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.ProvisionStore(client: merchantapi.client.Client = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.request.ProvisionStore[source]

Create a response object from the response data

Parameters

data

Returns

Response

get_function()[source]

Get the function of the request.

Returns

str

get_xml() → str[source]

Get xml.

Returns

str

send() → merchantapi.response.ProvisionStore[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set_xml(xml: str) → merchantapi.request.ProvisionStore[source]

Set xml.

Parameters

xml – str

Returns

ProvisionStore

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

class merchantapi.request.RequestBuilder(client: merchantapi.client.Client, function: str, data: dict = None)[source]

Bases: merchantapi.abstract.Request

create_response(data) → merchantapi.response.RequestBuilder[source]

Create a response object from the response data

Parameters

data

Returns

Response

get(field: str, default_value=None)[source]

Get a field value

Parameters
  • field – str

  • default_value – mixed

Returns

mixed

has(field: str) → bool[source]

Check if a field exists

Parameters

field – str

Returns

bool

remove(field: str) → merchantapi.request.RequestBuilder[source]

Remove a field if it exists

Parameters

field – str

send() → merchantapi.response.RequestBuilder[source]

Send this object via the assigned client.

Returns

Response

Raises

Exception – when no client assigned

set(field: str, value) → merchantapi.request.RequestBuilder[source]

Set a field value

Parameters
  • field – str

  • value – mixed

set_function(function: str) → merchantapi.request.RequestBuilder[source]

Set the request function

Parameters

function – str

set_scope(scope: int) → merchantapi.request.RequestBuilder[source]

Set the request scope

Parameters

scope – int

to_dict() → dict[source]

Reduce the request to a dict

Override

Returns

dict

merchantapi.response module

This file is part of the MerchantAPI package.

  1. Miva Inc <https://www.miva.com/>

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

$Id: response.py 77709 2019-08-30 16:41:54Z gidriss $

class merchantapi.response.AvailabilityGroupBusinessAccountUpdateAssigned(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.AvailabilityGroupCustomerUpdateAssigned(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.AvailabilityGroupListLoadQuery(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.listquery.ListQueryResponse

get_availability_groups()[source]

Get availability_groups.

Returns

list of AvailabilityGroup

class merchantapi.response.AvailabilityGroupPaymentMethodUpdateAssigned(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.AvailabilityGroupProductUpdateAssigned(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.AvailabilityGroupShippingMethodUpdateAssigned(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.CategoryDelete(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.CategoryInsert(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.CategoryListLoadParent(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_categories()[source]

Get categories.

Returns

list of Category

class merchantapi.response.CategoryListLoadQuery(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.listquery.ListQueryResponse

get_categories()[source]

Get categories.

Returns

list of Category

class merchantapi.response.CategoryProductListLoadQuery(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.listquery.ListQueryResponse

get_category_products()[source]

Get category_products.

Returns

list of CategoryProduct

class merchantapi.response.CategoryProductUpdateAssigned(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.CategoryUpdate(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.CouponInsert(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_id()[source]

Get id.

Returns

int

class merchantapi.response.CouponListDelete(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_processed()[source]

Get processed.

Returns

int

class merchantapi.response.CouponListLoadQuery(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.listquery.ListQueryResponse

get_coupons()[source]

Get coupons.

Returns

list of Coupon

class merchantapi.response.CouponPriceGroupListLoadQuery(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.listquery.ListQueryResponse

get_coupon_price_groups()[source]

Get coupon_price_groups.

Returns

list of CouponPriceGroup

class merchantapi.response.CouponPriceGroupUpdateAssigned(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.CouponUpdate(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.CustomerAddressListLoadQuery(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.listquery.ListQueryResponse

get_customer_addresses()[source]

Get customer_addresses.

Returns

list of CustomerAddress

class merchantapi.response.CustomerDelete(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.CustomerInsert(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_customer() → merchantapi.model.Customer[source]

Get customer.

Returns

Customer

class merchantapi.response.CustomerListLoadQuery(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.listquery.ListQueryResponse

get_customers()[source]

Get customers.

Returns

list of Customer

class merchantapi.response.CustomerPaymentCardListLoadQuery(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.listquery.ListQueryResponse

get_customer_payment_cards()[source]

Get customer_payment_cards.

Returns

list of CustomerPaymentCard

class merchantapi.response.CustomerPaymentCardRegister(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_customer_payment_card() → merchantapi.model.CustomerPaymentCard[source]

Get customer_payment_card.

Returns

CustomerPaymentCard

class merchantapi.response.CustomerPriceGroupListLoadQuery(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.listquery.ListQueryResponse

get_customer_price_groups()[source]

Get customer_price_groups.

Returns

list of CustomerPriceGroup

class merchantapi.response.CustomerUpdate(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.Module(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.NoteDelete(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.NoteInsert(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.NoteListLoadQuery(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.listquery.ListQueryResponse

get_notes()[source]

Get notes.

Returns

list of Note

class merchantapi.response.NoteUpdate(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.OrderAuthorize(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_order_payment_authorize() → merchantapi.model.OrderPaymentAuthorize[source]

Get order_payment_authorize.

Returns

OrderPaymentAuthorize

class merchantapi.response.OrderCreate(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_order() → merchantapi.model.Order[source]

Get order.

Returns

Order

class merchantapi.response.OrderCreateFromOrder(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_order() → merchantapi.model.Order[source]

Get order.

Returns

Order

class merchantapi.response.OrderCustomFieldListLoad(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_order_custom_fields()[source]

Get order_custom_fields.

Returns

list of OrderCustomField

class merchantapi.response.OrderCustomFieldsUpdate(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.OrderDelete(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.OrderItemAdd(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_order_total() → merchantapi.model.OrderTotal[source]

Get order_total.

Returns

OrderTotal

class merchantapi.response.OrderItemListBackOrder(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.OrderItemListCancel(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.OrderItemListCreateShipment(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_order_shipment() → merchantapi.model.OrderShipment[source]

Get order_shipment.

Returns

OrderShipment

class merchantapi.response.OrderItemListDelete(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.OrderItemUpdate(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_order_total() → merchantapi.model.OrderTotal[source]

Get order_total.

Returns

OrderTotal

class merchantapi.response.OrderListLoadQuery(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.listquery.ListQueryResponse

get_orders()[source]

Get orders.

Returns

list of Order

class merchantapi.response.OrderPaymentCapture(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_order_payment_total() → merchantapi.model.OrderPaymentTotal[source]

Get order_payment_total.

Returns

OrderPaymentTotal

class merchantapi.response.OrderPaymentRefund(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_order_payment_total() → merchantapi.model.OrderPaymentTotal[source]

Get order_payment_total.

Returns

OrderPaymentTotal

class merchantapi.response.OrderPaymentVoid(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_order_payment_total() → merchantapi.model.OrderPaymentTotal[source]

Get order_payment_total.

Returns

OrderPaymentTotal

class merchantapi.response.OrderShipmentListUpdate(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.OrderUpdateCustomerInformation(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.PaymentMethodListLoad(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_payment_methods()[source]

Get payment_methods.

Returns

list of PaymentMethod

class merchantapi.response.PriceGroupCustomerListLoadQuery(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.listquery.ListQueryResponse

get_price_group_customers()[source]

Get price_group_customers.

Returns

list of PriceGroupCustomer

class merchantapi.response.PriceGroupCustomerUpdateAssigned(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.PriceGroupListLoadQuery(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.listquery.ListQueryResponse

get_price_groups()[source]

Get price_groups.

Returns

list of PriceGroup

class merchantapi.response.PriceGroupProductListLoadQuery(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.listquery.ListQueryResponse

get_price_group_products()[source]

Get price_group_products.

Returns

list of PriceGroupProduct

class merchantapi.response.PriceGroupProductUpdateAssigned(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.PrintQueueJobDelete(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.PrintQueueJobInsert(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_id()[source]

Get id.

Returns

int

class merchantapi.response.PrintQueueJobListLoadQuery(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.listquery.ListQueryResponse

get_print_queue_jobs()[source]

Get print_queue_jobs.

Returns

list of PrintQueueJob

class merchantapi.response.PrintQueueJobStatus(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_status()[source]

Get status.

Returns

string

class merchantapi.response.PrintQueueListLoadQuery(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.listquery.ListQueryResponse

get_print_queues()[source]

Get print_queues.

Returns

list of PrintQueue

class merchantapi.response.ProductDelete(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.ProductImageAdd(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.ProductImageDelete(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.ProductInsert(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.ProductListAdjustInventory(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.ProductListLoadQuery(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]

Bases: merchantapi.listquery.ListQueryResponse

get_products()[source]

Get products.

Returns

list of Product

class merchantapi.response.ProductUpdate(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

class merchantapi.response.ProductVariantListLoadProduct(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_product_variants()[source]

Get product_variants.

Returns

list of ProductVariant

class merchantapi.response.ProvisionDomain(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_provision_messages()[source]

Get provision_messages.

Returns

list of ProvisionMessage

class merchantapi.response.ProvisionStore(request: merchantapi.abstract.Request, data: dict)[source]

Bases: merchantapi.abstract.Response

get_provision_messages()[source]

Get provision_messages.

Returns

list of ProvisionMessage

class merchantapi.response.RequestBuilder(request, data: dict)[source]

Bases: merchantapi.abstract.Response

merchantapi.version module

This file is part of the MerchantAPI package.

  1. Miva Inc <https://www.miva.com/>

For the full copyright and license information, please view the LICENSE file that was distributed with self source code.

$Id: version.py 77666 2019-08-29 19:17:24Z gidriss $

class merchantapi.version.Version[source]

Bases: object

MAJOR = 1
MINOR = 0
PATCH = 0
STRING = '1.0.0'

Module contents

This file is part of the MerchantAPI package.

  1. Miva Inc <https://www.miva.com/>

For the full copyright and license information, please view the LICENSE file that was distributed with self source code.

$Id: __init__.py 77670 2019-08-29 19:21:43Z gidriss $