---
updatedAt: 2025-06-16T21:16:29.000Z
agentTools:
  projectIndex: https://developer.kalixa.com/llms.txt
---

# Sightline User Enrollment

Payment Method Sightline Deposit and Withdrawal is used in the US.

1. The merchant calls PXP Financial for Enrollment with the MemberNumber or MemberID. It´s an unique ID assigned by the merchant to every of their users.
2. PXP Financial calls Sightline with various parameters including the AccountIdentifierType set to MemberNumber and the MemberNumber
3. Sightline returns the Token
4. PXP Financial assembles POST data with token and returns it to the merchant
5. The merchant does a POST request from the user´s browser within an iframe, so that the signup page is displayed with the funding option
6. After closing the iframe, the customer is returned to the merchant´s cashier/checkout
7. The merchant calls PXP Financial to do a balance inquiry (getPaymentInputData) to check if the user has successfully signed up.
8. PXP Financial calls Sightline, and Sightline returns balance inquiry response.
9. PXP Financial returns parsed data from balance inquiry to merchant containing data such as balance, authorization code
10. The merchant updates the enrolment status in the PXP Financial system (UserEnrollmentOperation).

> 📘 ENROLLMENT & FUNDING
>
> On the page offering the customer to spend (deposit) funds, a button to ADD FUNDS should also be displayed. When the ADD FUNDS button is clicked, the merchant should - through the enrollment process -  submit the POST message to Sightline which will invoke the SPAN express iframe.
>
> On that iframe, Sightline will lookup the MemberID, and if no account exists, they will display the Enrollment page. If a members is already enrolled, they will display the Funding page. This doesn´t have to be distinguished on the merchant´s side.

## Enrollment - Payment Service V5 API

The following HTTP headers are required for all requests:

| Querystring Parameter Name | Description              |
| :------------------------- | :----------------------- |
| **Authorization**          | Basic HTTP authorization |
| **Content Type**           | Application/JSON         |

## Sightline Enrollment

For enrollment of user to Sightline the following request has to be sent:

> 👍 Sightline Enrollment
>
> * **URL**: <https://payments.test.kalixa.com/api/v5/userEnrollments>
> * **Description**: Enrollment of sightline user
> * **HttpMethod**: POST

... with the following JSON request data parameters:

| Name                                                                             | Description                                                      |
| :------------------------------------------------------------------------------- | :--------------------------------------------------------------- |
| **MerchantID** (<span style={{color: 'red'}}>Mandatory</span>)                   | The ID of the Merchant                                           |
| **ClientSystemUserEnrollmentId** (<span style={{color: 'red'}}>Mandatory</span>) | The ID of the SystemUserEnrollmentID. It should be an unique ID. |
| **Type** (<span style={{color: 'red'}}>Mandatory</span>)                         | Type of account. i.e account.sightline                           |
| **UserID** (<span style={{color: 'red'}}>Mandatory</span>)                       | The ID of the user                                               |
| **ReturnURL** (<span style={{color: 'red'}}>Mandatory</span>)                    | MerchantReturnURL                                                |
| **MemberNumber** (<span style={{color: 'red'}}>Mandatory</span>)                 | MemberNumber ID of the user                                      |

User enrollment will require that the user fields listed below are considered mandatory:

| Name                                                                | Required                   |
| :------------------------------------------------------------------ | :------------------------- |
| **FirstName** (<span style={{color: 'red'}}>Mandatory</span>)       | User´s first name.         |
| **LastName** (<span style={{color: 'red'}}>Mandatory</span>)        | User´s last name.          |
| **Email** (<span style={{color: 'red'}}>Mandatory</span>)           | User´s email address.      |
| **TelephoneNumber** (<span style={{color: 'red'}}>Mandatory</span>) | User´s phone number.       |
| **Street** (<span style={{color: 'red'}}>Mandatory</span>)          | User´s address (street).   |
| **City** (<span style={{color: 'red'}}>Mandatory</span>)            | User´s address (city).     |
| **State** (<span style={{color: 'red'}}>Mandatory</span>)           | User´s address (state).    |
| **Country** (<span style={{color: 'red'}}>Mandatory</span>)         | User´s address (country).  |
| **PostalCode** (<span style={{color: 'red'}}>Mandatory</span>)      | User´s address (zip code). |

JSON Response Data Parameters:

