# Authenticate
Source: https://apidocs.synchpay.dev/api-reference/authentication/authenticate
/swagger.json post /Auth/Token
Creates a JWT token used for authentication from client credentials.
# Authenticate
Source: https://apidocs.synchpay.dev/api-reference/authentication/authenticate-1
/swagger.json post /Authentication/Token
Creates a JWT token used for authentication from client credentials.
# Add a Company Location
Source: https://apidocs.synchpay.dev/api-reference/company/add-a-company-location
/swagger.json post /Company/{companyReferenceId}/Locations
Adds a new Location to the Company
# Check company status
Source: https://apidocs.synchpay.dev/api-reference/company/check-company-status
/swagger.json get /Company/{companyReferenceId}/Status
Checks the company status
# Create a Company
Source: https://apidocs.synchpay.dev/api-reference/company/create-a-company
/swagger.json post /Company/Create
Creates a new Company from the provided details
# Create company account link
Source: https://apidocs.synchpay.dev/api-reference/company/create-company-account-link
/swagger.json post /Company/{companyReferenceId}/ExternalAuthLink
Prepares a link for company to link new accounts
# List all companies
Source: https://apidocs.synchpay.dev/api-reference/company/list-all-companies
/swagger.json get /Company/List
Returns all companies for current integration
# List Company Locations
Source: https://apidocs.synchpay.dev/api-reference/company/list-company-locations
/swagger.json get /Company/{companyReferenceId}/Locations
Returns all Locations for the Company
# Authorize a card
Source: https://apidocs.synchpay.dev/api-reference/payment/authorize-a-card
/swagger.json post /Payment/Card/Auth
Authorizes a card for a given user.
# Cancel a payment
Source: https://apidocs.synchpay.dev/api-reference/payment/cancel-a-payment
/swagger.json put /Payment/{paymentRequestId}/Cancel
Cancels a payment request created for one of the partner's companies
# Charge a saved card
Source: https://apidocs.synchpay.dev/api-reference/payment/charge-a-saved-card
/swagger.json post /Payment/ChargeSavedCard
Creates a payment request for a registered customer and charges a saved card payment method
# Create a payment
Source: https://apidocs.synchpay.dev/api-reference/payment/create-a-payment
/swagger.json post /Payment/Create
Creates a new payment for a given user
# Create a payment refund
Source: https://apidocs.synchpay.dev/api-reference/payment/create-a-payment-refund
/swagger.json post /Payment/Refund/{paymentRequestId}
Creates a refund for previous payment
# Create a recurring payment
Source: https://apidocs.synchpay.dev/api-reference/payment/create-a-recurring-payment
/swagger.json post /Payment/Recurring
Creates a new recurring payment plan for one of the partner's companies
# Get payment status
Source: https://apidocs.synchpay.dev/api-reference/payment/get-payment-status
/swagger.json get /Payment/{paymentRequestId}/Status
# List saved card payment methods
Source: https://apidocs.synchpay.dev/api-reference/payment/list-saved-card-payment-methods
/swagger.json get /Payment/CardPaymentMethods/{registrationId}
Returns saved card payment methods for a registered customer
# Register card payment
Source: https://apidocs.synchpay.dev/api-reference/payment/register-card-payment
/swagger.json post /CardPayment
Registers a new card payment for a given company
# Check user status
Source: https://apidocs.synchpay.dev/api-reference/user/check-user-status
/swagger.json get /User/{registrationId}/Status
Returns the status of user onboarding process
# Get user's debit authorization
Source: https://apidocs.synchpay.dev/api-reference/user/get-users-debit-authorization
/swagger.json get /User/{registrationId}/DebitAuth
Returns user's debit authorization with amount and status
# Register a new user
Source: https://apidocs.synchpay.dev/api-reference/user/register-a-new-user
/swagger.json post /User/Register
Prepares system for a new user onboarding
# Request new debit authorization
Source: https://apidocs.synchpay.dev/api-reference/user/request-new-debit-authorization
/swagger.json post /User/{registrationId}/DebitAuth
Sends a new request to user for enabling debit authorization
# Dental Integrations
Source: https://apidocs.synchpay.dev/integrations/dentalPlatforms
We integrate with several of the leading dental software platforms.
SynchPay can help streamline your operations by integrating directly with your dental EMR software. The integration process is universally simple, but the implementation is slightly different depending if it's hosted on-premise or in the cloud.
### Supported EMRs
| **EMR** | **Edition** |
| --------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| Athenahealth | All (cloud) |
| Cloud9 | All (cloud) |
| Curve Hero | All (cloud) |
| Denticon | All (cloud) |
| [Dentrix (on-prem)](https://intercom.help/synchpay/en/articles/11787023-setting-up-a-dentrix-integration) | G6.2+ |
| [Dentrix Ascend](https://intercom.help/synchpay/en/articles/11638669-dentrix-ascend) | All (cloud) |
| Dentrix Enterprise | All (server) |
| Dolphin | All local (server only) |
| Eaglesoft | 18+ (server) |
| eClinicalWorks | v11.53+ (cloud) |
| Modernizing Medicine (ModMed) | All (cloud) |
| Open Dental | v17+ (server) |
| NextGen Office | All (cloud) |
| OrthoTrac | All local (server only) |
| PracticeWorks | All local (server only) |
Please contact the SynchPay team to get started with the integration process.
# Overview of Integrations
Source: https://apidocs.synchpay.dev/integrations/index
SynchPay's integrations and how to get started
SynchPay integrates with many of the tools your business already uses, and is constantly adding new partners. We currently offer white-glove onboarding and support for all integrations - [contact the SynchPay team](mailto:support@synchpay.com) to get started.
Check out our[ feature requests board](https://synchpay.canny.io/feature-requests) if there's an integration you think we should add!
## Common Software
* [Mindbody](/integrations/mindbody)
* [Quickbooks](https://intercom.help/synchpay/en/articles/10225224-quickbooks-and-universal-accounting-export)
## [Dental Practice Management Software](/integrations/dentalPlatforms)
* athenahealth
* Cloud9
* Curve Hero
* Denticon
* Dentrix
* Dentrix Ascend
* Dentrix Enterprise
* Dolphin
* Eaglesoft
* eClinicalWorks
* Modernizing Medicine (ModMed)
* Open Dental
* OrthoTrac
* PracticeWorks
* NextGen Office
# Integrating with Mindbody
Source: https://apidocs.synchpay.dev/integrations/mindbody
Reach out to the SynchPay team directly to get started with Mindbody
SynchPay offers a seamless Mindbody integration where you won't have to do anything other than click a different button at checkout. Reach out to the SynchPay team to get set up with our Mindbody integration. You can find some more information [here](https://intercom.help/synchpay/en/articles/10203538-integrating-with-mindbody).
# SynchPay Overview
Source: https://apidocs.synchpay.dev/introduction
Get started with the new way to pay
## The Future of Payments
SynchPay revolutionizes instant payments in the U.S., making it easier for users and businesses to process transactions efficiently and securely. Powered by account-to-account transfers, SynchPay eliminates the need for credit or debit cards, providing a cost-effective payment solution.
We enable businesses to request payments from consumers seamlessly through iFrame tokenization. This method ensures that applications can request funds from any account linked to their users through app-level registrations, mirroring the experience of traditional payment methods.
Get started with your SynchPay integration, and add payments to your app in just a few minutes.
We also have a [Postman collection available here](https://gist.github.com/charles-lehman/000b6347045f40b39b1221f4b11db602)
## What makes SynchPay different?
SynchPay uses [instant payments](https://notes.mtb.xyz/p/real-time-payments-1000-words) to move money 24/7/365. This technology is substantially cost-effective than credit or debit cards, and we use this to offer you the lowest possible prices. We offer our service via API or integration, a business-facing web portal, and a consumer-facing mobile app.
# Quickstart
Source: https://apidocs.synchpay.dev/quickstart
Accept payments for 80% less than credit cards in under ten minutes.
This is a quick, high-level guide to show you how to get SynchPay set up in your integration or app. SynchPay is delivered to businesses via a web portal, and to the end-user via a mobile app. You will receive access to our web portal alongside your API key.
This guide uses "company" to refer to a business or an entity owned by a business, and "user" to refer to the end-customer who is completing the payment request.
Our API is currently in private preview - please reach out for a key [via this form](https://tally.so/r/n00M4j).
Most times, SynchPay will create a a business entity on your behalf. We have this to power the use case where our client is an entity representing other sub-entitites (for instance, a chain of gyms).
Use the [Create a Company](https://apidocs.synchpay.dev/api-reference/company/create-a-company) endpoint to get started.
A company can only send a payment request to a user who is registered with SynchPay.
Use the [Register a New User ](https://apidocs.synchpay.dev/api-reference/user/register-a-new-user)endpoint to create the user. SynchPay handles the KYC and connection to their bank account, all you need to do is pass us the information.
Your user will receive a text message with a link inviting them to create a SynchPay account and link their bank account.
[Create a Payment Request](/synchpay/make-payment)
## What's next?
See how to export a list of transactions.
Ask your users to pre-authorize transactions up to a certain amount.
There are a million payment methods out there, but SynchPay is the best.
# Environment Configuration
Source: https://apidocs.synchpay.dev/synchpay/api-environments
Learn about the different environments provided by SynchPay for development and production.
## Overview
SynchPay provides multiple environments to support various stages of development and deployment. These include **Sandbox** and **Production**. Each environment is designed for a specific purpose, with different levels of verification, data isolation, and API stability.
## Available Environments
| Environment | Base URL | Description |
| -------------- | -------------------------- | -------------------------------------------------------------------------------------- |
| **Sandbox** | `https://api.trysynch.com` | Ideal for development and testing. Offers relaxed verification and mock bank accounts. |
| **Production** | `https://api.synchpay.com` | Live environment used for real transactions and customer interactions. |
## When to Use Each
### đź§Ş Sandbox Environment
* **URL**: `https://api.trysynch.com`
* **Purpose**: Active development and integration.
* **Features**:
* Simulated data and bank accounts.
* Most recent API versions and features.
* Reduced security/verification constraints.
* **Use case**: Building and testing your integration.
> âś… **Use this environment during your initial development.**\
> It currently includes the latest API version that will be rolled out to other environments shortly.
### 🚀 Production Environment
* **URL**: `https://api.synchpay.com`
* **Purpose**: Live application use.
* **Features**:
* Real-time transactions.
* Full verification and security protocols.
* **Use case**: Serving real users with active payment flows.
> ⚠️ **Only use this environment with production credentials.** Make sure all tests are complete before switching over.
***
Using the correct environment at each stage of development ensures a smooth, safe, and reliable integration process. If you have questions about staging access or environment switching, reach out to your SynchPay support contact.
# API Usage Flows
Source: https://apidocs.synchpay.dev/synchpay/api-flows
Learn about the flows for integrating with our API as a partner.
As a partner, you can integrate with our API using one of three flows, depending on your needs. This page explains the options so you can choose the one that works best for you.
## Flow 1: Simplest Flow (Just making payments)
In this flow, you can just make payments without registering a company or users. We’ll handle the company registration for you behind the scenes.
* **How It Works**:
* You skip the company/user registration step entirely.
* Our system automatically creates and manages the company on your behalf.
* **Use Case**:
* Perfect if you want make payments without the need for your clients to register.
* **Steps**:
* Make a payment for that user.
* **Benefits**:
* Easiest solution possible.
## Flow 2: Simplified Flow (One company with user registration)
In this flow, you can register users and make payments without registering a company. We’ll handle the company registration for you behind the scenes.
* **How It Works**:
* You skip the company registration step entirely.
* Our system automatically creates and manages the company on your behalf.
* **Use Case**:
* Perfect if you have a single location or don’t want to deal with company management.
* **Steps**:
1. Register a user using the API.
2. Make a payment for that user.
* **Benefits**:
* Faster setup with less work for you.
## Flow 3: Full Flow (Multiple locations with user registration)
In this flow, you register a company and its locations before registering users and making payments. This gives you control over which location receives each payment.
* **How It Works**:
* You explicitly register a company and add its locations.
* Payment requests identify their destination with `LocationId`.
* **Use Case**:
* Ideal if you have multiple locations and want to manage them separately.
* **Steps**:
1. Register a company, optionally including its initial `Locations` array.
2. Add or list locations through the company locations endpoints.
3. Register users.
4. Make payments using the appropriate `LocationId`.
* **Benefits**:
* Better organization and flexibility for multi-location partners.
## Which Flow Should You Use?
Here’s a quick guide to help you decide:
* **Choose Flow 1 if**:
* You have a single location.
* You just want to make payments without user registration.
* **Choose Flow 2 if**:
* You have a single location.
* You want a user registration.
* **Choose Flow 3 if**:
* You have multiple locations.
* You need to track users and payments per location separately.
## Next Steps
Ready to get started? Check out these pages for more details:
* [API Authorization](synchpay/auth)
* [Register a Company](synchpay/register-company)
* [Manage Company Locations](synchpay/company-locations)
* [Register a User](synchpay/register-user)
* [Make a Payment](synchpay/make-payment)
If you have questions, feel free to reach out to our support team!
# Authorization
Source: https://apidocs.synchpay.dev/synchpay/auth
Learn how to authorize with the SynchPay API using client credentials.
To access the SynchPay API, you need to obtain an access token by authorizing with your ClientId and ClientSecret, which are provided by SynchPay support.
**Note**: Keep your ClientId and ClientSecret secure and do not expose them in client-side code or public repositories.
## Obtaining an Access Token
### Token Endpoint
* **URL**: [https://api.synchpay.com/auth/token](https://api.synchpay.com/Auth/Token)
* **Method**: POST
### Request Body
The request body should be in JSON format and contain the following fields:
* ClientId: Your client ID provided by SynchPay support.
* ClientSecret: Your client secret provided by SynchPay support. You can request a new client secret [via this form](https://tally.so/r/wav00B).
**Example:**
```json theme={null}
{
"ClientId": "your_client_id",
"ClientSecret": "your_client_secret"
}
```
### Response
Upon successful authorization, the endpoint returns a JSON object with the following fields:
* AccessToken: The access token to be used in API requests.
* TokenType: The type of the token, which is "Bearer".
* ExpiresInSeconds: The number of seconds until the token expires (3600 seconds, which is one hour).
**Example:**
```json theme={null}
{
"AccessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"TokenType": "Bearer",
"ExpiresInSeconds": 3600
}
```
## Using the Access Token
To make authorized requests to the API, include the access token in the Authorization header of your HTTP requests:
`Authorization: Bearer \`
Replace \ with the actual access token received from the token endpoint.
**Example:**
```
GET /some/protected/endpoint HTTP/1.1
Host: api.synchpay.com
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
```
## Token Expiry
The access token is valid for one hour (3600 seconds). After it expires, you need to obtain a new token by calling the token endpoint again with your credentials.
***
# Authorizing a Card
Source: https://apidocs.synchpay.dev/synchpay/authorize-card
Create a hosted card authorization flow for a payer.
Use `POST /Payment/Card/Auth` to authorize a card for a payer. The response provides a URL for continuing the hosted card flow.
## Prerequisites
* Obtain an access token from `/auth/token` using your `ClientId` and `ClientSecret`.
* Retrieve the target `LocationId` from the [company locations](/synchpay/company-locations) endpoint.
## Endpoint
* **URL**: `https://api.synchpay.com/Payment/Card/Auth`
* **Method**: `POST`
* **Authorization**: `Bearer `
## Request Body
| Parameter | Type | Description | Required |
| ---------------- | ------- | ----------------------------------------------------------------------------- | -------- |
| `LocationId` | string | UUID of the company location associated with the authorization. | Yes |
| `Amount` | integer | Amount in cents, when the authorization is associated with a specific amount. | No |
| `RegistrationId` | string | Existing SynchPay user registration UUID. | No |
| `ContactNumber` | string | Payer phone number, when a registration ID is not supplied. | No |
| `ReturnUrl` | string | URL to which SynchPay redirects the payer after the hosted flow. | No |
```json theme={null}
{
"LocationId": "4d8ab11b-0322-4bf9-921f-39d753b0530c",
"Amount": 5000,
"RegistrationId": "6e8d9257-bd5f-45cf-8f29-6d0ae8a6d991",
"ReturnUrl": "https://example.com/card/complete"
}
```
## Response
| Field | Type | Description |
| ---------------------- | ------ | ----------------------------------------------------------------------- |
| `PaymentRequestId` | string | UUID of the payment request created for the authorization. |
| `Url` | string | Hosted URL for continuing the card authorization flow. |
| `RegistrationPersonId` | string | Registered person UUID created or resolved for the payer, when present. |
```json theme={null}
{
"PaymentRequestId": "ce0e3549-a83e-4cf6-bb5c-1d50a21d8af7",
"Url": "https://app.synchpay.com/card/authorize/ce0e3549-a83e-4cf6-bb5c-1d50a21d8af7",
"RegistrationPersonId": "27420540-dbbf-44be-b773-2014851787b7"
}
```
This endpoint starts a SynchPay card authorization flow. To record a card transaction processed by an external terminal or provider, use [register external card payment](/synchpay/card-payment).
# Canceling a Payment Request
Source: https://apidocs.synchpay.dev/synchpay/cancel-payment
Cancel an outstanding payment request before it is paid.
## Overview
If a payment request no longer needs to be collected, you can cancel it through the `/Payment/{paymentRequestId}/Cancel` endpoint. Canceling a request stops the payer from completing that payment and moves the payment request to the `Canceled` status.
Use this endpoint for payment requests that are still outstanding, such as requests that are pending payer action, scheduled for a future date, or otherwise not yet completed.
## How It Works
Before calling the cancel endpoint, secure an access token by making a `POST` request to `/auth/token` using your `ClientId` and `ClientSecret`.
Use the `PaymentRequestId` returned when the payment request was created, or the ID received in a payment status webhook.
Send a `PUT` request to `/Payment/{paymentRequestId}/Cancel` with the payment request ID in the path.
After cancellation, the payment request status becomes `Canceled`. You can use payment status webhooks to keep your system in sync.
## Canceling the Payment Request
The `/Payment/{paymentRequestId}/Cancel` endpoint cancels an existing payment request by referencing its `PaymentRequestId`.
### Endpoint
* **URL**: `https://api.synchpay.com/Payment/{paymentRequestId}/Cancel`
* **Method**: `PUT`
* **Authorization**: `Bearer `
### Path Parameters
| Parameter | Type | Description | Required |
| ------------------ | ------ | -------------------------------------------------- | -------- |
| `paymentRequestId` | string | Unique identifier of the payment request to cancel | Yes |
### Request Body
This endpoint does not require a request body.
### Example Request
```http theme={null}
PUT /Payment/ce0e3549-a83e-4cf6-bb5c-1d50a21d8af7/Cancel HTTP/1.1
Host: api.synchpay.com
Authorization: Bearer eyJhbGciOi...
```
### Response
A successful request returns `200 OK` with no response body.
### Error Responses
| Status code | Cause |
| ----------- | --------------------------------------------------------------- |
| `400` | The payment request cannot be canceled from its current status. |
| `401` | Missing or invalid access token. |
| `404` | The payment request was not found. |
## When to Use This Endpoint
Use the cancel endpoint when you want to:
* Stop an unpaid payment request before the payer completes it.
* Cancel a scheduled payment request before it is processed.
* Prevent a duplicate or incorrect request from being paid.
## Payment Status
After a successful cancellation, the payment request moves to `Canceled`, which is a final state. See [payment statuses](/synchpay/make-payment#payment-statuses) for the full status transition table.
# Card payments
Source: https://apidocs.synchpay.dev/synchpay/card-payment
Register external card transactions.
## Overview
If you process card payments through a terminal, POS system, or other external provider, you can register those transactions in SynchPay using the `/cardpayment` endpoint to keep all payment activity visible in one place.
### How it works
Authenticate by making a `POST` request to `/auth/token` with your `ClientId` and `ClientSecret`.
Send a `POST` request to `/cardpayment` with the transaction details — amount, card type, transaction status, merchant identifier, and the payer's mobile number.
SynchPay sends the payer an SMS (and email, if provided) confirming the card payment was recorded.
### Endpoint
* **URL**: `https://api.synchpay.com/cardpayment`
* **Method**: `POST`
* **Authorization**: `Bearer `
### Request body
| Parameter | Type | Description | Required |
| ------------------------ | ------- | -------------------------------------------------------------------------------------------------------------- | -------- |
| `Amount` | integer | The payment amount in cents. For example, \$50.00 should be provided as `5000`. | Yes |
| `MobileNumber` | string | The payer's phone number in international format (e.g., `+12025551234`). | Yes |
| `CardType` | string | The type of card used for the payment (e.g., `Visa`, `Mastercard`, `Amex`). | Yes |
| `TransactionStatus` | string | The status of the card transaction. Allowed values: `Pending`, `Succeeded`, `Failed`, `Cancelled`, `Refunded`. | Yes |
| `MerchantId` | string | The identifier for the merchant associated with this card payment. | Yes |
| `Email` | string | The payer's email address. If provided, SynchPay sends an email notification in addition to SMS. | No |
| `PatientReferenceNumber` | string | An optional reference number for the payer in your system (e.g., a patient ID). | No |
### Transaction statuses
| Status | Description |
| ----------- | --------------------------------------------------- |
| `Pending` | The card transaction is still being processed. |
| `Succeeded` | The payment was completed successfully. |
| `Failed` | The payment failed (e.g., declined card). |
| `Cancelled` | The payment was cancelled before completion. |
| `Refunded` | The payment was refunded after a successful charge. |
### Example request
```json theme={null}
{
"Amount": 7500,
"MobileNumber": "+12025551234",
"CardType": "Visa",
"TransactionStatus": "Succeeded",
"MerchantId": "merchant-001",
"Email": "payer@example.com",
"PatientReferenceNumber": "PAT-10042"
}
```
### Response
A successful request returns `200 OK` with no response body.
### Error responses
| Status code | Cause |
| ----------- | ----------------------------------------------------------------------- |
| `400` | Validation failed (e.g., missing required field, invalid status). |
| `401` | Missing or invalid access token. |
| `422` | Business rule violation (e.g., company not found for given identifier). |
### When to use this endpoint
Use the `/cardpayment` endpoint when you want to:
* **Consolidate reporting** — See card and account-to-account payments in one place.
* **Enable payer notifications** — Let payers receive SMS or email confirmations for card payments processed outside SynchPay.
* **Track card transactions** — Keep a record of external card payments alongside your SynchPay payment activity.
This endpoint records card transactions that were processed by an external provider. It does not process card payments directly. To start a hosted card flow through SynchPay, use [authorize a card](/synchpay/authorize-card).
# Changelog
Source: https://apidocs.synchpay.dev/synchpay/changelog/changelog
SynchPay's changelog, announcements, and new API features.
## API Changes
## Webhook signatures, redesigned onboarding, and card payment polish
### New features
* **Signed webhooks** — SynchPay now signs webhook payloads with an HMAC-SHA256 signature when a secret is configured for your endpoint. Each delivery includes an `X-HMAC-Signature` header in the form `sha256=` so your backend can verify that the request came from SynchPay and was not tampered with. Contact support to enable a signing secret for your [webhook endpoint](/synchpay/webhooks/intro).
* **Redesigned mobile onboarding** — New users opening the SynchPay mobile app now see a refreshed introduction with four slides explaining one-tap payments, bank-to-bank transfers, medical bill reimbursement, and fast settlement, followed by a new boot splash. The change applies to both iOS and Android.
### Updates
* **Smoother in-app card payments** — After completing an [in-app card payment](/synchpay/card-payment) in the browser, payers are now routed back to the SynchPay mobile app's success screen automatically. The action button on the card payment screen is also relabeled from "Open browser again" to "Continue to card payment" for clarity.
## Card payment processing and API update
### Updates
* **New card payment processor** — In-app card payments are now powered by a new payment processor, improving reliability and checkout speed. The payer experience is unchanged — card payments still appear as a payment method alongside bank transfers when enabled for a company. See [card payments](/synchpay/card-payment) for details.
* **External card payment API change** — The [register external card payment](/synchpay/card-payment#registering-an-external-card-payment) endpoint (`POST /cardpayment`) now uses a `MerchantId` field to identify the merchant. The previous `CompanyId` and `CompanyReferenceId` fields have been removed. Update your integration to pass `MerchantId` instead.
## In-app card payments and invoice fix
### New features
* **In-app credit card payments** — Payers can now choose to pay with a credit card directly in the SynchPay mobile app. When a payment request supports card payments, payers see a payment method selection screen with options to pay by credit card or bank account. Card transactions are marked with a card icon in the transaction list. See [card payments](/synchpay/card-payment) for details.
### Bug fixes
* Fixed an issue where invoice payments could fail due to an unnecessary account balance check.
## Card payment registration
### New features
* **Card payment endpoint** — You can now [register external card payments](/synchpay/card-payment) in SynchPay using the new `POST /cardpayment` endpoint. This lets you record card transactions processed by an external terminal or POS system so they appear alongside your account-to-account payments. Payers receive an SMS (and optional email) confirmation when a card payment is registered.
## Deep links, iPad support, and payment API improvements
### New features
* **Recurring payment deep links** — Payers can now open recurring payment consent requests directly from a shared link, making it easier to accept or decline a [recurring payment plan](/synchpay/recurring-payment-plans) without navigating through the app.
* **iPad support** — The SynchPay mobile app is now available on iPad.
* **CompanyReferenceId on payments** — The [create payment](/synchpay/make-payment) endpoint now accepts an optional `CompanyReferenceId` field as an alternative to `CompanyId`, so you can identify the target company using your own external reference.
* **Attachment URL support** — You can now pass an attachment URL when [creating a payment request](/synchpay/make-payment). SynchPay automatically downloads and stores the file with the payment.
### Bug fixes
* Fixed an issue where pull-to-refresh could trigger unexpectedly when switching between tabs in the mobile app.
## API validation and new fields
### New features
* **Company reference ID** — The [company registration](/synchpay/register-company) endpoint now requires a `CompanyReferenceId` field, letting you assign your own external identifier to each company at creation time.
* **Company website** — You can now optionally provide a `WebsiteUrl` when [registering a company](/synchpay/register-company).
* **ForProfit company type** — `ForProfit` is now an accepted value for the `CompanyType` field during company registration.
* **Debit auth on payments** — The [create payment](/synchpay/make-payment) endpoint now supports `EnableDebitAuth` and `DebitAuthLimit` fields as alternatives to `EnableAutoPay` / `AutoPayLimit`.
### Improvements
* Stricter input validation across all company registration fields, including email format, phone number format, ZIP code pattern, and state abbreviation checks. Invalid requests now return clear error messages.
* Owner and employee email addresses are validated for uniqueness during company creation.
## Recurring payments in the mobile app
Payers can now view, accept, and cancel recurring payment plans directly in the SynchPay mobile app. The Payments tab shows upcoming recurring payments alongside unpaid requests, and payers can manage all active plans from their Profile screen. A new frequency filter helps payers distinguish between one-time, irregular, and subscription payments. See [payer experience in the mobile app](/synchpay/recurring-payment-plans#payer-experience-in-the-mobile-app) for details.
## Unified consent decline action
The [decline consent](/synchpay/recurring-payment-plans#accept-or-decline-a-consent) endpoint now handles both pending and accepted consents. When a payer declines a `Pending` consent, it moves to `Declined` as before. When a payer declines an `Accepted` consent, it now moves to `Revoked` automatically — no separate revoke action is needed.
## Status field in consent list and filtered results
The [list consents](/synchpay/recurring-payment-plans#list-consents) endpoint now includes a `Status` field in each consent object, so you can see whether a consent is `Pending` or `Accepted` without fetching each one individually. The endpoint also now filters out consents that are no longer actionable — only `Pending` and `Accepted` consents are returned.
## Company details in consent response
The [get payment plan consent](/synchpay/recurring-payment-plans#get-a-single-consent) endpoint now returns a `RecipientCompany` object with full company details (name, contact number, email, website, and address) instead of just the company name. This gives payers more context about the company they are authorizing recurring payments for.
## Recurring payment plans API
Recurring payment plans are now fully available through the API.
### New features
* **Payment plans API** — You can now [create, activate, pause, and cancel recurring payment plans](/synchpay/recurring-payment-plans) entirely through the API. Define the amount, frequency, and start date, then SynchPay automatically generates and processes payments on schedule.
* **Payer consent flow** — When you add a payer to a plan, they receive a notification and can accept or decline through the app. You can track consent status and manage multiple payers per plan.
### Bug fixes
* Fixed an issue that could prevent recurring payment plans from processing correctly.
## NexHealth integration, invoicing, and more
We've shipped several new features and improvements over the past few months.
### New features
* **NexHealth integration** — SynchPay has deepened its integration with [NexHealth](/integrations/dentalPlatforms), allowing dental practices to sync patient payments directly from their practice management software.
* **Automated invoicing** — Businesses can now generate invoices with PDF documents and automate money movement for invoice billing.
* **Payment reminders** — You can now send manual payment reminder notifications via SMS, giving you more control over follow-ups on outstanding [payment requests](/synchpay/make-payment).
* **Same-day autopay** — Scheduled payments set for today are now automatically processed via [autopay](/synchpay/payment-debit-auth), reducing delays for due-date payments.
* **Recurring payment intervals** — A new recurrence interval field lets you configure flexible recurring payment schedules.
### Updates
* Richer notification content with more payment context for end users.
* Account number masking is now included in additional API responses for improved security.
* Enhanced login security with additional OTP verification protections.
### Bug fixes
* Fixed typos and grammatical errors across user-facing text in the mobile app.
* Resolved an issue with charity donation messaging and receipts.
## Minor Improvements
We've made some subtle improvements to our overall documentation with minimal functional changes.
* Documented the `AccountNumberMasked` parameter in the [Payment Request Status](/synchpay/webhooks/payment-status) webhook.
## New, Faster Money Movement
We've upgraded our money movement partner for faster, more certain, and more secure movement. There is one minor breaking change to the API in the [Company Creation](/synchpay/register-company) process.
## Launching Debit Auth
We're launching our Debit Auth API. This allows you to check, set, and update the user's authorized debit limit.
This allows you to effectively mimic a card-on-file experience, as well as implement recurring payments.
Take a look at our [Debit Auth API Reference](https://apidocs.synchpay.dev/synchpay/payment-debit-auth) for more details.
### Other Fixes
* Clarified the [Register Company](https://apidocs.synchpay.dev/synchpay/register-company) API endpoint.
* Added [Transaction Report](https://apidocs.synchpay.dev/synchpay/report-transactions) functionality to help with your reconciliation.
## Hello, World
Opening our API to the public!
### Features
* Added payment requests.
* Added refund requests.
* Added payment status requests.
* Added payment details requests.
* Added payment history requests.
* Added payment methods requests.
* Added payment methods details requests.
# Charging a Saved Card
Source: https://apidocs.synchpay.dev/synchpay/charge-saved-card
Create and charge a payment request using a saved card payment method.
Use `POST /Payment/ChargeSavedCard` to create a payment request for a registered customer and charge a saved card payment method.
## Endpoint
* **URL**: `https://api.synchpay.com/Payment/ChargeSavedCard`
* **Method**: `POST`
* **Authorization**: `Bearer `
The access token is obtained from [/auth/token](https://apidocs.synchpay.dev/api-reference/authentication/authenticate) using your `ClientId` and `ClientSecret`.
## Request Body
| Parameter | Type | Description | Required |
| ------------------ | ------- | --------------------------------------------------- | -------- |
| `Amount` | integer | Amount to charge in cents. | Yes |
| `LocationId` | string | UUID of the company location receiving the payment. | Yes |
| `RegistrationId` | string | Unique ID of the user registration. | Yes |
| `PaymentMethodId` | string | Saved card payment method ID. | Yes |
| `ShortDescription` | string | Brief description of the payment. | No |
| `FeePayer` | string | Party responsible for the payment fee. | No |
| `Attachment` | string | Base64-encoded PDF attachment. | No |
| `DueDate` | string | Due date in `YYYY-MM-DD` format. | No |
Use [company locations](/synchpay/company-locations) to find the `LocationId`, then [list saved card payment methods](/synchpay/saved-card-payment-methods) to find the `PaymentMethodId` for that location.
## Example Request
```json theme={null}
{
"Amount": 5000,
"LocationId": "4d8ab11b-0322-4bf9-921f-39d753b0530c",
"RegistrationId": "6e8d9257-bd5f-45cf-8f29-6d0ae8a6d991",
"PaymentMethodId": "pm_123",
"ShortDescription": "Follow-up visit",
"FeePayer": "partner",
"DueDate": "2026-08-03"
}
```
## Response
| Field | Type | Description |
| ------------------ | ------- | -------------------------------------- |
| `PaymentRequestId` | string | Created payment request ID. |
| `RegistrationId` | string | User registration ID. |
| `Status` | string | Resulting card payment request status. |
| `ChargedAmount` | integer | Amount charged in cents. |
```json theme={null}
{
"PaymentRequestId": "ce0e3549-a83e-4cf6-bb5c-1d50a21d8af7",
"RegistrationId": "6e8d9257-bd5f-45cf-8f29-6d0ae8a6d991",
"Status": "success",
"ChargedAmount": 5000
}
```
# Linking bank accounts
Source: https://apidocs.synchpay.dev/synchpay/company-external-auth-link
Learn how to generate an external authentication link for a company’s mobile number using the SynchPay API.
## Overview
The `/company/{companyReferenceId}/externalauthlink` endpoint allows you to generate a one-time URL that you can use to link bank accounts.
## How It Works
First, request an access token by calling the `/auth/token` endpoint with your `ClientId` and `ClientSecret`.
Identify the target company by its `companyReferenceId`—this can be either a GUID (`CompanyId`) or a custom reference string.
Provide the customer’s `MobileNumber` (in E.164 format) in the request body.
On success, the API returns a complete `ExternalAuthLinkUrl` that you can use to link accounts.
### Endpoint
* **URL**:\
`https://api.synchpay.com/company/{companyReferenceId}/externalauthlink`
* **Method**: `POST`
* **Authorization**: `Bearer `\
*Note*: Acquire your access token from `/auth/token` using your `ClientId` and `ClientSecret`.
### Path Parameter
| Parameter | Type | Description | Required |
| -------------------- | ------ | ------------------------------------------------------------------------------------------- | -------- |
| `companyReferenceId` | string | The company’s unique identifier—either its GUID (`CompanyId`) or a custom reference string. | Yes |
### Request Body
The JSON payload must include:
| Parameter | Type | Description | Required |
| -------------- | ------ | --------------------------------------------------------------- | -------- |
| `MobileNumber` | string | Customer’s mobile number in E.164 format (e.g. "+15551234567"). | Yes |
#### Example Request
```json theme={null}
{
"MobileNumber": "+15551234567"
}
```
## Response
On success, you’ll receive the following response model:
### Response Properties
| Property | Type | Description |
| :-------------------- | :----- | :------------------------------------------------------- |
| `externalAuthLinkUrl` | string | A fully-formed URL that allow for linking bank accounts. |
#### Example Response
```json theme={null}
{
"externalAuthLinkUrl": "https://app.trysynch.com/ExternalAuth?token=ea123456-7890-abcdef-1234-567890abcdef"
}
```
# Managing Company Locations
Source: https://apidocs.synchpay.dev/synchpay/company-locations
Add locations to a company and retrieve the location IDs used by payment endpoints.
Company locations let you route payments to a specific branch, office, or practice. Use the company reference ID to add and list locations, then pass the returned location UUID to payment endpoints as `LocationId`.
## Prerequisites
* Obtain an access token from `/auth/token` using your `ClientId` and `ClientSecret`.
* Register the company and keep its `CompanyReferenceId`.
## Add a Location
Use `POST /Company/{companyReferenceId}/Locations` to add a location to an existing company.
### Endpoint
* **URL**: `https://api.synchpay.com/Company/{companyReferenceId}/Locations`
* **Method**: `POST`
* **Authorization**: `Bearer `
### Path Parameter
| Parameter | Type | Description | Required |
| -------------------- | ------ | ------------------------------------------------------ | -------- |
| `companyReferenceId` | string | External reference supplied when creating the company. | Yes |
### Request Body
| Parameter | Type | Description | Required |
| --------------------- | ------ | --------------------------------- | -------- |
| `Name` | string | Display name for the location. | Yes |
| `StreetNumberAndName` | string | Street number and name. | Yes |
| `ApartmentNumber` | string | Suite, unit, or apartment number. | No |
| `ZipCode` | string | Postal code. | Yes |
| `City` | string | City. | Yes |
| `State` | string | State. | Yes |
```json theme={null}
{
"Name": "Downtown Office",
"StreetNumberAndName": "123 Main St",
"ApartmentNumber": "Suite 200",
"ZipCode": "10001",
"City": "New York",
"State": "NY"
}
```
### Response
The response contains the UUID to use when creating payments for this location.
```json theme={null}
{
"LocationId": "4d8ab11b-0322-4bf9-921f-39d753b0530c"
}
```
## List Locations
Use `GET /Company/{companyReferenceId}/Locations` to retrieve every location for a company.
### Endpoint
* **URL**: `https://api.synchpay.com/Company/{companyReferenceId}/Locations`
* **Method**: `GET`
* **Authorization**: `Bearer `
```http theme={null}
GET /Company/company-001/Locations HTTP/1.1
Host: api.synchpay.com
Authorization: Bearer eyJhbGciOi...
```
### Response
| Field | Type | Description |
| ----------- | ------ | --------------------------------------------------- |
| `Locations` | array | Locations registered for the company. |
| `Id` | string | Location UUID. |
| `Name` | string | Location display name. |
| `Address` | object | Street, city, ZIP code, state, and country details. |
```json theme={null}
{
"Locations": [
{
"Id": "4d8ab11b-0322-4bf9-921f-39d753b0530c",
"Name": "Downtown Office",
"Address": {
"StreetNumberAndName": "123 Main St",
"ApartmentNumber": "Suite 200",
"City": "New York",
"ZipCode": "10001",
"State": "NY",
"Country": "US"
}
}
]
}
```
Use a returned `Id` as `LocationId` when you [create a payment request](/synchpay/make-payment), [create a recurring payment](/synchpay/create-recurring-payment), [authorize a card](/synchpay/authorize-card), or [charge a saved card](/synchpay/charge-saved-card).
# Creating a Recurring Payment
Source: https://apidocs.synchpay.dev/synchpay/create-recurring-payment
Create a recurring payment plan for a registered user or phone number.
Use `POST /Payment/Recurring` to create a recurring payment plan for a company location.
## Endpoint
* **URL**: `https://api.synchpay.com/Payment/Recurring`
* **Method**: `POST`
* **Authorization**: `Bearer `
The access token is obtained from [/auth/token](https://apidocs.synchpay.dev/api-reference/authentication/authenticate) using your `ClientId` and `ClientSecret`.
## Request Body
| Parameter | Type | Description | Required |
| -------------------- | ------- | -------------------------------------------------------------------- | -------- |
| `Amount` | integer | Amount to charge on each recurrence, in cents. | Yes |
| `LocationId` | string | UUID of the company location that receives each payment. | Yes |
| `StartDate` | string | First recurrence date in `YYYY-MM-DD` format. | Yes |
| `IntervalValue` | integer | Number of units between recurring payments. | Yes |
| `IntervalUnit` | string | Recurrence unit: `Day`, `Week`, `Month`, `Quarter`, or `Year`. | Yes |
| `PhoneNumber` | string | Payer phone number. Use when `RegistrationUserId` is not provided. | No |
| `RegistrationUserId` | string | SynchPay registered user ID. Use when `PhoneNumber` is not provided. | No |
Provide either `PhoneNumber` or `RegistrationUserId` so SynchPay can identify the payer. Use [company locations](/synchpay/company-locations) to find the `LocationId`.
## Example Request
```json theme={null}
{
"Amount": 5000,
"LocationId": "4d8ab11b-0322-4bf9-921f-39d753b0530c",
"StartDate": "2026-08-01",
"IntervalValue": 1,
"IntervalUnit": "Month",
"RegistrationUserId": "6e8d9257-bd5f-45cf-8f29-6d0ae8a6d991"
}
```
## Response
| Field | Type | Description |
| --------------- | ------ | ---------------------------------------- |
| `PaymentPlanId` | string | Unique ID of the recurring payment plan. |
```json theme={null}
{
"PaymentPlanId": "d4e5f6a7-b8c9-0123-4567-89abcdef0123"
}
```
## Frequency Examples
| IntervalValue | IntervalUnit | Resulting schedule |
| ------------- | ------------ | ------------------ |
| `1` | `Month` | Every month |
| `2` | `Week` | Every two weeks |
| `1` | `Quarter` | Every quarter |
| `7` | `Day` | Every seven days |
# Demo Videos
Source: https://apidocs.synchpay.dev/synchpay/demoVids
## Payment Request Creation & Completion
# Listing companies
Source: https://apidocs.synchpay.dev/synchpay/list-companies
Retrieve all companies registered under your integration using the SynchPay API.
## Overview
The `/company/list` endpoint returns all companies associated with your integration. Use it to look up company IDs, verify which companies are connected, or synchronize your system with SynchPay.
## How it works
Request an access token by calling `/auth/token` with your `ClientId` and `ClientSecret`.
Refer to the [Authorization](/synchpay/auth) section for details.
Make a `GET` request to `/company/list` with your access token. No additional
parameters are required — the endpoint returns every company linked to your
integration.
The response contains an array of company objects, each with an `id`, `name`,
and optional `referenceId`.
## Retrieving your companies
### Endpoint
* **URL**: `https://api.synchpay.com/company/list`
* **Method**: `GET`
* **Authorization**: `Bearer `
This endpoint requires no query parameters or request body.
### Response
The response contains a single `companies` array:
| Property | Type | Description |
| ------------- | ------ | ------------------------------------------------------------------------------- |
| `id` | string | The unique identifier for the company. |
| `name` | string | The company name provided during registration. |
| `referenceId` | string | The custom reference ID assigned to the company, if one was set. Can be `null`. |
### Example request
```http theme={null}
GET /company/list HTTP/1.1
Host: api.synchpay.com
Authorization: Bearer eyJhbGciOi...
```
### Example response
```json theme={null}
{
"companies": [
{
"id": "0ba2d920-7588-407f-8553-afc4f073c9b8",
"name": "Downtown Fitness",
"referenceId": "loc-001"
},
{
"id": "7c3e1a45-92fd-4b10-a6df-8e5d4f2c1b09",
"name": "Uptown Wellness",
"referenceId": null
}
]
}
```
## When to use this endpoint
* **Syncing company data** — Keep your system up to date with the companies registered in SynchPay.
* **Looking up companies** — Find a company's `id` or `referenceId`. Use `referenceId` with `/company/{companyReferenceId}/status` and the [company locations](/synchpay/company-locations) endpoints.
* **Verifying registrations** — Confirm that a company was successfully created after calling `/company/create`.
# Creating a Payment Request
Source: https://apidocs.synchpay.dev/synchpay/make-payment
Follow these steps to request money from a registered user using the SynchPay API.
## Overview
After a user has registered with SynchPay, you can request money from them by creating a payment request through the `/payment/create` endpoint. This endpoint allows you to charge the user for services rendered or products provided.
## How It Works
Before calling `/payment/create`, secure an access token by making a `POST` request to `/auth/token` using your `ClientId` and `ClientSecret`.
With the access token, send a JSON payload to the `/payment/create` endpoint. The request identifies the payer and the company location, and specifies the payment amount in cents.
Once the payment request is submitted, the consumer receives a prompt through the SynchPay app to choose a payment method and approve the transaction. Depending on the configuration, the payer may be able to pay via bank account (A2A) or credit card.
After the consumer confirms the payment, SynchPay processes the transaction and sends a webhook to your backend containing all relevant payment details.
## Creating the Payment Request
The `/payment/create` endpoint enables you to initiate a payment request by submitting a structured JSON object.
### Endpoint
* **URL**: [https://api.synchpay.com/payment/create](https://api.synchpay.com/payment/create)
* **Method**: `POST`
* **Authorization**: `Bearer `*Note*: Obtain the access token from `/auth/token` using your `ClientId` and `ClientSecret`.
### Header Parameters
| Parameter | Type | Description | Required |
| ----------------- | ------ | --------------------------------------------------- | -------- |
| `Idempotency-Key` | string | A client-generated key that identifies the request. | No |
### Request Body
The JSON payload sent to the endpoint must include the following fields:
| Parameter | Type | Description | Required |
| ------------------ | ------- | --------------------------------------------------------------------------------------------------------------------- | -------- |
| `RegistrationId` | string | The unique user registration ID from `/user/register`. Required when `ContactNumber` is omitted. | No \* |
| `ContactNumber` | string | The payer's phone number in international format. Required when `RegistrationId` is omitted. | No \* |
| `EmailAddress` | string | Email address for notifications. | No |
| `LocationId` | string | The UUID of the company location receiving the payment. See [company locations](/synchpay/company-locations). | Yes |
| `Amount` | integer | The payment amount in cents. For example, \$50.00 is `5000`. | Yes |
| `ShortDescription` | string | A brief description of the service or product. | No |
| `FeePayer` | string | Who covers the fee: `"client"`, `"partner"`, or `"ask"`. With `"ask"`, the payer chooses while accepting the request. | Yes |
| `Reference` | string | A reference from your external system, such as a payment ID. | No |
| `Attachment` | string | A PDF attachment encoded as Base64. | No |
| `DueDate` | string | The due date in `YYYY-MM-DD` format. | No |
| `EnableDebitAuth` | boolean | Sends a debit authorization request to the payer. Alias for `EnableAutoPay`. | No |
| `DebitAuthLimit` | integer | Debit authorization limit in cents. Alias for `AutoPayLimit`. | No |
| `EnableAutoPay` | boolean | Asks the payer for auto-pay consent. Alias for `EnableDebitAuth`. | No |
| `AutoPayLimit` | integer | Auto-pay limit in cents. Alias for `DebitAuthLimit`. | No |
| `Metadata` | object | A flat object containing string metadata values. | No |
| `ReturnUrl` | string | URL to which SynchPay redirects the payer after the payment flow. | No |
| `OneTimePayment` | boolean | Whether the request represents a one-time payment. | No |
**\*** Either `RegistrationId` or `ContactNumber` have to be specified.
`EnableDebitAuth` / `DebitAuthLimit` and `EnableAutoPay` / `AutoPayLimit` are interchangeable — you only need to provide one pair. If both are provided, the `EnableDebitAuth` and `DebitAuthLimit` values take precedence. See [debit authorization](/synchpay/payment-debit-auth) for more details on how debit auth works.
### Example Request
```json theme={null}
{
"RegistrationId": "6e8d9257-bd5f-45cf-8f29-6d0ae8a6d991",
"LocationId": "4d8ab11b-0322-4bf9-921f-39d753b0530c",
"Amount": 5000,
"ShortDescription": "Additional services rendered.",
"FeePayer": "partner",
"EnableAutoPay": true,
"AutoPayLimit": 10000,
"Metadata": {
"additionalProp1": "foo",
"additionalProp2": "bar"
}
}
```
### Response
Upon successful processing, the API returns a JSON object with details about the created payment request:
```json theme={null}
{
"PaymentRequestId": "ce0e3549-a83e-4cf6-bb5c-1d50a21d8af7",
"AccountMask": "0000",
"Url": "https://app.synchpay.com/payment/ce0e3549-a83e-4cf6-bb5c-1d50a21d8af7",
"RegistrationPersonId": "27420540-dbbf-44be-b773-2014851787b7"
}
```
| Field | Type | Description |
| ---------------------- | ------ | --------------------------------------------------------------------------- |
| `PaymentRequestId` | string | The UUID of the created payment request. |
| `AccountMask` | string | The masked account identifier, when available. |
| `Url` | string | URL for completing the payment flow. |
| `RegistrationPersonId` | string | The registered person UUID created or resolved for the payer, when present. |
## Payment Confirmation
After the consumer approves the payment request via their registered bank account, credit card, or the SynchPay app, the transaction is processed. SynchPay then sends a webhook to your backend with the following information:
```json theme={null}
{
"PaymentRequestId": "ce0e3549-a83e-4cf6-bb5c-1d50a21d8af7",
"RegistrationId": "6e8d9257-bd5f-45cf-8f29-6d0ae8a6d991",
"Amount": 5000,
"Currency": "USD",
"Status": "Processing",
"Timestamp": "2024-08-09T12:34:56Z",
"AccountMask": "0000"
}
```
* **PaymentRequestId**: The unique identifier for the payment.
* **RegistrationId**: The registration ID for the user.
* **Amount**: The charged amount (in cents).
* **Currency**: The currency used in the transaction.
* **Status**: The current status of the payment. See below for more details.
* **Timestamp**: The date and time when the transaction was processed.
* **AccountMask**: Last four digits of the user’s account, if the user is registered and has a linked account.
This webhook enables you to update your records and trigger any subsequent business processes.
## Payment Statuses
* **Pending**: The initial state of a payment request, awaiting further action or processing.
* **In Review**: Triggered when a payment is flagged for safety or internal rule violations; it requires manual investigation.
* **Scheduled**: The payment is set to be processed automatically on a specific future `DueDate`.
* **Card Payment Pending**: The payer has initiated a card payment but has not yet completed the checkout form. See [card payments](/synchpay/card-payment) for details.
* **Paid**: The final successful state; occurs after a payment is accepted by the user (or automatically on a scheduled date).
* **Canceled**: The payment was manually stopped by a back-office user.
* **Denied**: The payment was rejected by a back-office user, typically following a review.
### Status Transition Table
| **From State** | **Allowed To Move To...** |
| ------------------------ | ------------------------------------------------------- |
| Pending / Scheduled | Paid, Canceled, In Review, Denied, Card Payment Pending |
| Card Payment Pending | Paid, Canceled, Pending |
| In Review | Paid, Canceled, Denied |
| Paid / Canceled / Denied | *None (Final States)* |
# Managing Debit Authorization
Source: https://apidocs.synchpay.dev/synchpay/payment-debit-auth
Enable and manage autopay limits through the SynchPay API using the Debit Auth endpoints.
## Overview
To enable seamless payments through SynchPay, you can allow users to authorize recurring charges up to a defined limit. This is managed through the Debit Auth API endpoints, which allow you to check, set, and update the user's authorized debit limit.
## How It Works
Before calling any Debit Auth endpoints, secure an access token by making a `POST` request to `/auth/token` using your `ClientId` and `ClientSecret`.
Use the `GET /user/{registrationId}/debitauth` endpoint to retrieve the current auto-debit authorization status and the active limit, if any.
If the user has not authorized any auto-debits yet, initiate the setup by sending a `POST` request to `/user/{registrationId}/debitauth` with the desired limit.
## Check Current Debit Authorization
### Endpoint
* **URL**: `https://api.synchpay.com/user/{registrationId}/debitauth`
* **Method**: `GET`
* **Authorization**: `Bearer `
### Query Parameters
| Parameter | Type | Description | Required |
| ---------------- | ------ | ----------------------------------------- | -------- |
| `RegistrationId` | string | Unique identifier for the registered user | Yes |
| `CompanyId` | string | Unique identifier for the Company | Yes |
### Example Request
```http theme={null}
GET /user/bc1dcbac-226a-41cb-bc91-8e94e701cbba/debitauth?CompanyId=6e8d9257-bd5f-45cf-8f29-6d0ae8a6d991
Authorization: Bearer eyJhbGciOi...
```
### Example Response
```json theme={null}
{
"Enabled": true,
"Limit": 10000
}
```
```json theme={null}
{
"Enabled": false,
"Limit": 0
}
```
## Set a New Debit Authorization Limit
### Endpoint
* **URL**: `https://api.synchpay.com/user/{registrationId}/debitauth`
* **Method**: `POST`
* **Authorization**: `Bearer `
### Path Parameters
| Parameter | Type | Description | Required |
| :--------------- | :----- | :---------------------------------------- | :------- |
| `registrationId` | string | Unique identifier for the registered user | Yes |
### Request Body
| Parameter | Type | Description | Required |
| :---------- | :------ | :----------------------------------------------------------------------------------------------------------------------- | :------- |
| `CompanyId` | string | Unique identifier for the company | Yes |
| `Enabled` | boolean | When used with `true` value then notifications is sent to the user, `false` will disable the DebitAuth. Default: `false` | No |
| `Limit` | integer | Maximum auto-debit amount in cents (e.g. 10000 = \$100.00) | Yes |
### Example Request
```json theme={null}
{
"RegistrationId": "bc1dcbac-226a-41cb-bc91-8e94e701cbba",
"Enabled": true,
"Limit": 10000
}
```
# Checking Payment Request Status
Source: https://apidocs.synchpay.dev/synchpay/payment-status
Retrieve the current status and details for a SynchPay payment request.
Use `GET /Payment/{paymentRequestId}/Status` to retrieve the current status of a payment request created by your integration.
## Endpoint
* **URL**: `https://api.synchpay.com/Payment/{paymentRequestId}/Status`
* **Method**: `GET`
* **Authorization**: `Bearer `
The access token is obtained from [/auth/token](https://apidocs.synchpay.dev/api-reference/authentication/authenticate) using your `ClientId` and `ClientSecret`.
## Path Parameters
| Parameter | Type | Description | Required |
| ------------------ | ------ | --------------------------------- | -------- |
| `paymentRequestId` | string | Unique ID of the payment request. | Yes |
## Example Request
```http theme={null}
GET /Payment/ce0e3549-a83e-4cf6-bb5c-1d50a21d8af7/Status HTTP/1.1
Host: api.synchpay.com
Authorization: Bearer eyJhbGciOi...
```
## Response
| Field | Type | Description |
| -------------- | ------ | ------------------------------- |
| `Id` | string | Payment request ID. |
| `Status` | string | Current payment request status. |
| `Amount` | object | Payment amount value object. |
| `CreationDate` | string | Creation timestamp. |
| `DueDate` | string | Due date timestamp. |
```json theme={null}
{
"Id": "ce0e3549-a83e-4cf6-bb5c-1d50a21d8af7",
"Status": "Pending",
"Amount": {
"Value": 5000,
"Currency": "USD"
},
"CreationDate": "2026-06-02T12:00:00Z",
"DueDate": "2026-06-03T12:00:00Z"
}
```
Use this endpoint for direct status checks. Use payment status webhooks when you need asynchronous updates.
# Issuing a Payment Refund
Source: https://apidocs.synchpay.dev/synchpay/refund-payment
Learn how to initiate a refund for a previously completed payment using the SynchPay API.
## Overview
If a payment was previously completed using SynchPay, you can issue a partial or full refund using the `/payment/refund` endpoint. This enables you to return funds to the consumer in cases such as cancellations, overcharges, or customer service resolutions.
## How It Works
Before calling `/payment/refund`, secure an access token by making a `POST`
request to `/auth/token` using your `ClientId` and `ClientSecret`.
Make sure you have the `PaymentRequestId` of the transaction you want to
refund. This ID was returned during the original payment request and is also
included in the payment confirmation webhook.
With the access token and payment ID in hand, make a `POST` request to the
`/payment/refund` endpoint. You can specify the amount to be refunded,
an optional description, and a PDF attachment to provide documentation.
If the refund is accepted, the API responds with a `HTTP 200`.
## Issuing a Refund
The `/payment/refund` endpoint allows you to refund all or part of a previously completed payment by referencing its `PaymentRequestId`.
### Endpoint
* **URL**: `https://api.synchpay.com/payment/refund?paymentRequestId=`
* **Method**: `POST`
* **Authorization**: `Bearer `\
*Note*: Obtain the access token from `/auth/token` using your `ClientId` and `ClientSecret`.
### Query Parameter
| Parameter | Type | Description | Required |
| ------------------ | ------ | --------------------------------------------------------------- | -------- |
| `paymentRequestId` | string | The unique identifier of the original payment request to refund | Yes |
### Request Body
The JSON payload sent to the endpoint must include:
| Parameter | Type | Description | Required |
| ------------- | ------ | ------------------------------------------------------------------------------------------- | -------- |
| `Amount` | int | The refund amount in cents. For example, \$20.00 should be submitted as `2000`. | Yes |
| `Description` | string | (Optional) Reason for the refund. This will appear in consumer communications if supported. | No |
| `Attachment` | object | (Optional) PDF file with additional refund documentation. | No |
#### Attachment Object
If included, the `Attachment` object must contain:
| Field | Type | Description | Required |
| ---------- | ------ | --------------------------------------- | -------- |
| `FileName` | string | Name of the PDF file (e.g. `note.pdf`) | Yes |
| `FileData` | string | Base64-encoded PDF file content | Yes |
| `FileType` | string | MIME type (must be `"application/pdf"`) | Yes |
### Example Request
```json theme={null}
{
"Amount": 2000,
"Description": "Customer cancelled the service.",
"Attachment": {
"FileName": "refund_note.pdf",
"FileData": "JVBERi0xLjQKJc...",
"FileType": "application/pdf"
}
}
```
# Registering a Company in SynchPay
Source: https://apidocs.synchpay.dev/synchpay/register-company
Follow these steps to register a company in SynchPay
To register a company (such as a gym) in the SynchPay API, you must create a company entity using the `/company/create` endpoint. This is the first step in enabling company-related operations within SynchPay. The process involves submitting a registration object, waiting for verification, and then completing additional setup steps. Here’s how it works:
Before calling `/company/create`, obtain an access token by making a `POST`
request to `/auth/token` with your `ClientId` and `ClientSecret`.
Refer to the [Authorization](synchpay/auth) section for details.
Use the access token to submit the company details via the `/company/create`
endpoint.
After submission, SynchPay performs a Know-Your-Business (KYB) verification,
which takes approximately 24 hours.
Use `GET /company/{companyReferenceId}/status` to monitor the registration status.
Once approved, SynchPay sends an email with links to connect a bank account
via Plaid and access the Backend Portal for managing your account.
## Registering a Company
The `/company/create` endpoint allows you to define a company entity by submitting a JSON object containing the company’s details. Below are the specifics of the API call.
### Endpoint
* **URL**: [https://api.synchpay.com/company/create](https://api.synchpay.com/company/create)
* **Method**: `POST`
* **Authorization**: `Bearer `*Note*: The access token is obtained from `/auth/token` using your `ClientId` and `ClientSecret`.
### Request Body
The request body is a JSON object with the following top-level fields:
| Parameter | Type | Description | Required |
| --------------------- | ------ | ----------------------------------------------------------------------------------------------- | -------- |
| `CompanyReferenceId` | string | Your unique external reference ID for this company. | Yes |
| `Name` | string | The company's name. | Yes |
| `EmailAddress` | string | The company's contact email address. Must be a valid email. | Yes |
| `ContactNumber` | string | The company's contact phone number. Must be a valid phone number. | Yes |
| `TaxId` | string | The company's unique tax ID. | Yes |
| `TaxIdType` | string | The type of tax ID (`EIN`, `TIN`, or `SSN`). | Yes |
| `CompanyType` | string | One of: `SoleProprietorship`, `NonProfit`, `ForProfit`, `Corporation`, `LLC`, or `Partnership`. | Yes |
| `Owner` | object | The owner's details. See [Owner object](#owner-object) for structure. | Yes |
| `Employees` | array | An array of employee objects. See [Employees array](#employees-array) for structure. | No |
| `Locations` | array | Locations to create with the company. See [Locations array](#locations-array) for structure. | No |
| `StreetNumberAndName` | string | The street number and name. | Yes |
| `ApartmentNumber` | string | The apartment or suite number. Must contain only printable ASCII characters if provided. | No |
| `City` | string | The city. | Yes |
| `State` | string | Two-letter US state abbreviation (e.g. `CA`, `NY`). | Yes |
| `ZipCode` | string | Five-digit US ZIP code (e.g. `90001` or `90-001`). | Yes |
| `WebsiteUrl` | string | The company's website URL. Validated if provided. | No |
#### Owner Object
The `Owner` object is a required field that contains the following properties:
| Field | Type | Description | Required |
| --------------------- | ------ | ----------------------------------------------------------- | -------- |
| `Name` | string | The owner's full name. | Yes |
| `EmailAddress` | string | The owner's email address. Must be a valid email. | Yes |
| `ContactNumber` | string | The owner's phone number. Must be a valid phone number. | Yes |
| `Title` | string | The owner's title. | Yes |
| `DocumentNumber` | string | The owner's ID number. | No |
| `DocumentType` | string | The type of ID (`DriversLicense` or `Passport`). | No |
| `Ssn` | string | Last 4 digits of the owner's SSN. Must be exactly 4 digits. | Yes |
| `DateOfBirth` | string | Owner's date of birth in `YYYY-MM-DD` format. | Yes |
| `StreetNumberAndName` | string | The street number and name. | Yes |
| `ApartmentNumber` | string | The apartment or suite number. | No |
| `City` | string | The city. | Yes |
| `State` | string | Two-letter US state abbreviation (e.g. `CA`, `NY`). | Yes |
| `ZipCode` | string | Five-digit US ZIP code (e.g. `90001` or `90-001`). | Yes |
#### Employees Array
The `Employees` field is an optional array of employee objects. Unlike the `Owner` object, employee objects do not include document-related fields. Each employee object in the array contains the following properties:
| Field | Type | Description | Required |
| --------------- | ------ | ----------------------------- | -------- |
| `Name` | string | The employee’s full name. | Yes |
| `EmailAddress` | string | The employee’s email address. | Yes |
| `ContactNumber` | string | The employee’s phone number. | Yes |
| `Title` | string | The employee’s title. | Yes |
**Note**: The `Employees` array is optional. If included, each employee object must contain all the specified fields (`Name`, `EmailAddress`, `ContactNumber`, and `Title`). If there are no employees to register at the time of company creation, you can either omit the `Employees` field or set it to an empty array (`[]`).
#### Locations Array
Use the optional `Locations` array to create one or more company locations during registration. Each location contains:
| Field | Type | Description | Required |
| --------------------- | ------ | --------------------------------- | -------- |
| `Name` | string | Display name for the location. | Yes |
| `StreetNumberAndName` | string | Street number and name. | Yes |
| `ApartmentNumber` | string | Suite, unit, or apartment number. | No |
| `ZipCode` | string | Postal code. | Yes |
| `City` | string | City. | Yes |
| `State` | string | State. | Yes |
You can add more locations after registration through [company locations](/synchpay/company-locations).
### Validation rules
The API validates all fields before creating the company. If validation fails, you receive a `400 Bad Request` response with details about which fields are invalid. Key rules to be aware of:
* **Email uniqueness** — The owner's email address cannot match any employee's email address. All employee email addresses must be unique.
* **Phone numbers** — `ContactNumber` fields must be valid phone numbers.
* **Address fields** — `State` must be a two-letter uppercase abbreviation. `ZipCode` must be a five-digit code (with optional hyphen, e.g. `90001` or `90-001`).
* **Owner SSN** — Must be exactly four digits.
* **Company type** — Must exactly match one of the accepted values (case-insensitive).
### Example Request
```json theme={null}
{
"CompanyReferenceId": "company-001",
"Name": "Example Company",
"EmailAddress": "contact@examplegym.com",
"ContactNumber": "+1234567890",
"TaxId": "12-3456789",
"TaxIdType": "EIN",
"CompanyType": "LLC",
"WebsiteUrl": "https://examplegym.com",
"Owner": {
"Name": "John Doe",
"EmailAddress": "john.doe@example.com",
"ContactNumber": "+19876543210",
"Title": "Owner",
"DocumentNumber": "D1234567",
"DocumentType": "DriversLicense",
"Ssn": "1234",
"DateOfBirth": "1950-05-05",
"StreetNumberAndName": "123 Fitness St",
"ApartmentNumber": "Suite 100",
"City": "Fitville",
"State": "CA",
"ZipCode": "90001"
},
"Employees": [
{
"Name": "Jane Smith",
"EmailAddress": "jane.smith@example.com",
"ContactNumber": "+15551234567",
"Title": "Manager"
},
{
"Name": "Mike Johnson",
"EmailAddress": "mike.johnson@example.com",
"ContactNumber": "+15559876543",
"Title": "Manager"
}
],
"Locations": [
{
"Name": "Downtown Office",
"StreetNumberAndName": "123 Fitness St",
"ApartmentNumber": "Suite 100",
"ZipCode": "90001",
"City": "Fitville",
"State": "CA"
}
],
"StreetNumberAndName": "123 Fitness St",
"ApartmentNumber": "Suite 100",
"City": "Fitville",
"State": "CA",
"ZipCode": "90001"
}
```
### Response
Upon successful submission, the endpoint returns the company UUID and the UUIDs of any locations created with it:
```json theme={null}
{
"CompanyId": "0ba2d920-7588-407f-8553-afc4f073c9b8",
"LocationIds": [
"4d8ab11b-0322-4bf9-921f-39d753b0530c"
]
}
```
## Waiting for KYB Process
After submitting the registration object, SynchPay initiates the Know-Your-Business (KYB) process to verify the provided information. This process typically takes up to 24 hours. During this period, the company status remains "Unverified".
## Checking Company Status
To monitor the registration status, use the `GET /company/{companyReferenceId}/status` endpoint:
* **URL**: [https://api.synchpay.com/company/\{companyReferenceId}/status](https://api.synchpay.com/company/\{companyReferenceId}/status)
* **Method**: `GET`
* **Authorization**: `Bearer `
The response will indicate the current status (e.g., "Unverified", "Verified", or "Rejected").
> Note: For sandbox environment this will always return "Verified"
## Completing Setup
Once the KYB process is complete and the company is verified, SynchPay sends an email to the `EmailAddress` provided in the registration. The email includes:
* **Bank Account Connection**: A link to connect your bank account via Plaid.
* **Backend Portal Access**: A link to the Backend Portal, where you can manage your account, add new account numbers, close accounts, and handle edge cases.
Follow the instructions in the email to finalize your company setup.
***
# Registering a User in SynchPay
Source: https://apidocs.synchpay.dev/synchpay/register-user
Follow these steps to register a user in SynchPay
To register a user in the SynchPay API, you need to create a registration object that defines conditional payment details, such as the amount and frequency. This is done using the `/user/register` endpoint. The process involves the following steps:
Make a `POST` request to `/user/register` with the required parameters.
Use the `RegistrationUrl` returned in the response to send the user to complete their registration, where they will provide payment information and undergo KYC verification.
Optionally, request money from the user during registration or at a later time.
## Creating a Registration Object
The `/user/register` endpoint initiates the user registration process. Below are the specifics of the API call.
### Endpoint
* **URL**: [https://api.synchpay.com/user/register](https://api.synchpay.com/user/register)
* **Method**: `POST`
* **Authorization**: `Bearer `
The access token is obtained from [/auth/token](https://apidocs.synchpay.dev/api-reference/authentication/authenticate) using your `ClientId` and `ClientSecret`.
### Request Parameters
The request body or headers must include the following parameters, all formatted in PascalCase:
| Parameter | Type | Description | Required |
| ------------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- |
| `Period` | string | The frequency of the payment. Set to "once" for a one-time payment during registration. | No |
| `Amount` | integer | The payment amount expressed in cents. For example, \$50.00 should be provided as `5000` (if applicable). | No |
| `ShortDescription` | string | A brief description of the payment purpose (for AML purposes). | No |
| `RedirectUrl` | string | The URL to redirect the user after completing registration. | Yes |
| `MobileNumber` | string | The user's mobile number (optional, speeds up onboarding). Needs to be a [valid E.164](https://www.twilio.com/docs/glossary/what-e164) format mobile number. | No |
| `Email` | string | The user's email address (optional, speeds up onboarding). | No |
Ensure you're using an [E.164 formatted mobile number](https://www.twilio.com/docs/glossary/what-e164) (e.g. `"+12345678901"`). E.164 has a 15 digit limit.
### Response
Upon successful creation of the registration object, the endpoint returns a JSON object with the following fields:
| Field | Type | Description |
| ----------------- | ------ | ---------------------------------------------------------- |
| `RegistrationId` | string | The unique ID of the user registration. |
| `RegistrationUrl` | string | The URL for the user to complete the registration process. |
**Example Response:**
```json theme={null}
{
"RegistrationId": "6e8d9257-bd5f-45cf-8f29-6d0ae8a6d991",
"RegistrationUrl": "https://app.synchpay.com/register/6e8d9257-bd5f-45cf-8f29-6d0ae8a6d991"
}
```
## Completing the Registration
After receiving the `RegistrationId` and `RegistrationUrl`, direct the user to the `RegistrationUrl` to complete their registration. This can be done in two ways:
1. **Redirect the User**: Send the user to the `RegistrationUrl`, where they will be guided through the SynchPay app to link their account via Plaid and complete the KYC process.
2. **Display a Webview**: Keep the user within your app by displaying the `RegistrationUrl` in a webview component.
Once the user completes the registration process, they will be redirected to the `RedirectUrl` you provided in the request.
## Checking User Status
To monitor the registration status, use the `GET /user/{registrationId}/status` endpoint:
* **URL**: [https://api.synchpay.com/user/\{registrationId}/status](https://api.synchpay.com/user/\{registrationId}/status)
* **Method**: `GET`
* **Authorization**: `Bearer `
The response will indicate the current status (e.g., "Pending", "Registered") as well as account mask if user has linked an account.
**Example Responses:**
```json theme={null}
{
"Status": "Pending",
"AccountMask": null
}
```
```json theme={null}
{
"Status": "Registered",
"AccountMask": "1234"
}
```
# Transaction Report
Source: https://apidocs.synchpay.dev/synchpay/report-transactions
Retrieve a paginated report of past transactions with optional filters by date and status.
## Overview
The `/transaction/report` endpoint allows you to retrieve a paginated list of past transactions. You can filter the results by date range and status. This endpoint is useful for generating reports, auditing payments, and tracking user activity.
## How It Works
Before calling `/transaction/report`, secure an access token by making a `POST`
request to `/auth/token` using your `ClientId` and `ClientSecret`.
You may include optional query parameters such as `from`, `to`, `status`, and
`cursor` to narrow the results or page through them.
Make a `GET` request to `/transaction/report` with your access token and any
desired filters. The response will contain a list of transactions, along with
pagination info.
Each transaction includes metadata such as sender/recipient names, accounts,
amounts, dates, payment method, refund/reimbursement status, and recipient address details.
## Retrieving Transactions
The `/transaction/report` endpoint supports filtered and paginated retrieval of transaction data.
### Endpoint
* **URL**: `https://api.synchpay.com/transaction/report`
* **Method**: `GET`
* **Authorization**: `Bearer `
### Query Parameters
| Parameter | Type | Description | Required |
| ----------- | -------- | ----------------------------------------------------------------------------------------------------- | -------- |
| `companyId` | string | The `companyId`that was previously created. | Yes |
| `from` | datetime | Start date for transactions to include. Example: `2025-01-01T00:00:00Z` | No |
| `to` | datetime | End date for transactions to include. Example: `2025-01-31T23:59:59Z` | No |
| `status` | string | Filter by transaction status (e.g., `Completed`, `Pending`, `Cancelled`) see available statuses below | No |
| `cursor` | string | Use to paginate through results. If `hasMore` is `true`, pass `nextCursor`. | No |
### Available Statuses
* Created
* Pending
* Processed
* Completed
* Cancelled
* Failed
### Example Request
```http theme={null}
GET /transaction/report?from=2025-01-01T00:00:00Z&to=2025-01-31T23:59:59Z&status=Completed HTTP/1.1
Authorization: Bearer eyJhbGciOi...
```
### Example Response
```json theme={null}
{
"transactions": [
{
"externalTransferId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "Completed",
"amount": {
"value": 5000,
"currencyCode": {
"value": "USD",
"displayName": "US Dollar",
"cultureName": "en-US"
}
},
"date": "2025-04-15T13:07:10.488Z",
"senderName": "Alice Smith",
"recipientName": "Bob Johnson",
"paymentMethod": "A2A",
"isRefunded": false,
"isReimbursed": true,
"appliedForReimbursement": true,
"recipientAddress": {
"streetNumberAndName": "123 Main St",
"apartmentNumber": "4B",
"city": "New York",
"zipCode": "10001",
"state": "NY",
"country": "USA"
}
}
],
"hasMore": true,
"nextCursor": "eyJwYWdlIjogMn0="
}
```
### Response fields
| Field | Type | Description |
| ------------------------- | ------- | ---------------------------------------------------------------------------------- |
| `externalTransferId` | string | Unique identifier for the transaction. |
| `status` | string | Current status of the transaction (see available statuses above). |
| `amount` | object | The transaction amount, including `value` (in cents) and `currencyCode`. |
| `date` | string | ISO timestamp of when the transaction occurred. |
| `senderName` | string | Name of the payer. |
| `recipientName` | string | Name of the payment recipient. |
| `paymentMethod` | string | How the payer paid. Possible values: `A2A` (bank account) or `Card` (credit card). |
| `isRefunded` | boolean | Whether the transaction has been refunded. |
| `isReimbursed` | boolean | Whether the transaction has been reimbursed. |
| `appliedForReimbursement` | boolean | Whether a reimbursement application was submitted. |
| `recipientAddress` | object | The recipient's address details. |
# Listing Saved Card Payment Methods
Source: https://apidocs.synchpay.dev/synchpay/saved-card-payment-methods
Retrieve saved card payment methods for a registered SynchPay user.
Use `GET /Payment/CardPaymentMethods/{registrationId}` to list saved card payment methods for a registered customer.
## Endpoint
* **URL**: `https://api.synchpay.com/Payment/CardPaymentMethods/{registrationId}`
* **Method**: `GET`
* **Authorization**: `Bearer `
The access token is obtained from [/auth/token](https://apidocs.synchpay.dev/api-reference/authentication/authenticate) using your `ClientId` and `ClientSecret`.
## Parameters
| Parameter | Location | Type | Description | Required |
| ---------------- | -------- | ------ | ----------------------------------------------------------------- | -------- |
| `registrationId` | Path | string | Unique ID of the user registration. | Yes |
| `locationId` | Query | string | UUID of the company location used to scope the saved-card lookup. | No |
Use [company locations](/synchpay/company-locations) to find the `locationId`.
## Example Request
```http theme={null}
GET /Payment/CardPaymentMethods/6e8d9257-bd5f-45cf-8f29-6d0ae8a6d991?locationId=4d8ab11b-0322-4bf9-921f-39d753b0530c HTTP/1.1
Host: api.synchpay.com
Authorization: Bearer eyJhbGciOi...
```
## Response
| Field | Type | Description |
| ---------------- | ------ | --------------------------- |
| `RegistrationId` | string | User registration ID. |
| `PaymentMethods` | array | Saved card payment methods. |
### Payment Method Object
| Field | Type | Description |
| ---------- | ------- | -------------------------------------- |
| `Id` | string | Saved payment method ID. |
| `Type` | string | Payment method type. |
| `Brand` | string | Card brand, when available. |
| `Last4` | string | Last four card digits, when available. |
| `ExpMonth` | integer | Expiration month, when available. |
| `ExpYear` | integer | Expiration year, when available. |
```json theme={null}
{
"RegistrationId": "6e8d9257-bd5f-45cf-8f29-6d0ae8a6d991",
"PaymentMethods": [
{
"Id": "pm_123",
"Type": "card",
"Brand": "visa",
"Last4": "4242",
"ExpMonth": 12,
"ExpYear": 2028
}
]
}
```
# Company Verification
Source: https://apidocs.synchpay.dev/synchpay/webhooks/company-verification
SynchPay provides a webhook to notify you when the Know-Your-Business (KYB) verification process is completed. This allows you to automatically respond to changes in a company's verification status without the need to continuously poll the status endpoint.
### Event Trigger
This webhook is triggered when the company's verification status changes to either:
* `Verified`
* `Rejected`
### Webhook Payload
```json theme={null}
{
"Live": false,
"Event": "COMPANY_VERIFICATION_STATUS_CHANGED",
"Data": {
"CompanyId": "d549b2af-3752-4844-8d55-475d3462df2a",
"Status": "Verified"
}
}
```
#### Payload Fields
| Field | Type | Description |
| :--------------- | :----- | :----------------------------------------------------------- |
| `Live` | bool | It's `true` when coming from production environment |
| `Event` | string | The event name: always `COMPANY_VERIFICATION_STATUS_CHANGED` |
| `Data.CompanyId` | string | Unique identifier of the company |
| `Data.Status` | string | New status: `Verified` or `Rejected` |
| `Data.Timestamp` | string | ISO timestamp indicating when the event occurred. |
The company status may remain Unverified for up to 24 hours while KYB is being processed.
### Related Endpoints
If you need to manually check a company's status, use the following endpoint:
**GET** `/company/status`
```http theme={null}
GET https://api.synchpay.com/company/status
Authorization: Bearer
```
**Response example:**
```json theme={null}
{
"CompanyId": "d549b2af-3752-4844-8d55-475d3462df2a",
"Status": "Verified"
}
```
# Introduction
Source: https://apidocs.synchpay.dev/synchpay/webhooks/intro
Receive real-time updates from SynchPay for events.
## Overview
Webhooks allow your backend to receive real-time updates from SynchPay. Whenever important events occur—such as a change in a payment request’s status—SynchPay sends an HTTP `POST` request to a webhook URL you provide.
By subscribing to these webhooks, you can keep your application synchronized without needing to poll the API.
## Setting Up Webhooks
To receive webhook notifications:
1. Register your endpoint with SynchPay support.
2. Ensure your endpoint is publicly accessible.
3. Expect `POST` requests with a `Content-Type: application/json`.
***
## Handling Webhooks
Make sure your server:
* Returns a `200 OK` status code to acknowledge receipt.
* Logs and processes the payload securely.
* Retries or alerts in case of failure.
# Payment Request Status
Source: https://apidocs.synchpay.dev/synchpay/webhooks/payment-status
This webhook notifies you whenever the status of a payment request changes.
### Event Triggered
* A user acts on a pending payment request (e.g., approves it).
* The system completes processing of a payment.
### Possible Status Values
| Status | Description |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `Processing` | The payment request is being processed as normal. |
| `Queued` | A fallback state for when transactions aren't being processed in real time. The request will be paid as soon as the system can process it. |
| `InReview` | The request is under review, typically for additional checks or compliance. |
| `Scheduled` | SynchPay processes future-dated payment requests once per day at 11AM PT. This status means that it will be processed during the batch of the date indicated on the payment request. |
| `CardPaymentPending` | The payer has initiated a card payment but has not yet completed the checkout form. See [card payments](/synchpay/card-payment) for details. |
| `Paid` | The payment has been approved and successfully processed. |
| `Canceled` | The request was canceled before completion. |
| `Denied` | The request was rejected by the system or user. |
| `Failed` | The payment processing failed due to technical or banking issues. |
### Webhook Payload
```json theme={null}
{
"Live": false,
"Event": "PAYMENT_STATUS_CHANGED",
"Data": {
"PaymentId": "ce0e3549-a83e-4cf6-bb5c-1d50a21d8af7",
"RegistrationId": "6e8d9257-bd5f-45cf-8f29-6d0ae8a6d991",
"Amount": 5000,
"Currency": "USD",
"Status": "Processing",
"Timestamp": "2024-08-09T12:34:56Z",
"AccountNumberMasked": "*1111" //String, be aware of the asterisk.
}
}
```
### Payload Fields
| Field | Type | Description |
| :------------------------- | :----- | :------------------------------------------------------------------------------------------------ |
| `Live` | bool | It's `true` when coming from production environment |
| `Event` | string | The event name: always `PAYMENT_STATUS_CHANGED` |
| `Data.PaymentId` | string | Unique identifier of the payment request. |
| `Data.RegistrationId` | string | ID of the user associated with the request. |
| `Data.Amount` | string | Amount of the payment in cents as integer (e.g., `5000` = `$50.00`). |
| `Data.Currency` | string | ISO currency code (e.g., `"USD"`). |
| `Data.Status` | string | Current status of the payment (see Possible Status Values above). |
| `Data.Timestamp` | string | ISO timestamp indicating when the event occurred. |
| `Data.AccountNumberMasked` | string | The last four digits of the bank account used in the payment request with an asterisk pre-pended. |