Create a fulfillment for an offer
Endpoint to create a fulfillment from an offer. A fulfillment can be a PURCHASE (when buying 1 or more items from the offer) or a REIMBURSEMENT (when returning items to the seller).
POST
https://api.venly.market/fulfillments
Request Body
Name | Type | Description |
---|---|---|
offerId* | String | The offer ID |
amount | String | Amount to be bought / reimbursed |
type* | String | PURCHASE or REIMBURSEMENT |
userId* | String | The user buying or being reimbursed |
externalUserId | String | External User Id (only for PURCHASE) |
walletAddress | String | Buyer wallet address (only for PURCHASE) |
Examples
* Create a purchase
A purchase can be created only if offer is in status READY and has remaining items
A purchase can only be created for an offer of type SALE (not for AUCTIONS).
A purchase goes firstly in status QUEUED, PROCESSING and then COMPLETED or ERROR if something went wrong.
You can supply an externalBuyerId
when creating a fulfillment.
Note that if you are buying open / public offers, the externalBuyerId
will be visible to other parties. Please do not supply sensitive information in the externalBuyerId
(like email address).
Request body
Response body
Last updated