Getnet DocsGetnet Docs

Configure Merchant OpenFinance

POST/dpm/pix/v1/merchants/openfinance

__Configure Merchant OpenFinance__<br><br> This endpoint sets up and manages a merchant (seller) in the Getnet Open Finance PIX ecosystem. A single endpoint handles all maintenance operations for the merchant. The `operation` field in the request body determines which one runs.<br><br> **Notes:**<br> - This documentation covers the `assets` and `domain` operations, which apply to the Biometric PIX flow.<br> - Operations are synchronous. A successful call returns `204 No Content` with no response body.<br> - There is no webhook associated with this endpoint.

Header Parameters

x-seller-idstringrequired

Unique identifier of the commercial establishment (seller) registered on the Getnet platform.

usernamestring

User who is registering. This information can be used for audit purposes.

Body application/json

operation"assets" | "domain"required

Operation to run. - `assets`: update the visual assets shown during the Biometric PIX journey. - `domain`: update the merchant's redirect domain.

payloadobject

Operation data. The expected schema depends on `operation`.

Show payload properties
url_logostring<uri>

Public URL of the merchant's logo image. Must be reachable without authentication.

primary_colorstring

Primary color, in hexadecimal format.

secondary_colorstring

Secondary color, in hexadecimal format.

url_fontstring<uri>

Google Fonts CSS link used to load the font with its weight and style variants.

name_fontstring

Merchant's typeface family name.

Response

Operation completed successfully. The response has no body, the HTTP status is the only confirmation.

Invalid request. Check required fields, formats, and accepted values.

statusCodeinteger

HTTP status code of the error.

errorstring

Short HTTP error name.

messagestring

Detailed error message.

Invalid credentials or expired token. Generate a new access token.

statusCodeinteger

HTTP status code of the error.

errorstring

Short HTTP error name.

messagestring

Detailed error message.

Resource not found; for example, the seller_id does not exist or is not enabled for PIX.

statusCodeinteger

HTTP status code of the error.

errorstring

Short HTTP error name.

messagestring

Detailed error message.

Internal server error, or a failure communicating with the pix-openfinance-merchant-adp adapter. Retry with exponential backoff; contact Getnet support if it persists.

statusCodeinteger

HTTP status code of the error.

errorstring

Short HTTP error name.

messagestring

Detailed error message.

Request
curl -X POST "https://api.pre.globalgetnet.com/dpm/pix/v1/merchants/openfinance" \
  -H "Content-Type: application/json" \
  -H "x-seller-id: <x-seller-id>" \
  -H "username: <username>" \
  -d '{
  "operation": "assets",
  "payload": {
    "url_logo": "https://resources.linaopenx.com.br/fa_getnet_completo_r",
    "primary_color": "#FF0000",
    "secondary_color": "#FFFFFF",
    "url_font": "https://fonts.googleapis.com/css2?family=Amaranth:ital",
    "name_font": "Roboto"
  }
}'
Response
(no body)