Trade Account API (1.0)

Download OpenAPI specification:Download

This API allows you to onboard your business customers to your own product and to the Two "Buy Now Pay Later" product.

Specifically:

  • Enable 1-click checkout with Two
  • Approve additional users to place orders on behalf of your business customers
  • Access insights and enriched data on your business customers
  • Receive validation that Two believes it is an accurate and valid representative of the business

Note: Merchant ID is denoted as mid. This can be obtained alongside the API key from the merchant portal.

Step 1: Create a B2B business customer

  • Create a new business customer using the POST /v2/merchant/<mid>/customer endpoint.

Step 2: Create users for your business customers.

  • The employees who place orders on behalf of your business customer (their employer), can be set up for purchasing through POST /v2/merchant/<mid>/customer/<cid>/user.
  • Upon successfully creating a customer user, onboarding is completed. You may optionally redirect the user to the user_verification_url for them to verify their account. Verification of the customer user will allow one-click purchases for the customer user.
  • Remember to keep contact info up-to-date, like email and phone number, through PUT /v2/merchant/<mid>/customer/<cid>/user/<uid>

Note: Two reserves the right to add extra verification steps for certain orders.

Environments

Credit Line

Create a new credit line for a customer.

This is only available for merchants that have been approved for credit lines.

SecurityX-Api-Key
Request
path Parameters
cid
required
string

Customer ID

mid
required
string

Merchant ID

Request Body schema: application/json
currency
required
string (CurrencyEnum)

Currency code (e.g., 'EUR', 'EUR').

Enum: "CHF" "CZK" "DKK" "EUR" "GBP" "INR" "MXN" "NOK" "PLN" "RON" "SEK" "USD"
requested_amount
required
string <decimal> (Requested Amount) ^-?[0-9]+(\.[0-9]{0,2})?

The credit line amount requested.

Responses
200

OK

default

Error response

post/v1/merchant/{mid}/customer/{cid}/credit_line
Request samples
application/json
{
  • "requested_amount": "50000.00",
  • "currency": "CHF"
}
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "requested_amount": "50000.00",
  • "approved_amount": "40000.00",
  • "available_balance": "25000.00",
  • "currency": "EUR",
  • "status": "PENDING",
  • "fill_and_sign_url": "http://example.com"
}

Provide prefilled data for the credit line application form.

SecurityX-Api-Key
Request
path Parameters
cid
required
string

Customer ID

credit_line_id
required
string

Credit line ID

mid
required
string

Merchant ID

Request Body schema: application/json
required
Array of objects (Ubo Information)

List of Ultimate Beneficial Owner information.

Responses
204

No Content

default

Error response

put/v1/merchant/{mid}/customer/{cid}/credit_line/{credit_line_id}/application
Request samples
application/json
{
  • "ubo_information": [
    ]
}
Response samples
application/json
{
  • "error_code": null,
  • "error_details": null,
  • "error_message": null,
  • "error_json": null,
  • "error_trace_id": null
}

get_credit_line_status <GET>

SecurityX-Api-Key
Request
path Parameters
cid
required
string

Customer ID

credit_line_id
required
string

Credit line ID

mid
required
string

Merchant ID

Responses
200

OK

default

Error response

get/v1/merchant/{mid}/customer/{cid}/credit_line/{credit_line_id}
Request samples
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "requested_amount": "50000.00",
  • "approved_amount": "40000.00",
  • "available_balance": "25000.00",
  • "currency": "EUR",
  • "status": "PENDING",
  • "fill_and_sign_url": "http://example.com"
}

get_credit_line_transactions <GET>

SecurityX-Api-Key
Request
path Parameters
cid
required
string

Customer ID

credit_line_id
required
string

Credit line ID

mid
required
string

Merchant ID

query Parameters
from_date
string <date> (From Date)
Default: null

The start date of the transaction period. Inclusive.

limit
integer (Limit)
Default: 100

The maximum number of transactions to return.

to_date
string <date> (To Date)
Default: null

The end date of the transaction period. Inclusive.

Responses
200

OK

default

Error response

get/v1/merchant/{mid}/customer/{cid}/credit_line/{credit_line_id}/transactions
Request samples
Response samples
application/json
{
  • "currency": "CHF",
  • "transactions": [
    ]
}

Merchant Customer Onboarding

Create customer record

SecurityX-Api-Key
Request
path Parameters
mid
required
string

Merchant ID

Request Body schema: application/json
Additional Identifiers (object) or Additional Identifiers (null) (Additional Identifiers)
Default: null

