To use our API endpoints, you’ll need to create a service. A service is a representation of the service or platform you want to use to collect or disburse payments. You can create two kinds of service:
- Collection Service: This will be used to collect money on your platform. All funds will be reflected in this service on your dashboard.
- Disbursement Service: You can use this to issue payouts programmatically on your platform.
You cannot use the same service for both collections and disbursement. If you
need both functionalities, you must create two separate services.
How to Create a Service
- Log into your dashboard and click Developers on the extreme bottom left of the screen.
- Click the “New Service” button.
- Fill in the required details and confirm.
The service name is the name of your website or app. - The domain name can
be what you have already bought or what you intend to buy. i.e. You must not
own it yet. Note that you cannot use fapshi.com as
your domain name, since this is the Fapshi domain.
-
Once the service is created, open it. Your
apiuserandapikeyfor that service will be displayed; Sandbox under Sandbox and Live under API. Copy these carefully, especially theapikeybecause they are sensitive. - Store the credentials securely (e.g., in an environment file or secure vault). Do not hard-code or commit them in public repos. Also, rotate the keys if necessary.