Prerequisites
- A valid API key — pass it as
Api-Key <your-api-key>in everyAuthorizationheader - Base URL:
https://api.payhub.com
Overview
- Create the application
- Add DBA address
- Add legal address
- Add mailing address
- Find the managing director
- Update the principal
- Add deposit information
- Find the PayLo pricing template
- Create a pricing package
- Find the PayLo discount rule
- Set the PayLo rate
- Submit for signature
Steps
1
Create the application
Create the initial application record. All subsequent data — addresses, principals, pricing, and banking — attaches to this record.Endpoint: Create Application — The response includes an
POST /v1/crm/leadsid field. Use this value as {leadId} in all subsequent steps.2
Add DBA address
Add the merchant’s primary business (DBA) address.Endpoint: Add Application Business Address —
POST /v1/crm/leads/{leadId}/business-addresses3
Add legal address
Add the merchant’s registered legal address.Endpoint: Add Application Business Address —
POST /v1/crm/leads/{leadId}/business-addresses4
Add mailing address
Add the merchant’s mailing address.Endpoint: Add Application Business Address —
POST /v1/crm/leads/{leadId}/business-addresses5
Find the managing director
Retrieve the principals on the application and note the
id of the principal where isManagingDirector is true. Use this as {principalId} in the next step.Endpoint: List Application Principals — GET /v1/crm/leads/{leadId}/principals6
Update the principal
Populate the managing director’s identity, contact, and ownership details.Endpoint: Update Application Principal —
PUT /v1/crm/leads/{leadId}/principals/{principalId}7
Add deposit information
Provide the ACH funding account details for merchant deposits.Endpoint: Create Application Deposit Info —
POST /v1/crm/leads/{leadId}/deposit-info8
Find the PayLo pricing template
List available merchant pricing templates and note the
id of the template named PayLo. Use it as {templateId} in the next step.Endpoint: List Pricing Templates — GET /v1/crm/pricing-templates9
Create a pricing package
Attach the PayLo template to the application as a pricing package.Endpoint: Create Application Pricing Package — The response should include
POST /v1/crm/leads/{leadId}/pricing-packages"status": "active".10
Find the PayLo discount rule
List the pricing rules on the application. Find the rule where
item.key is "DISCOUNT-PAYLO" and note its id and pricingItemId. Use these as {pricingRuleId} and {pricingItemId} in the next step.Endpoint: List Application Pricing Rules — GET /v1/crm/leads/{leadId}/pricing-rules11
Set the PayLo rate
Update the PayLo discount rule with the desired percentage rate.Endpoint: Update Application Pricing Rule —
PUT /v1/crm/leads/{leadId}/pricing-rules/{pricingRuleId}12
Submit for signature
Submit the completed application for merchant review and e-signature. A signing email is sent to the managing director’s address from step 6.Endpoint: Submit Application for Review — The response should include
PUT /v1/crm/leads/{leadId}/submit/{reviewer}"status": "review".Related resources
Applications Overview
Full reference for the application lifecycle, status pipeline, and all available sub-resources.
Pricing Reference
Pricing packages, items, and rules — how they relate and what fields are available.
Boarding a Merchant
Conceptual walkthrough of the complete merchant boarding lifecycle.
List Pricing Templates
Browse all available pricing templates, including PayLo.
