Create merchant
Create merchant. You use this endpoint to register a merchant (store) in a marketplace using the information the merchant provides.
<b>Note:</b> Before you create merchants, you must create a Merchant program, using the Create program based on template endpoint with type set to MERCHANT. If a program of type MERCHANT is not provided, the request returns an error. By default, when a merchant is created, the Pismo platform assigns it to the first existing program of type MERCHANT in the Org. However, you have the option of specifying a program by providing its ID in the program_id field.
<b>Note:</b> When a x-marketplace-id header is provided, the merchant is automatically linked to the provided marketplace after creation.
For more information about merchants, refer to 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 created event.
Request
- Base URLhttps://sandbox.pismolabs.io/merchants
- URLhttps://sandbox.pismolabs.io/merchants/v1/merchants
- AuthHTTP bearer
Headers
Content type
Authorization token. This is a regular access token, which does not need to include an account ID.
Marketplace ID
Request body
Example request
{
"document_number": "40533164000107",
"name": "Acme Store",
"email": "test@acmecorp.com",
"brand_name": "Acme Corporation",
"municipal_registration": "737.326.648.860",
"contact": "John Doe",
"zip_code": "12345",
"number": 45,
"address": "Maple Street",
"complementary_address": "Suite 100",
"neighborhood": "Canary Wharf",
"state": "CA",
"city": "San Diego",
"country": "United States",
"area_code": "555",
"phone": "1231234",
"additional_area_code": "11",
"additional_phone": "2342345",
"program_id": 123,
"external_id": "5321",
"creditor": {
"name": "Acme Corporation",
"id": 1,
"crediting_method": "ACCOUNT",
"advancement_fee": "30.00",
"discount_rate": "0.03",
"maximum_advancement_percentage": "0.80"
},
"city_code": "3550308"
}Response
Created
Example response
{
"id": 9278,
"document_number": "40533164000107",
"name": "Acme Corporation",
"brand_name": "Acme",
"municipal_registration": "737.326.648.860",
"category": "123",
"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": 223,
"area_code": "555",
"phone": "1231234",
"additional_area_code": "11",
"additional_phone": "2342345",
"program_id": 123,
"external_code": "abc-123",
"external_id": "5324",
"city_code": "3550308",
"creditor": {
"id": 7611,
"name": "Acme Corporation",
"crediting_method": "ACCOUNT",
"account": {
"id": 2
},
"advancement_fee": "3.00",
"discount_rate": "0.025",
"maximum_advancement_percentage": "0.80"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.