Customers represent the people and businesses that buy from you. A customer record keeps a buyer’s name, contact details, addresses, and your own reference together, giving you a stable identity to use across purchases.
Use a customer when you expect a buyer to return, want to save a payment method, or need a consistent view of their account history. Attach the returned customer ID to future orders and payment methods so activity for the same buyer remains connected.
You can also provide customer details directly when you create an order. Inttegro creates a guest customer for that checkout; update the customer later if the buyer chooses to create an account or return for another purchase. See Manage customers for the complete integration flow.
The customer object
A customer object contains a buyer’s profile and current customer-held balances. Orders and payment methods are separate resources: use the customer ID to associate them with the same buyer.
Properties
Customerv13.1.0Go SDK responseCustomerv14.0.0Java SDK responseCustomerv11.1.0PHP SDK responseCustomerv15.0.0Python SDK responseCustomerv15.0.0Ruby SDK responseCustomerv13.0.0TypeScript SDK responseCustomerv15.0.0#
BalancebalanceBalancebalancebalancebalancebalancebalanceCustomerBalance?objectmap[string]BalanceValueCustomerBalancearraydict[str, CustomerBalanceValue]T::Hash[String, Customer::BalanceValue]CustomerBalancerequiredAlways-present map of customer-held balances by currency. The map is empty when the customer has no balance entries.Click or tap to expand- #
Currency<currency>Currencycurrencycurrency<currency><currency>currencyDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>dict[str, Any]T::Hash[String, T.untyped]Record<string, unknown>View <currency> attributesClick or tap to expand
Balance entry keyed by lowercase, three-letter ISO 4217 currency code, such as"ghs""ghs""ghs""ghs"'ghs''ghs''ghs'"ghs".- #
AsOfas_ofAsOfasOfasOfas_ofas_ofasOfDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDatePoint in time represented by this balance entry. Later customer balance activity may not yet be reflected. - #
AvailableavailableAvailableavailableavailableavailableavailableavailableDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>dict[str, Any]T::Hash[String, T.untyped]Record<string, unknown>View available attributesClick or tap to expand
Amount available for the customer in this currency.- #
CurrencycurrencyCurrencycurrencycurrencycurrencycurrencycurrencystringstringstringStringstringstrStringstringLowercase ISO 4217 currency code for the balance entry. - Available amount in the currency's smallest unit.
#
BillingAddressbilling_addressBillingAddressbillingAddressbillingAddressbilling_addressbilling_addressbillingAddressAddress?object*AddressAddress?Customer\AddressCustomerAddress | NoneT.nilable(Customer::Address)CustomerAddress | nullBilling address saved on the customer when available.Click or tap to expand- #
PhoneNumberphone_numberPhoneNumberphoneNumberphoneNumberphone_numberphone_numberphoneNumberstring?stringstringString?stringstr | NoneT.nilable(String)stringContact phone number for this address.
- #
CreatedAtcreated_atCreatedAtcreatedAtcreatedAtcreated_atcreated_atcreatedAtDateTimeOffset?timestamp*TimeOffsetDateTimeDateTimeImmutabledatetimeTimeDaterequiredWhen the customer record was created.
#
CustomDatacustom_dataCustomDatacustomDatacustomDatacustom_datacustom_datacustomDataCustomData?object*DataCustomData?CustomDataCustomData | NoneT.nilable(CustomData)CustomDataClick or tap to expandYour own key-value metadata. Response values are strings. This property is omitted when no custom data has been stored.
- #
EmailAddressemail_addressEmailemailAddressemailAddressemail_addressemail_addressemailAddressstring?stringstringString?stringstr | NoneT.nilable(String)string | nullCustomer email address when one has been provided.
- #
FingerprintfingerprintFingerprintfingerprintfingerprintfingerprintfingerprintfingerprintstringstringstringStringstringstrStringstringrequiredUse this application-scoped value to spot possible duplicate customer records. When two fingerprints match within the same application, the records likely belong to the same buyer. Compare fingerprints only within that application, and continue to use each customer ID for API operations.
- #
PhoneNumberphone_numberPhoneNumberphoneNumberphoneNumberphone_numberphone_numberphoneNumberstring?stringstringString?stringstr | NoneT.nilable(String)string | nullCustomer phone number when one has been provided.
#
ShippingAddressshipping_addressShippingAddressshippingAddressshippingAddressshipping_addressshipping_addressshippingAddressAddress?object*AddressAddress?Customer\AddressCustomerAddress | NoneT.nilable(Customer::Address)CustomerAddress | nullShipping address saved on the customer when available.Click or tap to expand- #
PhoneNumberphone_numberPhoneNumberphoneNumberphoneNumberphone_numberphone_numberphoneNumberstring?stringstringString?stringstr | NoneT.nilable(String)stringContact phone number for this address.
- #
UpdatedAtupdated_atUpdatedAtupdatedAtupdatedAtupdated_atupdated_atupdatedAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)Date | nullWhen the customer was last updated. Omitted until the first update.
Create customer POST /customers/create
Create a customer when you want to recognize a buyer across purchases. Save the returned customer ID in your system, then use it when creating orders or saving payment methods for that buyer.
Required attributes
CreateCustomerRequestv13.1.0Go SDK requestCreateParamsv14.0.0Java SDK requestCreateCustomerParamsv11.1.0PHP SDK requestCustomer\CreateRequestv15.0.0Python SDK requestCreateRequestv15.0.0Ruby SDK requestCustomer::CreateRequestv13.0.0TypeScript SDK requestCreateCustomerRequestv15.0.0Optional attributes
CreateCustomerRequestv13.1.0Go SDK requestCreateParamsv14.0.0Java SDK requestCreateCustomerParamsv11.1.0PHP SDK requestCustomer\CreateRequestv15.0.0Python SDK requestCreateRequestv15.0.0Ruby SDK requestCustomer::CreateRequestv13.0.0TypeScript SDK requestCreateCustomerRequestv15.0.0#
BillingAddressbilling_addressBillingAddressbillingAddress(…)billingAddressbilling_addressbilling_addressbillingAddressAddress?object*AddressAddress?AddressInputAddressInputT.nilable(Customer::AddressInput)CustomerAddressInputBilling address.BillingAddress.Countrybilling_address.countryBillingAddress.CountrybillingAddress.countrybillingAddress.countrybilling_address.countrybilling_address.countrybillingAddress.countryis required when the object is provided.Click or tap to expand- #
PhoneNumberphone_numberPhoneNumberphoneNumber(…)phoneNumberphone_numberphone_numberphoneNumberstring?stringstringString?stringstrT.nilable(String)stringContact phone number.
#
CustomDatacustom_dataCustomDatacustomData(…)customDatacustom_datacustom_datacustomDataCustomDataInput?object*InputCustomDataInput?CustomDataInputCustomDataInputT.nilable(CustomDataInput)CustomDataInputClick or tap to expandMetadata from your own system, such as a loyalty tier or account manager. Use string values. The complete object may be up to 25 KB, and each key may contain up to 256 characters. See Custom data.
- #
EmailAddressemail_addressEmailemailAddress(…)emailAddressemail_addressemail_addressemailAddressstring?stringstringString?stringstrT.nilable(String)stringCustomer email address. Must be between 3 and 254 characters when provided.
- #
PhoneNumberphone_numberPhoneNumberphoneNumber(…)phoneNumberphone_numberphone_numberphoneNumberstring?stringstringString?stringstrT.nilable(String)stringCustomer phone number. Must be between 7 and 20 characters when provided.
#
ShippingAddressshipping_addressShippingAddressshippingAddress(…)shippingAddressshipping_addressshipping_addressshippingAddressAddress?object*AddressAddress?AddressInputAddressInputT.nilable(Customer::AddressInput)CustomerAddressInputShipping address.ShippingAddress.Countryshipping_address.countryShippingAddress.CountryshippingAddress.countryshippingAddress.countryshipping_address.countryshipping_address.countryshippingAddress.countryis required when the object is provided.Click or tap to expand- #
PhoneNumberphone_numberPhoneNumberphoneNumber(…)phoneNumberphone_numberphone_numberphoneNumberstring?stringstringString?stringstrT.nilable(String)stringContact phone number.
Idcustomer.idIDididididid as the Inttegro customer ID for this buyer.Request
curl https://api.inttegro.com/customers/create \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: create-customer-user-123456" \
-d '{
"name": "Jane Mensah",
"title": "Ms.",
"reference": "user_123456",
"email_address": "jane@example.com",
"phone_number": "+233242057831",
"custom_data": {
"loyalty_tier": "gold",
"account_manager": "am_789"
}
}'import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.customers.create({
name: "Jane Mensah",
title: "Ms.",
reference: "user_123456",
emailAddress: "jane@example.com",
phoneNumber: "+233242057831",
customData: {
loyalty_tier: "gold",
account_manager: "am_789",
},
})package main
import (
"context"
"log"
"os"
inttegro "github.com/inttegro/inttegro-sdk-go/v14"
"github.com/inttegro/inttegro-sdk-go/v14/customdata"
"github.com/inttegro/inttegro-sdk-go/v14/customer"
)
func main() {
ctx := context.Background()
client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))
params := customer.CreateParams{
Name: "Jane Mensah",
Title: "Ms.",
Reference: "user_123456",
Email: "jane@example.com",
PhoneNumber: "+233242057831",
CustomData: func() *customdata.Input { value, err := customdata.NewInput(map[string]any{
"loyalty_tier": "gold",
"account_manager": "am_789",
}); if err != nil { panic(err) }; return value }(),
}
result, err := client.Customers.Create(ctx, params)
if err != nil {
log.Fatal(err)
}
_ = result
}import os
import inttegro
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.customers.create(inttegro.customer.CreateRequest(
name="Jane Mensah",
title="Ms.",
reference="user_123456",
email_address="jane@example.com",
phone_number="+233242057831",
custom_data=inttegro.CustomDataInput({
"loyalty_tier": "gold",
"account_manager": "am_789",
}),
))<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->customers->create([
'name' => 'Jane Mensah',
'title' => 'Ms.',
'reference' => 'user_123456',
'email_address' => 'jane@example.com',
'phone_number' => '+233242057831',
'custom_data' => [
'loyalty_tier' => 'gold',
'account_manager' => 'am_789',
],
]);require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.customers.create(
name: "Jane Mensah",
title: "Ms.",
reference: "user_123456",
email_address: "jane@example.com",
phone_number: "+233242057831",
custom_data: {
loyalty_tier: "gold",
account_manager: "am_789",
}
)import com.inttegro.Client;
import com.inttegro.customers.CreateCustomerParams;
import com.inttegro.CustomDataInput;
public class Example {
public static void main(String[] args) throws Exception {
var client = new Client(System.getenv("INTTEGRO_API_KEY"));
var params = CreateCustomerParams.builder()
.name("Jane Mensah")
.title("Ms.")
.reference("user_123456")
.emailAddress("jane@example.com")
.phoneNumber("+233242057831")
.customData(new CustomDataInput()
.set("loyalty_tier", "gold")
.set("account_manager", "am_789"))
.build();
var result = client.customers().create(params);
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Customers.CreateAsync(new CreateCustomerRequest {
Name = "Jane Mensah",
Title = "Ms.",
Reference = "user_123456",
EmailAddress = "jane@example.com",
PhoneNumber = "+233242057831",
CustomData = new Inttegro.CustomDataInput()
.Set("loyalty_tier", "gold")
.Set("account_manager", "am_789"),
});{
"customer": {
"id": "cu_a1b2c3d4e5",
"name": "Jane Mensah",
"title": "Ms.",
"email_address": "jane@example.com",
"phone_number": "+233242057831",
"reference": "user_123456",
"custom_data": {
"loyalty_tier": "gold",
"account_manager": "am_789"
},
"guest": false,
"balance": {},
"created_at": "2025-11-23T14:30:00Z"
}
}Search customers POST /customers/search
Search customers by name or another remembered detail, or narrow the result set by customer kind. Search results are discovery summaries: use the returned customer ID with Lookup customer before a decision or mutation that depends on current customer state.
Request attributes
ResourceSearchRequestv13.1.0Go SDK requestParamsv14.0.0Java SDK requestResourceSearchRequestv11.1.0PHP SDK requestResourceSearchRequestv15.0.0Python SDK requestRequestv15.0.0Ruby SDK requestSearch::Requestv13.0.0TypeScript SDK requestResourceSearchRequestv15.0.0Response
Returns a typed search page with discovery summaries inResultsresultsResultsresultsresultsresultsresultsresults, requested facet counts in FacetsfacetsFacetsfacetsfacetsfacetsfacetsfacets, page and total counts, an optional NextCursornext_cursorNextCursornextCursornextCursornext_cursornext_cursornextCursor, and FreshnessfreshnessFreshnessfreshnessfreshnessfreshnessfreshnessfreshness metadata. Total.Relationtotal.relationTotal.Relationtotal.relationtotal.relationtotal.relationtotal.relationtotal.relation states whether the total is exact or a lower bound.Request
curl https://api.inttegro.com/customers/search \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "text": "Ama Mensah" }'import { InttegroClient, type ResourceSearchRequest } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const request: ResourceSearchRequest = {
text: "Ama Mensah",
}
const page = await inttegro.customers.search(request)package main
import (
"context"
"log"
"os"
inttegro "github.com/inttegro/inttegro-sdk-go/v14"
"github.com/inttegro/inttegro-sdk-go/v14/search"
)
func main() {
client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))
params := search.Params{
Text: "Ama Mensah",
}
page, err := client.Customers.Search(context.Background(), params)
if err != nil {
log.Fatal(err)
}
_ = page
}import os
import inttegro
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
request = inttegro.search.Request(
text="Ama Mensah",
)
page = client.customers.search(request)<?php
use Inttegro\Client;
use Inttegro\ResourceSearchRequest;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$request = new ResourceSearchRequest(
text: 'Ama Mensah',
);
$page = $client->customers->search($request);require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
request = Inttegro::Search::Request.new(
text: "Ama Mensah",
)
page = client.customers.search(request)import com.inttegro.Client;
import com.inttegro.search.ResourceSearchRequest;
public class Example {
public static void main(String[] args) throws Exception {
var client = new Client(System.getenv("INTTEGRO_API_KEY"));
var request = ResourceSearchRequest.builder()
.text("Ama Mensah")
.build();
var page = client.customers().search(request);
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var request = new ResourceSearchRequest
{
Text = "Ama Mensah",
};
var page = await inttegro.Customers.SearchAsync(request);{
"search": {
"results": [
{
"resource": { "type": "customer", "id": "cu_a1b2c3d4e5" },
"title": "Ama Mensah",
"summary": "ama@example.com",
"updated_at": "2026-09-21T10:30:00Z"
}
]
}
}Lookup customer POST /customers/lookup
Retrieve a customer’s current profile and available balances. Use this when showing account details, preparing a repeat purchase, or helping a customer with their account.
Required attributes
LookupCustomerRequestv13.1.0Go SDK requestv14.0.0Java SDK requestv11.1.0PHP SDK requestv15.0.0Python SDK requestv15.0.0Ruby SDK requestCustomer::LookupRequestv13.0.0TypeScript SDK requestLookupCustomerRequestv15.0.0- #
CustomerIdcustomer_idCustomerIDcustomerIdcustomerIdcustomer_idcustomer_idcustomerIdstring?stringstringStringstringstrStringstringrequiredCustomer ID returned by Inttegro, beginning with
cu_.
The response returns the customer object, including available customer-held balances by currency.
Request
curl https://api.inttegro.com/customers/lookup \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "cu_a1b2c3d4e5"
}'import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.customers.lookup({
customerId: "cu_a1b2c3d4e5",
})package main
import (
"context"
"log"
"os"
inttegro "github.com/inttegro/inttegro-sdk-go/v14"
)
func main() {
ctx := context.Background()
client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))
result, err := client.Customers.Lookup(ctx, "cu_a1b2c3d4e5")
if err != nil {
log.Fatal(err)
}
_ = result
}import os
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.customers.lookup("cu_a1b2c3d4e5")<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->customers->lookup("cu_a1b2c3d4e5");require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.customers.lookup(customer_id: "cu_a1b2c3d4e5")import com.inttegro.Client;
public class Example {
public static void main(String[] args) throws Exception {
var client = new Client(System.getenv("INTTEGRO_API_KEY"));
var result = client.customers().lookup("cu_a1b2c3d4e5");
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Customers.LookupAsync("cu_a1b2c3d4e5");{
"customer": {
"id": "cu_a1b2c3d4e5",
"name": "Jane Mensah",
"title": "Ms.",
"email_address": "jane@example.com",
"phone_number": "+233242057831",
"reference": "user_123456",
"guest": false,
"billing_address": {
"name": "Jane Mensah",
"phone_number": "+233242057831",
"line1": "23 Adenta High Street",
"line2": "East Legon Hills",
"city": "Accra",
"region": "Greater Accra",
"post_code": "GA-422-1134",
"country": "GH"
},
"shipping_address": {
"name": "Jane Mensah",
"phone_number": "+233242057831",
"line1": "23 Adenta High Street",
"line2": "East Legon Hills",
"city": "Accra",
"region": "Greater Accra",
"post_code": "GA-422-1134",
"country": "GH"
},
"custom_data": {
"loyalty_tier": "gold",
"account_manager": "am_789"
},
"balance": {
"ghs": {
"available": {
"currency": "ghs",
"value": 6500
},
"as_of": "2025-11-24T07:55:00Z"
}
},
"created_at": "2025-11-23T14:30:00Z",
"updated_at": "2025-11-24T08:00:00Z"
}
}Update customer POST /customers/update
Keep a customer’s name, contact details, addresses, reference, or custom data current. Send only the fields you want to change; omitted fields keep their existing values.
Updating a guest customer created during checkout turns it into a reusable customer, so you can use the same customer ID for future purchases.
Update behavior
- For example,
EmailAddressemail_addressEmailemailAddressemailAddressemail_addressemail_addressemailAddressset tonullnullnilnullnullNonenilnullbehaves like an omitted field; it does not clear the existing value. The same is true for other top-level optional fields. - An address replaces the complete saved address. Include every address field you want to keep.
CustomDatacustom_dataCustomDatacustomDatacustomDatacustom_datacustom_datacustomDatareplaces the complete metadata object rather than merging with it. Send an empty object to remove all custom data.
Request attributes
UpdateCustomerRequestv13.1.0Go SDK requestUpdateParamsv14.0.0Java SDK requestUpdateCustomerParamsv11.1.0PHP SDK requestCustomer\UpdateRequestv15.0.0Python SDK requestUpdateRequestv15.0.0Ruby SDK requestCustomer::UpdateRequestv13.0.0TypeScript SDK requestUpdateCustomerRequestv15.0.0#
BillingAddressbilling_addressBillingAddressbillingAddressbillingAddressbilling_addressbilling_addressbillingAddressAddress?object*AddressAddress?AddressInputAddressInputT.nilable(Customer::AddressInput)CustomerAddressInputReplacement billing address.BillingAddress.Countrybilling_address.countryBillingAddress.CountrybillingAddress.countrybillingAddress.countrybilling_address.countrybilling_address.countrybillingAddress.countryis required when this object is provided.Click or tap to expand- #
PhoneNumberphone_numberPhoneNumberphoneNumber(…)phoneNumberphone_numberphone_numberphoneNumberstring?stringstringString?stringstrT.nilable(String)stringContact phone number.
#
CustomDatacustom_dataCustomDatacustomDatacustomDatacustom_datacustom_datacustomDataCustomDataInput?object*InputCustomDataInput?CustomDataInputCustomDataInputT.nilable(CustomDataInput)CustomDataInputClick or tap to expandReplacement metadata object. Response values are strings.
- #
CustomerIdcustomer_idCustomerIDcustomerIdcustomerIdcustomer_idcustomer_idcustomerIdstring?stringstringStringstringstrStringstringrequiredCustomer ID returned by Inttegro, beginning with
cu_. - #
EmailAddressemail_addressEmailemailAddressemailAddressemail_addressemail_addressemailAddressstring?stringstringString?stringstrT.nilable(String)stringReplacement email address. Must be between 3 and 254 characters.
- #
PhoneNumberphone_numberPhoneNumberphoneNumberphoneNumberphone_numberphone_numberphoneNumberstring?stringstringString?stringstrT.nilable(String)stringReplacement phone number. Must be between 7 and 20 characters.
#
ShippingAddressshipping_addressShippingAddressshippingAddressshippingAddressshipping_addressshipping_addressshippingAddressAddress?object*AddressAddress?AddressInputAddressInputT.nilable(Customer::AddressInput)CustomerAddressInputReplacement shipping address.ShippingAddress.Countryshipping_address.countryShippingAddress.CountryshippingAddress.countryshippingAddress.countryshipping_address.countryshipping_address.countryshippingAddress.countryis required when this object is provided.Click or tap to expand- #
PhoneNumberphone_numberPhoneNumberphoneNumber(…)phoneNumberphone_numberphone_numberphoneNumberstring?stringstringString?stringstrT.nilable(String)stringContact phone number.
The response returns the updated customer.
Request
curl https://api.inttegro.com/customers/update \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: update-customer-user-123456-v2" \
-d '{
"customer_id": "cu_a1b2c3d4e5",
"name": "Jane Mensah-Asante",
"billing_address": {
"name": "Jane Mensah-Asante",
"line1": "5 Liberation Road",
"city": "Accra",
"country": "GH"
},
"custom_data": {
"loyalty_tier": "platinum"
}
}'import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.customers.update({
customerId: "cu_a1b2c3d4e5",
name: "Jane Mensah-Asante",
billingAddress: {
name: "Jane Mensah-Asante",
line1: "5 Liberation Road",
city: "Accra",
country: "GH",
},
customData: {
loyalty_tier: "platinum",
},
}, {
idempotencyKey: "update-customer-user-123456-v2",
})package main
import (
"context"
"log"
"os"
inttegro "github.com/inttegro/inttegro-sdk-go/v14"
"github.com/inttegro/inttegro-sdk-go/v14/customdata"
"github.com/inttegro/inttegro-sdk-go/v14/customer"
)
func main() {
ctx := context.Background()
client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))
params := customer.UpdateParams{
CustomerID: "cu_a1b2c3d4e5",
Name: "Jane Mensah-Asante",
BillingAddress: &customer.Address{
Name: "Jane Mensah-Asante",
Line1: "5 Liberation Road",
City: "Accra",
Country: "GH",
},
CustomData: func() *customdata.Input { value, err := customdata.NewInput(map[string]any{
"loyalty_tier": "platinum",
}); if err != nil { panic(err) }; return value }(),
}
result, err := client.Customers.Update(ctx, params)
if err != nil {
log.Fatal(err)
}
_ = result
}import os
import inttegro
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.customers.update(inttegro.customer.UpdateRequest(
customer_id="cu_a1b2c3d4e5",
name="Jane Mensah-Asante",
billing_address=inttegro.customer.AddressInput(
name="Jane Mensah-Asante",
line1="5 Liberation Road",
city="Accra",
country="GH",
),
custom_data=inttegro.CustomDataInput({
"loyalty_tier": "platinum",
}),
),
idempotency_key="update-customer-user-123456-v2")<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->customers->update([
'customer_id' => 'cu_a1b2c3d4e5',
'name' => 'Jane Mensah-Asante',
'billing_address' => [
'name' => 'Jane Mensah-Asante',
'line1' => '5 Liberation Road',
'city' => 'Accra',
'country' => 'GH',
],
'custom_data' => [
'loyalty_tier' => 'platinum',
],
], "update-customer-user-123456-v2");require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.customers.update(
customer_id: "cu_a1b2c3d4e5",
name: "Jane Mensah-Asante",
billing_address: {
name: "Jane Mensah-Asante",
line1: "5 Liberation Road",
city: "Accra",
country: "GH",
},
custom_data: {
loyalty_tier: "platinum",
}
)import com.inttegro.Client;
import com.inttegro.customers.Address;
import com.inttegro.CustomDataInput;
public class Example {
public static void main(String[] args) throws Exception {
var client = new Client(System.getenv("INTTEGRO_API_KEY"));
var params = new UpdateCustomerParams();
params.customerId = "cu_a1b2c3d4e5";
params.name = "Jane Mensah-Asante";
params.billingAddress = Address.builder()
.name("Jane Mensah-Asante")
.line1("5 Liberation Road")
.city("Accra")
.country("GH")
.build();
params.customData = new CustomDataInput()
.set("loyalty_tier", "platinum");
var result = client.customers().update(params);
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Customers.UpdateAsync(new UpdateCustomerRequest {
CustomerId = "cu_a1b2c3d4e5",
Name = "Jane Mensah-Asante",
BillingAddress = new Address {
Name = "Jane Mensah-Asante",
Line1 = "5 Liberation Road",
Country = "GH",
},
CustomData = new Inttegro.CustomDataInput()
.Set("loyalty_tier", "platinum"),
});{
"customer": {
"id": "cu_a1b2c3d4e5",
"name": "Jane Mensah-Asante",
"title": "Ms.",
"email_address": "jane@example.com",
"phone_number": "+233242057831",
"reference": "user_123456",
"custom_data": {
"loyalty_tier": "platinum"
},
"guest": false,
"billing_address": {
"name": "Jane Mensah-Asante",
"line1": "5 Liberation Road",
"city": "Accra",
"country": "GH"
},
"balance": {},
"created_at": "2025-11-23T14:30:00Z",
"updated_at": "2025-11-25T10:45:00Z"
}
}Page through customers POST /customers/page
Browse customers from newest to oldest. Use this endpoint to build customer lists, review recent sign-ups, or select a customer before retrieving their full account activity.
Request attributes
PageCustomersRequestv13.1.0Go SDK requestPageParamsv14.0.0Java SDK requestPageCustomersParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestPageRequestv15.0.0Ruby SDK requestCustomer::PageRequestv13.0.0TypeScript SDK requestPageCustomersRequestv15.0.0- #
PageNumberpage_numberPageNumberpageNumber(…)pageNumberpage_numberpage_numberpageNumberint?integerintIntegerintintIntegernumberrequired1-based page index to fetch. Must be between
1and10.
Customerspage.customersCustomerscustomerscustomerscustomerscustomerscustomers collection and a Sizepage.sizeSizesizesizesizesizesize of 00000000.Request
curl https://api.inttegro.com/customers/page \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page_number": 1,
"page_size": 50
}'import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.customers.page({
pageNumber: 1,
pageSize: 50,
})package main
import (
"context"
"log"
"os"
inttegro "github.com/inttegro/inttegro-sdk-go/v14"
"github.com/inttegro/inttegro-sdk-go/v14/customer"
)
func main() {
ctx := context.Background()
client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))
params := customer.PageParams{
PageNumber: 1,
PageSize: 50,
}
result, err := client.Customers.Page(ctx, params)
if err != nil {
log.Fatal(err)
}
_ = result
}import os
import inttegro
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.customers.page(inttegro.customer.PageRequest(
page_number=1,
page_size=50,
))<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->customers->page([
'page_number' => 1,
'page_size' => 50,
]);require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.customers.page(
page_number: 1,
page_size: 50
)import com.inttegro.Client;
import com.inttegro.customers.PageCustomersParams;
public class Example {
public static void main(String[] args) throws Exception {
var client = new Client(System.getenv("INTTEGRO_API_KEY"));
var params = PageCustomersParams.builder()
.pageNumber(1)
.pageSize(50)
.build();
var result = client.customers().page(params);
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Customers.PageAsync(new PageCustomersRequest {
PageNumber = 1,
PageSize = 50,
});{
"page": {
"number": 1,
"size": 2,
"customers": [
{
"id": "cu_a1b2c3d4e5",
"name": "Jane Mensah",
"email_address": "jane@example.com",
"phone_number": "+233242057831",
"reference": "user_123456",
"guest": false,
"billing_address": {
"name": "Jane Mensah",
"phone_number": "+233242057831",
"line1": "23 Adenta High Street",
"line2": "East Legon Hills",
"city": "Accra",
"region": "Greater Accra",
"post_code": "GA-422-1134",
"country": "GH"
},
"custom_data": {
"loyalty_tier": "gold"
},
"balance": {
"ghs": {
"available": {
"currency": "ghs",
"value": 6500
},
"as_of": "2025-11-24T07:55:00Z"
}
},
"created_at": "2025-11-23T14:30:00Z"
},
{
"id": "cu_f6g7h8i9j0",
"name": "Kojo Asante",
"title": "Mr.",
"phone_number": "+233201234567",
"guest": true,
"balance": {},
"created_at": "2025-11-22T09:15:00Z",
"updated_at": "2025-11-24T11:05:00Z"
}
]
}
}