curl --request PUT \
--url https://api.dooki.com.br/v2/{alias}/config/merchant-data/{id} \
--header 'Content-Type: application/json' \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>' \
--data '{
"maintenance": true,
"name": "<string>",
"razao_social": "<string>",
"email_contact": "merchant@domain.com",
"email_sales": "merchant@domain.com",
"description": "Merchant Description",
"owner_name": "John Snow",
"phone": "99 9999999",
"whatsapp": "99 9999999",
"ie": "0000",
"cnpj": "00.000.0000/0001-32",
"cpf": "<string>",
"full_address": "<string>",
"address_street": "<string>",
"address_number": "<string>",
"address_complement": "<string>",
"address_neighborhood": "<string>",
"address_city": "<string>",
"address_state": "<string>",
"zipcode": "14940000",
"products_per_page": "10",
"logo_url": "https://url.to/logo.jpg",
"icon_url": "https://url.to/logo.jpg",
"facebook_url": "<string>",
"instagram_url": "<string>",
"youtube_url": "<string>",
"pinterest_url": "<string>"
}'
{
"data": {
"id": 123,
"maintenance": true,
"type": "<string>",
"name": "<string>",
"razao_social": "<string>",
"email_contact": "<string>",
"email_sales": "<string>",
"description": "<string>",
"owner_name": "<string>",
"phone": "<string>",
"whatsapp": "<string>",
"ie": "<string>",
"cnpj": "<string>",
"cpf": "<string>",
"billing_name": "<string>",
"billing_document": "<string>",
"billing_document_type": "<string>",
"billing_address_street": "<string>",
"billing_address_number": "<string>",
"billing_address_complement": "<string>",
"billing_address_neighborhood": "<string>",
"billing_address_city": "<string>",
"billing_address_state": "<string>",
"billing_address_zipcode": "<string>",
"billing_phone": "<string>",
"full_address": "<string>",
"address_street": "<string>",
"address_number": "<string>",
"address_complement": "<string>",
"address_neighborhood": "<string>",
"address_city": "<string>",
"address_state": "<string>",
"zipcode": "<string>",
"products_per_page": 123,
"logo_url": "<string>",
"icon_url": "<string>",
"facebook_url": "<string>",
"instagram_url": "<string>",
"youtube_url": "<string>",
"pinterest_url": "<string>",
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
}
}
}
Atualiza os dados de uma loja específica
curl --request PUT \
--url https://api.dooki.com.br/v2/{alias}/config/merchant-data/{id} \
--header 'Content-Type: application/json' \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>' \
--data '{
"maintenance": true,
"name": "<string>",
"razao_social": "<string>",
"email_contact": "merchant@domain.com",
"email_sales": "merchant@domain.com",
"description": "Merchant Description",
"owner_name": "John Snow",
"phone": "99 9999999",
"whatsapp": "99 9999999",
"ie": "0000",
"cnpj": "00.000.0000/0001-32",
"cpf": "<string>",
"full_address": "<string>",
"address_street": "<string>",
"address_number": "<string>",
"address_complement": "<string>",
"address_neighborhood": "<string>",
"address_city": "<string>",
"address_state": "<string>",
"zipcode": "14940000",
"products_per_page": "10",
"logo_url": "https://url.to/logo.jpg",
"icon_url": "https://url.to/logo.jpg",
"facebook_url": "<string>",
"instagram_url": "<string>",
"youtube_url": "<string>",
"pinterest_url": "<string>"
}'
{
"data": {
"id": 123,
"maintenance": true,
"type": "<string>",
"name": "<string>",
"razao_social": "<string>",
"email_contact": "<string>",
"email_sales": "<string>",
"description": "<string>",
"owner_name": "<string>",
"phone": "<string>",
"whatsapp": "<string>",
"ie": "<string>",
"cnpj": "<string>",
"cpf": "<string>",
"billing_name": "<string>",
"billing_document": "<string>",
"billing_document_type": "<string>",
"billing_address_street": "<string>",
"billing_address_number": "<string>",
"billing_address_complement": "<string>",
"billing_address_neighborhood": "<string>",
"billing_address_city": "<string>",
"billing_address_state": "<string>",
"billing_address_zipcode": "<string>",
"billing_phone": "<string>",
"full_address": "<string>",
"address_street": "<string>",
"address_number": "<string>",
"address_complement": "<string>",
"address_neighborhood": "<string>",
"address_city": "<string>",
"address_state": "<string>",
"zipcode": "<string>",
"products_per_page": 123,
"logo_url": "<string>",
"icon_url": "<string>",
"facebook_url": "<string>",
"instagram_url": "<string>",
"youtube_url": "<string>",
"pinterest_url": "<string>",
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
}
}
}
Representa os dados necessários para atualizar os dados da loja
Dados da loja atualizados com sucesso
The response is of type object
.
Was this page helpful?