Skip to content

Merchant Creation ​

Description ​

Register merchants for the marketplace with the role Agent.

Learn more

HTTP Request ​

http
POST /marketplace/{qwqerId}/merchant

Path Parameters ​

ParameterTypeRequiredDescription
qwqerIdstringYesAgent identifier issued during marketplace registration

Request Body ​

The request body must be in JSON format and contain the following fields:

FieldTypeRequiredDescription
externalIdstringYesMerchant unique identifier in your system
namestringYesMerchant company name
linkstring (URI)NoMerchant’s website link
logoLinkstring (URI)NoLink to the merchant’s logo
emailstring (email)YesMerchant’s email (used for sending invoices and, in the future, for authorization in the admin panel)
addressFirststringNoPrimary address (street, building, district, etc.)
addressSecondstringNoAdditional address (city, postal code, country)
paymentRegistrationNumberstringNoRegistration number for payments
paymentTaxNumberstringNoTax number (e.g., VAT)
paymentAdditionalLinesarray of stringNoAdditional payment details (e.g., IBAN, SWIFT, bank, etc.)

πŸ’‘ Info

Fields addressFirst and the following ones are used when generating invoices.

Example Request Body ​

json
{
  "externalId": "1",
  "name": "SIA Example Name",
  "link": "https://example.site",
  "logoLink": "https://example.site/logo.png",
  "email": "admin@domain.com",
  "addressFirst": "Katla kalna iela 1, Latgales priekΕ‘pilsΔ“ta",
  "addressSecond": "Riga, LV-1073, Latvia",
  "paymentRegistrationNumber": "12345678901",
  "paymentTaxNumber": "LV12345678901",
  "paymentAdditionalLines": [
    "IBAN: LV01HABA1234567890123",
    "BANK: AS SWEDBANK",
    "SWIFT: HABALV22",
    "Country: Latvia"
  ]
}

Responses ​

βœ… 201 Created ​

json
{
  "message": "Merchant created successfully",
  "data": {
    "qwqerId": "112233"
  }
}

πŸ’‘ Info

Save the merchant’s qwqerId β€” it will be needed for subsequent API calls, for example when creating a Receipt.

βœ… 302 Found β€” Merchant already registered for your externalId ​

json
{
  "message": "Merchant already exists",
  "data": {
    "qwqerId": "112233"
  }
}

❌ 400 Bad Request β€” Invalid data ​

json
{
  "message": "Invalid input data"
}

Possible reasons:

  • Missing required fields
  • Invalid email or URI format

❌ 404 Not Found β€” Marketplace not found ​

json
{
  "message": "This marketplace is not registered yet"
}

Possible reasons:

  • The provided qwqerId does not match any registered marketplace
  • The marketplace with the specified qwqerId does not have permission to create merchants

Β© 2025 | SIA "QWQER EU" | qwqer.lv β„’