Merchant

Update merchant

Update merchant by ID.

For more information about merchants, see the <a href="https://developers.pismo.io/pismo-docs/docs/seller-management-overview" target="blank">Seller management overview</a> guide.<br> This endpoint generates a Merchant updated event.

put/v1/merchants/{merchantId}

Request

  • Base URL
    https://sandbox.pismolabs.io/merchants
  • URL
    https://sandbox.pismolabs.io/merchants/v1/merchants/{merchantId}
  • Auth
    HTTP bearer

Path parameters

merchantIdinteger required
Example:1

Merchant ID

Headers

Content-Typestring
Example:application/json

Content type

Authorizationstring
Example:Bearer 1JI12J39182H39182JDIOAWJ%=

Authorization token. This is a regular access token, which does not need to include an account ID.

Request body

document_numberstring

Merchant document number. This is the government document code, such as a government-issued tax ID.

namestring required

Merchant name

brand_namestring

Merchant brand name. Note that this is different from a merchant's legal registered name. For example, <i>Great Company</i> as opposed to <i>Great Company, LLC</i> (legal entity name).

municipal_registrationstring

Merchant's municipal registration number

contactstring

Name of contact

emailstring required

Email address

zip_codestring

Postal code. This is called a zip code in the United States, but you can use other types of postal codes.

addressstring

Name of the street, avenue, or primary thoroughfare of the address

complementary_addressstring

Additional address details that help pinpoint the exact location, such as building, apartment, or floor

neighborhoodstring

Name of the neighborhood or administrative region where the address is located

statestring

Abbreviation or full name of the state, province, or administrative division

citystring

Name of the city or municipality

countrystring

Full name of the country according to international standards or local registry

numberinteger

Numerical identifier for the specific location within a street or avenue

area_codestring

Area code. The US, Canada, and certain other countries divide their telephone service into regions, which are identified by numbers called area codes. In the US, for example, area codes are 3-digit numbers.

phonestring

Phone number. Parentheses and dashes are optional.

additional_area_codestring

Additional area code (for additional_phone)

additional_phonestring

Number for an additional phone. Parentheses and dashes are optional.

external_codestring

Code for merchant category. The category is the type of business. You can use the endpoint <a href="https://developers.pismo.io/pismo-docs/reference/get_v1-businesscategories">Retrieves business categories corresponding to query parameters</a> to get a list of business categories and their external codes.

city_codestring

Official seven-digit numeric code of the city according to the IBGE (Brazilian Institute of Geography and Statistics) code table. Used only for cities in Brazil; this code is unique per city.

external_idstring

Internal ID used by client to reference a merchant in their domain.

Example request

{
  "document_number": "40533164000107",
  "name": "Acme Store",
  "brand_name": "Acme Corporation",
  "municipal_registration": "737.326.648.860",
  "contact": "John Doe",
  "email": "test@acmecorp.com",
  "zip_code": "12345",
  "address": "Maple Street",
  "complementary_address": "Suite 100",
  "neighborhood": "Canary Wharf",
  "state": "CA",
  "city": "San Diego",
  "country": "United States",
  "number": 45,
  "area_code": "555",
  "phone": "1231234",
  "additional_area_code": "11",
  "additional_phone": "2342345",
  "creditor": {
    "id": 1
  },
  "city_code": "3550308",
  "external_id": "5321"
}

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.