Returns one sale in any non-open status, with its line items, payments and totals. A parked (open) sale reads as not found.
404 NOT_FOUND: the id is foreign, unknown, or names a parked sale.
Requires scope: sales:read
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Get a sale
object
object
object
Signed: positive for a surcharge, negative for a cash discount. Integer minor units (cents).
The tax charged on this adjustment. Integer minor units (cents).
Total cash-discount adjustment. Integer minor units (cents).
Reporting total: line + order + promo discount. Integer minor units (cents).
object
Cents when value_type is fixed; basis points when percent.
The line-level part of discount_total. Integer minor units (cents).
object
object
The amount of this line allocated to the discount. Integer minor units (cents).
The total discount allocated to this line. Integer minor units (cents).
The line total, net of the line discount. Integer minor units (cents).
Decimal, 3 places. Negative on a refund line.
Decimal, 3 places. Cumulative quantity refunded against this line.
The tax charged on this line. Integer minor units (cents).
The per-unit discount. Integer, 4 decimal places (1.2345 = 12345).
The snapshot unit price. Integer, 4 decimal places (1.2345 = 12345).
Total tendered. Integer minor units (cents).
object
The tender amount. Integer minor units (cents).
The cumulative amount refunded against this tender. Integer minor units (cents).
Total rounding adjustment. Integer minor units (cents).
Already net of the line discount. Integer minor units (cents).
Total surcharge adjustment. Integer minor units (cents).
Total tax charged. Integer minor units (cents).
object
The snapshot tax rate. Integer basis points (1/100 of a percent).
The tax charged at this rate. Integer minor units (cents).
The amount this rate was applied to. Integer minor units (cents).
The sale total. Integer minor units (cents).
Decimal, 3 places. Sum of line quantities.
Opaque delta-sync version. Increases with every change; use it to detect updates.
Example
{ "data": { "adjustments": [ { "type": "surcharge" } ], "discounts": [ { "allocation_method": "across", "source": "manual_line", "target_type": "line_item", "value_type": "percent" } ], "payments": [ { "entry_mode": "chip", "status": "pending" } ], "status": "open" }}default
Section titled “default”An error response.
object
object
A machine-readable error code, e.g. VALIDATION_FAILED.
object
A plain-English sentence describing what went wrong.
Example
{ "error": { "code": "UNAUTHORIZED" }}