Skip to main content

Update Partner

Use this route to update data of a previously registered partner.

PUTv3/sub_sellers/:sub_seller_id

Request Variable Path

AttributeTypeDescription
sub_seller_idstringPartner ID.
caution

It is necessary to save the sub_seller_id that Marlim returns in the creation requests in your application. Only with this id will it be possible to proceed with the update.

Request Body Params

Attention

All fields of type string must be informed with alphanumeric characters without accents or special characters.

AttributeTypeDescription
emailstringPartner email.
automatic_anticipation_enabledbooleanIndicates if the receiver will receive anticipations automatically.
annual_revenueint32Estimated annual revenue of the company
websitestringCompany website.
phone_numberobjectCompany phone object.
phone_number[country_code]stringCompany phone country code (DDI), Ex: +55.
phone_number[ddd]stringCompany phone area code.
phone_number[number]stringCompany phone number.
main_addressobjectCompany main address object.
main_address[country]stringAddress country, in country code format. Only ISO 3166-1 alpha-2 (two-letter) format will be accepted Ex: BR, US, UY...
Maximum in characters: 2
main_address[zip_code]stringCompany address ZIP code.
main_address[state]stringCompany address state.
main_address[city]stringCompany address city.
main_address[neighborhood]stringCompany address neighborhood.
main_address[street]stringCompany address street.
main_address[number]stringCompany address number.
main_address[complementary]stringCompany address complement.
statusstringPartner status. Accepted values: active and inactive.
simulate_statusstringOptional parameter to simulate the partner status in test environment, should not be sent in production.
Accepted values: active, inactive, pending, or refused.
caution

Restrictions: In production, if the current partner status is pending, refused or blocked, updating is not allowed. The change can only occur when the status is different from these.

In sandbox, to simulate all possible statuses, just inform the simulate_status parameter. If this parameter is not informed, the validation will follow the production restrictions.

Response Object

AttributeTypeDescription
statusstringPartner status. Default value: pending.
sub_seller_idstringPartner ID.
namestringPartner name.
date_createddateTimePartner creation date in ISODateTime format.
date_updateddateTimePartner update date in ISODateTime format.
business_namestringPartner Legal Name.
social_namestringPartner Trade Name.
emailstringPartner email.
documentstringPartner CNPJ.
Response Example
{
"status": "active",
"sub_seller_id": "sub_k4m6Rw5rlQszEY7fiuRe",
"name": "Empresa Jedi",
"date_created": "2025-07-07T19:26:42.779Z",
"date_updated": "2025-07-07T20:26:42.779Z",
"business_name": "Empresa Jedi LTDA",
"social_name": "Empresa Jedi",
"email": "contato@empresajedi.com.br",
"document": "12345678000190"
}

Examples

Request
curl -X PUT "https://api.marlim.co/v3/sub_sellers/sub_k4m6Rw5rlQszEY7fiuRe" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d '{
"email": "novo@empresajedi.com.br",
"automatic_anticipation_enabled": true,
"annual_revenue": 1000000000,
"website": "https://empresajedi.com.br",
"phone_number": {
"country_code": "+55",
"ddd": "11",
"number": "988888888"
},
"main_address": {
"country": "BR",
"zip_code": "01234567",
"state": "SP",
"city": "São Paulo",
"neighborhood": "Centro",
"street": "Rua Jedi",
"number": "123",
"complementary": "Sala 45"
},
"status": "active"
}'
Response200
{
"status": "active",
"sub_seller_id": "sub_k4m6Rw5rlQszEY7fiuRe",
"name": "Empresa Jedi",
"date_created": "2025-07-07T19:26:42.779Z",
"date_updated": "2025-07-07T20:26:42.779Z",
"business_name": "Empresa Jedi LTDA",
"social_name": "Empresa Jedi",
"email": "contato@empresajedi.com.br",
"document": "12345678000190"
}