Optionally provide us with any other relevant identifiers related to this company.

Billing Email Address (string) or Billing Email Address (null) (Billing Email Address)
Deprecated
Default: null

Deprecated, please use invoice_email_addresses.

country_prefix
required
string (CountryCodeEnum)

Country code in ISO 3166-1 alpha-2 format

Enum: "AD" "AE" "AL" "AM" "AO" "AR" "AT" "AU" "AZ" "BA" "BB" "BD" "BE" "BF" "BG" "BH" "BI" "BJ" "BN" "BO" "BR" "BS" "BW" "CA" "CG" "CH" "CL" "CM" "CO" "CR" "CY" "CZ" "DE" "DJ" "DK" "DO" "DZ" "EC" "EE" "EG" "ES" "ET" "FI" "FJ" "FR" "GA" "GB" "GE" "GH" "GN" "GQ" "GR" "GT" "GY" "HN" "HR" "HT" "HU" "ID" "IE" "IL" "IN" "IQ" "IS" "IT" "JM" "JO" "JP" "KE" "KG" "KH" "KR" "KW" "KZ" "LA" "LB" "LI" "LK" "LT" "LU" "LV" "LR" "MA" "MC" "MD" "ME" "MG" "MK" "MN" "MR" "MT" "MU" "MV" "MW" "MX" "MY" "MZ" "NA" "NE" "NG" "NL" "NO" "NP" "NZ" "OM" "PA" "PE" "PG" "PH" "PK" "PL" "PT" "PY" "QA" "RO" "RS" "RW" "SA" "SE" "SG" "SI" "SK" "SL" "SN" "SR" "SV" "SZ" "TD" "TG" "TH" "TJ" "TM" "TN" "TR" "TT" "TZ" "UA" "UG" "US" "UY" "UZ" "VN" "ZA" "ZM"
Email Domain (string) or Email Domain (null) (Email Domain)
Deprecated
Default: null

Unique name that appears after the @ sign in email addresses

Estimated Monthly Spend (string) or Estimated Monthly Spend (null) (Estimated Monthly Spend)
Default: null

The estimated monthly spend for the customer.

Insights Webhook (string) or Insights Webhook (null) (Insights Webhook)
Deprecated
Default: null

Deprecated

Array of Invoice Email Addresses (strings) or Invoice Email Addresses (null) (Invoice Email Addresses)
Default: null

These email addresses is designated to receive the invoices attached to this trade account in addition to the user email used to create orders. In case the order is placed using a billing account ID, emails will be directed to the address specified for that billing account instead.

Legal Name (string) or Legal Name (null) (Legal Name)
Deprecated
Default: null

The legal name of the buyer company, deprecated as Two company search will set the customer legal name

merchant_customer_id
required
string (Merchant Customer Id) [ 1 .. 255 ] characters

The customer id registered in the merchant's solution

MerchantRedirectUrlsSchema (object) or null
Deprecated
Default: null
required
object (CreateAddressRequestSchema)

Address fields connected to the business customer

organization_id
required
string (Organization Id) [ 1 .. 255 ] characters

National id of the buyer company

Array of Shipping Addresses (objects) or Shipping Addresses (null) (Shipping Addresses)
Default: null

Address fields connected to the business customer

Trade Name (string) or Trade Name (null) (Trade Name)
Default: null

If the company is using a different brand/trade name, this can included here.

HookSchema (object) or null
Default: null
Website (string) or Website (null) (Website)
Default: null

The website of the business customer

Responses
201

Created

default

Error response

post/v2/merchant/{mid}/customer
Request samples
application/json
{}
Response samples
application/json
{
  • "billing_email_address": null,
  • "invoice_email_addresses": null,
  • "email_domain": null,
  • "legal_name": null,
  • "merchant_customer_id": "string",
  • "merchant_redirect_urls": null,
  • "official_address": null,
  • "website": null,
  • "insights_webhook": null,
  • "shipping_addresses": null,
  • "trade_name": null,
  • "webhooks": null,
  • "additional_identifiers": null,
  • "estimated_monthly_spend": null,
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",
  • "approved_for_credit": true,
  • "review_status": "PENDING_MANUAL_REVIEW",
  • "buyer_is_in_arrears": null,
  • "decline_reason": null,
  • "country_prefix": "GB",
  • "organization_id": null,
  • "approved_for_credit_with_conditions": {
    },
  • "max_single_order_value": null,
  • "credit_limit": null,
  • "credit_limit_balance": null,
  • "credit_limit_currency": "GBP"
}

