Skip to main content
This tutorial walks through creating a merchant application and configuring a PayLo discount rate from scratch. By the end, the application will have a complete business profile, banking details, and a custom PayLo rate — ready to send for merchant signature. Each step includes a sample request and links to the full API reference for that endpoint.

Prerequisites

  • A valid API key — pass it as Api-Key <your-api-key> in every Authorization header
  • Base URL: https://api.payhub.com
See Quickstart for API access setup.

Overview

  1. Create the application
  2. Add DBA address
  3. Add legal address
  4. Add mailing address
  5. Find the managing director
  6. Update the principal
  7. Add deposit information
  8. Find the PayLo pricing template
  9. Create a pricing package
  10. Find the PayLo discount rule
  11. Set the PayLo rate
  12. 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 ApplicationPOST /v1/crm/leads
The response includes an id 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 AddressPOST /v1/crm/leads/{leadId}/business-addresses
4

Add mailing address

Add the merchant’s mailing address.Endpoint: Add Application Business AddressPOST /v1/crm/leads/{leadId}/business-addresses
5

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 PrincipalsGET /v1/crm/leads/{leadId}/principals
6

Update the principal

Populate the managing director’s identity, contact, and ownership details.Endpoint: Update Application PrincipalPUT /v1/crm/leads/{leadId}/principals/{principalId}
7

Add deposit information

Provide the ACH funding account details for merchant deposits.Endpoint: Create Application Deposit InfoPOST /v1/crm/leads/{leadId}/deposit-info
8

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 TemplatesGET /v1/crm/pricing-templates
9

Create a pricing package

Attach the PayLo template to the application as a pricing package.Endpoint: Create Application Pricing PackagePOST /v1/crm/leads/{leadId}/pricing-packages
The response should include "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 RulesGET /v1/crm/leads/{leadId}/pricing-rules
11

Set the PayLo rate

Update the PayLo discount rule with the desired percentage rate.Endpoint: Update Application Pricing RulePUT /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 ReviewPUT /v1/crm/leads/{leadId}/submit/{reviewer}
The response should include "status": "review".

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.