Onboarding API — PJ

Onboarding Subseller in Getnet Split Payments lets a marketplace register legal-entity (PJ) partners, so Getnet knows where to direct each partner's share of a split payment. A partner's registration stores the company's data, address, bank account, and commission rules, and must exist before Getnet can include that partner in any split transaction.

Before registering a partner through the API, confirm that your marketplace itself is already accredited with Getnet. This accreditation is a manual process, handled directly with Getnet, and is a prerequisite for every endpoint below.

Verify Whether the Partner Already Exists

Before registering a partner, check whether their CNPJ is already registered under your marketplace. Partners can also register directly through Getnet's Portal Minha Conta, so this check avoids a creation call being rejected for duplication.

  1. Send a GET request to /v2/mgm/pj/consult/{merchant_id}/{cnpj}, replacing merchant_id with your marketplace's identification number at Getnet (EC, Merchant Establishment) and cnpj with the partner's CNPJ.
  2. Include the Authorization header with the access token, in the format Bearer <token>.
  3. Check the response code:
    • 200: the partner is already registered. The response body returns the partner's current data inside an array.
    • 206: no eligible registration was returned for that CNPJ. Rejected, declined, or de-accredited registrations may not appear in this query and may be handled later as a retry or reuse. Continue at Create the Partner's Pre-Registration.
    • 400, 401, 404, 500: see Check the Response Codes, further below.

CNPJ Format

cnpj must have 14 positions. Both formats are accepted:
  • Numeric: 14 digits.
  • Alphanumeric: the first 8 positions and the next 4 can be letters or numbers. The last 2 positions (check digits) must be numeric. Letters are automatically normalized to uppercase.

In both formats, the relationship between a headquarters and its branches is kept through the CNPJ's root digits.

Create the Partner's Pre-Registration

Send a POST request to /v2/mgm/pj/create-presubseller with the partner's registration data.
  1. Set the Authorization header with the access token, in the format Bearer <token>.
  2. Build the request body with the required fields listed in the table below.
  3. Send the request and check the response code in the Check the Response Codes table, further below.

Required Fields

FieldTypeRules
merchant_idstringDigits only. Your marketplace's identification number at Getnet (EC).
legal_document_numberstringThe partner's CNPJ. ATIVA status with the Federal Revenue Service is a business rule. The endpoint doesn't query the Federal Revenue Service directly in this flow. See CNPJ Format, above.
legal_namestringCorporate name, as registered with the Federal Revenue Service. Avoid special characters, accents, or abbreviations.
trade_namestringTrade name. Can't be empty. Avoid accented characters.
state_fiscal_document_numberstringState registration number. Digits only, or "ISENTO" if the company is exempt.
emailstringValid email format. No accents or special characters. The domain can't be @getnet or @santander.
business_addressobjectSee Address Rules, further below.
bank_accountsobjectSee Bank Account Rules, further below. Payments are only made to a bank account under the same CNPJ registered with Getnet.
payment_planintegerMust match a plan returned by List the Available Payment Plans.
accepted_contractstringMust be "S". Although the field accepts "N", the registration only proceeds with "S".
phone or cellphoneobjectAt least one of the two is required. See Phone Rules, further below. cellphone is required if the partner will use Anticipation.

Optional Fields

FieldTypeNotes
business_entity_typeintegerLegal nature code from the CNPJ record. 4 digits.
economic_activity_classification_codeintegerMain CNAE code from the CNPJ record. 6 or 7 digits.
monthly_gross_incomenumberMonthly revenue, or projected revenue if the company has no registered year. Must be greater than R$100.00.
billing_valuenumberAnnual revenue, or projected revenue. Must be greater than R$100.00. Required for Anticipation.
billing_datestring (date-time)
federal_registration_statusstringOne of: "ATIVO", "SUSPENSO", "INAPTO", "DESATIVADO", "ANULADO".
founding_datestring (date-time)Must be after 01/01/1900 and can't be a future date.
identification_documentobjectNIRE document data.
legal_representativeobjectThe partner's legal representative.
shareholdersarrayThe partner's shareholders (individual or legal entity).
list_commissionsarraySee Commission Rules, further below.
marketplace_storestring"S" or "N".
automatic_anticipationstring"S" or "N".
list_centralizerarray of stringsList of centralized ECs linked to the centralizing EC given in merchant_id.
subsellerid_extstringConditionally required or prohibited, depending on the marketplace's configuration. Required for marketplaces that use a sales plugin. It must not be sent by the others.

Phone Rules

  • Mobile: 9 digits, with the first digit being 9 for most area codes (DDDs). DDDs 41, 46, 47, 48, 49, 51, 53, 54, 55, 61, 62, 64, 65, 66, 67, 68, and 69 have their own rules.
  • Landline: 8 digits, with the first digit 2, 3, 4, or 5. The DDD must appear on ANATEL's list.

Address Rules

  • street can't be empty or null.
  • number must contain digits only, if provided. Use 0 or null if the address has no number.
  • postal_code must be a valid CEP (postal code).
  • city, state, and district are required.
  • suite is also part of the address object (e.g. apartment or unit number).

Bank Account Rules

  • type_accounts distinguishes a single bank account (unique_account) from brand-specific accounts (custom_accounts). Send only the object that matches type_accounts; never send unique_account and custom_accounts together.
  • unique_account: account_type, bank (bank code), agency, agency_digit, account, account_digit.
  • custom_accounts: an array with at least one item, with the same fields as unique_account, plus brand (e.g. "Mastercard").

Commission Rules

  • brand, product, and payment_plan are required.
  • Set commission_percentage or commission_value, not both. If commission_percentage is greater than 0, commission_value must be 0 or null.
  • commission_percentage accepts values between 0.00 and 100.00. commission_value must be 0.00 or greater.

List the Available Payment Plans

Send a GET request to /v2/mgm/pj/consult/paymentplans/{merchant_id} to get the payment plans available for your marketplace. Use the returned paymentplan_id values when setting payment_plan in Create the Partner's Pre-Registration.

Check the Partner's Registration Status

Send a GET request to /v2/mgm/pj/consult/{merchant_id}/{cnpj} to check a partner's current status at any time, using the same call described in Verify Whether the Partner Already Exists.
A callback variant is also available at /v2/mgm/pj/callback/{merchant_id}/{cnpj}, which returns the data inside an array and may include additional report information.

Update the Partner's Registration

Send a PUT request to /v2/mgm/pj/update-subseller with the fields you want to change. Only merchant_id, subseller_id, and legal_document_number are required. The remaining fields follow the same rules as Create the Partner's Pre-Registration and only need to be sent if they're being changed.

De-Accredit the Partner

Send a POST request to /v2/mgm/pj/de-accredit/{merchant_id}/{subseller_id} to de-accredit a partner, replacing subseller_id with the partner's identifier.

Check the Response Codes

CodeMeaning
200Success.
206No eligible registration returned (query only). Rejected, declined, or de-accredited registrations may not appear.
400Invalid request.
401Access denied.
404Not found.
500Internal server error.

These calls cover the legal-entity partner's full lifecycle, from initial verification to de-accreditation. Always validate the result using the response codes above.

Next Steps

  1. Onboarding API — PF: the same flow for individual partners.
  2. Payment Acceptance: see how to process sales once the partner is registered.