🚧 This project is currently in active development. A sandbox environment will be made available soon for testing and exploration. Stay tuned!
"create".isPartner is true.true for delivery partners, false for merchants. If true, storeId must not be present.storeId but a new merchantId will be created.+441234567890.UK, Ireland, NZ, Australia, US, Canada, Mexico.true means the provided email denotes ownership; if false and you try to associate the same email to another owner, an error is thrown.77 (O2M) or 278 (BigTable). If left blank, defaults to normal merchant.action = "create" is accepted by this endpoint for merchant creation.storeId and returns/creates a new merchantId.isPartner: true (delivery partner), do not pass storeId.changeOfownership controls ownership enforcement — setting it to true marks the email as owner; setting to false and attempting re-association will raise an error.organisationTypeEnum.trustTypeEnum.http:// or https:// URL.ownerTitle.nationalities.YYYY-MM-DD.GB + 9 digits and pass checksum validation.curl --location --request POST 'https://sandbox-portal-api.datmancrm.com/merchants/sandbox/api/v1/merchants/merchant-associationV2' \
--header 'api_key: {{PLATFORM_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"storeId": "{{store_id}}",
"email": "{{merchant_email}}",
"phoneNumber": "{{phone_number_with_country_code}}",
"country": "{{country_code}}", // UK | Ireland | NZ | Australia | US | Canada | Mexico
"firstName": "{{first_name}}",
"lastName": "{{last_name}}",
"businessName": "{{business_name}}",
"changeOfownership": {
{true_or_false
}
}, // true = ownership, false = error if reused
"isReseller": {
{true_or_false
}
},
"action": "create",
"isPartner": {
{true_or_false
}
}, // true = delivery partner (omit storeId), false = merchant
"resellerId": "{{reseller_id_optional}}",
"bankDetails": {
"accountName": "{{account_name}}",
"bankSortCode": "{{bank_sort_code}}",
"ibanNumber": "{{iban_number}}",
"bsbNumber": "{{bsb_number}}",
"transitNumber": "{{transit_number}}",
"financialInstitutionNumber": "{{financial_institution_number}}",
"routingNumber": "{{routing_number}}",
"accountNumber": "{{account_number}}",
"bankName": "{{bank_name}}",
"address": {
"addressLine1": "{{bank_address_line1}}",
"addressLine2": "{{bank_address_line2}}"
}
},
"businessDetails": {
"businessType": "{{business_type}}",
"companyRegistrationNumber": "{{company_registration_number}}",
"organisationType": "{{organisation_type}}",
"trustType": "{{trust_type}}",
"address": {
"addressLine1": "{{business_address_line1}}",
"addressLine2": "{{business_address_line2}}",
"state": "{{business_state}}",
"city": "{{business_city}}",
"county": "{{business_county}}",
"country": "{{business_country}}",
"postCode": "{{business_postcode}}"
},
"contact": {
"phoneNumber": "{{business_contact_number}}",
"email": "{{business_contact_email}}",
"website": "{{business_website}}"
}
},
"ownerDetails": {
"title": "{{owner_title}}",
"firstName": "{{owner_first_name}}",
"lastName": "{{owner_last_name}}",
"citizenship": "{{owner_citizenship}}",
"dateOfBirth": "{{owner_dob}}", // format YYYY-MM-DD
"abnNumber": "{{owner_abn_number}}",
"einNumber": "{{owner_ein_number}}",
"ssnNumber": "{{owner_ssn_number}}",
"personalId": "{{owner_personal_id}}",
"ppsNumber": "{{owner_pps_number}}",
"vatNumber": "{{owner_vat_number}}",
// "irdNumber": "{{owner_ird_number}}",
"vatExists": {
{true_or_false
}
},
"address": {
"addressLine1": "{{owner_address_line1}}",
"addressLine2": "{{owner_address_line2}}",
"state": "{{owner_state}}",
"county": "{{owner_county}}",
"city": "{{owner_city}}",
"country": "{{owner_country}}",
"postCode": "{{owner_postcode}}"
},
"contact": {
"phoneNumber": "{{owner_contact_number}}",
"email": "{{owner_contact_email}}"
}
},
"tradingDetails": {
"name": "{{trading_name}}",
"address": {
"addressLine1": "{{trading_address_line1}}",
"addressLine2": "{{trading_address_line2}}",
"state": "{{trading_state}}",
"city": "{{trading_city}}",
"county": "{{trading_county}}",
"country": "{{trading_country}}",
"postCode": "{{trading_postcode}}"
}
},
"businessDealDetails": {
"setupFee": "{{setup_fee}}",
"monthlyRent": "{{monthly_rent}}",
"contractDurationMonths": "{{contract_duration_months}}",
"fixedTransactionFee": "{{fixed_transaction_fee}}",
"interchangeRate": "{{interchange_rate}}"
}
}'{
"message": "New Merchant association is successfull!",
"merchantId": "{{merchant_id}}",
"account_verification_status": false,
"bank_verification_status": false,
"email": "{{email}}",
"responseCode": 1001
}