Mobile API Documentation

My Purchases

Overview: Gives list of purchases of the customer.
All parameters are mandatory with every API call.

Input Parameters

Parameter Description
session_code String, as received from login API.
filter String, values: "", "in progress", "history"
result_limit Integer, for paging, max amount of items to return. Optional
result_offset Integer, for paging, how many items to skip. Optional.

Sample Request

HTTP JSON
Endpoint: https://mobapi.idexonline.com/transactions/api/v2.0/mypurchases
{
  "session_code": "MOB_20240523065727_1u1FnnB6vyD5MI6adfUa8b",
  "filter": "history",
  "result_limit": 20,
  "result_offset": 0
}

Sample Response

JSON Data with HTTP Code 200
If all goes well, the response will be an HTTP 200 code and the response_code in the JSON will be 0.
{
  "result_info": {
	"response_code": 0,
	"response_description": ""
  },
  "results": {
	"total_items_available": 33,
	"items_included": 2,
	"page_number": 1,
	"page_count": 17,
	"page_size": 2,
	"purchases": [
	  {
		"purchase_id": 9636,
		"purchase_date": "2024-05-02T10:28:02.7600000",
		"number_of_diamonds": 1,
		"total_carat_weight": 1.14,
		"total_diamond_cost": 8208,
		"shipping_price": 164,
		"total_transaction_cost": 8678,
		"status_id": 10,
		"status": "Transaction Initiated",
		"row_number": 1
	  },
	  {
		"purchase_id": 8455,
		"purchase_date": "2023-12-08T14:45:31.9530000",
		"number_of_diamonds": 2,
		"total_carat_weight": 6.06,
		"total_diamond_cost": 1648,
		"shipping_price": 145,
		"total_transaction_cost": 1926,
		"status_id": 10,
		"status": "Transaction Initiated",
		"row_number": 2
	  }
	]
  }
}
		


Test the API


Generate JSON Request



POST






© IDEX Online 2024   -   www.idexonline.com