| Name                                                                      | Description                                      |
| :------------------------------------------------------------------------ | :----------------------------------------------- |
| **ID** (<span style={{color: 'red'}}>Mandatory</span>)                    | The ID of the user enrollment                    |
| **State** (<span style={{color: 'red'}}>Mandatory</span>)                 | The status of the user enrollment (i.e. Pending) |
| **MemberNumber** (<span style={{color: 'red'}}>Mandatory</span>)          | Enrollment HTML form as string                   |
| **FirstName** (<span style={{color: 'red'}}>Mandatory</span>)             | User First Name                                  |
| **LastName** (<span style={{color: 'red'}}>Mandatory</span>)              | User Last Name                                   |
| **PhoneNumber** (<span style={{color: 'red'}}>Mandatory</span>)           | User Phone Number                                |
| **Email** (<span style={{color: 'red'}}>Mandatory</span>)                 | User eMail address                               |
| **Address** (<span style={{color: 'red'}}>Mandatory</span>)               | User Address                                     |
| **City** (<span style={{color: 'red'}}>Mandatory</span>)                  | User City                                        |
| **State** (<span style={{color: 'red'}}>Mandatory</span>)                 | User State                                       |
| **Country** (<span style={{color: 'red'}}>Mandatory</span>)               | User Country                                     |
| **PostalCode** (<span style={{color: 'red'}}>Mandatory</span>)            | User Postal Code                                 |
| **Identity Token** (<span style={{color: 'red'}}>Mandatory</span>)        | Identity Token is required for new Request       |
| **MerchantID** (<span style={{color: 'red'}}>Mandatory</span>)            | Merchant ID                                      |
| **MerchantApplication** (<span style={{color: 'red'}}>Mandatory</span>)   | Merchant Application Name                        |
| **MerchantTransactionID** (<span style={{color: 'red'}}>Mandatory</span>) | Merchant Transaction ID                          |
| **ReturnURL** (<span style={{color: 'red'}}>Mandatory</span>)             | Merchant Return URL                              |
| **MerchantName** (<span style={{color: 'red'}}>Mandatory</span>)          | Merchant Name                                    |
| **ProviderSourceURL** (<span style={{color: 'red'}}>Mandatory</span>)     | Provider source URL                              |

Please note that **ProviderEnrollmentHtml** and **ProviderSourceURL** are in URL encoded string format. Please URL decode the values before using them.

**Example EnrollmentRequest:**

```json
{
"merchantId": "B2BTestMerchant",
"clientSystemUserEnrollmentId": "1234556",
"type": "account.sightline",
"userId":"5678432",
"details": {
  "ReturnURL": "http://google.co.in",
  "MemberNumber": "1234"}  
}
```

**Example EnrollmentResponse:**

```json
{
 "id": "0d652af0-c838-48e1-aa0d-9ab3cb9b03f5",
 "state": " EnrollmentRedirectDataCreated",
 "details": {
"MemberNumber": "1234",
      		 "FirstName": "TestFirstName",
      		 "LastName": "TestLastName",
    		    "PhoneNumber": "9898989898",
  		     "Email": "EnrollUserTest@gmail.com",
    		     "Address": "Marxergasse1B",
        "City": "Vienna Test",
        "State": "NV",
        "Country": "US",
        "PostalCode": "38242",
        "IdentityToken": "SwB4AGQALwBVAFoARQBJAEsAUgBKAGsAUABKAE0AUQB0ADcAYQBkAEoAVQAzAGoAAEYAUwBoAEMAMABnAHEAagBDAHgAMgBNAG4AYgA0ADgATwBkAGMAaABtAGgAQwFADcAUQBHAHoAaABaADQAKwBGAEwAagBPAGUAUABQAEIANABzAHMAUABVAA==",
        "MerchantID": "KalixaCasino",
        "MerchantApplication": "KAX01",
        "MerchantTransactionID": "1234556",
        "ReturnURL": "http://google.co.in",
        "MerchantName": "B2BTestMerchant",
        "ProviderSourceURL": "https://ceapspanex.slpuat.com/HostedFunding"             		   }
}
```

In order to redirect the customer to Sightline, the merchant should use a POST request from the user´s browser to the URL returned in the field *ProviderSourceURL*. See a sample below:

```html
This file is provided as an example of the http form post used to launch SPANExpress. <br/><br/>
	1. Replace the text inside the value="" tags with info that is specific to your card program. <br/>
	2. Make sure you have a fresh ID token.  <br/>
	3. Save this file as HTML.  <br/>
	4. Open this file in a browser.  <br/>
	5. Click the Launch button.  <br/><br/>
	
<form name="LaunchSpanExpress" action="https://ceapspanex.slpuat.com/HostedFunding" method="post">
    <input type="hidden" name="MemberNumber" id="MemberNumber" value="56768615" />
    <input type="hidden" name="FirstName" id="FirstName" value="TestFirstName" />
    <input type="hidden" name="LastName" id="LastName" value="TestLastName" />
    <input type="hidden" name="PhoneNumber" id="PhoneNumber" value="9898989898" />
    <input type="hidden" name="Email" id="Email" value="EnrollUserTest@gmail.com" />
    <input type="hidden" name="Address" id="Address" value="Marxergasse1B" />
    <input type="hidden" name="City" id="City" value="Vienna Test" />
    <input type="hidden" name="State" id="State" value="NJ" />
    <input type="hidden" name="Country" id="Country" value="US" />
    <input type="hidden" name="PostalCode" id="PostalCode" value="38242" /> 
    Token: <input type="text" name="IdentityToken" id="IdentityToken" value=""/>
    <input type="hidden" name="MerchantID" id="MerchantID" value="KalixaCasino" />
    <input type="hidden" name="MerchantApplication" id="MerchantApplication" value="KAX01" />
    <input type="hidden" name="MerchantTransactionID" id="MerchantTransactionID" value="1234556" />
    <input type="hidden" name="ReturnURL" id="ReturnURL" value="https://www.example.com/merchanttestsite/return.html" />
    <input type="hidden" name="MerchantName" id="MerchantName" value="B2BTestMerchant" />
    <input type="submit" value="Launch SPANExpress" />
```

## Enrollment Operations

> 👍 Enrollment Operations
>
> * **URL**: <https://payments.test.kalixa.com/api/v5/userEnrollments/{UserEnrollmentId}/operations>
> * **Description**: Update of the status of Enrolled User
> * **HttpMethod**: POST

Querystring Parameters:

| Name                                                                 | Description              |
| :------------------------------------------------------------------- | :----------------------- |
| **UserEnrollmentId** (<span style={{color: 'red'}}>Mandatory</span>) | The ID of the Enrollment |

JSON Request Data Parameters:

| Name                                                                             | Description                                                      |
| :------------------------------------------------------------------------------- | :--------------------------------------------------------------- |
| **MerchantID** (<span style={{color: 'red'}}>Mandatory</span>)                   | The ID of the Merchant                                           |
| **ClientSystemUserEnrollmentId** (<span style={{color: 'red'}}>Mandatory</span>) | The ID of the SystemUserEnrollmentID. It should be an unique ID. |
| **Type** (<span style={{color: 'red'}}>Mandatory</span>)                         | Type of account. i.e **MoveToEnrolled/MoveToEnrollmentFailed**   |
| **UserID** (<span style={{color: 'red'}}>Mandatory</span>)                       | The ID of the User                                               |
| **ReturnURL** (<span style={{color: 'red'}}>Mandatory</span>)                    | Merchant ReturnURL                                               |
| **MemberNumber** (<span style={{color: 'red'}}>Mandatory</span>)                 | MemberNumber ID of the User                                      |

JSON Response Data Parameters:

| Name                                                        | Description                                 |
| :---------------------------------------------------------- | :------------------------------------------ |
| **ID** (<span style={{color: 'red'}}>Mandatory</span>)      | The ID of the User Enrollment               |
| **State** (<span style={{color: 'red'}}>Mandatory</span>)   | Status of the User Enrollment. i.e Enrolled |
| **Details** (<span style={{color: 'red'}}>Mandatory</span>) | Error details if any.                       |

**Example MoveToEnrolled Request:**

```json
{	
"merchantId": "B2BTestMerchant",
"clientSystemUserEnrollmentId": "1234556",
"type": "MoveToEnrolled",
"userId":"5678432",
"details": {
  "ReturnURL": "http://google.co.in",
  "MemberNumber": "1234"}  
}
```

**Example MoveToEnrolled Response:**

```json
{
 "id": "0d652af0-c838-48e1-aa0d-9ab3cb9b03f5",
 "state": " Enrolled",
 "details": { null   }
}
```

**Example MoveToEnrollment Failed Request:**

```json
{	
"merchantId": "B2BTestMerchant",
"clientSystemUserEnrollmentId": "1234556",
"type": "MoveToEnrollmentFailed",
"userId":"5678432",
"details": {
  "ReturnURL": "http://google.co.in",
  "MemberNumber": "1234"}  
}
```

**Example MoveToEnrollment Failed Response:**

```json
{
 "id": "0d652af0-c838-48e1-aa0d-9ab3cb9b03f5",
 "state": " EnrollmentFailed",
 "details": { null   }               
}
```