Backoffice API — Adjustments

The Adjustments API in Getnet Split Payments lets you post manual credit or debit entries to a partner's balance and query the entries already made. Use it to correct an amount that was distributed incorrectly in a split, without depending on a new transaction.

Request an Adjustment

Send a POST request to /v1/mgm/adjustment/request-adjustments to post a credit or debit entry to a partner's balance.
  1. Set the Authorization header with the access token, in the format Bearer <token>.
  2. Build the request body with the fields in the table below.
  3. Send the request and check the response code in the Check the Response Codes table, further below.

Request Fields

FieldRequiredTypeDescription
seller_idYesstringMarketplace ID (SellerId).
merchant_idYesstringMerchant establishment code (EC).
subseller_idYesintegerPartner ID.
type_adjustmentYesintegerAdjustment type: 1 (credit adjustment) or 2 (debit adjustment).
amountYesintegerTotal adjustment amount.
date_adjustmentYesstring (date-time)Adjustment date.
adjustment_motive_codeNointegerAdjustment reason code. Check the available codes in the Adjustment Reason Codes table, below.
descriptionNostringAdjustment description.

Adjustment Reason Codes

The reason names below are the API's own values, in Portuguese, and are listed here as-is.

CodeReason
1Ajuste Chargeback
2Ajuste Comissão
3Recuperação Financeira
4Vendas com outros meios de pagamento
5Reembolso
6Ajuste de Pedidos

Check Adjustment Entries

Send a GET request to /v1/mgm/adjustment/get-adjustments-entries to query the adjustment entries already recorded.
  1. Include the Authorization header with the access token, in the format Bearer <token>.
  2. Provide seller_id or merchant_id (at least one of the two is required), plus the search period.
  3. Use subseller_id or adjustment_entry_id to filter the result, if needed.
  4. Check the response code in the Check the Response Codes table, further below.

Query Parameters

ParameterRequiredTypeDescription
seller_idConditionalstringMarketplace ID (SellerId). Required if merchant_id isn't provided.
merchant_idConditionalstringMerchant establishment code (EC). Required if seller_id isn't provided.
subseller_idNostringPartner ID.
adjustment_entry_idNointegerEntry ID.
adjustment_entry_date_startYesstringSearch period start date.
adjustment_entry_date_endYesstringSearch period end date.
The maximum search period is 30 days when subseller_id is provided, and 2 days when it isn't. If adjustment_entry_date_start is missing, or the period exceeds the maximum, the API returns a 400 with status_code 9002 or 9008, respectively. The response returns the seller's total credits and debits and, for each partner found, the list of entries with their respective amounts.

Check the Response Codes

CodeMeaning
200Success.
400Invalid request.
401Access denied.
403Forbidden (only on Check Adjustment Entries).
404Not found.
500Internal server error.

Together, these two calls cover posting and tracking manual adjustments to each partner's balance. Always validate the result using the response codes above.

Next Steps

  1. Balance API: check the partner's balance after applying an adjustment.
  2. Balance Management: see the overview of releases, adjustments, and refunds.