Get customer list

Fetch a list of customers. Use ?limit or ?page_cursor parameter for cursor-based pagination.

SecurityX-Api-Key
Request
path Parameters
mid
required
string

Merchant ID

query Parameters
Limit (integer) or Limit (null) (Limit)
Default: null

The maximum number of items on a single page, ie the page size.

Page Cursor (string) or Page Cursor (null) (Page Cursor)
Default: null

The requested page, base64str encoded.

Responses
200

Customer list - returns CustomerResponseListSchemaV2 by default, or CustomerResponseListPaginatedSchemaV2 when limit parameter is provided

default

Error response

get/v2/merchant/{mid}/customer
Request samples
Response samples
application/json
[ ]

Replace customer record

SecurityX-Api-Key
Request
path Parameters
cid
required
string

Customer ID

mid
required
string

Merchant ID

Request Body schema: application/json
Additional Identifiers (object) or Additional Identifiers (null) (Additional Identifiers)
Default: null

Optionally provide us with any other relevant identifiers related to this company.

Billing Email Address (string) or Billing Email Address (null) (Billing Email Address)
Deprecated
Default: null

Deprecated, please use invoice_email_addresses.

Email Domain (string) or Email Domain (null) (Email Domain)
Deprecated
Default: null

Unique name that appears after the @ sign in email addresses

Estimated Monthly Spend (string) or Estimated Monthly Spend (null) (Estimated Monthly Spend)
Default: null

The estimated monthly spend for the customer.

Insights Webhook (string) or Insights Webhook (null) (Insights Webhook)
Deprecated
Default: null

Deprecated

Array of Invoice Email Addresses (strings) or Invoice Email Addresses (null) (Invoice Email Addresses)
Default: null

These email addresses is designated to receive the invoices attached to this trade account in addition to the user email used to create orders. In case the order is placed using a billing account ID, emails will be directed to the address specified for that billing account instead.

Legal Name (string) or Legal Name (null) (Legal Name)
Deprecated
Default: null

The legal name of the buyer company, deprecated as Two company search will set the customer legal name

merchant_customer_id
required
string (Merchant Customer Id) [ 1 .. 255 ] characters

The customer id registered in the merchant's solution

MerchantRedirectUrlsSchema (object) or null
Deprecated
Default: null
required
object (CreateAddressRequestSchema)

Address fields connected to the business customer

Array of Shipping Addresses (objects) or Shipping Addresses (null) (Shipping Addresses)
Default: null

Address fields connected to the business customer

Trade Name (string) or Trade Name (null) (Trade Name)
Default: null

If the company is using a different brand/trade name, this can included here.

HookSchema (object) or null
Default: null
Website (string) or Website (null) (Website)
Default: null

The website of the business customer

Responses
200

OK

default

Error response

put/v2/merchant/{mid}/customer/{cid}
Request samples
application/json
{
  • "billing_email_address": null,
  • "invoice_email_addresses": null,
  • "email_domain": null,
  • "legal_name": null,
  • "merchant_customer_id": "string",
  • "merchant_redirect_urls": null,
  • "official_address": {
    },
  • "website": null,
  • "insights_webhook": null,
  • "shipping_addresses": null,
  • "trade_name": null,
  • "webhooks": null,
  • "additional_identifiers": null,
  • "estimated_monthly_spend": null
}
Response samples
application/json
{
  • "billing_email_address": null,
  • "invoice_email_addresses": null,
  • "email_domain": null,
  • "legal_name": null,
  • "merchant_customer_id": "string",
  • "merchant_redirect_urls": null,
  • "official_address": null,
  • "website": null,
  • "insights_webhook": null,
  • "shipping_addresses": null,
  • "trade_name": null,
  • "webhooks": null,
  • "additional_identifiers": null,
  • "estimated_monthly_spend": null,
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",
  • "approved_for_credit": true,
  • "review_status": "PENDING_MANUAL_REVIEW",
  • "buyer_is_in_arrears": null,
  • "decline_reason": null,
  • "country_prefix": "GB",
  • "organization_id": null,
  • "approved_for_credit_with_conditions": {
    },
  • "max_single_order_value": null,
  • "credit_limit": null,
  • "credit_limit_balance": null,
  • "credit_limit_currency": "GBP"
}

Patch customer record

SecurityX-Api-Key
Request
path Parameters
cid
required
string

Customer ID

