transaction_log_detail
Description
Details of an individual transaction log change. The log
JSON contains the following fields:
- rel: Similar to a link relationship, this value should let you know which resource was modified. Exmaple
item
ortransaction
. - id: The internal identifier for the resource that was modified.
- old_values: JSON object of old values prior to the change.
- new_values: JSON object of new values after this change.
Actions
- GET
- View a transaction_log_detail
- HEAD
- Get just the header response
- OPTIONS
- Get a response explaining which HTTP methods are supported
Properties
Property | Description | Type | Constraints |
---|---|---|---|
request_type | A text representation of the type of request this log entry is for such as item_edit |
String | Read only |
reference | A reference id of some kind to help describe which resource this log entry refers to. | String | Read only |
log | The details of the changes for this log in JSON format. | JSON | Read only |
Example Representation
{ "_links": { "curies": [ { "name": "fx", "href": "https://api.foxycart.com/rels/{rel}", "templated": true } ], "self": { "href": "https://api.foxycart.com/transaction_log_details/183", "title": "This Transaction Log Detail" }, "fx:store": { "href": "https://api.foxycart.com/stores/66", "title": "This Store" }, "fx:transaction_log": { "href": "https://api.foxycart.com/transaction_logs/120", "title": "This Transaction Log" } }, "request_type": "item_edit", "reference": "foo: 5638510", "log": "{\"rel\":\"item\",\"id\":\"5638510\",\"old_values\":{\"options\":{\"4813185\":{\"price_mod\":\"10.0000000000\"}}},\"new_values\":{\"options\":{\"4813185\":{\"name\":\"Test\",\"value\":\"test\",\"price_mod\":0}}}}" }
<?xml version="1.0" encoding="UTF-8"?> <resource href="https://api.foxycart.com/transaction_log_details/183" rel="https://api.foxycart.com/rels/transaction_log_detail"> <link rel="self" href="https://api.foxycart.com/transaction_log_details/183" title="This Transaction Log Detail"/> <link rel="https://api.foxycart.com/rels/store" href="https://api.foxycart.com/stores/66" title="This Store"/> <link rel="https://api.foxycart.com/rels/transaction_log" href="https://api.foxycart.com/transaction_logs/120" title="This Transaction Log"/> <request_type>item_edit</request_type> <reference>foo: 5638510</reference> <log>{&quot;rel&quot;:&quot;item&quot;,&quot;id&quot;:&quot;5638510&quot;,&quot;old_values&quot;:{&quot;options&quot;:{&quot;4813185&quot;:{&quot;price_mod&quot;:&quot;10.0000000000&quot;}}},&quot;new_values&quot;:{&quot;options&quot;:{&quot;4813185&quot;:{&quot;name&quot;:&quot;Test&quot;,&quot;value&quot;:&quot;test&quot;,&quot;price_mod&quot;:0}}}}</log> </resource>
{ "class": [ "transaction_log_detail" ], "properties": { "request_type": "item_edit", "reference": "foo: 5638510", "log": "{\"rel\":\"item\",\"id\":\"5638510\",\"old_values\":{\"options\":{\"4813185\":{\"price_mod\":\"10.0000000000\"}}},\"new_values\":{\"options\":{\"4813185\":{\"name\":\"Test\",\"value\":\"test\",\"price_mod\":0}}}}" }, "links": [ { "rel": [ "self" ], "href": "https://api.foxycart.com/transaction_log_details/183" }, { "rel": [ "https://api.foxycart.com/rels/store" ], "href": "https://api.foxycart.com/stores/66" }, { "rel": [ "https://api.foxycart.com/rels/transaction_log" ], "href": "https://api.foxycart.com/transaction_logs/120" } ], "actions": [] }
Zoomable Resources
This resource has no linked resources which can be "zoomed" in on, filtered and embedded within this resource.