POST /api/v2/buyer/discovery/{discoveryId}/apply-proposal
Applies a seller proposal returned by Discover products, auto-adding its products with the proposal’s recommended budget allocations. Requires discover-products to have run first so the proposal’s products are in the session cache. Defaults the distributed budget to proposal.totalBudgetGuidance.recommended; set replace: true to clear the existing selection before applying.
Request
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
discoveryId | string | Yes | Path param — session to apply into |
proposalId | string | Yes | Proposal ID from the discover-products response |
totalBudget | number | No | Budget to distribute across products. Defaults to totalBudgetGuidance.recommended |
replace | boolean | No | When true, clears existing selected products before applying |
Response
productsSkipped is non-empty when a proposal references a product that has aged out of the cached discovery results. Re-run discover to refresh the session, then re-apply.
Errors
400 VALIDATION_ERROR— missingproposalId, non-positivetotalBudget, or discover-products was never run for this session.404 NOT_FOUND—discoveryIdorproposalIdnot found for the authenticated customer.
Related
Discovery overview
Proposals and refinement
Discover products
Surface proposals to apply
Get products
Inspect the resulting selection
Add products
Add products one at a time instead