Update your own store
curl --request PATCH \
--url https://api.cubbo.com/v1/store \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tax_company_name": "Partner Store SP LTDA",
"tax_address": "Av. Paulista",
"tax_address_number": "1000",
"tax_city": "Sao Paulo",
"state": "SP"
}
'import requests
url = "https://api.cubbo.com/v1/store"
payload = {
"tax_company_name": "Partner Store SP LTDA",
"tax_address": "Av. Paulista",
"tax_address_number": "1000",
"tax_city": "Sao Paulo",
"state": "SP"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tax_company_name: 'Partner Store SP LTDA',
tax_address: 'Av. Paulista',
tax_address_number: '1000',
tax_city: 'Sao Paulo',
state: 'SP'
})
};
fetch('https://api.cubbo.com/v1/store', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cubbo.com/v1/store",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'tax_company_name' => 'Partner Store SP LTDA',
'tax_address' => 'Av. Paulista',
'tax_address_number' => '1000',
'tax_city' => 'Sao Paulo',
'state' => 'SP'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cubbo.com/v1/store"
payload := strings.NewReader("{\n \"tax_company_name\": \"Partner Store SP LTDA\",\n \"tax_address\": \"Av. Paulista\",\n \"tax_address_number\": \"1000\",\n \"tax_city\": \"Sao Paulo\",\n \"state\": \"SP\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.cubbo.com/v1/store")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tax_company_name\": \"Partner Store SP LTDA\",\n \"tax_address\": \"Av. Paulista\",\n \"tax_address_number\": \"1000\",\n \"tax_city\": \"Sao Paulo\",\n \"state\": \"SP\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cubbo.com/v1/store")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tax_company_name\": \"Partner Store SP LTDA\",\n \"tax_address\": \"Av. Paulista\",\n \"tax_address_number\": \"1000\",\n \"tax_city\": \"Sao Paulo\",\n \"state\": \"SP\"\n}"
response = http.request(request)
puts response.read_body{
"id": 4821,
"name": "Partner Store SP",
"description": "Store provisioned via API",
"created_at": "2026-09-03T14:02:11.000Z",
"updated_at": "2026-09-03T14:05:47.000Z",
"tax_id": null,
"invoice_customization": {},
"state": "SP",
"tax_regime": null,
"tax_company_name": "Partner Store SP LTDA",
"tax_address": "Av. Paulista",
"tax_address_number": "1000",
"tax_address_neighborhood": null,
"tax_city": "Sao Paulo",
"tax_zipcode": null,
"tax_state_phone": null,
"tax_state_registration": null,
"store_type": "ALL_SERVICES"
}Stores
Update your own store
Partially updates the store bound to your credential. No store id is accepted: the store
is derived from the Open API integration credential used to obtain the token, so this
endpoint only works with a token issued from the credential returned by POST /stores
(or any other store-bound integration credential). Only the fields present in the body
are written; only the store’s identity and fiscal fields can be edited.
- At least one editable field must be present, otherwise the request is rejected.
tax_regimeis case-insensitive and normalized to upper case; values outside the accepted set are rejected.stateis normalized to upper case. For stores operating in Brazil it must be a valid two-letter UF code (for exampleSP); for other countries it is stored as sent.invoice_customizationreplaces the current value (no merge). Only known NF-e purposes are kept; a blank object, or one containing only unknown purposes, is treated as if the field was not sent and does not clear the existing customization.- Unknown or non-editable fields (such as
account_idorstore_type) are silently ignored.
PATCH
/
store
Update your own store
curl --request PATCH \
--url https://api.cubbo.com/v1/store \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tax_company_name": "Partner Store SP LTDA",
"tax_address": "Av. Paulista",
"tax_address_number": "1000",
"tax_city": "Sao Paulo",
"state": "SP"
}
'import requests
url = "https://api.cubbo.com/v1/store"
payload = {
"tax_company_name": "Partner Store SP LTDA",
"tax_address": "Av. Paulista",
"tax_address_number": "1000",
"tax_city": "Sao Paulo",
"state": "SP"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tax_company_name: 'Partner Store SP LTDA',
tax_address: 'Av. Paulista',
tax_address_number: '1000',
tax_city: 'Sao Paulo',
state: 'SP'
})
};
fetch('https://api.cubbo.com/v1/store', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cubbo.com/v1/store",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'tax_company_name' => 'Partner Store SP LTDA',
'tax_address' => 'Av. Paulista',
'tax_address_number' => '1000',
'tax_city' => 'Sao Paulo',
'state' => 'SP'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cubbo.com/v1/store"
payload := strings.NewReader("{\n \"tax_company_name\": \"Partner Store SP LTDA\",\n \"tax_address\": \"Av. Paulista\",\n \"tax_address_number\": \"1000\",\n \"tax_city\": \"Sao Paulo\",\n \"state\": \"SP\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.cubbo.com/v1/store")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tax_company_name\": \"Partner Store SP LTDA\",\n \"tax_address\": \"Av. Paulista\",\n \"tax_address_number\": \"1000\",\n \"tax_city\": \"Sao Paulo\",\n \"state\": \"SP\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cubbo.com/v1/store")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tax_company_name\": \"Partner Store SP LTDA\",\n \"tax_address\": \"Av. Paulista\",\n \"tax_address_number\": \"1000\",\n \"tax_city\": \"Sao Paulo\",\n \"state\": \"SP\"\n}"
response = http.request(request)
puts response.read_body{
"id": 4821,
"name": "Partner Store SP",
"description": "Store provisioned via API",
"created_at": "2026-09-03T14:02:11.000Z",
"updated_at": "2026-09-03T14:05:47.000Z",
"tax_id": null,
"invoice_customization": {},
"state": "SP",
"tax_regime": null,
"tax_company_name": "Partner Store SP LTDA",
"tax_address": "Av. Paulista",
"tax_address_number": "1000",
"tax_address_neighborhood": null,
"tax_city": "Sao Paulo",
"tax_zipcode": null,
"tax_state_phone": null,
"tax_state_registration": null,
"store_type": "ALL_SERVICES"
}Authorizations
Body
application/json
Send only the fields to change. At least one must be present.
Response
Store updated
A store's identity and fiscal fields, as returned by the store-scoped endpoints