Quick Start
This section provides step-by-step instructions for building a basic application using the KyckGlobal Platform. The steps describe obtaining an auth token, onboarding a Payer Organization, adding a Payee, and submitting a payment.
Follow the steps below to build a basic application using the KyckGlobal Platform:
#
1. Send Authentication RequestSend a POST request to the User Auth endpoint with your Organization's email address and password in the body. Use the URL and JSON shown below and replace the email address and password with your KyckGlobal Sandbox credentials:
URL
https://sandboxapi.kyckglobal.com/apis/userAuth
Headers
- Content-Type -
application/json
Body
#
2. Capture the Auth TokenCapture the token returned by the User Auth resource. The resource returns a token in a JSON object, as shown in the example below:
info
If you used Payer Credentials to create the token, skip to step 4 to create a new Payee. You will need you Payer Organization's Payer ID. If you created the token using Partner credentials, continue with step 3.
#
3. Create a new PayerCreate a new Payer by sending a POST request to the Create Payer Organization endpoint. Send the token you obtained in the previous step in the request header. The token is linked with your Partner Organization and gives you permission to create a Payer Organization. Use the URL, headers, and body shown below to create your request:
URL
https://sandboxapi.kyckglobal.com/apis/payerOnboarding
Headers
- Authorization -
Token String
- Content-Type - application/json
Body
The Create Payer Organization operation definition provides details about the parameters in the request body. The Create Payer Organization operation returns a JSON object containing details about the Payer Organization.
#
4. Obtain Payer IDObtain the Payer Organization's Payer ID by sending a GET request to the Get Payer Organizations by Partner endpoint with your Partner ID at the end of the request. Your KyckGlobal account representative will provide you with a Partner ID when you create your account. Use the URL and headers below to submit the request:
URL
https://sandboxapi.kyckglobal.com/apis/fetchPayersByPartnerId/{{PartnerID}}
Headers
- Authorization -
{token}
- Content-Type -
application/json
The operation returns a JSON object that includes values for the "organizationId" property for each Payer Organization that is associated with the Partner. The example below shows the "organizationId" property:
"organizationId": "K123456P"
The Get Payer Organizations by Partner operation definition includes an example of the entire response. Capture the "organizationId" value associated with the Payer that you want to use to create a Payee.
#
5. Add a new PayeeAdd a new Payee record by sending a POST request to the Onboard Single Payee endpoint. Use the URL, headers, and body shown below to create your request:
URL
https://sandboxapi.kyckglobal.com/apis/singlePayeeCreatingAPI
Headers
- Authorization -
{token}
- Content-Type -
application/json
Body
Set the "organizationId" value to the value you captured in the previous step. The operation returns a JSON object that indicates that the Payee was successfully created.
#
6. Obtain Payee IDObtain the Payee ID for the Payee that you just created by sending a GET request to the Get All Payees by Payer endpoint with the Payer ID at the end of the URL. Use the URL and headers below to submit the request:
URL
https://sandboxapi.kyckglobal.com/apis/fetchPayeesOfPayer/{{organizationId}}
Headers
- Authorization -
{token}
- Content-Type -
application/json
The operation returns a JSON object that includes values for the "payeeId" property for each Payee that is associated with the Payer. The example below shows the "payeeId" property:
"payeeId": "Payee0007"
The Get All Payees by Payer operation definition includes an example of the entire response. Capture the "payeeId" value, which you will use to create a payment.
#
7. Submit a PaymentSubmit a payment for processing by sending a POST request to the Create Bulk Payment endpoint. Send Payee and payment information, including the payeeID you captured in the previous step, in the body of the request. Use the URL, headers, and body in the example shown below to submit a sample payment:
URL
https://sandboxapi.kyckglobal.com/apis/bulkPaymentByJSON
Headers
- Authorization -
{token}
- Content-Type -
application/json
Body
Response
Congratulations
You have completed the Quick Start and have a basic KyckGlobal API Client.