mid
required
string

Merchant ID

Request Body schema: application/json
Additional Identifiers (object) or Additional Identifiers (null) (Additional Identifiers)
Default: null

Optionally provide us with any other relevant identifiers related to this company.

Billing Email Address (string) or Billing Email Address (null) (Billing Email Address)
Deprecated
Default: null

Deprecated, please use invoice_email_addresses.

Email Domain (string) or Email Domain (null) (Email Domain)
Deprecated
Default: null

Unique name that appears after the @ sign in email addresses

Insights Webhook (string) or Insights Webhook (null) (Insights Webhook)
Default: null

Subscribe to updates for company insights. A json object will be POST-ed to this url whenever the insights for this company get updated. The schema for this json-object it the same as for the response body of GET /merchant/{mid}/customer/{cid}/insights.

Array of Invoice Email Addresses (strings) or Invoice Email Addresses (null) (Invoice Email Addresses)
Default: null

These email addresses is designated to receive the invoices attached to this trade account in addition to the user email used to create orders. In case the order is placed using a billing account ID, emails will be directed to the address specified for that billing account instead.

Legal Name (string) or Legal Name (null) (Legal Name)
Deprecated
Default: null

The legal name of the buyer company, deprecated as Two company search will set the customer legal name

Merchant Customer Id (string) or Merchant Customer Id (null) (Merchant Customer Id)
Default: null

The customer id registered in the merchant's solution

MerchantRedirectUrlsSchema (object) or null
Default: null
CreateAddressRequestSchema (object) or null
Default: null

Address fields connected to the business customer

Organization Id (string) or Organization Id (null) (Organization Id)
Default: null
Array of Shipping Addresses (objects) or Shipping Addresses (null) (Shipping Addresses)
Default: null

Array of address fields connected to the business customer

Trade Name (string) or Trade Name (null) (Trade Name)
Default: null

If the company is using a different brand/trade name, this can included here.

HookSchema (object) or null
Default: null
Website (string) or Website (null) (Website)
Default: null

The website of the business customer

Responses
200

OK

default

Error response

patch/v2/merchant/{mid}/customer/{cid}
Request samples
application/json
{
  • "merchant_customer_id": null,
  • "official_address": null,
  • "shipping_addresses": null,
  • "merchant_redirect_urls": null,
  • "email_domain": null,
  • "insights_webhook": null,
  • "legal_name": null,
  • "trade_name": null,
  • "website": null,
  • "webhooks": null,
  • "billing_email_address": null,
  • "invoice_email_addresses": null,
  • "additional_identifiers": null,
  • "organization_id": null
}
Response samples
application/json
{
  • "billing_email_address": null,
  • "invoice_email_addresses": null,
  • "email_domain": null,
  • "legal_name": null,
  • "merchant_customer_id": "string",
  • "merchant_redirect_urls": null,
  • "official_address": null,
  • "website": null,
  • "insights_webhook": null,
  • "shipping_addresses": null,
  • "trade_name": null,
  • "webhooks": null,
  • "additional_identifiers": null,
  • "estimated_monthly_spend": null,
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",
  • "approved_for_credit": true,
  • "review_status": "PENDING_MANUAL_REVIEW",
  • "buyer_is_in_arrears": null,
  • "decline_reason": null,
  • "country_prefix": "GB",
  • "organization_id": null,
  • "approved_for_credit_with_conditions": {
    },
  • "max_single_order_value": null,
  • "credit_limit": null,
  • "credit_limit_balance": null,
  • "credit_limit_currency": "GBP"
}

Get customer record

SecurityX-Api-Key
Request
path Parameters
cid
required
string

Customer ID

mid
required
string

Merchant ID

Responses
200

OK

default

Error response

get/v2/merchant/{mid}/customer/{cid}
Request samples
Response samples
application/json
{
  • "billing_email_address": null,
  • "invoice_email_addresses": null,
  • "email_domain": null,
  • "legal_name": null,
  • "merchant_customer_id": "string",
  • "merchant_redirect_urls": null,
  • "official_address": null,
  • "website": null,
  • "insights_webhook": null,
  • "shipping_addresses": null,
  • "trade_name": null,
  • "webhooks": null,
  • "additional_identifiers": null,
  • "estimated_monthly_spend": null,
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",
  • "approved_for_credit": true,
  • "review_status": "PENDING_MANUAL_REVIEW",
  • "buyer_is_in_arrears": null,
  • "decline_reason": null,
  • "country_prefix": "GB",
  • "organization_id": null,
  • "approved_for_credit_with_conditions": {
    },
  • "max_single_order_value": null,
  • "credit_limit": null,
  • "credit_limit_balance": null,
  • "credit_limit_currency": "GBP"
}

