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.

Payout Settings

Attention

To send the anticipation_settings parameter, prior enablement by Marlim is required. Contact our support for more information.

The fields below are optional and control the partner's financial flow, that is, how and when they receive the transaction amounts. They apply to both Legal Entity and Individual partners.

  • automatic_anticipation_enabled (boolean, default true): indicates whether the partner's receivables are automatically anticipated. When true, credit sales are anticipated according to the term defined in anticipation_settings.

  • automatic_withdrawal (boolean, default true): indicates whether the available balance is automatically transferred to the partner's registered bank account. When false, the balance remains held in the partner's account until the transfer is manually requested.

  • anticipation_settings (enum, default D1): defines how many days after the transaction the receivables become available for transfer. See the meaning of each option in the table below. Requires prior enablement.

ValueAvailability periodMeaning in the financial flow
D11 day after the transactionReceivables are anticipated and become available for transfer 1 day after the transaction is captured. It is the shortest receiving period.
D55 days after the transactionReceivables become available for transfer 5 days after the transaction is captured.
D77 days after the transactionReceivables become available for transfer 7 days after the transaction is captured.
D1010 days after the transactionReceivables become available for transfer 10 days after the transaction is captured.
D1515 days after the transactionReceivables become available for transfer 15 days after the transaction is captured.
D2222 days after the transactionReceivables become available for transfer 22 days after the transaction is captured.
D3030 days after the transactionReceivables become available for transfer 30 days after the transaction is captured.
timelineAccording to the receivables' original scheduleThere is no automatic anticipation: each installment is made available on its natural settlement date (installment-by-installment flow). Requires prior enablement by Marlim — contact support.
Attention

It is not possible to update anticipation_settings to the timeline flow if the partner was already created with the D1, D5, D7, D10, D15, D22 or D30 settings, nor to update it to the D1, D5, D7, D10, D15, D22 or D30 settings if the partner was already created with the timeline flow.

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.
anticipation_settingsenumAnticipation setting. Accepted values: D1, D5, D7, D10, D15, D22, D30, timeline.
Default: D1
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"
}