> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Resource: Order Transactions

# Type: Order Transactions Object

# Link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/order-transactions/order-transactions-object.md

## Description: A record of all payments and refunds associated with an order.

Use order transactions to track payment status, add payment records, process refunds, and monitor chargebacks.

## Schema:

```json
 Type: Order Transactions Object | type: OrderTransactions
 Description: A record of all payments and refunds associated with an order.

Use order transactions to track payment status, add payment records, process refunds, and monitor chargebacks.
       - name: orderId  | type: string | description: Order ID.
       - name: payments  | type: Array<Payment> | description: Record of payments made to the merchant.
           - name: id  | type: string | description: Payment ID.
               - name: value  | type: string | description: 
           - name: createdDate  | type: string | description: Date and time the payment was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided.
               - name: seconds  | type: string | description: 
               - name: nanos  | type: number | description: 
           - name: updatedDate  | type: string | description: Date and time the payment was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
           - name: amount  | type: Price | description: Payment amount.
               - name: amount  | type: string | description: Amount.
               - name: formattedAmount  | type: string | description: Amount formatted with currency symbol.
           - name: refundDisabled  | type: boolean | description: Whether refunds for this payment are disabled. + `true`: This payment is not refundable. + `false`: This payment may be refunded. However, this ultimately depends on the payment provider.
           - name: supportReceiptGeneration  | type: boolean | description: Whether receipt generation is allowed for this payment. + `true`: This payment supports receipt generation. + `false`: This payment doesn't support receipt generation, or a receipt was already generated.
           - name: cashRounding  | type: CashRoundingDetails | description: Details about cash rounding applied to this payment, when relevant.
               - name: unroundedAmount  | type: Price | description: Payment amount before cash rounding was applied. When provided, balance and status calculations use this value instead of `amount` to prevent false overpayment or underpayment due to rounding.
               - name: roundingAdjustment  | type: CashRounding | description: The difference between 'amount' and 'unroundedAmount' (amount minus unroundedAmount). A positive value indicates the price was rounded up; a negative value indicates a round-down.
           - name: status  | type: string | description: Overall payment status.  Gift card and membership payments support only `APPROVED`, `PENDING`, `CANCELED`, `DECLINED`, and `VOIDED`. The remaining values apply to regular payments.
               enum: APPROVED, PENDING, PENDING_MERCHANT, CANCELED, DECLINED, REFUNDED, PARTIALLY_REFUNDED, AUTHORIZED, VOIDED
           - name: chargeCorrelationId  | type: string | description: ID linking this payment to the charge request that created it. Matches the `idempotencyKey` sent in the Charge Order request.
           - ONE-OF:
               - name: regularPaymentDetails  | type: RegularPaymentDetails | description: Regular payment details.
                   - name: paymentOrderId  | type: string | description: Wix Payments order ID.
                   - name: gatewayTransactionId  | type: string | description: Payment gateway's transaction ID. This field is only returned when the value of `offline_payment` is `false`.
                   - name: paymentMethod  | type: string | description: Payment method. Deprecated. Use `paymentMethodName.buyerLanguageName` instead. Non-exhaustive list of supported values: + `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`
                   - name: providerTransactionId  | type: string | description: Transaction ID in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for offline payments.
                   - name: offlinePayment  | type: boolean | description: Whether the payment was made offline. For example, when using cash or when marked as paid in the Business Manager.
                   - name: status  | type: string | description: Payment status.
                   - name: savedPaymentMethod  | type: boolean | description: Whether there is a payment agreement that allows for future charges.
                   - name: authorizationDetails  | type: AuthorizationDetails | description: Authorization details.
                   - name: chargebacks  | type: Array<Chargeback> | description: Record of chargebacks made by the buyer.
                   - name: platformFee  | type: Price | description: Platform fee amount associated with this payment.
                   - name: paymentMethodName  | type: PaymentMethodName | description: Payment method with buyer and optional owner translations. Non-exhaustive list of supported values: + `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`
                   - ONE-OF:
                       - name: creditCardDetails  | type: CreditCardPaymentMethodDetails | description: Credit card details.
               - name: giftcardPaymentDetails  | type: GiftCardPaymentDetails | description: Gift card payment details.
                   - name: giftCardPaymentId  | type: string | description: Gift card payment ID.
                   - name: appId  | type: string | description: ID of the app that created the gift card.
                   - name: voided  | type: boolean | description: Whether the gift card is voided.
                   - name: obfuscatedCode  | type: string | description: Gift card code with all but the last four characters masked. For example, `************QXY1`.
               - name: membershipPaymentDetails  | type: MembershipPaymentDetails | description: Membership payment details.
                   - name: membershipId  | type: string | description: Membership ID.
                   - name: lineItemId  | type: string | description: ID of the line item this membership applies to.
                   - name: status  | type: string | description: Payment status.
                   - name: name  | type: MembershipName | description: Membership name.
                   - name: externalTransactionId  | type: string | description: The transaction ID in the membership system. Can be used to void the transaction.
                   - name: voided  | type: boolean | description: Whether the membership is voided.
                   - name: providerAppId  | type: string | description: ID of the application providing this payment option.
                   - name: futureMembership  | type: FutureMembershipDetails | description: Details of a membership that does not yet exist, allowing the payment to be held before the membership is created.
       - name: refunds  | type: Array<Refund> | description: Record of refunds made to the buyer.
           - name: id  | type: string | description: Refund ID.
           - name: transactions  | type: Array<RefundTransaction> | description: List of transactions.
               - name: paymentId  | type: string | description: ID of the payment associated with this refund.
               - name: amount  | type: Price | description: Refund amount.
               - name: refundStatus  | type: string | description: Refund status.
               - name: refundStatusInfo  | type: RefundStatusInfo | description: Optional details of current refund status.
               - name: gatewayRefundId  | type: string | description: Payment gateway's refund ID. This field is only returned when the value of `external_refund` is `false`.
               - name: providerRefundId  | type: string | description: ID of the refund in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for external refunds.
               - name: externalRefund  | type: boolean | description: Whether refund was made externally and manually on the payment provider's side.
           - name: details  | type: RefundDetails | description: Refund business details.
               - name: items  | type: Array<RefundItem> | description: Order line item IDs and quantities that were refunded.
               - name: shippingIncluded  | type: boolean | description: Whether the shipping fee was also refunded.
               - name: reason  | type: string | description: Reason for the refund, provided by customer (optional).
               - name: lineItems  | type: Array<LineItemRefund> | description: Line items that were refunded.
               - name: additionalFees  | type: Array<AdditionalFeeRefund> | description: Additional fees that were refunded.
               - name: shipping  | type: ShippingRefund | description: Shipping amount that was refunded.
           - name: createdDate  | type: string | description: Date and time the refund was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided.
           - name: summary  | type: AggregatedRefundSummary | description: Aggregated refund summary.  The refunded amount of this refund is in `summary.refunded`. To get the total refunded across the whole order, use `balanceSummary.refunded` on the order instead.
               - name: requestedRefund  | type: Price | description: Total amount requested for refund.
               - name: pendingRefund  | type: Price | description: Pending refund amount - the portion of `requestedRefund` that is still pending.
               - name: refunded  | type: Price | description: Refunded amount - the portion of `requestedRefund` that refunded successfully.
               - name: failedRefundAmount  | type: Price | description: Failed refund amount - the portion of `requestedRefund` that failed.
               - name: pending  | type: boolean | description: Whether at least one refund transaction is still in `"PENDING"` status.
               - name: breakdown  | type: RefundItemsBreakdown | description: Breakdown of refunded items. Available only after refund is complete.
           - name: requestingServiceAppId  | type: string | description: ID of the app that initiated this refund.

```