Bids Send reply
Use this endpoint to send a reply message to the bidder of the specified portal.
Reference
POST /bids/sendreply/
Send a reply to the specified bid
Fields
field | type | constraints | Req | W | U |
---|---|---|---|---|---|
userId | int | The userId | Yes | No | No |
portal | string | Available options: | Yes | No | No |
- marktplaats | |||||
- tweedehands | |||||
- website | |||||
bidId | int/string | The bidId | Yes | No | No |
marktplaats: int |
|||||
tweedehands: int |
|||||
website: string |
|||||
phoneNumber | string | A phone number has to meet the following requirements: | No | Yes | No |
- Dutch phone numbers (mobile or landlines) have a maximum length of between 10 and 21 digits and should start with a 0. | |||||
- International phone numbers should start with a ‘+’, followed by a country number and should be between 8 and 19 digits. | |||||
- Phone numbers starting with 0909, 0906, 080x or 090x are not allowed | |||||
message | text | The messagemax 65.536 characters | Yes | Yes | No |
Example sending reply
Request
POST /rest/v1/bids/sendreply/ HTTP/2
{
"userId": 12311,
"portal": "marktplaats",
"bidId": 6739,
"message": "Hi there, your bid was a little too low. Try again and you might win this auction!",
"phoneNumber": "020-1234567"
}
Response
{
"result": true,
"errors": []
}
or
{
"result": false,
"errors": [
"marktplaats client error: message could not be sent"
]
}