Skip to main content

Get asset contribution by ID

GET 

https://api.sandbox.magfi.net/api/asset-contribution/:id

Retrieve a specific asset contribution by its ID

Request

Path Parameters

    id uuidrequired

    Asset contribution ID

Responses

Asset contribution retrieved successfully

Schema
    iduuid
    accountIduuid

    ID of the account making the contribution

    assetIduuid

    ID of the asset being contributed

    assetTransferMethodIduuid

    ID of the transfer method used for the contribution

    acquisitionOndate-time

    Date and time when the asset was acquired

    costBasisstring

    Cost basis units of the contribution. Example: 1000 = 10.00

    Example: 100000
    currencyTypestring

    Type of currency used for the cost basis. USD is in cents, BTC is in sats

    Possible values: <= 50 characters

    Example: USD
    unitCountstring

    Number of units contributed

    Example: 15
    unitCountExpectedstring

    Expected number of units to be contributed

    Example: 1
    createdAtdate-time
    updatedAtdate-time
const myHeaders = new Headers();
myHeaders.append("Accept", "application/json");

const requestOptions = {
method: "GET",
headers: myHeaders,
redirect: "follow"
};

fetch("https://api.sandbox.magfi.net/api/asset-contribution/:id", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
Request Collapse all
Base URL
https://api.sandbox.magfi.net/api
Parameters
— pathrequired
ResponseClear

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