Skip to main content

Get Partners

This route will be used to search for partners, this endpoint returns an array containing partner objects, sorted from the most recently created partner.

If no filter is passed, a array of objects containing your last 10 registered partners will be returned.

GETv3/sub_sellers

Request Query Params

AttributeTypeDescription
sub_seller_idstringFilter by a specific partner ID.
statusstringFilter by status.

Accepted values: active, inactive, pending and refused
date_createddateTimeFilter by creation date.
date_updateddateTimeFilter by update date.
countint32Returns n partner objects. Maximum of 1,000 and default of 10.
pageint32Useful for implementing result pagination.
Tip

The properties date_created and date_updated can be used to filter date range searches using the following attributes:

AttributeDescription
<less than
>greater than
<=less than or equal to
>=greater than or equal to
Request
curl -X GET -G "https://api.marlim.co/v3/sub_sellers" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d date_created=">=1620086400000" \
-d date_created="<=1620172799000"
Attention

Date filtering uses unixTimeStamp in milliseconds to represent it. To generate the unixTimeStamp of a date, you can use Google Chrome console with the following JavaScript code: new Date("2023-01-01T00:00:00.000Z").getTime() which will return 1672531200000.

Response Object

When searching for partners, an object with 4 properties is returned: total, page, offset and sub_sellers.

AttributeTypeDescription
totalint32Total number of partners that meet the filter passed in the query.
pageint32Current page related to the offset of pages.
offsetint32Total number of pages for count divided by total of partners returned in the query.
sub_sellersarrayArray of objects containing the partners.
Attention

The response within the sub_sellers array may be different depending on whether the partner is an individual or a legal entity. Below, you can see the response example for an individual and legal entity partner.

Response Object Example
{
"total": 1,
"page": 1,
"offset": 1,
"sub_sellers": [
{
"status": "active",
"sub_seller_id": "s_k4m6Rw5rlQszEY7fiuRe",
"name": "Jedi Company",
"date_created": "2025-07-07T19:26:42.779Z",
"date_updated": "2025-07-07T20:26:42.779Z",
"business_name": "Jedi Company LTDA",
"social_name": "Jedi Company",
"email": "contact@jedicompany.com",
"document": "12345678000190",
"automatic_anticipation_enabled": true,
"annual_revenue": 1000000000,
"website": "https://jedicompany.com",
"phone_number": {
"country_code": "55",
"ddd": "11",
"number": "999999999"
},
"main_address": {
"country": "BR",
"zip_code": "01234567",
"state": "SP",
"city": "São Paulo",
"neighborhood": "Centro",
"street": "Rua Jedi",
"number": "123",
"complementary": "Room 45"
},
"managing_partner": {
"name": "Luke Skywalker",
"document": "12345678900",
"birthdate": "01/01/1980",
"phone_number": {
"country_code": "55",
"ddd": "11",
"number": "988888888"
},
"address": {
"country": "BR",
"zip_code": "01234567",
"state": "SP",
"city": "São Paulo",
"neighborhood": "Centro",
"street": "Rua Jedi",
"number": "123",
"complementary": "Apt 45"
}
},
"bank_account": {
"bank": "001",
"agency": "1234",
"agency_digit": "5",
"account_number": "123456",
"account_digit": "7",
"type": "checking",
"pix": {
"type": "email",
"key": "contact@jedicompany.com"
}
}
},
]
}

Individual Partner

Response Object Example
{
"total": 1,
"page": 1,
"offset": 1,
"sub_sellers": [
{
"status": "active",
"sub_seller_id": "sub_7j8i7hj76uvg4l7bc2wo0umdt",
"name": "Luke Skywalker",
"date_created": "2025-12-30T09:44:47.215Z",
"date_updated": "2025-12-30T09:44:47.215Z",
"email": "luke@skywalker.com",
"document": "12345678909",
"automatic_anticipation_enabled": true,
"annual_revenue": 120000,
"phone_number": {
"country_code": "+55",
"ddd": "11",
"number": "987654321"
},
"address": {
"country": "BR",
"zip_code": "01310100",
"state": "SP",
"city": "Sao Paulo",
"neighborhood": "Centro",
"street": "Avenida Paulista",
"number": "1000",
"complementary": "Apt 45"
},
"bank_account": {
"bank": "341",
"agency": "1234",
"agency_digit": "5",
"account_number": "123456",
"account_digit": "7",
"type": "checking",
"pix": {
"type": "cpf",
"key": "12345678909"
}
}
}
]
}

Array SubSellers

If the query response is greater than or equal to 1, within the sub_sellers property, this is the array of objects that your application receives as a response. If the filter used does not find any partner, an empty array will be returned. The returned objects may be different depending on whether the partner is an individual or a legal entity.

AttributeTypeDescription
statusstringPartner status. Possible values: active, inactive or pending.
sub_seller_idstringPartner ID.
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.
automatic_anticipation_enabledbooleanIndicates if the receiver will receive automatic anticipations.
annual_revenueint32Estimated annual revenue of the partner.
websitestringCompany website.
phone_numberobjectPartner Phone object.
main_addressobjectPartner Main Address object.
managing_partnerobjectPartner Managing Partner object.
bank_accountobjectPartner Bank Account object.

Individual Partner

AttributeTypeDescription
statusstringPartner status. Possible values: active, inactive or pending.
sub_seller_idstringPartner ID.
namestringPartner name.
date_createddateTimePartner creation date in ISODateTime format.
date_updateddateTimePartner update date in ISODateTime format.
emailstringPartner email.
documentstringPartner CPF.
automatic_anticipation_enabledbooleanIndicates if the receiver will receive automatic anticipations.
annual_revenueint32Estimated annual revenue of the partner.
phone_numberobjectPartner Phone object.
addressobjectPartner Address object.
bank_accountobjectPartner Bank Account object.

Examples

Request
curl -X GET -G "https://api.marlim.co/v3/sub_sellers" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
Response200
{
"total": 150,
"page": 1,
"offset": 15,
"sub_sellers": [
{
"status": "active",
"sub_seller_id": "s_k4m6Rw5rlQszEY7fiuRe",
"name": "Jedi Company",
"date_created": "2026-01-15T17:36:12.546Z",
"date_updated": "2026-01-15T18:36:12.546Z",
"business_name": "Jedi Company LTDA",
"social_name": "Jedi Company",
"email": "contact@jedicompany.com",
"document": "12345678000190",
"automatic_anticipation_enabled": true,
"annual_revenue": 1000000000,
"website": "https://jedicompany.com",
"phone_number": {
"country_code": "55",
"ddd": "11",
"number": "999999999"
},
"main_address": {
"country": "BR",
"zip_code": "01234567",
"state": "SP",
"city": "São Paulo",
"neighborhood": "Centro",
"street": "Rua Jedi",
"number": "123",
"complementary": "Room 45"
},
"managing_partner": {
"name": "Luke Skywalker",
"document": "12345678900",
"birthdate": "01/01/1980",
"phone_number": {
"country_code": "55",
"ddd": "11",
"number": "988888888"
},
"address": {
"country": "BR",
"zip_code": "01234567",
"state": "SP",
"city": "São Paulo",
"neighborhood": "Centro",
"street": "Rua Jedi",
"number": "123",
"complementary": "Apt 45"
}
},
"bank_account": {
"bank": "001",
"agency": "1234",
"agency_digit": "5",
"account_number": "123456",
"account_digit": "7",
"type": "checking",
"pix": {
"type": "email",
"key": "contact@jedicompany.com"
}
}
},
{
"+9n": "..."
}
]
}