Home
Documentation
Resources
Partners
Community

Resources

Check for updates on our solutions and system performance, or request technical support.

Partners

Discover our program for agencies or developers that offer integration services and sellers who want to hire them.

Community

Get the latest news, ask others for help and share your knowledge.

Delete store - Physical stores - Mercado Pago Developers

Intelligent search powered by OpenAI 

Delete store

DELETE

https://api.mercadopago.com/users/{user_id}/stores/{id}
This endpoint allows the deletion of a specific physical store, identified by its ID. The successful response of this request will return a status 200.
Request's parameters
PATH
user_id
string

REQUIRED

The user_id corresponds to the collector_id. It refers to the user_id of the Mercado Pago account that receives the money from sales, that is, the account responsible for collecting the funds.
id
string

REQUIRED

Store ID. This number is obtained when creating a store and consolidates all information related to it, such as opening and closing hours, location, and name.
Response parameters
store
number
Store identification number that was deleted.
user
number
Number of the user responsible for the deletion of the store.
Errors

400Error

INVALID_USER_ID

user_id must be a number - Verify that the user_id provided is numeric and try again.

INVALID_STORE_ID

store_id must be a number - Ensure that the store_id entered is numeric and correct any errors.

401Error

unauthorized_scopes

`Mismatch between user id '1762651252' and store id '61125074.` This error is displayed when attempting to delete a store belonging to another user. If you encounter this error, verify the `store_id` and ensure it belongs to your user.

403Error

Forbidden

`You don't have permission to access the URL on this server`. If you receive this error, check if the store_id used is correct and make a new request.

404Error

not_found

`store 6112507 not found.` This error occurs when attempting to delete a store, but the store_id is incorrect. Please review the store_id parameter and ensure that the number entered corresponds to a valid store.

Request
curl -X DELETE \
    'https://api.mercadopago.com/users/{user_id}/stores/{id}'\
    -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer TEST-4599*********755-11221*********d497ae962*********ecf8d85-1*********' \
    
Sample answer
{
  "store": 1234567,
  "user": 129653108
}