Venly API
Search…
Buy an offer
Endpoint to buy a certain offer
To buy an offer: use POST /fulfillments with type=PURCHASE

Example

Request

POST https://api.venly.market/fulfillments

Request Body

{
"type": "PURCHASE",
"offerId": "83f9abd1-e82e-4ee1-93b2-d0370f833e6f",
"amount": "1",
"userId": "e38336b6-3307-4737-bf82-3a3a39269147"
}

Response

{
"success": true,
"result": {
"id": "dcba3a7c-0e41-46a9-bd97-7eb59746f94e",
"type": "PURCHASE",
"offerId": "83f9abd1-e82e-4ee1-93b2-d0370f833e6f",
"amount": 1,
"status": "QUEUED",
"creationDate": "2022-04-20T13:26:58.809242",
"pricePerItem": 50,
"buyer": {
"id": "e38336b6-3307-4737-bf82-3a3a39269147",
"nickname": "Pieter",
"email": "[email protected]"
}
}
}
Copy link
Outline
Example