Payment

November 20, 2019 ยท View on GitHub

Description

Represents a payment processed by the Square API.

Properties

NameTypeDescriptionNotes
idStringUnique ID for the payment.[optional]
createdAtStringTimestamp of when the payment was created, in RFC 3339 format.[optional]
updatedAtStringTimestamp of when the payment was last updated, in RFC 3339 format.[optional]
amountMoneyMoneyThe amount of money processed for this payment, not including `tip_money`. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. For more information, see Working with monetary amounts.[optional]
tipMoneyMoneyThe amount designated as a tip. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents.[optional]
totalMoneyMoneyThe total money for the payment, including `amount_money` and `tip_money`. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents.[optional]
appFeeMoneyMoneyThe amount of money the developer is taking as a fee for facilitating the payment on behalf of the seller. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. For more information, see Take Payments and Collect Fees. Cannot be more than 90% of the `total_money` value.[optional]
processingFeeList<ProcessingFee>Processing fees and fee adjustments assessed by Square on this payment.[optional]
refundedMoneyMoneyTotal amount of the payment refunded to-date. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents.[optional]
statusStringIndicates whether the payment is `APPROVED`, `COMPLETED`, `CANCELED`, or `FAILED`.[optional]
sourceTypeStringThe source type for this payment Current values include: `CARD`[optional]
cardDetailsCardPaymentDetailsNon-confidential details about the source. Only populated if the `source_type` is `CARD`.[optional]
locationIdStringID of the location associated with the payment.[optional]
orderIdStringID of the order associated with this payment.[optional]
referenceIdStringAn optional ID that associates this payment with an entity in another system.[optional]
customerIdStringAn optional customer_id to be entered by the developer when creating a payment.[optional]
employeeIdStringAn optional ID of the employee associated with taking this payment.[optional]
refundIdsList<String>List of `refund_id`s identifying refunds for this payment.[optional]
buyerEmailAddressStringThe buyer's e-mail address[optional]
billingAddressAddressThe buyer's billing address[optional]
shippingAddressAddressThe buyer's shipping address[optional]
noteStringAn optional note to include when creating a payment[optional]
statementDescriptionIdentifierStringAdditional payment information that gets added on the customer's card statement as part of the statement description. Note that the statement_description_identifier may get truncated on the statement description to fit the required information including the Square identifier (SQ *) and name of the merchant taking the payment.[optional] [beta]