Find and return offers that match the filters given in the request. This supports filtering by a set of:
- part IDs, including off-the-shelf part IDs, custom part specification IDs, IPNs, and custom component IDs.
- import context IDs, for off-the-shelf offers linked to an import context.
The above filters may be used on their own or can be combined. In the latter case, only offers matching all filters are returned.
The endpoint supports pagination. Only a limited amount of offers will be returned in one call, this is controlled through the limit parameter. If more offers match, a pagination cursor is returned in the response. This pagination cursor can be used for subsequent calls to the endpoint to find more matching offers. The process can be repeated until all matching offers are returned.
For the request and response body shapes, see the FindOffersRequest and FindOffersResult specifications, as well as the OfferResponse shape. The size of the request is limited, also see the specification there.
The cursor to continue returning offers from. This is an opaque string, only a cursor previously returned by this endpoint should be used as input.
In the initial request, no cursor or null should be given.
The maximum number of offers to return. If at least this many offers matching the filters remain after the current cursor, then limit offers are returned. The endpoint will never return more than the given limit of offers.
If specified, the limit must be at least 1 and at most 1000. If not specified, the limit defaults to 100.
- https://api.luminovo.comhttps://api.luminovo.com/offers/find
curl -i -X POST \
https://api.luminovo.com/offers/find \
-H 'Accept: application/api.luminovo.offer-v1+json' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"cursor": "string",
"limit": 100,
"filters": {
"part_ids": [
"OffTheShelf:a1b2c3d4-5678-90ab-cdef-123456789012",
"CustomComponent:IPN-001234"
],
"import_context_ids": [
"0b822595-b86e-4478-aa83-5ac266142653",
"26446bea-886e-4b01-ba8a-3c955c3bf242"
]
}
}'Successfully found offers
{ "offers": [ { … } ], "pagination": { "next_cursor": "string", "has_more": true } }