payments.upsert
The CRM’s id for the customer, from
contacts.upsert or
contacts.resolve.id.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
One charge, from a billing system that is not connected.
const [payment, error] = await crm.payments.upsert({
partyId: contact.id,
externalId: charge.id,
amount: 4900,
currency: "USD",
chargedAt: charge.createdAt,
});
contacts.upsert or
contacts.resolve.id.
await crm.payments.delete({ paymentId: payment.id });