Skip to main content
PUT
Record a Payment observation

Authorizations

Authorization
string
header
required

Integration-owned environment-specific API key. Never paste a production key into documentation tools.

Path Parameters

clientCode
string
required

Stable non-sensitive Client code authorized by the Integration grant.

Pattern: ^[A-Za-z0-9_-]{1,128}$
externalPaymentObservationId
string
required

Opaque immutable Payment-observation identifier supplied by the Integration.

Pattern: ^[A-Za-z0-9_-]{1,128}$

Body

application/json

One uncompressed resource representation, limited to 256 KiB.

A payment applies explicit allocations first, otherwise a Client-approved allocation rule, otherwise it stays unapplied; only allocated amounts reduce a Receivable. A refund or reversal records an exact, possibly partial, amount against the original Payment: the part named in allocations returns to those Receivables and the remainder is taken from the Payment's unapplied funds. Cumulative corrections cannot exceed the Payment, any allocation, or the unapplied remainder. Recording evidence never executes a transfer.

amount
object
required
effectiveAt
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
method
enum<string>
required
Available options:
bank_transfer,
direct_debit,
card,
cash,
cheque,
unknown
sourceReference
string
required
Required string length: 1 - 200
type
string
required
Allowed value: "payment"
allocations
object[]

Explicit allocations to Receivables. Each Receivable may appear once and the total may not exceed amount; any remainder stays unapplied. When omitted, the connection's Client-approved allocation rule may apply, otherwise the whole amount stays unapplied.

Required array length: 1 - 25 elements
externalCustomerId
string

The paying Customer, when known. Required for a Client-approved allocation rule to apply; unapplied funds are associated with this Customer.

Pattern: ^[A-Za-z0-9_-]{1,128}$

Response

Identical retry of the accepted observation.

amount
object
required
effectiveAt
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
method
enum<string>
required
Available options:
bank_transfer,
direct_debit,
card,
cash,
cheque,
unknown
sourceReference
string
required
Required string length: 1 - 200
allocations
object[]
required
Maximum array length: 25
type
string
required
Allowed value: "payment"
acceptedAt
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
externalPaymentObservationId
string
required
Pattern: ^[A-Za-z0-9_-]{1,128}$
allocationBasis
enum<string>
required
Available options:
explicit,
rule,
unapplied
unappliedAmount
object
required
externalCustomerId
string

The paying Customer, when known. Required for a Client-approved allocation rule to apply; unapplied funds are associated with this Customer.

Pattern: ^[A-Za-z0-9_-]{1,128}$