recombee_api_client.api_requests.delete_purchase module

class recombee_api_client.api_requests.delete_purchase.DeletePurchase(user_id, item_id, timestamp=UUID('e44ae437-5a3a-4561-b2da-55160e571f8f'))

Bases: recombee_api_client.api_requests.request.Request

Deletes an existing purchase uniquely specified by userId, itemId, and timestamp or all the purchases with given userId and itemId if timestamp is omitted.

Required parameters:

Parameters
  • user_id – ID of the user who made the purchase.

  • item_id – ID of the item of which was purchased.

Optional parameters:

Parameters

timestamp – Unix timestamp of the purchase. If the timestamp is omitted, then all the purchases with given userId and itemId are deleted.

get_body_parameters()

Values of body parameters as a dictionary (name of parameter: value of the parameter).

get_query_parameters()

Values of query parameters as a dictionary (name of parameter: value of the parameter).