Skip to main content

Get Single Stock Transaction for Product

GET 

https://euwest.api.elasticpath.com/v2/inventories/:product_uuid/transactions/:transaction_uuid

Returns the specific transaction with transaction_uuid for product_uuid

Request

Path Parameters

    product_uuid UUIDrequired

    The unique identifier of the product.

    transaction_uuid UUIDrequired

    The unique identifier of the transaction.

Responses

Success. Returns the stock transaction for the given product

Schema
    data object
    idUUID (string)required

    The unique identifier.

    Example: 00000000-0000-0000-0000-000000000000
    typeStockTransactionType (string)required

    Possible values: [stock-transaction]

    Default value: stock-transaction
    Example: stock-transaction
    attributes objectrequired
    actionstringrequired

    The type of action performed by this transaction.

    • increment - use this when you want to make products available for purchase, for example, when you have received stock from a supplier.

    • decrement - Use this when you want to remove stock from product inventory.

    • allocate - Use this when you want to allocate stock, normally to a reseller who sells on the stock.

    • deallocate - Use this when you want to deallocate any previously allocated stock.

    Possible values: [increment, decrement, allocate, deallocate]

    Example: allocate
    product_idUUID (string)required

    The unique identifier.

    Example: 00000000-0000-0000-0000-000000000000
    quantityint64required

    The amount of stock affected by the stock transaction.

    Example: 5
    locationstring

    The slug of the location that the transaction should act on.

    Possible values: non-empty and <= 128 characters

    Example: milton-keynes-warehouse
    meta object
    timestamps Timestampsrequired
    updated_atstring

    The date and time a resource was updated.

    Example: 2017-01-10T11:41:19.244842Z
    created_atstringrequired

    The date and time a resource was created.

    Example: 2017-01-10T11:41:19.244842Z

Authorization: http

name: bearerAuthtype: httpscheme: bearer
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://euwest.api.elasticpath.com/v2/inventories/:product_uuid/transactions/:transaction_uuid");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://euwest.api.elasticpath.com/v2
Auth
Parameters
— pathrequired
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!