Endpoint
POST https://api.digitzs.com/merchants
Overview
Use this endpoint to create a new merchant account. This comprehensive onboarding process collects personal, business, and banking information required for payment processing.
Merchant accounts are created in real-time and can begin processing payments immediately upon approval.
Authentication
Header Value Required
x-api-keyYour API key Yes AuthorizationBearer {appToken}Yes appIdYour application ID Yes Content-Typeapplication/jsonYes
Request Body
Merchant account attributes
AVS mode: "Standard", "Strict", or "Disabled"
data.attributes.accountType
Account type: "personal" or "business"
data.attributes.accountName
Name for the merchant account
Optional additional metadata
data.attributes.personalInfo
Personal information for account holder Show Personal info properties
Date of birth (MM-DD-YYYY format)
Social Security Number (SSN)
data.attributes.personalAddress
data.attributes.businessInfo
Business information (required for business accounts) Show Business info properties
Employer Identification Number (EIN)
data.attributes.businessAddress
Business address (required for business accounts)
Bank account information for deposits Show Bank info properties
Name of financial institution
data.attributes.verificationData
Verification and compliance data Show Verification properties
IP address of account holder during signup
Whether email has been verified
ISO 8601 timestamp of email verification
Account holder’s signature
ISO 8601 timestamp of signature
Must be true - indicates terms acceptance
data.attributes.threatMetrixPolicy
Fraud detection policy: "Default", "Strict", or "Disabled"
data.attributes.threatMetrixSessionId
ThreatMetrix session identifier for fraud screening
Example Request
{
"data" : {
"type" : "merchants" ,
"attributes" : {
"AVS" : "Standard" ,
"accountType" : "business" ,
"accountName" : "Acme Corporation" ,
"personalInfo" : {
"firstName" : "John" ,
"lastName" : "Doe" ,
"email" : "john.doe@example.com" ,
"dayPhone" : "4155551234" ,
"eveningPhone" : "4155551234" ,
"birthDate" : "01-15-1980" ,
"socialSecurity" : "123456789"
},
"personalAddress" : {
"line1" : "123 Main Street" ,
"line2" : "Suite 100" ,
"city" : "San Francisco" ,
"state" : "CA" ,
"zip" : "94102" ,
"country" : "USA"
},
"businessInfo" : {
"businessName" : "Acme Corporation" ,
"ein" : "987654321" ,
"phone" : "4155555000" ,
"email" : "info@acme.com" ,
"url" : "https://acme.com"
},
"businessAddress" : {
"line1" : "456 Market Street" ,
"city" : "San Francisco" ,
"state" : "CA" ,
"zip" : "94102" ,
"country" : "USA"
},
"bankInfo" : {
"bankName" : "Bank of America" ,
"accountOwnership" : "business" ,
"accountType" : "checking" ,
"accountName" : "Acme Corporation" ,
"accountNumber" : "1234567890" ,
"routingNumber" : "026009593"
},
"verificationData" : {
"ipAddress" : "192.168.1.1" ,
"emailVerified" : true ,
"emailVerifiedTimestamp" : "2024-01-15T10:00:00Z" ,
"signature" : "John Doe" ,
"signatureTimestamp" : "2024-01-15T10:05:00Z" ,
"termsAccepted" : true
},
"threatMetrixPolicy" : "Default" ,
"threatMetrixSessionId" : "abc123session456"
}
}
}
Response
Success Response (201 Created)
{
"links" : {
"self" : "https://api.digitzs.com/merchants"
},
"data" : {
"type" : "merchants" ,
"id" : "merchant_abc123xyz"
}
}
Unique merchant account identifier. Use this ID for all payment processing.
Code Examples
cURL
JavaScript
Python
PHP
Ruby
curl -X POST https://api.digitzs.com/merchants \
-H "x-api-key: your-api-key" \
-H "Authorization: Bearer your-app-token" \
-H "appId: your-app-id" \
-H "Content-Type: application/json" \
-d '{
"data": {
"type": "merchants",
"attributes": {
"AVS": "Standard",
"accountType": "business",
"accountName": "Acme Corporation",
"personalInfo": { ... },
"personalAddress": { ... },
"businessInfo": { ... },
"businessAddress": { ... },
"bankInfo": { ... },
"verificationData": { ... }
}
}
}'
AVS Modes
Mode Description
StandardRequires ZIP code match for card payments StrictRequires full address match for card payments DisabledNo AVS verification required
Important Notes
Sensitive Data: This endpoint handles sensitive personal and financial information. Ensure your application uses HTTPS and follows security best practices.
Real-Time Creation: Merchant accounts are created instantly and can process payments immediately after successful creation.
Fraud Prevention: Use ThreatMetrix integration for enhanced fraud detection during merchant onboarding.
Best Practices
Validate Data: Validate all fields before submission to prevent errors
Secure Collection: Use secure forms to collect sensitive information
Email Verification: Verify email addresses before creating accounts
Terms Acceptance: Ensure users explicitly accept terms and conditions
IP Logging: Record accurate IP addresses for compliance
Test Mode: Test thoroughly in sandbox before production deployment
Next Steps
Get Merchant Details Retrieve merchant account information
Update Bank Info Update merchant bank account details