You can easily create a submerchant with our API endpoint 'create_merchant'. An example of this can be found here.
TIP You can open the file with notepad, if you do not have an editor for viewing source code.
When you run the code you're presented with the following input form:
If you're unsure how to fill in the form, please refer to the table below:
Request parameter names are written in italic
|CVR/SE/VAT (CompanyVAT)||The CVR/SE/VAT number of the merchants company.|
|Name of Merchant (CompanyName)||The company name of the merchant.|
|Address (CompanyAddress)||The address of the company.|
|Postal code (CompanyPostal)||The postal code of the companys city or district.|
|City (CompanyCity)||City of the company.|
|Company Phone (CompanyPhone)||Phone number of the contact person.|
|Combined MerchantID (merchantidCombined)||If you wish to link this merchant to another as a sub, then provide the merchantid of the master account to link with.|
|Contact name (PersonalName)||The name of the contact person|
|Merchant Email (PersonalEmail)||The Email address of the contact person|
|Merchant Comments (MerchantComments)||Should always be ChainedPayments when using this code.|
When you submit, you will get a JSON response with the following data:
|success||'1' if the call succeeded, '0' if it failed.|
|merchantid||The merchantid of the created merchant.|
|prod_merchantid||Will always be '0' as you need to go through Yourpays onboarding process to receive a production merchantid.|
|user_id||User id of the merchant. Used in various API calls|
|username||This is the username the merchant should use to login to our admin portal.|
|pwd||The assigned password for the merchant|
The comments about the merchant that you input in the form.
|token||The merchant token. You need this if you're using our plugins. It can also be found by logging into our admin portal with username & password.|