Properties
idstring
The unique identifier for this payment.
createdAt string
The date this payment was created in RFC3339 format.
updatedAt string
The date this payment was updated in RFC3339 format.
object string
The object type of this resource.
invoiceId string
The ID of the invoice this payment is associated with.
status string
The current status of the payment. One of:
amount
integer
The payment amount in cents. Will be 0 for failed payments.
message string
A message describing why the payment failed, if applicable.
declineCode string
The decline code from the payment processor in case of payment failure.
paymentMethod string
The type of payment method used. One of:
last4Digits
string
The last 4 digits of the payment method used.
brand string
The brand of the payment method:
feeAmount
object
Details of fees applied to successful payments:
- paidByPlatform
integerTransaction fee which was passed on to the SB - paidByClient
integerTransaction fee passed on to the client
Example Payment Object