Menu
Get Transaction
Get Single Stock Transaction for Product
GET
/inventories/{product_uuid}/transactions/{transaction_uuid}Use it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Get Transaction action (under Inventory).
- Fill in the fields below, then reference the result from later steps as
{{getTransaction.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{getTransaction.response.data.<field>}}.
{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "stock-transaction",
"attributes": {
"action": "allocate",
"product_id": "00000000-0000-0000-0000-000000000000",
"quantity": 5,
"location": "milton-keynes-warehouse"
},
"meta": {
"timestamps": {
"created_at": "2017-01-10T11:41:19.244842Z",
"updated_at": "2017-01-10T11:41:19.244842Z"
}
}
}
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?