Welcome to the rail Developer Guide!
- Retrieve Customer
rail API Specification (1.1.2)
https://docs.rail.io/_mock/api-docs/openapi/rail-spec/
https://sandbox.layer2financial.com/api/
https://platform.layer2financial.com/api/
- Mock server
https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/customers/{customer_id}
- Sandbox - Stable API Instance
https://sandbox.layer2financial.com/api/v1/customers/{customer_id}
- Production - Stable API Instance
https://platform.layer2financial.com/api/v1/customers/{customer_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/customers/{customer_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'x-l2f-request-id: string'Success
Customer Status - will determine servicing options on the customer and the customers accounts.
ACTIVE- Customer is open and available for use in line with its product configurationCLOSED- Customer is permanently closed, no further actions can be performed on the customer. All accounts associated to the customer will also beCLOSEDPENDING- Customer is under additional review prior to moving to the OPEN or CLOSED state. No actions can be performed on the customer or their respective accounts.FROZEN- Customer has been temporarily locked for all actions. All accounts associated to the customer will also beFROZENEDD- Customer requires enhanced due diligence to be performed. The customer will operate as if frozen until transitioning toACTIVEorCLOSED.DORMANT- No activity has been seen in the last 12 months. The customer and their accounts are available for use.
Tax reference number of the individual (SSN, ITIN, SIN, National Insurance Number etc)
Nationality (2 Digit ISO31661-Alpha2 Format - https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
Citizenship (2 Digit ISO31661-Alpha2 Format - https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
US Residency Status
Employment Status
{ "data": { "id": "string", "customer_type": "INDIVIDUAL", "status": "ACTIVE", "first_name": "string", "middle_name": "string", "last_name": "string", "email_address": "string", "mailing_address": { … }, "telephone_number": "string", "tax_reference_number": "string", "passport_number": "string", "nationality": "string", "citizenship": [ … ], "date_of_birth": "2019-08-24", "us_residency_status": "US_CITIZEN", "employment_status": "EMPLOYEE", "employment_description": "string", "employer_name": "string", "occupation": "string", "investment_profile": { … }, "kyc_profile": { … } } }
Request
Update customer details. For individuals (officers) linked to a corporate customer, modify the individual resource directly using Update Individual.
Optional Unique ID per request, useful for fault resolution/diagnosis and audit.
Unique ID used to safely retry an operation. See idempotency section for more details.
- Mock server
https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/customers/{customer_id}
- Sandbox - Stable API Instance
https://sandbox.layer2financial.com/api/v1/customers/{customer_id}
- Production - Stable API Instance
https://platform.layer2financial.com/api/v1/customers/{customer_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/customers/{customer_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'x-l2f-idempotency-id: string' \
-H 'x-l2f-request-id: string' \
-d '{
"updates": [
{
"field": "string",
"value": "string"
}
],
"updated_by": "string",
"reason": "string"
}'{ "data": { "id": "string" } }
- Mock server
https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/customers/{customer_id}/individuals/{individual_id}
- Sandbox - Stable API Instance
https://sandbox.layer2financial.com/api/v1/customers/{customer_id}/individuals/{individual_id}
- Production - Stable API Instance
https://platform.layer2financial.com/api/v1/customers/{customer_id}/individuals/{individual_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/customers/{customer_id}/individuals/{individual_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'x-l2f-request-id: string'Success
Beneficial Owners and Control Persons Associated to the corporation
Type of individual in the corporation
Tax reference number of the country (SSN, ITIN, SIN, National Insurance Number etc)
Registered tax reference number country (2 Digit ISO31661-Alpha2 Format - https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
Nationality (2 Digit ISO31661-Alpha2 Format - https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
Citizenship (2 Digit ISO31661-Alpha2 Format - https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
(Only where type is BENEFICIAL_OWNER) Percentage ownership of the corporation (0 to 100)
Example values CEO, COO, CFO, President, BenefitsAdministrationOfficer, CIO, VP, AVP, Treasurer, Secretary, Controller, Manager, Partner or Member.
{ "data": { "id": "string", "individual_type": [ … ], "first_name": "string", "middle_name": "string", "last_name": "string", "email_address": "string", "mailing_address": { … }, "telephone_number": "string", "tax_reference_number": "string", "tax_reference_number_country": "string", "passport_number": "string", "nationality": "string", "citizenship": [ … ], "date_of_birth": "2019-08-24", "percentage_ownership": 0, "title": "string", "us_residency_status": "US_CITIZEN" } }
Optional Unique ID per request, useful for fault resolution/diagnosis and audit.
Unique ID used to safely retry an operation. See idempotency section for more details.
- Mock server
https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/customers/{customer_id}/individuals/{individual_id}
- Sandbox - Stable API Instance
https://sandbox.layer2financial.com/api/v1/customers/{customer_id}/individuals/{individual_id}
- Production - Stable API Instance
https://platform.layer2financial.com/api/v1/customers/{customer_id}/individuals/{individual_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/customers/{customer_id}/individuals/{individual_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'x-l2f-idempotency-id: string' \
-H 'x-l2f-request-id: string' \
-d '{
"updates": [
{
"field": "string",
"value": "string"
}
]
}'{ "data": { "id": "string" } }
ACTIVE- Customer is active and available for use in line with client configuration.CLOSED- Customer is permanently closed, no further actions can be performed on it or associated accounts.PENDING- Customer is under additional review. No actions can be performed on the account.FROZEN- Customer and associated accounts have been temporarily locked for all actions.EDD- Customer requires enhanced due diligence to be performed. The customer and accounts will operate as if frozen.DORMANT- No activity has been seen in the last 12 months. Customer and accounts are available for use.
- Mock server
https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/customers
- Sandbox - Stable API Instance
https://sandbox.layer2financial.com/api/v1/customers
- Production - Stable API Instance
https://platform.layer2financial.com/api/v1/customers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/customers?page=0&page_size=0&type=INDIVIDUAL&status=ACTIVE' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'x-l2f-request-id: string'Success
Customer List
Type of customer
Customer Status - will determine servicing options on the customer and the customers accounts.
ACTIVE- Customer is open and available for use in line with its product configurationCLOSED- Customer is permanently closed, no further actions can be performed on the customer. All accounts associated to the customer will also beCLOSEDPENDING- Customer is under additional review prior to moving to the OPEN or CLOSED state. No actions can be performed on the customer or their respective accounts.FROZEN- Customer has been temporarily locked for all actions. All accounts associated to the customer will also beFROZENEDD- Customer requires enhanced due diligence to be performed. The customer will operate as if frozen until transitioning toACTIVEorCLOSED.DORMANT- No activity has been seen in the last 12 months. The customer and their accounts are available for use.
Tax reference number of the individual (SSN, ITIN, SIN, National Insurance Number etc)
Nationality (2 Digit ISO31661-Alpha2 Format - https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
Citizenship (2 Digit ISO31661-Alpha2 Format - https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
US Residency Status
Employment Status
Investment Profile of the Individual
See the pagination section for additional details on the generic pagination approach.
{ "data": { "customers": [ … ] }, "links": { "self": "string", "first": "string", "prev": "string", "next": "string", "last": "string" } }