curl --request POST \
--url https://sandbox.hyperswitch.io/v2/merchant-accounts \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'X-Organization-Id: <x-organization-id>' \
--data '
{
"merchant_details": {
"primary_contact_person": "John Doe",
"primary_email": "example@company.com"
},
"merchant_name": "Cloth Store"
}
'{
"id": "y3oqhf46pyzuxjbcn2giaqnb44",
"merchant_name": "NewAge Retailer",
"publishable_key": "AH3423bkjbkjdsfbkj",
"organization_id": "org_q98uSGAYbjEwqs0mJwnz",
"recon_status": "not_requested",
"merchant_details": {
"primary_contact_person": "John Doe",
"primary_phone": "999999999",
"primary_email": "johndoe@test.com",
"secondary_contact_person": "John Doe2",
"secondary_phone": "999999988",
"secondary_email": "johndoe2@test.com",
"website": "www.example.com",
"about_business": "Online Retail with a wide selection of organic products for North America",
"address": {
"city": "New York",
"country": "AF",
"line1": "123, King Street",
"line2": "Powelson Avenue",
"line3": "Bridgewater",
"zip": "08807",
"state": "New York",
"first_name": "John",
"last_name": "Doe",
"origin_zip": "08807"
},
"merchant_tax_registration_id": "123456789",
"merchant_vat_registration_id": "GB987654321"
},
"metadata": {},
"product_type": "orchestration"
}Merchant Account
Merchant Account - Create
Create a new account for a merchant and the merchant could be a seller or retailer or client who likes to receive and send payments.
Before creating the merchant account, it is mandatory to create an organization.
POST
/
v2
/
merchant-accounts
curl --request POST \
--url https://sandbox.hyperswitch.io/v2/merchant-accounts \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'X-Organization-Id: <x-organization-id>' \
--data '
{
"merchant_details": {
"primary_contact_person": "John Doe",
"primary_email": "example@company.com"
},
"merchant_name": "Cloth Store"
}
'{
"id": "y3oqhf46pyzuxjbcn2giaqnb44",
"merchant_name": "NewAge Retailer",
"publishable_key": "AH3423bkjbkjdsfbkj",
"organization_id": "org_q98uSGAYbjEwqs0mJwnz",
"recon_status": "not_requested",
"merchant_details": {
"primary_contact_person": "John Doe",
"primary_phone": "999999999",
"primary_email": "johndoe@test.com",
"secondary_contact_person": "John Doe2",
"secondary_phone": "999999988",
"secondary_email": "johndoe2@test.com",
"website": "www.example.com",
"about_business": "Online Retail with a wide selection of organic products for North America",
"address": {
"city": "New York",
"country": "AF",
"line1": "123, King Street",
"line2": "Powelson Avenue",
"line3": "Bridgewater",
"zip": "08807",
"state": "New York",
"first_name": "John",
"last_name": "Doe",
"origin_zip": "08807"
},
"merchant_tax_registration_id": "123456789",
"merchant_vat_registration_id": "GB987654321"
},
"metadata": {},
"product_type": "orchestration"
}Authorizations
Headers
Body
application/json
Response
Merchant Account Created
Was this page helpful?