DELETE v1/ads
Remove um anúncio do usuário do Portal Mercado Máquinas.
Requires Authorization
To perform authorization, you must submit the authentication credentials using the HTTP Basic authorization header.
The authorization header is constructed as follows:
- The username and password are combined into a string "user:password"
- The resulting literal string is then encoded in Base64
- The authorization method followed by the word "Basic" is then placed before the coded sequence.
Authorization: Basic QWxhZGRpbjpvcGVuLXNlc2FtZQ==
Response Codes
- NoContent (204)
- Unauthorized (401)
- NotFound (404)
Request Information
URL Parameters
The parameters must be in the request URL.
Nothing.
Request body parameters
These parameters must be in the request Body.
AdDeleteRequest Model Representation of the Ad Delete Request
Name | Description | Type | Additional Information |
---|---|---|---|
AdId | Ad Id code | integer | Required |
DeleteType | Ad exclusion type (0/0) I don't want to answer (1/1) I sold and this ad helped me (1/0) I sold by other means (2/0) Not sold | string | Required |
Price | Ad sale value (only if the ad was sold) | decimal number | |
PaymentType | Ad sale payment type (only if the ad was sold) (0) None (1) Cash without exchange (2) Cash on exchange (3) Own financing (4) Bank financing (5) Others | integer | |
State | Ad's location state of sale (only if the ad was sold) | string | |
City | Ad's location city of sale (only if the ad was sold) | string |
Request Formats
application/json, text/json
Notes:
- In Json format, the parameter names follow the camelCase pattern, that is, they always start with lowercase letters.
{ "adId": 1, "deleteType": "1/1", "price": 125800.0, "paymentType": 1, "state": "SP", "city": "Jundiaí" }
text/html
{"adId":1,"deleteType":"1/1","price":125800.0,"paymentType":1,"state":"SP","city":"Jundiaí"}
application/xml, text/xml
<AdDeleteRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <AdId>1</AdId> <DeleteType>1/1</DeleteType> <Price>125800</Price> <PaymentType>1</PaymentType> <State>SP</State> <City>Jundiaí</City> </AdDeleteRequest>
application/x-www-form-urlencoded
Example not available.
Response Information
Resource Description
Description not available.