Skip to main content
interface

Requires read_orders access scope or read_marketplace_orders access scope.

A contract between a merchant and a customer to do business. Shopify creates a sales agreement whenever an order is placed, edited, or refunded. A sales agreement has one or more sales records, which provide itemized details about the initial agreement or subsequent changes made to the order. For example, when a customer places an order, Shopify creates the order, generates a sales agreement, and records a sale for each line item purchased in the order. A sale record is specific to a type of order line. Order lines can represent different things such as a purchased product, a tip added by a customer, shipping costs collected at checkout, and more.

•App

The application that created the agreement.

•DateTime!
non-null

The date and time at which the agreement occured.

•ID!
non-null

The unique ID for the agreement.

•OrderActionType!
non-null

The reason the agremeent was created.

•SaleConnection!
non-null

The sales associated with the agreement.

•StaffMember

The staff member associated with the agreement.


Was this section helpful?

Anchor to Types implemented inTypes implemented in

•OBJECT

An agreement associated with an order placement.

•App

The application that created the agreement.

•DateTime!
non-null

The date and time at which the agreement occured.

•ID!
non-null

The unique ID for the agreement.

•Order!
non-null

The order associated with the agreement.

•OrderActionType!
non-null

The reason the agremeent was created.

•SaleConnection!
non-null

The sales associated with the agreement.

•StaffMember

The staff member associated with the agreement.

•OBJECT

An agreement associated with an edit to the order.

•App

The application that created the agreement.

•DateTime!
non-null

The date and time at which the agreement occured.

•ID!
non-null

The unique ID for the agreement.

•OrderActionType!
non-null

The reason the agremeent was created.

•SaleConnection!
non-null

The sales associated with the agreement.

•StaffMember

The staff member associated with the agreement.

•OBJECT

An agreement between the merchant and customer to refund all or a portion of the order.

•App

The application that created the agreement.

•DateTime!
non-null

The date and time at which the agreement occured.

•ID!
non-null

The unique ID for the agreement.

•OrderActionType!
non-null

The reason the agremeent was created.

•Refund!
non-null

The refund associated with the agreement.

•SaleConnection!
non-null

The sales associated with the agreement.

•StaffMember

The staff member associated with the agreement.

•OBJECT

An agreement between the merchant and customer for a return.

•App

The application that created the agreement.

•DateTime!
non-null

The date and time at which the agreement occured.

•ID!
non-null

The unique ID for the agreement.

•OrderActionType!
non-null

The reason the agremeent was created.

•Return!
non-null

The return associated with the agreement.

•SaleConnection!
non-null

The sales associated with the agreement.

•StaffMember

The staff member associated with the agreement.


Was this section helpful?