Skip to content

Merchant Updating Info ​

Description ​

Updating registered merchants via create_merchant.md.

πŸ’‘ Info

Agent account is impossible update via this api.

HTTP Request ​

http
PUT /marketplace/{agentQwqerId}/merchant/{merchantQwqerId}

Path Parameters ​

ParameterTypeRequiredDescription
agentQwqerIdstringYesAgent identifier issued during marketplace registration
merchantQwqerIdstringYesMerchant identifier issued during create_merchant.md

Request Body ​

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

FieldTypeRequiredDescription
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
{
  "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 ​

βœ… 202 Accepted β€” Updated ​

json
{
  "message": "Merchant updated successfully"
}

❌ 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"
}
json
{
  "message": "This merchant 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 β„’