Payment methods let customers save how they pay and reuse it on later orders. Use this API to save a method, retrieve it, update its owner or metadata, and control whether it can be used again.
Each payment method belongs to one customer. When charging a saved method, use it with that same customer. For end-to-end payment flows, see Accept a mobile money payment and Charge repeat customers.
The payment method object
The API returns a PaymentMethodpayment_methodPaymentMethodpaymentMethodpaymentMethodpayment_methodpayment_methodpaymentMethod envelope for tokenization, lookup, update, and lifecycle operations. Optional properties are omitted when they do not apply or have no value.
Properties
PaymentMethodv13.1.0Go SDK responsePaymentMethodv14.0.0Java SDK responsePaymentMethodv11.1.0PHP SDK responsePaymentMethodv15.0.0Python SDK responsePaymentMethodv15.0.0Ruby SDK responsePaymentMethodv13.0.0TypeScript SDK responsePaymentMethodv15.0.0- #
ArchivedAtarchived_atArchivedAtarchivedAtarchivedAtarchived_atarchived_atarchivedAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)Date | nullWhen the method was archived. Omitted while the method is unarchived.
#
BankAccountbank_accountBankAccountbankAccountbankAccountbank_accountbank_accountbankAccountPaymentMethodBankAccount?object*BankAccountBankAccountSummary?PaymentMethod\BankAccountPaymentMethodBankAccount | NoneT.nilable(PaymentMethod::BankAccount)PaymentMethodBankAccount | nullBank-account details when the saved method has a bank-account representation. Treat these fields as sensitive.Click or tap to expand- #
GhanaBankAccountghana_bank_accountGhanaBankAccountghanaBankAccountghanaBankAccountghana_bank_accountghana_bank_accountghanaBankAccountPaymentMethodBankAccountGhana?object*GhanaBankAccountGhanaBankAccountSummary?PaymentMethod\BankAccountGhanaBankAccountPaymentMethodSnapshotGhanaBankAccount | NoneT.nilable(PaymentMethod::BankAccountGhanaBankAccount){ … } | nullView ghana_bank_account attributesClick or tap to expand
Ghana bank-account details when present.- #
AccountNumberaccount_numberAccountNumberaccountNumberaccountNumberaccount_numberaccount_numberaccountNumberstringstringstringStringstringstrStringstringAccount number returned for the saved bank account. - #
SwiftCodeswift_codeSwiftCodeswiftCodeswiftCodeswift_codeswift_codeswiftCodestring?stringstringString?stringstr | NoneT.nilable(String)stringSWIFT code when available.
- #
CreatedAtcreated_atCreatedAtcreatedAtcreatedAtcreated_atcreated_atcreatedAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDateWhen the method was saved.
- #
CustomerIdcustomer_idCustomerIDcustomerIdcustomerIdcustomer_idcustomer_idcustomerIdstringstringstringStringstringstrStringstringCustomer who owns the method.
#
CustomDatacustom_dataCustomDatacustomDatacustomDatacustom_datacustom_datacustomDataCustomData?object*DataCustomData?CustomDataCustomData | NoneT.nilable(CustomData)CustomData | nullClick or tap to expandYour metadata. Values are returned as strings.
- #
ExpiresOnexpires_onExpiresOnexpiresOnexpiresOnexpires_onexpires_onexpiresOnDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)Date | nullExpiry time when the underlying payment method has one.
- #
FingerprintfingerprintFingerprintfingerprintfingerprintfingerprintfingerprintfingerprintstringstringstringStringstringstrStringstringA customer-specific fingerprint that helps identify duplicate saved payment methods.
#
MobileMoneymobile_moneyMobileMoneymobileMoneymobileMoneymobile_moneymobile_moneymobileMoneyPaymentMethodMobileMoney?object*MobileMoneyMobileMoneySummary?PaymentMethod\MobileMoneyPaymentMethodMobileMoney | NoneT.nilable(PaymentMethod::MobileMoney)PaymentMethodMobileMoney | nullMasked mobile money details.Click or tap to expand- #
AccountNumberaccount_numberAccountNumberaccountNumberaccountNumberaccount_numberaccount_numberaccountNumberstringstringstringStringstringstrStringstringMasked wallet number in the form****1234. - #
NetworknetworkNetworknetworknetworknetworknetworknetworkMobileMoneyNetworkenumMobileMoneyNetworkMobileMoneyNetworkstringLiteral['airtel', 'mtn', 'telecel', 'vodafone']Shared::MobileMoneyNetworkMobileMoneyNetworkWallet network:Inttegro.MobileMoneyNetwork.Airtel"airtel"paymentmethod.MobileMoneyNetworkAirtelMobileMoneyNetwork.AIRTEL\Inttegro\PaymentMethod\MobileMoneyNetwork::Airtelinttegro.payment_method.MobileMoneyNetwork.AIRTELInttegro::Shared::MobileMoneyNetwork::AIRTELInttegro.MobileMoneyNetworks.Airtel,Inttegro.MobileMoneyNetwork.MTN"mtn"paymentmethod.MobileMoneyNetworkMTNMobileMoneyNetwork.MTN\Inttegro\PaymentMethod\MobileMoneyNetwork::MTNinttegro.payment_method.MobileMoneyNetwork.MTNInttegro::Shared::MobileMoneyNetwork::MTNInttegro.MobileMoneyNetworks.MTN,Inttegro.MobileMoneyNetwork.Telecel"telecel"paymentmethod.MobileMoneyNetworkTelecelMobileMoneyNetwork.TELECEL\Inttegro\PaymentMethod\MobileMoneyNetwork::Telecelinttegro.payment_method.MobileMoneyNetwork.TELECELInttegro::Shared::MobileMoneyNetwork::TELECELInttegro.MobileMoneyNetworks.Telecel, orInttegro.MobileMoneyNetwork.Vodafone"vodafone"paymentmethod.MobileMoneyNetworkVodafoneMobileMoneyNetwork.VODAFONE\Inttegro\PaymentMethod\MobileMoneyNetwork::Vodafoneinttegro.payment_method.MobileMoneyNetwork.VODAFONEInttegro::Shared::MobileMoneyNetwork::VODAFONEInttegro.MobileMoneyNetworks.Vodafone.
#
OwnerownerOwnerownerownerownerownerownerPaymentMethodOwner?object*OwnerPaymentMethodOwner?PaymentMethod\OwnerPaymentMethodOwner | NoneT.nilable(PaymentMethod::Owner)PaymentMethodOwner | nullOwner details captured with the method.Click or tap to expandView address attributesClick or tap to expand
Owner postal address.- #
Line1line_1Line1line1line1line_1line_1line1string?stringstringString?stringstrT.nilable(String)stringFirst address line. Requests useline1; responses usePaymentMethod.Owner.Address.Line1payment_method.owner.address.line_1PaymentMethod.Owner.Address.Line1paymentMethod.owner.address.line1paymentMethod.owner.address.line1payment_method.owner.address.line_1payment_method.owner.address.line_1paymentMethod.owner.address.line1. - #
Line2line_2Line2line2line2line_2line_2line2string?stringstringString?stringstrT.nilable(String)stringSecond address line. Requests useline2; responses usePaymentMethod.Owner.Address.Line2payment_method.owner.address.line_2PaymentMethod.Owner.Address.Line2paymentMethod.owner.address.line2paymentMethod.owner.address.line2payment_method.owner.address.line_2payment_method.owner.address.line_2paymentMethod.owner.address.line2. - #
PhoneNumberphone_numberPhoneNumberphoneNumberphoneNumberphone_numberphone_numberphoneNumberstring?stringstringString?stringstr | NoneT.nilable(String)string | nullAddress contact number.
#
SuppliedsuppliedSuppliedsuppliedsuppliedsuppliedsuppliedsuppliedPaymentMethodSupplied?object*SuppliedPaymentMethodSupplied?PaymentMethod\SuppliedPaymentMethodSupplied | NoneT.nilable(PaymentMethod::Supplied)PaymentMethodSupplied | nullHow and when the payment method was added to the customer's account.Click or tap to expand- #
AttemptIdattempt_idAttemptIDattemptIdattemptIdattempt_idattempt_idattemptIdstring?stringstringString?stringstr | NoneT.nilable(String)string | nullCollection attempt that supplied the method, when applicable. - #
ChannelchannelChannelchannelchannelchannelchannelchannelstring?stringstringString?stringstr | NoneT.nilable(String)string | nullWhere the method was collected, such as"api""api""api""api"'api''api''api'"api","buy_link""buy_link""buy_link""buy_link"'buy_link''buy_link''buy_link'"buy_link","ego""ego""ego""ego"'ego''ego''ego'"ego","hosted_collection""hosted_collection""hosted_collection""hosted_collection"'hosted_collection''hosted_collection''hosted_collection'"hosted_collection", or"hosted_invoice""hosted_invoice""hosted_invoice""hosted_invoice"'hosted_invoice''hosted_invoice''hosted_invoice'"hosted_invoice". - #
ResourceIdresource_idResourceIDresourceIdresourceIdresource_idresource_idresourceIdstring?stringstringString?stringstr | NoneT.nilable(String)string | nullSource resource that collected the method, when applicable. - #
ResourceTyperesource_typeResourceTyperesourceTyperesourceTyperesource_typeresource_typeresourceTypestring?stringstringString?stringstr | NoneT.nilable(String)string | nullType of source resource that collected the method. - #
SuppliedAtsupplied_atSuppliedAtsuppliedAtsuppliedAtsupplied_atsupplied_atsuppliedAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDaterequiredWhen the method was supplied.
- #
TypetypeTypetypetypetypetypetypePaymentMethodTypeenumTypePaymentMethodTypestringLiteral['mobile_money', 'bank_account', 'card', 'motito']PaymentMethod::TypePaymentMethodTypePayment method type:
Inttegro.PaymentMethodType.BankAccount"bank_account"paymentmethod.TypeBankAccountPaymentMethodType.BANK_ACCOUNT\Inttegro\PaymentMethod\Type::BankAccountinttegro.payment_method.Type.BANK_ACCOUNTInttegro::PaymentMethod::Type::BANK_ACCOUNTInttegro.PaymentMethodTypes.BankAccount,Inttegro.PaymentMethodType.Card"card"paymentmethod.TypeCardPaymentMethodType.CARD\Inttegro\PaymentMethod\Type::Cardinttegro.payment_method.Type.CARDInttegro::PaymentMethod::Type::CARDInttegro.PaymentMethodTypes.Card, orInttegro.PaymentMethodType.MobileMoney"mobile_money"paymentmethod.TypeMobileMoneyPaymentMethodType.MOBILE_MONEY\Inttegro\PaymentMethod\Type::MobileMoneyinttegro.payment_method.Type.MOBILE_MONEYInttegro::PaymentMethod::Type::MOBILE_MONEYInttegro.PaymentMethodTypes.MobileMoney. #
VerificationverificationVerificationverificationverificationverificationverificationverificationPaymentMethodVerification?object*VerificationVerificationMetadata?PaymentMethod\VerificationPaymentMethodVerification | NoneT.nilable(PaymentMethod::Verification)PaymentMethodVerification | nullVerification evidence when the method has entered a verification flow.Click or tap to expand- #
CompletedAtcompleted_atCompletedAtcompletedAtcompletedAtcompleted_atcompleted_atcompletedAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)Date | nullWhen verification completed. Omitted while incomplete. - #
InitiatedAtinitiated_atInitiatedAtinitiatedAtinitiatedAtinitiated_atinitiated_atinitiatedAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDateWhen verification began. - #
RequestIdrequest_idRequestIDrequestIdrequestIdrequest_idrequest_idrequestIdstringstringstringStringstringstrStringstringIdentifier for the verification request.
- #
VerifiedAtverified_atVerifiedAtverifiedAtverifiedAtverified_atverified_atverifiedAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)Date | nullWhen verification completed. Omitted until completion.
Tokenize a payment method POST /payment_methods/tokenize
Save a customer’s mobile money wallet so they can select it on later orders. This operation does not create an order or charge the wallet. The response returns a pm_… ID for future payments.
Request attributes
PaymentMethodTokenizeRequestv13.1.0Go SDK requestTokenizeParamsv14.0.0Java SDK requestTokenizePaymentMethodParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestTokenizeMobileMoneyRequestv15.0.0Ruby SDK requestPaymentMethod::TokenizeMobileMoneyRequestv13.0.0TypeScript SDK requestTokenizePaymentMethodRequestv15.0.0- #
CustomerIdcustomer_idCustomerIDcustomerId(…)customerIdcustomer_idcustomer_idcustomerIdstring?stringstringStringstringstrStringstringrequiredCustomer who will own the saved payment method.
#
CustomDatacustom_dataCustomDatacustomDatacustomDatacustom_datacustom_datacustomDataDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>CustomDataT.nilable(CustomData)CustomDataClick or tap to expandOptional metadata. The serialized object must not exceed 25 KB and each key must not exceed 256 characters. Non-string values are stored as JSON strings.
#
MobileMoneymobile_moneyMobileMoneymobileMoneymobileMoneymobile_moneymobile_moneymobileMoneyDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>TokenizeMobileMoneyRequestMobileMoneyPaymentMethod::TokenizeMobileMoneyRequestMobileMoneyMobileMoneyDetailsrequiredMobile money wallet to save.Click or tap to expand- #
AccountNumberaccount_numberAccountNumberaccountNumberaccountNumberaccount_numberaccount_numberaccountNumberstringstringstringStringstringstrStringstringrequiredValid local or international wallet phone number. - #
NetworknetworkNetworknetworknetworknetworknetworknetworkenumenumstring enumenumstring enumLiteral['airtel', 'mtn', 'telecel', 'vodafone', MobileMoneyNetwork.AIRTEL, MobileMoneyNetwork.MTN, MobileMoneyNetwork.TELECEL, MobileMoneyNetwork.VODAFONE]Shared::MobileMoneyNetworkMobileMoneyNetworkrequiredInttegro.MobileMoneyNetwork.Airtel"airtel"paymentmethod.MobileMoneyNetworkAirtelMobileMoneyNetwork.AIRTEL\Inttegro\PaymentMethod\MobileMoneyNetwork::Airtelinttegro.payment_method.MobileMoneyNetwork.AIRTELInttegro::Shared::MobileMoneyNetwork::AIRTELInttegro.MobileMoneyNetworks.Airtel,Inttegro.MobileMoneyNetwork.MTN"mtn"paymentmethod.MobileMoneyNetworkMTNMobileMoneyNetwork.MTN\Inttegro\PaymentMethod\MobileMoneyNetwork::MTNinttegro.payment_method.MobileMoneyNetwork.MTNInttegro::Shared::MobileMoneyNetwork::MTNInttegro.MobileMoneyNetworks.MTN,Inttegro.MobileMoneyNetwork.Telecel"telecel"paymentmethod.MobileMoneyNetworkTelecelMobileMoneyNetwork.TELECEL\Inttegro\PaymentMethod\MobileMoneyNetwork::Telecelinttegro.payment_method.MobileMoneyNetwork.TELECELInttegro::Shared::MobileMoneyNetwork::TELECELInttegro.MobileMoneyNetworks.Telecel, orInttegro.MobileMoneyNetwork.Vodafone"vodafone"paymentmethod.MobileMoneyNetworkVodafoneMobileMoneyNetwork.VODAFONE\Inttegro\PaymentMethod\MobileMoneyNetwork::Vodafoneinttegro.payment_method.MobileMoneyNetwork.VODAFONEInttegro::Shared::MobileMoneyNetwork::VODAFONEInttegro.MobileMoneyNetworks.Vodafone.
#
OwnerownerOwnerownerownerownerownerownerDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>OwnerInputPaymentMethod::OwnerInputPaymentMethodOwnerrequiredOwner identity for the wallet.Click or tap to expand- #
AddressaddressAddressaddressaddressaddressaddressaddressDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>OwnerInputAddressPaymentMethod::OwnerInputAddressPaymentMethodOwnerAddress | nullrequiredView address attributesClick or tap to expand
Postal address associated with the owner.- #
PhoneNumberphone_numberPhoneNumberphoneNumberphoneNumberphone_numberphone_numberphoneNumberstringstringstringStringstringstrT.nilable(String)string | nullContact number for the address.
- #
TypetypeTypetypetypetypetypetypeenumenumstring enumenumstring enumLiteral['mobile_money', PaymentMethodType.MOBILE_MONEY]PaymentMethod::TokenizeMobileMoneyRequestType'mobile_money'requiredSet to
Inttegro.PaymentMethodType.MobileMoney"mobile_money"paymentmethod.TypeMobileMoneyPaymentMethodType.MOBILE_MONEY\Inttegro\PaymentMethod\Type::MobileMoneyinttegro.payment_method.Type.MOBILE_MONEYInttegro::PaymentMethod::Type::MOBILE_MONEYInttegro.PaymentMethodTypes.MobileMoneyfor the supported direct-tokenization flow.
The account number must be valid for the selected mobile money network. Use an idempotency key when retrying so the same wallet is not saved twice.
Request
curl https://api.inttegro.com/payment_methods/tokenize \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: save-wallet-cu-a1b2-001" \
-d '{
"customer_id": "cu_a1b2c3d4e5",
"custom_data": {
"checkout_source": "account"
},
"mobile_money": {
"account_number": "0242057831",
"network": "mtn"
},
"owner": {
"address": {
"country": "GH"
},
"name": "Jane Mensah"
},
"type": "mobile_money"
}'import { InttegroClient, MobileMoneyNetworks, PaymentMethodTypes } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.paymentMethods.tokenize({
customerId: "cu_a1b2c3d4e5",
customData: {
checkout_source: "account",
},
mobileMoney: {
accountNumber: "0242057831",
network: MobileMoneyNetworks.MTN,
},
owner: {
address: {
country: "GH",
},
name: "Jane Mensah",
},
type: PaymentMethodTypes.MobileMoney,
})package main
import (
"context"
"log"
"os"
inttegro "github.com/inttegro/inttegro-sdk-go/v14"
"github.com/inttegro/inttegro-sdk-go/v14/paymentmethod"
)
func main() {
ctx := context.Background()
client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))
params := paymentmethod.TokenizeParams{
CustomerID: "cu_a1b2c3d4e5",
}
result, err := client.PaymentMethods.Tokenize(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.payment_methods.tokenize(inttegro.payment_method.TokenizeMobileMoneyRequest(
customer_id="cu_a1b2c3d4e5",
custom_data=inttegro.CustomData({
"checkout_source": "account",
}),
mobile_money=inttegro.payment_method.TokenizeMobileMoneyRequestMobileMoney(
account_number="0242057831",
network=inttegro.payment_method.MobileMoneyNetwork.MTN,
),
owner=inttegro.payment_method.OwnerInput(
address=inttegro.payment_method.OwnerInputAddress(
country="GH",
),
name="Jane Mensah",
),
type=inttegro.payment_method.Type.MOBILE_MONEY,
))<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->paymentMethods->tokenize([
'customer_id' => 'cu_a1b2c3d4e5',
'custom_data' => [
'checkout_source' => 'account',
],
'mobile_money' => [
'account_number' => '0242057831',
'network' => \Inttegro\MobileMoneyNetwork::MTN,
],
'owner' => [
'address' => [
'country' => 'GH',
],
'name' => 'Jane Mensah',
],
'type' => \Inttegro\PaymentMethodType::MobileMoney,
]);require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.payment_methods.tokenize(
customer_id: "cu_a1b2c3d4e5",
custom_data: {
checkout_source: "account",
},
mobile_money: {
account_number: "0242057831",
network: Inttegro::MobileMoneyNetwork::MTN,
},
owner: {
address: {
country: "GH",
},
name: "Jane Mensah",
},
type: Inttegro::PaymentMethodType::MOBILE_MONEY
)import com.inttegro.Client;
import com.inttegro.paymentmethods.TokenizePaymentMethodParams;
import com.inttegro.RequestOptions;
public class Example {
public static void main(String[] args) throws Exception {
var client = new Client(System.getenv("INTTEGRO_API_KEY"));
var params = TokenizePaymentMethodParams.builder()
.customerId("cu_a1b2c3d4e5")
.build();
var result = client.paymentMethods().tokenize(params, RequestOptions.withIdempotencyKey("save-wallet-cu-a1b2-001"));
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.TokenizeAsync(new PaymentMethodTokenizeRequest {
CustomerId = "cu_a1b2c3d4e5",
});{
"payment_method": {
"active": true,
"created_at": "2026-08-30T13:00:00Z",
"customer_id": "cu_a1b2c3d4e5",
"custom_data": {
"checkout_source": "account"
},
"fingerprint": "ifp_v1_app_customer",
"id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
"mobile_money": {
"account_number": "****7831",
"last4": "7831",
"network": "mtn"
},
"owner": {
"address": {
"country": "GH"
},
"name": "Jane Mensah"
},
"type": "mobile_money"
}
}Lookup a payment method POST /payment_methods/lookup
Activepayment_method.activeActiveactiveactiveactiveactiveactive, ArchivedAtpayment_method.archived_atArchivedAtarchivedAtarchivedAtarchived_atarchived_atarchivedAt, and Ephemeralpayment_method.ephemeralEphemeralephemeralephemeralephemeralephemeralephemeral before offering it as a payment choice.Request attributes
PaymentMethodLookupRequestv13.1.0Go SDK requestv14.0.0Java SDK requestv11.1.0PHP SDK requestv15.0.0Python SDK requestv15.0.0Ruby SDK requestPaymentMethod::LookupRequestv13.0.0TypeScript SDK requestLookupPaymentMethodRequestv15.0.0- #
PaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodIdpaymentMethodIdpayment_method_idpayment_method_idpaymentMethodIdstring?stringstringStringstringstrStringstringrequiredPayment method to fetch.
Request
curl https://api.inttegro.com/payment_methods/lookup \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"payment_method_id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D"
}'import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.paymentMethods.lookup({
paymentMethodId: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
})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.PaymentMethods.Lookup(ctx, "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
if err != nil {
log.Fatal(err)
}
_ = result
}import os
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.payment_methods.lookup("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->paymentMethods->lookup("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.payment_methods.lookup(payment_method_id: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")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.paymentMethods().lookup("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.LookupAsync("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");{
"payment_method": {
"active": true,
"created_at": "2026-08-30T13:00:00Z",
"customer_id": "cu_a1b2c3d4e5",
"fingerprint": "ifp_v1_app_customer",
"id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
"mobile_money": {
"account_number": "****7831",
"last4": "7831",
"network": "mtn"
},
"type": "mobile_money"
}
}Update a payment method POST /payment_methods/update
Patch mutable metadata or state without replacing the underlying payment instrument. Omitted fields remain unchanged.
Request attributes
PaymentMethodUpdateRequestv13.1.0Go SDK requestUpdateParamsv14.0.0Java SDK requestUpdatePaymentMethodParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestUpdateRequestv15.0.0Ruby SDK requestPaymentMethod::UpdateRequestv13.0.0TypeScript SDK requestUpdatePaymentMethodRequestv15.0.0#
CustomDatacustom_dataCustomDatacustomData(…)customDatacustom_datacustom_datacustomDataCustomDataPatch?object*PatchCustomDataPatcharray<string, mixed>CustomDataT.nilable(CustomDataPatch)CustomDataPatchClick or tap to expandMetadata to merge. New keys are added, existing keys are replaced,
nullnullnilnullnullNonenilnulldeletes a key, and omitted keys remain unchanged.#
OwnerownerOwnerowner(…)ownerownerownerownerPaymentMethodOwnerInput?object*UpdateOwnerPaymentMethodOwnerarray<string, mixed>UpdateRequestOwnerT.nilable(PaymentMethod::UpdateRequestOwner)PaymentMethodOwnerPatchOwner patch. Include at least one ofOwner.Addressowner.addressOwner.Addressowner.addressowner.addressowner.addressowner.addressowner.addressorOwner.Nameowner.nameOwner.Nameowner.nameowner.nameowner.nameowner.nameowner.name; values cannot be empty.Click or tap to expandView address attributesClick or tap to expand
Address patch. Include at least one field. When adding the first address to a method,Owner.Address.Countryowner.address.countryOwner.Address.Countryowner.address.countryowner.address.countryowner.address.countryowner.address.countryowner.address.countryis required.- #
PhoneNumberphone_numberPhoneNumberphoneNumber(…)phoneNumberphone_numberphone_numberphoneNumberstring?stringstringStringstringstrT.nilable(String)string | nullAddress contact number.
- #
PaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodId(…)paymentMethodIdpayment_method_idpayment_method_idpaymentMethodIdstring?stringstringStringstringstrStringstringrequiredPayment method to update.
PaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodIdpayment_method_idpayment_method_idpayment_method_idpaymentMethodId. An archived method must be unarchived before you can change anything else. Unarchiving does not reactivate it.Prefer the dedicated lifecycle operations below when you are changing only state. They make intent clearer and reduce accidental combinations.
Request
curl https://api.inttegro.com/payment_methods/update \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: update-wallet-owner-001" \
-d '{
"custom_data": {
"legacy_note": null,
"segment": "vip"
},
"owner": {
"address": {
"line1": "1 High Street",
"region": "Greater Accra"
},
"name": "Jane Mensah"
},
"payment_method_id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D"
}'import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.paymentMethods.update({
customData: {
legacy_note: null,
segment: "vip",
},
owner: {
address: {
line1: "1 High Street",
region: "Greater Accra",
},
name: "Jane Mensah",
},
paymentMethodId: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
})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/paymentmethod"
)
func main() {
ctx := context.Background()
client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))
params := paymentmethod.UpdateParams{
CustomData: func() *customdata.Patch { value := customdata.NewPatch(); if err := value.Unset("legacy_note"); err != nil { panic(err) }; if err := value.Set("segment", "vip"); err != nil { panic(err) }; return value }(),
Owner: &paymentmethod.UpdateOwner{
Address: &paymentmethod.UpdateAddress{
Line1: "1 High Street",
Region: "Greater Accra",
},
Name: "Jane Mensah",
},
PaymentMethodID: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
}
result, err := client.PaymentMethods.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.payment_methods.update(inttegro.payment_method.UpdateRequest(
custom_data=inttegro.CustomData({
"legacy_note": None,
"segment": "vip",
}),
owner=inttegro.payment_method.UpdateRequestOwner(
address=inttegro.payment_method.UpdateRequestOwnerAddress(
line1="1 High Street",
region="Greater Accra",
),
name="Jane Mensah",
),
payment_method_id="pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
))<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$request = new \Inttegro\PaymentMethod\UpdateRequest(
paymentMethodId: 'pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D',
customData: new \Inttegro\CustomDataPatch([
'legacy_note' => null,
'segment' => 'vip',
]),
owner: new \Inttegro\PaymentMethod\UpdateRequestOwner(
name: 'Jane Mensah',
address: new \Inttegro\PaymentMethod\UpdateRequestOwnerAddress(
line1: '1 High Street',
region: 'Greater Accra',
),
),
);
$result = $client->paymentMethods->update($request);require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
request = Inttegro::PaymentMethod::UpdateRequest.new(
payment_method_id: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
custom_data: Inttegro::CustomDataPatch.new({
legacy_note: nil,
segment: "vip",
}),
owner: Inttegro::PaymentMethod::UpdateRequestOwner.new(
name: "Jane Mensah",
address: Inttegro::PaymentMethod::UpdateRequestOwnerAddress.new(
line1: "1 High Street",
region: "Greater Accra",
),
),
)
result = client.payment_methods.update(request)import com.inttegro.Client;
import com.inttegro.paymentmethods.UpdatePaymentMethodParams;
import com.inttegro.CustomDataPatch;
import com.inttegro.paymentmethods.PaymentMethodOwner;
import com.inttegro.paymentmethods.PaymentMethodOwnerAddress;
import com.inttegro.RequestOptions;
public class Example {
public static void main(String[] args) throws Exception {
var client = new Client(System.getenv("INTTEGRO_API_KEY"));
var params = UpdatePaymentMethodParams.builder()
.customData(new CustomDataPatch()
.unset("legacy_note")
.set("segment", "vip"))
.owner(PaymentMethodOwner.builder()
.address(PaymentMethodOwnerAddress.builder()
.line1("1 High Street")
.region("Greater Accra")
.build())
.name("Jane Mensah")
.build())
.paymentMethodId("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
.build();
var result = client.paymentMethods().update(params, RequestOptions.withIdempotencyKey("update-wallet-owner-001"));
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.UpdateAsync(new PaymentMethodUpdateRequest {
CustomData = new Inttegro.CustomDataPatch()
.Unset("legacy_note")
.Set("segment", "vip"),
Owner = new PaymentMethodOwnerInput {
Address = new PaymentMethodOwnerAddress {
Line1 = "1 High Street",
Region = "Greater Accra",
},
Name = "Jane Mensah",
},
PaymentMethodId = "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
});{
"payment_method": {
"active": true,
"created_at": "2026-08-30T13:00:00Z",
"customer_id": "cu_a1b2c3d4e5",
"custom_data": {
"segment": "vip"
},
"fingerprint": "ifp_v1_app_customer",
"id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
"owner": {
"address": {
"country": "GH",
"line_1": "1 High Street",
"region": "Greater Accra"
},
"name": "Jane Mensah"
},
"type": "mobile_money"
}
}Activate a payment method POST /payment_methods/activate
Make an inactive payment method available for reuse. An archived method must be unarchived first; a method that is already active cannot be activated again.
Request attributes
PaymentMethodActionRequestv13.1.0Go SDK requestv14.0.0Java SDK requestv11.1.0PHP SDK requestv15.0.0Python SDK requestv15.0.0Ruby SDK requestPaymentMethod::ActivateRequestv13.0.0TypeScript SDK requestPaymentMethodActionRequestv15.0.0- #
PaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodIdpaymentMethodIdpayment_method_idpayment_method_idpaymentMethodIdstring?stringstringStringstringstrStringstringrequiredPayment method to activate.
Response
The response is aPaymentMethodpayment_methodPaymentMethodpaymentMethodpaymentMethodpayment_methodpayment_methodpaymentMethod envelope with PaymentMethod.Activepayment_method.activePaymentMethod.ActivepaymentMethod.activepaymentMethod.activeactiveactivepaymentMethod.active set to truetruetruetruetrueTruetruetrue and no PaymentMethod.ArchivedAtpayment_method.archived_atPaymentMethod.ArchivedAtpaymentMethod.archivedAtpaymentMethod.archivedAtarchived_atarchived_atpaymentMethod.archivedAt.Request
curl https://api.inttegro.com/payment_methods/activate \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: activate-wallet-001" \
-d '{
"payment_method_id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D"
}'import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.paymentMethods.activate({
paymentMethodId: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
})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.PaymentMethods.Activate(ctx, "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
if err != nil {
log.Fatal(err)
}
_ = result
}import os
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.payment_methods.activate("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->paymentMethods->activate("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.payment_methods.activate(payment_method_id: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")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.paymentMethods().activate("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.ActivateAsync("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");Deactivate a payment method POST /payment_methods/disactivate
Temporarily prevent a payment method from being reused without archiving it. The method can still be retrieved and updated, then activated again when the customer wants to use it. A method that is already inactive cannot be deactivated again.
Request attributes
PaymentMethodActionRequestv13.1.0Go SDK requestv14.0.0Java SDK requestv11.1.0PHP SDK requestv15.0.0Python SDK requestv15.0.0Ruby SDK requestPaymentMethod::DisactivateRequestv13.0.0TypeScript SDK requestPaymentMethodActionRequestv15.0.0- #
PaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodIdpaymentMethodIdpayment_method_idpayment_method_idpaymentMethodIdstring?stringstringStringstringstrStringstringrequiredPayment method to deactivate.
Response
The response is aPaymentMethodpayment_methodPaymentMethodpaymentMethodpaymentMethodpayment_methodpayment_methodpaymentMethod envelope with PaymentMethod.Activepayment_method.activePaymentMethod.ActivepaymentMethod.activepaymentMethod.activeactiveactivepaymentMethod.active set to falsefalsefalsefalsefalseFalsefalsefalse.Request
curl https://api.inttegro.com/payment_methods/disactivate \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: deactivate-wallet-001" \
-d '{
"payment_method_id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D"
}'import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.paymentMethods.disactivate({
paymentMethodId: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
})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.PaymentMethods.Disactivate(ctx, "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
if err != nil {
log.Fatal(err)
}
_ = result
}import os
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.payment_methods.disactivate("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->paymentMethods->disactivate("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.payment_methods.disactivate(payment_method_id: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")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.paymentMethods().disactivate("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.DisactivateAsync("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");Archive a payment method POST /payment_methods/archive
Activepayment_method.activeActiveactiveactiveactiveactiveactive to falsefalsefalsefalsefalseFalsefalsefalse and records ArchivedAtpayment_method.archived_atArchivedAtarchivedAtarchivedAtarchived_atarchived_atarchivedAt. An archived method cannot be archived again.Request attributes
PaymentMethodActionRequestv13.1.0Go SDK requestv14.0.0Java SDK requestv11.1.0PHP SDK requestv15.0.0Python SDK requestv15.0.0Ruby SDK requestPaymentMethod::ArchiveRequestv13.0.0TypeScript SDK requestPaymentMethodActionRequestv15.0.0- #
PaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodIdpaymentMethodIdpayment_method_idpayment_method_idpaymentMethodIdstring?stringstringStringstringstrStringstringrequiredPayment method to archive.
Response
The response is aPaymentMethodpayment_methodPaymentMethodpaymentMethodpaymentMethodpayment_methodpayment_methodpaymentMethod envelope with Activepayment_method.activeActiveactiveactiveactiveactiveactive set to falsefalsefalsefalsefalseFalsefalsefalse and a populated ArchivedAtpayment_method.archived_atArchivedAtarchivedAtarchivedAtarchived_atarchived_atarchivedAt timestamp.Request
curl https://api.inttegro.com/payment_methods/archive \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: archive-wallet-001" \
-d '{
"payment_method_id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D"
}'import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.paymentMethods.archive({
paymentMethodId: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
})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.PaymentMethods.Archive(ctx, "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
if err != nil {
log.Fatal(err)
}
_ = result
}import os
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.payment_methods.archive("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->paymentMethods->archive("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.payment_methods.archive(payment_method_id: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")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.paymentMethods().archive("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.ArchiveAsync("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");Unarchive a payment method POST /payment_methods/unarchive
ArchivedAtpayment_method.archived_atArchivedAtarchivedAtarchivedAtarchived_atarchived_atarchivedAt but leaves Activepayment_method.activeActiveactiveactiveactiveactiveactive set to falsefalsefalsefalsefalseFalsefalsefalse; call Activate a payment method separately before offering it to the customer. A method that is not archived cannot be unarchived.Request attributes
PaymentMethodActionRequestv13.1.0Go SDK requestv14.0.0Java SDK requestv11.1.0PHP SDK requestv15.0.0Python SDK requestv15.0.0Ruby SDK requestPaymentMethod::UnarchiveRequestv13.0.0TypeScript SDK requestPaymentMethodActionRequestv15.0.0- #
PaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodIdpaymentMethodIdpayment_method_idpayment_method_idpaymentMethodIdstring?stringstringStringstringstrStringstringrequiredPayment method to unarchive.
Response
The response is aPaymentMethodpayment_methodPaymentMethodpaymentMethodpaymentMethodpayment_methodpayment_methodpaymentMethod envelope with Activepayment_method.activeActiveactiveactiveactiveactiveactive set to falsefalsefalsefalsefalseFalsefalsefalse and no ArchivedAtpayment_method.archived_atArchivedAtarchivedAtarchivedAtarchived_atarchived_atarchivedAt.Request
curl https://api.inttegro.com/payment_methods/unarchive \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: unarchive-wallet-001" \
-d '{
"payment_method_id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D"
}'import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.paymentMethods.unarchive({
paymentMethodId: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
})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.PaymentMethods.Unarchive(ctx, "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")
if err != nil {
log.Fatal(err)
}
_ = result
}import os
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.payment_methods.unarchive("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->paymentMethods->unarchive("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.payment_methods.unarchive(payment_method_id: "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D")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.paymentMethods().unarchive("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.UnarchiveAsync("pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D");Page through payment methods POST /payment_methods/page
Browse saved payment methods, optionally limiting the results to one customer. The API does not guarantee newest-first ordering.
Request attributes
PaymentMethodPageRequestv13.1.0Go SDK requestPageParamsv14.0.0Java SDK requestPagePaymentMethodsParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestPageRequestv15.0.0Ruby SDK requestPaymentMethod::PageRequestv13.0.0TypeScript SDK requestPagePaymentMethodsRequestv15.0.0- #
CustomerIdcustomer_idCustomerIDcustomerId(…)customerIdcustomer_idcustomer_idcustomerIdstring?stringstringStringstringstrT.nilable(String)stringCustomer whose saved payment methods you want to list.
- #
PageNumberpage_numberPageNumberpageNumber(…)pageNumberpage_numberpage_numberpageNumberint?integerintIntegerintintT.nilable(Integer)number1-based page number to retrieve. Omit it to use page
1. Supported pages are1through10.
Numberpage.numberNumbernumbernumbernumbernumbernumber, PaymentMethodspage.payment_methodsPaymentMethodspaymentMethodspaymentMethodspayment_methodspayment_methodspaymentMethods, and Sizepage.sizeSizesizesizesizesizesize. Sizepage.sizeSizesizesizesizesizesize is the number of payment methods returned. Increase PageNumberpage_numberPageNumberpageNumberpageNumberpage_numberpage_numberpageNumber to request the next page, up to page 10.Request
curl https://api.inttegro.com/payment_methods/page \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "cu_a1b2c3d4e5",
"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.paymentMethods.page({
customerId: "cu_a1b2c3d4e5",
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/paymentmethod"
)
func main() {
ctx := context.Background()
client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))
params := paymentmethod.PageParams{
CustomerID: "cu_a1b2c3d4e5",
PageNumber: 1,
PageSize: 50,
}
result, err := client.PaymentMethods.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.payment_methods.page(inttegro.payment_method.PageRequest(
customer_id="cu_a1b2c3d4e5",
page_number=1,
page_size=50,
))<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->paymentMethods->page([
'customer_id' => 'cu_a1b2c3d4e5',
'page_number' => 1,
'page_size' => 50,
]);require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.payment_methods.page(
customer_id: "cu_a1b2c3d4e5",
page_number: 1,
page_size: 50
)import com.inttegro.Client;
import com.inttegro.paymentmethods.PagePaymentMethodsParams;
public class Example {
public static void main(String[] args) throws Exception {
var client = new Client(System.getenv("INTTEGRO_API_KEY"));
var params = PagePaymentMethodsParams.builder()
.customerId("cu_a1b2c3d4e5")
.pageNumber(1)
.pageSize(50)
.build();
var result = client.paymentMethods().page(params);
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.PageAsync(new PaymentMethodPageRequest {
CustomerId = "cu_a1b2c3d4e5",
PageNumber = 1,
PageSize = 50,
});{
"page": {
"number": 1,
"payment_methods": [
{
"active": true,
"created_at": "2026-08-30T13:00:00Z",
"customer_id": "cu_a1b2c3d4e5",
"fingerprint": "ifp_v1_app_customer",
"id": "pm_z7Qx4Lm9Pc2Vb8Nt6Ks1Ha3D",
"mobile_money": {
"account_number": "****7831",
"last4": "7831",
"network": "mtn"
},
"type": "mobile_money"
}
],
"size": 1
}
}Payment method settings POST /payment_methods/settings
BankAccountsettings.bank_accountBankAccountbankAccountbankAccountbank_accountbank_accountbankAccount, Cardsettings.cardCardcardcardcardcardcard, and MobileMoneysettings.mobile_moneyMobileMoneymobileMoneymobileMoneymobile_moneymobile_moneymobileMoney entries.Each entry has required MobileMoney.ConfirmsUsesettings.mobile_money.confirms_useMobileMoney.ConfirmsUsemobileMoney.confirmsUsemobileMoney.confirmsUsemobile_money.confirms_usemobile_money.confirms_usemobileMoney.confirmsUse and MobileMoney.Enabledsettings.mobile_money.enabledMobileMoney.EnabledmobileMoney.enabledmobileMoney.enabledmobile_money.enabledmobile_money.enabledmobileMoney.enabled booleans. MobileMoney.Typesettings.mobile_money.typeMobileMoney.TypemobileMoney.typemobileMoney.typemobile_money.typemobile_money.typemobileMoney.type, MobileMoney.Namesettings.mobile_money.nameMobileMoney.NamemobileMoney.namemobileMoney.namemobile_money.namemobile_money.namemobileMoney.name, and MobileMoney.Descriptionsettings.mobile_money.descriptionMobileMoney.DescriptionmobileMoney.descriptionmobileMoney.descriptionmobile_money.descriptionmobile_money.descriptionmobileMoney.description are included when configured. When MobileMoney.ConfirmsUsesettings.mobile_money.confirms_useMobileMoney.ConfirmsUsemobileMoney.confirmsUsemobileMoney.confirmsUsemobile_money.confirms_usemobile_money.confirms_usemobileMoney.confirmsUse is truetruetruetruetrueTruetruetrue, the payment flow should require customer confirmation before completing use of that payment type; it is not the same as the method’s verification state.New accounts enable recognized payment types and require confirmation by default, unless their configuration has been changed. See Understand payment method settings for how these settings affect checkout.
Request
curl https://api.inttegro.com/payment_methods/settings \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.paymentMethods.settings()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.PaymentMethods.Settings(ctx)
if err != nil {
log.Fatal(err)
}
_ = result
}import os
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.payment_methods.settings()<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->paymentMethods->settings();require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.payment_methods.settingsimport 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.paymentMethods().settings();
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.PaymentMethods.SettingsAsync();{
"settings": {
"bank_account": {
"confirms_use": true,
"enabled": true,
"type": "bank_account"
},
"card": {
"confirms_use": true,
"enabled": true,
"type": "card"
},
"mobile_money": {
"confirms_use": true,
"enabled": true,
"type": "mobile_money"
}
}
}Related resources
- Create customer - Create the owner before tokenizing a method.
- Create an order - Use a saved method with its owning customer.
- Pay an order - Attach a saved method when collecting payment after order creation.
- Confirm a payment - Complete required customer confirmation.