Get customer from external customer ID

SecurityX-Api-Key
Request
path Parameters
merchant_customer_id
required
string

External customer ID

mid
required
string

Merchant ID

Responses
302

Redirect to the GET customer endpoint (/v2/merchant//customer/)

default

Error response

get/v2/merchant/{mid}/customer_lookup/{merchant_customer_id}
Request samples
Response samples
application/json
{
  • "error_code": null,
  • "error_details": null,
  • "error_message": null,
  • "error_json": null,
  • "error_trace_id": null
}

Merchant Customer User Onboarding

Create customer user record

SecurityX-Api-Key
Request
path Parameters
cid
required
string

Customer ID

mid
required
string

Merchant ID

Request Body schema: application/json
email
required
string <email> (Email)

This is the user email address

first_name
required
string (First Name)

This is the user first name

last_name
required
string (Last Name)

This is the user last name

merchant_user_id
required
string (Merchant User Id) [ 1 .. 255 ] characters

Your internal ID of this user (the employee of your business customer).

Phone (string) or Phone (null) (Phone)
Default: null

This is the user phone number

verification_success_redirect_url
required
string (Verification Success Redirect Url)

Redirect url after user successfully completes verification

Array of Verified Fields (strings) or Verified Fields (null) (Verified Fields)
Default: null

List of verified user credentials set by the merchant

Responses
201

Created

default

Error response

post/v2/merchant/{mid}/customer/{cid}/user
Request samples
application/json
{
  • "email": "user@example.com",
  • "first_name": "string",
  • "last_name": "string",
  • "merchant_user_id": "string",
  • "phone": null,
  • "verification_success_redirect_url": "string",
  • "verified_fields": null
}
Response samples
application/json
{
  • "email": "user@example.com",
  • "first_name": "string",
  • "last_name": "string",
  • "merchant_user_id": "string",
  • "phone": null,
  • "verification_success_redirect_url": "string",
  • "verified_fields": null,
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "is_legal_rep": null,
  • "user_verification_url": null,
  • "verified": true,
  • "credit_builder_url": null
}

Get customer user list

Fetch a list of users attached to the business customer account. Use ?limit or ?page_cursor parameter for cursor-based pagination.

SecurityX-Api-Key
Request
path Parameters
cid
required
string

Customer ID

mid
required
string

Merchant ID

query Parameters
Limit (integer) or Limit (null) (Limit)
Default: null

The maximum number of items on a single page, ie the page size.

Page Cursor (string) or Page Cursor (null) (Page Cursor)
Default: null

The requested page, base64str encoded.

Responses
200

Customer user list - returns CustomerUserResponseListSchemaV2 by default, or CustomerUserResponseListPaginatedSchemaV2 when limit parameter is provided

default

Error response

get/v2/merchant/{mid}/customer/{cid}/user
Request samples
Response samples
application/json
[ ]

Update a customer user record

SecurityX-Api-Key
Request
path Parameters
cid
required
string

Customer ID

mid
required
string

Merchant ID

uid
required
string

User ID

Request Body schema: application/json
Email (string) or Email (null) (Email)
Default: null

This is the user email address

First Name (string) or First Name (null) (First Name)
Default: null

This is the user first name

Last Name (string) or Last Name (null) (Last Name)
Default: null

This is the user last name

Merchant User Id (string) or Merchant User Id (null) (Merchant User Id)
Default: null

Your internal ID of this user (the employee of your business customer).

Phone (string) or Phone (null) (Phone)
Default: null

This is the user phone number

Verification Success Redirect Url (string) or Verification Success Redirect Url (null) (Verification Success Redirect Url)
Default: null

Redirect url after user successfully completes verification

Array of Verified Fields (strings) or Verified Fields (null) (Verified Fields)
Default: null

List of verified user credentials set by the merchant

Responses
200

OK

default

Error response

patch/v2/merchant/{mid}/customer/{cid}/user/{uid}
Request samples
application/json
{
  • "email": null,
  • "first_name": null,
  • "last_name": null,
  • "merchant_user_id": null,
  • "phone": null,
  • "verification_success_redirect_url": null,
  • "verified_fields": null
}
Response samples
application/json
{
  • "email": "user@example.com",
  • "first_name": "string",
  • "last_name": "string",
  • "merchant_user_id": "string",
  • "phone": null,
  • "verification_success_redirect_url": "string",
  • "verified_fields": null,
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "is_legal_rep": null,
  • "user_verification_url": null,
  • "verified": true,
  • "credit_builder_url": null
}

Replace customer user record

SecurityX-Api-Key
Request
path Parameters
cid
required
string

Customer ID

mid
required
string

Merchant ID

uid
required
string

User ID

Request Body schema: application/json
Email (string) or Email (null) (Email)
Default: null

This is the user email address

First Name (string) or First Name (null) (First Name)
Default: null

This is the user first name

Last Name (string) or Last Name (null) (Last Name)
Default: null

This is the user last name

merchant_user_id
required
string (Merchant User Id) [ 1 .. 255 ] characters

Your internal ID of this user (the employee of your business customer).

Phone (string) or Phone (null) (Phone)
Default: null

This is the user phone number

Verification Success Redirect Url (string) or Verification Success Redirect Url (null) (Verification Success Redirect Url)
Default: null

Redirect url after user successfully completes verification

Array of Verified Fields (strings) or Verified Fields (null) (Verified Fields)
Default: null

List of verified user credentials set by the merchant

Responses
200

OK

default

Error response

put/v2/merchant/{mid}/customer/{cid}/user/{uid}
Request samples
application/json
{
  • "email": null,
  • "first_name": null,
  • "last_name": null,
  • "merchant_user_id": "string",
  • "phone": null,
  • "verification_success_redirect_url": null,
  • "verified_fields": null
}
Response samples
application/json
{
  • "email": "user@example.com",
  • "first_name": "string",
  • "last_name": "string",
  • "merchant_user_id": "string",
  • "phone": null,
  • "verification_success_redirect_url": "string",
  • "verified_fields": null,
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "is_legal_rep": null,
  • "user_verification_url": null,
  • "verified": true,
  • "credit_builder_url": null
}

Delete customer user record.

SecurityX-Api-Key
Request
path Parameters
cid
required
string

Customer ID

mid
required
string

Merchant ID

uid
required
string

User ID

Responses
204

No Content

default

Error response

delete/v2/merchant/{mid}/customer/{cid}/user/{uid}
Request samples
Response samples
application/json
{
  • "error_code": null,
  • "error_details": null,
  • "error_message": null,
  • "error_json": null,
  • "error_trace_id": null
}

Get customer user record

SecurityX-Api-Key
Request
path Parameters
cid
required
string

Customer ID

mid
required
string

Merchant ID

uid
required
string

User ID

Responses
200

OK

default

Error response

get/v2/merchant/{mid}/customer/{cid}/user/{uid}
Request samples
Response samples
application/json
{
  • "email": "user@example.com",
  • "first_name": "string",
  • "last_name": "string",
  • "merchant_user_id": "string",
  • "phone": null,
  • "verification_success_redirect_url": "string",
  • "verified_fields": null,
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "is_legal_rep": null,
  • "user_verification_url": null,
  • "verified": true,
  • "credit_builder_url": null
}

Notify customer user

Send a notification to customer user with a URL to complete onboarding via specified notification channel.

SecurityX-Api-Key
Request
path Parameters
cid
required
string

Customer ID

mid
required
string

Merchant ID

uid
required
string

User ID

Request Body schema: application/json
channel
required
string (NotificationChannel)
Enum: "sms" "email"
Responses
200

OK

default

Error response

post/v2/merchant/{mid}/customer/{cid}/user/{uid}/notify
Request samples
application/json
{
  • "channel": "sms"
}
Response samples
application/json
{
  • "error_code": null,
  • "error_details": null,
  • "error_message": null,
  • "error_json": null,
  • "error_trace_id": null
}

Get customer user record from external user ID

SecurityX-Api-Key
Request
path Parameters
cid
required
string

Customer ID

merchant_user_id
required
string

External user ID

mid
required
string

Merchant ID

Responses
200

OK

default

Error response

get/v2/merchant/{mid}/customer/{cid}/user_lookup/{merchant_user_id}
Request samples
Response samples
application/json
{
  • "email": "user@example.com",
  • "first_name": "string",
  • "last_name": "string",
  • "merchant_user_id": "string",
  • "phone": null,
  • "verification_success_redirect_url": "string",
  • "verified_fields": null,
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "is_legal_rep": null,
  • "user_verification_url": null,
  • "verified": true,
  • "credit_builder_url": null
}