Show UR
Show UR in Getnet Split Payments lets you query a partner's URs (Receivable Units), grouped by date and card brand, and check whether a specific item can still be canceled before requesting the cancellation. Both queries help confirm a partner's receivables position and avoid rejected cancellation calls.
Note: In this API,SellerIdidentifies the marketplace (the platform) andSubSellerIdidentifies the partner (the store). This naming differs from the rest of this documentation, where "seller" usually refers to the partner.
Check the UR Summary by Date and Card Brand
Use this query to get a partner's UR amounts, totaled by date and card brand, within a period.
- Send a GET request to
/v1/mgm/show-ur/summary. - Include the required parameters in the query string, as shown in the table below.
- Check the response code in the Check the Response Codes table, further down.
Query Parameters
| Parameter | Type | Rules |
|---|---|---|
SellerId | string | Required. Marketplace identifier. Must be a valid UUID. |
SubSellerId | integer | Required. Partner (store) identifier. Must be greater than 0. |
StartDate | string (date) | Required. Start date of the period, in YYYY-MM-DD format. Cannot be 0001-01-01. |
EndDate | string (date) | Required. End date of the period, in YYYY-MM-DD format. Cannot be 0001-01-01 or exceed 30 days after StartDate. |
Response Fields
The response fields follow the terminology used in this guide (lien, anticipation).
| Field | Description |
|---|---|
merchantId | Merchant establishment code (EC). |
brandCard | Numeric code for the card brand. |
gravameAmount | Amount subject to lien (a receivables block via a local clearing chamber). Doesn't apply outside Brazil. |
anticipationAmount | Amount related to an anticipation (for example, via Receba-Já). |
freeTotalAmount | Amount free of lien or anticipation. |
Example Response
The example below shows the response for the request
GET /v1/mgm/show-ur/summary?SellerId=71422ada-4cf1-4e95-99dd-a0026eb35111&SubSellerId=81&StartDate=2024-03-15&EndDate=2024-04-14.{
"sellerId": "71422ada-4cf1-4e95-99dd-a0026eb35111",
"subSellerId": 81,
"startDate": "2024-03-15T00:00:00",
"endDate": "2024-04-14T00:00:00",
"merchantId": 281534,
"summaryBrandCardDay": [
{ "brandCard": 1, "date": "2024-03-27T00:00:00", "gravameAmount": 0, "anticipationAmount": -1.35, "freeTotalAmount": 0 },
{ "brandCard": 1, "date": "2024-03-28T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": -0.27 },
{ "brandCard": 1, "date": "2024-04-01T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 45.96 },
{ "brandCard": 1, "date": "2024-04-05T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 107.44 },
{ "brandCard": 3, "date": "2024-04-05T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 342.43 },
{ "brandCard": 1, "date": "2024-04-08T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 157.36 },
{ "brandCard": 3, "date": "2024-04-08T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 849.98 },
{ "brandCard": 3, "date": "2024-04-10T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 52.56 },
{ "brandCard": 1, "date": "2024-04-10T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 26.28 }
],
"summaryDay": [
{ "date": "2024-03-27T00:00:00", "gravameAmount": 0, "anticipationAmount": -1.35, "freeTotalAmount": 0 },
{ "date": "2024-03-28T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": -0.27 },
{ "date": "2024-04-01T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 45.96 },
{ "date": "2024-04-05T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 449.87 },
{ "date": "2024-04-08T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 1007.34 },
{ "date": "2024-04-10T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 78.84 }
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"sellerId": "71422ada-4cf1-4e95-99dd-a0026eb35111",
"subSellerId": 81,
"startDate": "2024-03-15T00:00:00",
"endDate": "2024-04-14T00:00:00",
"merchantId": 281534,
"summaryBrandCardDay": [
{ "brandCard": 1, "date": "2024-03-27T00:00:00", "gravameAmount": 0, "anticipationAmount": -1.35, "freeTotalAmount": 0 },
{ "brandCard": 1, "date": "2024-03-28T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": -0.27 },
{ "brandCard": 1, "date": "2024-04-01T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 45.96 },
{ "brandCard": 1, "date": "2024-04-05T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 107.44 },
{ "brandCard": 3, "date": "2024-04-05T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 342.43 },
{ "brandCard": 1, "date": "2024-04-08T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 157.36 },
{ "brandCard": 3, "date": "2024-04-08T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 849.98 },
{ "brandCard": 3, "date": "2024-04-10T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 52.56 },
{ "brandCard": 1, "date": "2024-04-10T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 26.28 }
],
"summaryDay": [
{ "date": "2024-03-27T00:00:00", "gravameAmount": 0, "anticipationAmount": -1.35, "freeTotalAmount": 0 },
{ "date": "2024-03-28T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": -0.27 },
{ "date": "2024-04-01T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 45.96 },
{ "date": "2024-04-05T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 449.87 },
{ "date": "2024-04-08T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 1007.34 },
{ "date": "2024-04-10T00:00:00", "gravameAmount": 0, "anticipationAmount": 0, "freeTotalAmount": 78.84 }
]
}
summaryBrandCardDay returns one item per card brand and date. summaryDay returns the total consolidated by date, summed across all card brands. For example, on 2024-04-05, 107.44 (brand 1) plus 342.43 (brand 3) add up to the consolidated 449.87. StartDate and EndDate are sent as date-only (YYYY-MM-DD), but the response echoes these and the other date fields as full date-times.Check Whether an Item Can Be Canceled
Use this query before requesting an item's cancellation to confirm it's still in a status that allows cancellation.
- Send a GET request to
/v1/mgm/show-ur/cancel-permission. - Include the required parameters in the query string, as shown in the table below.
- Check the
cancelPermissionfield in the response:truemeans the item can be canceled.
Query Parameters
| Parameter | Type | Rules |
|---|---|---|
OrderId | string | Required. Order identifier. Up to 255 characters. |
OrderItemId | string | Required. Order item identifier. Up to 25 characters. |
SellerId | string | Required. Marketplace identifier. Must be a valid UUID. |
SubSellerId | integer | Required. Partner (store) identifier. Must be greater than 0. |
Amount | integer | Required. Amount of the item to be canceled, in cents. Example: 150 equals R$ 1.50. |
Business Rules
The query returns an error (code 422, with an
errorCode and errorMessage) when:- The item already has a registered cancellation date.
- The transaction status isn't any of the codes listed in the Transaction Status Codes table below (an unrecognized code, not just "not approved").
- The transaction status is in the table below, but isn't Aprovado (code
00). - External cancellation validation doesn't allow the amount provided for the item.
Since only status
00 allows cancellation, every other status in the table below is denied the same way. The table serves to validate whether the code is recognized, not to indicate a different action per status.Transaction Status Codes
| Code | Status |
|---|---|
| 00 | Aprovado |
| 70 | Aguardando |
| 77 | Pendente |
| 78 | Pendente Pagamento |
| 83 | Timeout |
| 86 | Desfeita |
| 90 | Inexistente |
| 91 | Negado Administradora |
| 92 | Estornada |
| 93 | Repetida |
| 94 | Estornada Conciliação |
| 98 | Cancelada Sem Confirmação |
| 99 | Negado Gestão MarketPlace |
Example Response
The API returns
justification in English, as shown below.{
"justification": "Amount can be canceled.",
"cancelPermission": true
}
1
2
3
4
{
"justification": "Amount can be canceled.",
"cancelPermission": true
}
Check the Response Codes
| Code | Meaning |
|---|---|
| 200 | Success. |
| 204 | No content found for the given parameters. |
| 400 | Invalid request. |
| 422 | Business validation error. |
A 422 response returns a list of errors, each with an
errorCode and an errorMessage, reproduced below exactly as returned by the API:[
{
"errorCode": "SUR-0013",
"errorMessage": "It is not possible to cancel a transaction that has already been canceled."
}
]
1
2
3
4
5
6
[
{
"errorCode": "SUR-0013",
"errorMessage": "It is not possible to cancel a transaction that has already been canceled."
}
]
An error not handled by the system (for example, a connection failure) returns a body in RFC 9457 format, with the fields
Title, Status, Detail, and Instance.Treat the RFC 9457 format as an indication of an infrastructure failure, not a validation response: for business errors, use the
errorCode/errorMessage list from the 422 code above.Next Steps
- Rejected Payments: search for payments that were rejected.
- Settlement: see the overview of how and when each seller gets paid.
On this page
Show UR