Field
Type
Description
_id
The id of the payment. This field is auto generated by the system and is not required when creating a new payment, but it is required when updating an existing payment.
externalId
The unique payment id from the source system/database. Required when _id is not passed in. If we detect a record with the same externalId, it will be updated, otherwise it will be added.
displayName
The secure friendly display name of the payment method. Example: VISA **** 3421.
amount
The amount that was paid. This is an integer number of cents, so 1035 means $10.35.
paidOn
The date and time of when the payment was made. Format = YYYY-MM-DDTHH:mm:ssZ
gatewayTransactionId
The unique id that was assigned to the payment record from the gateway when the payment was processed.
invoice
A reference to the invoice record. On a write this is how the payment is applied to an invoice; it is echoed back on a read, alongside the fuller allocations list.
allowMissingInvoice
When invoice.externalId names an invoice that has not been sent yet, save the payment without applying it instead of rejecting it. An Add/Update Invoice call with that externalId within 30 days applies the payment to it. Without this, the payment is rejected with Invoice was not found and nothing is saved.
Default = false
status
The current status of the payment.
Default = captured | One of declined, authorized, captured, voided, settled, returned, refundFailed, refunded, refundSettled
type
The type of payment method used to make the payment.
One of payment_card, ach, cash, check
subType
The sub type of the payment method used to make the payment.
One of checking, savings, visa, mastercard, discover, amex, cash, other
totals
The total amounts of the payment.
allocations
The allocations for the payment. This is an array of objects that specify how the payment was allocated to different orders or refunds.
deleted
This flag represents whether the record is deleted and no longer available to be used.