Customers
Get a paginated list of customers with optional filtering
Number of items to return
100Specifies the cursor after which to start returning results. For the first page, this should be left empty. For subsequent pages, use the value of the end_cursor field from the previous response.
Specifies the cursor before which to return results. Use this to paginate backwards. For example, to load the previous page, provide the value of the start_cursor field from the last response.
Filter by creation date start (RFC3339 format)
Filter by creation date end (RFC3339 format)
Filter by customer name
OK
gaFpxBACEaXBVABEYbHG+X9LyLnHtruegaFpxBACEaXBVABEYbHG+X9LyLnHGET /customers HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
OK
{
"data": [
{
"city": "text",
"country": "text",
"created_at": "text",
"customer_integration_id": "text",
"default_payment_method_id": "text",
"ein": "text",
"email": "text",
"external_id": "text",
"id": "text",
"legal_name": "text",
"name": "text",
"postal_code": "text",
"state": "text",
"street_address": "text",
"sub_premise": "text"
}
],
"end_cursor": "gaFpxBACEaXBVABEYbHG+X9LyLnH",
"has_next_page": true,
"has_previous_page": false,
"start_cursor": "gaFpxBACEaXBVABEYbHG+X9LyLnH"
}Create a new customer with the provided information
Customer information
Created
Bad Request
Unprocessable Entity
POST /customers HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 196
{
"city": "text",
"country": "text",
"ein": "text",
"email": "text",
"external_id": "text",
"legal_name": "text",
"name": "text",
"postal_code": "text",
"state": "text",
"street_address": "text",
"sub_premise": "text"
}{
"city": "text",
"country": "text",
"created_at": "text",
"customer_integration_id": "text",
"default_payment_method_id": "text",
"ein": "text",
"email": "text",
"external_id": "text",
"id": "text",
"legal_name": "text",
"name": "text",
"postal_code": "text",
"state": "text",
"street_address": "text",
"sub_premise": "text"
}Get customer details by ID
Customer ID
OK
Not Found
GET /customers/{id} HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"city": "text",
"country": "text",
"created_at": "text",
"customer_integration_id": "text",
"default_payment_method_id": "text",
"ein": "text",
"email": "text",
"external_id": "text",
"id": "text",
"legal_name": "text",
"name": "text",
"postal_code": "text",
"state": "text",
"street_address": "text",
"sub_premise": "text"
}Archive a customer
Customer ID
OK
Bad Request
Not Found
Internal Server Error
DELETE /customers/{id} HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"city": "text",
"country": "text",
"created_at": "text",
"customer_integration_id": "text",
"default_payment_method_id": "text",
"ein": "text",
"email": "text",
"external_id": "text",
"id": "text",
"legal_name": "text",
"name": "text",
"postal_code": "text",
"state": "text",
"street_address": "text",
"sub_premise": "text"
}Patch customer information (company, legal name, EIN, street address, sub-premise, city, state, postal code, country)
Customer ID
Request body for patching customer information
New YorkUSA12-3456789Acme Corporation Inc.Acme Corp10001NY123 Main St, New York, NY 10001Apt 1OK
Bad Request
Not Found
PATCH /customers/{id} HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 218
{
"city": "New York",
"country": "USA",
"ein": "12-3456789",
"legal_name": "Acme Corporation Inc.",
"name": "Acme Corp",
"postal_code": "10001",
"state": "NY",
"street_address": "123 Main St, New York, NY 10001",
"sub_premise": "Apt 1"
}{
"city": "text",
"country": "text",
"created_at": "text",
"customer_integration_id": "text",
"default_payment_method_id": "text",
"ein": "text",
"email": "text",
"external_id": "text",
"id": "text",
"legal_name": "text",
"name": "text",
"postal_code": "text",
"state": "text",
"street_address": "text",
"sub_premise": "text"
}Get payment methods associated with a customer
Customer ID
OK
GET /customers/{id}/payment-methods HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
OK
{
"data": [
{
"brand": "visa",
"created_at": "text",
"default": true,
"exp_month": "01",
"exp_year": "2025",
"id": "text",
"last4": "text",
"type": "card"
}
]
}Get a specific payment method associated with a customer by payment method ID
Customer ID
Payment Method ID
OK
visa012025Bad Request
Not Found
GET /customers/{id}/payment-methods/{method_id} HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"brand": "visa",
"created_at": "text",
"default": true,
"exp_month": "01",
"exp_year": "2025",
"id": "text",
"last4": "text",
"type": "card"
}Restore a customer
Customer ID
OK
Bad Request
Not Found
Internal Server Error
POST /customers/{id}/restore HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"city": "text",
"country": "text",
"created_at": "text",
"customer_integration_id": "text",
"default_payment_method_id": "text",
"ein": "text",
"email": "text",
"external_id": "text",
"id": "text",
"legal_name": "text",
"name": "text",
"postal_code": "text",
"state": "text",
"street_address": "text",
"sub_premise": "text"
}Get a paginated list of users from a customer
Customer ID
Number of items to return
100Specifies the cursor after which to start returning results. For the first page, this should be left empty. For subsequent pages, use the value of the end_cursor field from the previous response.
Specifies the cursor before which to return results. Use this to paginate backwards. For example, to load the previous page, provide the value of the start_cursor field from the last response.
OK
gaFpxBACEaXBVABEYbHG+X9LyLnHtruegaFpxBACEaXBVABEYbHG+X9LyLnHGET /customers/{id}/users HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
OK
{
"data": [
{
"created_at": "text",
"email": "text",
"first_name": "text",
"id": "text",
"job_title": "text",
"last_name": "text",
"phone": "text"
}
],
"end_cursor": "gaFpxBACEaXBVABEYbHG+X9LyLnH",
"has_next_page": true,
"has_previous_page": false,
"start_cursor": "gaFpxBACEaXBVABEYbHG+X9LyLnH"
}Create a new customer user with the provided information
Customer ID
Created
Bad Request
Unprocessable Entity
POST /customers/{id}/users HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"email": "text",
"first_name": "text",
"last_name": "text"
}{
"created_at": "text",
"email": "text",
"first_name": "text",
"id": "text",
"job_title": "text",
"last_name": "text",
"phone": "text"
}Last updated
Was this helpful?
