get
/v4/opportunities/{id}/storing-ids
Get the storingId(s) backing an opportunity, grouped by root campaign. Returns one tree per root campaign matching the requested statuses (default LIVE; past root campaigns are excluded). Each node lists its own storingIds, with sub-campaigns nested under subCampaigns. Sub-campaigns of a matching root are not status-filtered. The same storingId may appear in more than one tree. Stateless campaigns return an empty storingIds array.
Path parameters
idstringrequired
Query parameters
campaignStatusstringdefault: LIVEResponses
200Response for status 200
Schema
object[]
campaignIdstringOn-chain campaign idstoringIdsstring[]Indexing storingId(s) owned by this campaign only (not children's).subCampaignsany[]Direct sub-campaign nodes; [] for leaves. Always present.Example
[
{
"campaignId": "string",
"storingIds": [
"string"
],
"subCampaigns": [
null
]
}
]404Response for status 404
Schema
object
typestringrequired
default: "/errors/not-found"titlestringrequired
default: "Not Found"statusnumberrequired
default: 404detailstringrequired
default: "Not Found"Example
{
"type": "/errors/not-found",
"title": "Not Found",
"status": 404,
"detail": "Not Found"
}500Response for status 500
Schema
object
typestringrequired
URI reference identifying the problem typetitlestringrequired
Short, stable, human-readable summarystatusnumberrequired
HTTP status codedetailstringrequired
Human-readable explanation specific to this occurrenceExample
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string"
}get
https://api.merkl.xyz/v4/opportunities/{id}/storing-idscurl -X GET "https://api.merkl.xyz/v4/opportunities/{id}/storing-ids"Fill the required path parameter id to send.