--- displayed_sidebar: entitiesSidebar --- import ParameterTypes from "@site/src/components/ParameterTypes" # ShippingMethod A Shipping Method represents a way in which an Order or Return can be shipped. Shipping Methods are created from a Shipping Option, but may contain additional details that can be necessary for the Fulfillment Provider to handle the shipment. If the shipping method is created for a return, it may be associated with a claim or a swap that the return is part of. ## Properties `", "description": "The context of the cart which can include info like IP or user agent.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "created_at", "type": "`Date`", "description": "The date with timezone at which the resource was created.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "customer", "type": "[Customer](Customer.mdx)", "description": "The details of the customer the cart belongs to.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "customer_id", "type": "`string`", "description": "The customer's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "deleted_at", "type": "``null`` \\| `Date`", "description": "The date with timezone at which the resource was deleted.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "discount_total", "type": "`number`", "description": "The total of discount rounded", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "discounts", "type": "[Discount](Discount.mdx)[]", "description": "An array of details of all discounts applied to the cart.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "email", "type": "`string`", "description": "The email associated with the cart", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "gift_card_tax_total", "type": "`number`", "description": "The total of gift cards with taxes", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "gift_card_total", "type": "`number`", "description": "The total of gift cards", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "gift_cards", "type": "[GiftCard](GiftCard.mdx)[]", "description": "An array of details of all gift cards applied to the cart.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "id", "type": "`string`", "description": "The cart's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "idempotency_key", "type": "`string`", "description": "Randomly generated key used to continue the completion of a cart in case of failure.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "item_tax_total", "type": "``null`` \\| `number`", "description": "The total of items with taxes", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "items", "type": "[LineItem](LineItem.mdx)[]", "description": "The line items added to the cart.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "metadata", "type": "`Record`", "description": "An optional key-value map with additional details", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "object", "type": "``\"cart\"``", "description": "", "optional": false, "defaultValue": "\"cart\"", "expandable": false, "children": [] }, { "name": "payment", "type": "[Payment](Payment.mdx)", "description": "The details of the payment associated with the cart.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "payment_authorized_at", "type": "`Date`", "description": "The date with timezone at which the payment was authorized.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "payment_id", "type": "`string`", "description": "The payment's ID if available", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "payment_session", "type": "``null`` \\| [PaymentSession](PaymentSession.mdx)", "description": "The details of the selected payment session in the cart.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "payment_sessions", "type": "[PaymentSession](PaymentSession.mdx)[]", "description": "The details of all payment sessions created on the cart.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "raw_discount_total", "type": "`number`", "description": "The total of discount", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "refundable_amount", "type": "`number`", "description": "The amount that can be refunded", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "refunded_total", "type": "`number`", "description": "The total amount refunded if the order associated with this cart is returned.", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "region", "type": "[Region](Region.mdx)", "description": "The details of the region associated with the cart.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "region_id", "type": "`string`", "description": "The region's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "sales_channel", "type": "[SalesChannel](SalesChannel.mdx)", "description": "The details of the sales channel associated with the cart.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "sales_channel_id", "type": "``null`` \\| `string`", "description": "The sales channel ID the cart is associated with.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "shipping_address", "type": "``null`` \\| [Address](Address.mdx)", "description": "The details of the shipping address associated with the cart.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "shipping_address_id", "type": "`string`", "description": "The shipping address's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "shipping_methods", "type": "[ShippingMethod](ShippingMethod.mdx)[]", "description": "The details of the shipping methods added to the cart.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "shipping_tax_total", "type": "``null`` \\| `number`", "description": "The total of shipping with taxes", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "shipping_total", "type": "`number`", "description": "The total of shipping", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "subtotal", "type": "`number`", "description": "The subtotal of the cart", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "tax_total", "type": "``null`` \\| `number`", "description": "The total of tax", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "total", "type": "`number`", "description": "The total amount of the cart", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "type", "type": "[CartType](../enums/CartType.mdx)", "description": "The cart's type.", "optional": false, "defaultValue": "default", "expandable": false, "children": [] }, { "name": "updated_at", "type": "`Date`", "description": "The date with timezone at which the resource was updated.", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ] }, { "name": "cart_id", "type": "`string`", "description": "The ID of the cart that the shipping method is used in.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "claim_order", "type": "[ClaimOrder](ClaimOrder.mdx)", "description": "The details of the claim that the shipping method is used in.", "optional": false, "defaultValue": "", "expandable": true, "children": [ { "name": "additional_items", "type": "[LineItem](LineItem.mdx)[]", "description": "The details of the new items to be shipped when the claim's type is `replace`", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "canceled_at", "type": "`Date`", "description": "The date with timezone at which the claim was canceled.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "claim_items", "type": "[ClaimItem](ClaimItem.mdx)[]", "description": "The details of the items that should be replaced or refunded.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "created_at", "type": "`Date`", "description": "The date with timezone at which the resource was created.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "deleted_at", "type": "`Date`", "description": "The date with timezone at which the resource was deleted.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "fulfillment_status", "type": "[ClaimFulfillmentStatus](../enums/ClaimFulfillmentStatus.mdx)", "description": "The claim's fulfillment status", "optional": false, "defaultValue": "not_fulfilled", "expandable": false, "children": [] }, { "name": "fulfillments", "type": "[Fulfillment](Fulfillment.mdx)[]", "description": "The fulfillments of the new items to be shipped", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "id", "type": "`string`", "description": "The claim's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "idempotency_key", "type": "`string`", "description": "Randomly generated key used to continue the completion of the cart associated with the claim in case of failure.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "metadata", "type": "`Record`", "description": "An optional key-value map with additional details", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "no_notification", "type": "`boolean`", "description": "Flag for describing whether or not notifications related to this should be send.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "order", "type": "[Order](Order.mdx)", "description": "The details of the order that this claim was created for.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "order_id", "type": "`string`", "description": "The ID of the order that the claim comes from.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "payment_status", "type": "[ClaimPaymentStatus](../enums/ClaimPaymentStatus.mdx)", "description": "The status of the claim's payment", "optional": false, "defaultValue": "na", "expandable": false, "children": [] }, { "name": "refund_amount", "type": "`number`", "description": "The amount that will be refunded in conjunction with the claim", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "return_order", "type": "[Return](Return.mdx)", "description": "The details of the return associated with the claim if the claim's type is `replace`.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "shipping_address", "type": "[Address](Address.mdx)", "description": "The details of the address that new items should be shipped to.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "shipping_address_id", "type": "`string`", "description": "The ID of the address that the new items should be shipped to", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "shipping_methods", "type": "[ShippingMethod](ShippingMethod.mdx)[]", "description": "The details of the shipping methods that the claim order will be shipped with.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "type", "type": "[ClaimType](../enums/ClaimType.mdx)", "description": "The claim's type", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "updated_at", "type": "`Date`", "description": "The date with timezone at which the resource was updated.", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ] }, { "name": "claim_order_id", "type": "``null`` \\| `string`", "description": "The ID of the claim that the shipping method is used in.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "data", "type": "`Record`", "description": "Additional data that the Fulfillment Provider needs to fulfill the shipment. This is used in combination with the Shipping Options data, and may contain information such as a drop point id.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "id", "type": "`string`", "description": "The shipping method's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "includes_tax", "type": "`boolean`", "description": "Whether the shipping method price include tax", "optional": false, "defaultValue": "false", "expandable": false, "featureFlag": "tax_inclusive_pricing", "children": [] }, { "name": "order", "type": "[Order](Order.mdx)", "description": "The details of the order that the shipping method is used in.", "optional": false, "defaultValue": "", "expandable": true, "children": [ { "name": "billing_address", "type": "[Address](Address.mdx)", "description": "The details of the billing address associated with the order.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "billing_address_id", "type": "`string`", "description": "The ID of the billing address associated with the order", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "canceled_at", "type": "`Date`", "description": "The date the order was canceled on.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "cart", "type": "[Cart](Cart.mdx)", "description": "The details of the cart associated with the order.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "cart_id", "type": "`string`", "description": "The ID of the cart associated with the order", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "claims", "type": "[ClaimOrder](ClaimOrder.mdx)[]", "description": "The details of the claims created for the order.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "created_at", "type": "`Date`", "description": "The date with timezone at which the resource was created.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "currency", "type": "[Currency](Currency.mdx)", "description": "The details of the currency used in the order.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "currency_code", "type": "`string`", "description": "The 3 character currency code that is used in the order", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "customer", "type": "[Customer](Customer.mdx)", "description": "The details of the customer associated with the order.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "customer_id", "type": "`string`", "description": "The ID of the customer associated with the order", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "discount_total", "type": "`number`", "description": "The total of discount rounded", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "discounts", "type": "[Discount](Discount.mdx)[]", "description": "The details of the discounts applied on the order.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "display_id", "type": "`number`", "description": "The order's display ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "draft_order", "type": "[DraftOrder](DraftOrder.mdx)", "description": "The details of the draft order this order was created from.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "draft_order_id", "type": "`string`", "description": "The ID of the draft order this order was created from.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "edits", "type": "[OrderEdit](OrderEdit.mdx)[]", "description": "The details of the order edits done on the order.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "email", "type": "`string`", "description": "The email associated with the order", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "external_id", "type": "``null`` \\| `string`", "description": "The ID of an external order.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "fulfillment_status", "type": "[FulfillmentStatus](../enums/FulfillmentStatus.mdx)", "description": "The order's fulfillment status", "optional": false, "defaultValue": "not_fulfilled", "expandable": false, "children": [] }, { "name": "fulfillments", "type": "[Fulfillment](Fulfillment.mdx)[]", "description": "The details of the fulfillments created for the order.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "gift_card_tax_total", "type": "`number`", "description": "The total of gift cards with taxes", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "gift_card_total", "type": "`number`", "description": "The total of gift cards", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "gift_card_transactions", "type": "[GiftCardTransaction](GiftCardTransaction.mdx)[]", "description": "The gift card transactions made in the order.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "gift_cards", "type": "[GiftCard](GiftCard.mdx)[]", "description": "The details of the gift card used in the order.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "id", "type": "`string`", "description": "The order's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "idempotency_key", "type": "`string`", "description": "Randomly generated key used to continue the processing of the order in case of failure.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "item_tax_total", "type": "``null`` \\| `number`", "description": "The tax total applied on items", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "items", "type": "[LineItem](LineItem.mdx)[]", "description": "The details of the line items that belong to the order.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "metadata", "type": "`Record`", "description": "An optional key-value map with additional details", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "no_notification", "type": "`boolean`", "description": "Flag for describing whether or not notifications related to this should be send.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "object", "type": "``\"order\"``", "description": "", "optional": false, "defaultValue": "\"order\"", "expandable": false, "children": [] }, { "name": "paid_total", "type": "`number`", "description": "The total amount paid", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "payment_status", "type": "[PaymentStatus](../enums/PaymentStatus.mdx)", "description": "The order's payment status", "optional": false, "defaultValue": "not_paid", "expandable": false, "children": [] }, { "name": "payments", "type": "[Payment](Payment.mdx)[]", "description": "The details of the payments used in the order.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "raw_discount_total", "type": "`number`", "description": "The total of discount", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "refundable_amount", "type": "`number`", "description": "The amount that can be refunded", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "refunded_total", "type": "`number`", "description": "The total amount refunded if the order is returned.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "refunds", "type": "[Refund](Refund.mdx)[]", "description": "The details of the refunds created for the order.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "region", "type": "[Region](Region.mdx)", "description": "The details of the region this order was created in.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "region_id", "type": "`string`", "description": "The ID of the region this order was created in.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "returnable_items", "type": "[LineItem](LineItem.mdx)[]", "description": "The details of the line items that are returnable as part of the order, swaps, or claims", "optional": true, "defaultValue": "", "expandable": true, "children": [] }, { "name": "returns", "type": "[Return](Return.mdx)[]", "description": "The details of the returns created for the order.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "sales_channel", "type": "[SalesChannel](SalesChannel.mdx)", "description": "The details of the sales channel this order belongs to.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "sales_channel_id", "type": "``null`` \\| `string`", "description": "The ID of the sales channel this order belongs to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "shipping_address", "type": "[Address](Address.mdx)", "description": "The details of the shipping address associated with the order.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "shipping_address_id", "type": "`string`", "description": "The ID of the shipping address associated with the order", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "shipping_methods", "type": "[ShippingMethod](ShippingMethod.mdx)[]", "description": "The details of the shipping methods used in the order.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "shipping_tax_total", "type": "``null`` \\| `number`", "description": "The tax total applied on shipping", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "shipping_total", "type": "`number`", "description": "The total of shipping", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "status", "type": "[OrderStatus](../enums/OrderStatus.mdx)", "description": "The order's status", "optional": false, "defaultValue": "pending", "expandable": false, "children": [] }, { "name": "subtotal", "type": "`number`", "description": "The subtotal of the order", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "swaps", "type": "[Swap](Swap.mdx)[]", "description": "The details of the swaps created for the order.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "tax_rate", "type": "``null`` \\| `number`", "description": "The order's tax rate", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "tax_total", "type": "``null`` \\| `number`", "description": "The total of tax", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "total", "type": "`number`", "description": "The total amount of the order", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "updated_at", "type": "`Date`", "description": "The date with timezone at which the resource was updated.", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ] }, { "name": "order_id", "type": "`string`", "description": "The ID of the order that the shipping method is used in.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "price", "type": "`number`", "description": "The amount to charge for the Shipping Method. The currency of the price is defined by the Region that the Order that the Shipping Method belongs to is a part of.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "return_id", "type": "`string`", "description": "The ID of the return that the shipping method is used in.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "return_order", "type": "[Return](Return.mdx)", "description": "The details of the return that the shipping method is used in.", "optional": false, "defaultValue": "", "expandable": true, "children": [ { "name": "claim_order", "type": "[ClaimOrder](ClaimOrder.mdx)", "description": "The details of the claim that the return may belong to.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "claim_order_id", "type": "``null`` \\| `string`", "description": "The ID of the claim that the return may belong to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "created_at", "type": "`Date`", "description": "The date with timezone at which the resource was created.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "id", "type": "`string`", "description": "The return's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "idempotency_key", "type": "``null`` \\| `string`", "description": "Randomly generated key used to continue the completion of the return in case of failure.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "items", "type": "[ReturnItem](ReturnItem.mdx)[]", "description": "The details of the items that the customer is returning.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "location_id", "type": "``null`` \\| `string`", "description": "The ID of the stock location the return will be added back.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "metadata", "type": "``null`` \\| `Record`", "description": "An optional key-value map with additional details", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "no_notification", "type": "``null`` \\| `boolean`", "description": "When set to true, no notification will be sent related to this return.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "order", "type": "[Order](Order.mdx)", "description": "The details of the order that the return was created for.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "order_id", "type": "``null`` \\| `string`", "description": "The ID of the order that the return was created for.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "received_at", "type": "`Date`", "description": "The date with timezone at which the return was received.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "refund_amount", "type": "`number`", "description": "The amount that should be refunded as a result of the return.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "shipping_data", "type": "`Record`", "description": "Data about the return shipment as provided by the Fulfilment Provider that handles the return shipment.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "shipping_method", "type": "[ShippingMethod](ShippingMethod.mdx)", "description": "The details of the Shipping Method that will be used to send the Return back. Can be null if the Customer will handle the return shipment themselves.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "status", "type": "[ReturnStatus](../enums/ReturnStatus.mdx)", "description": "Status of the Return.", "optional": false, "defaultValue": "requested", "expandable": false, "children": [] }, { "name": "swap", "type": "[Swap](Swap.mdx)", "description": "The details of the swap that the return may belong to.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "swap_id", "type": "``null`` \\| `string`", "description": "The ID of the swap that the return may belong to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "updated_at", "type": "`Date`", "description": "The date with timezone at which the resource was updated.", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ] }, { "name": "shipping_option", "type": "[ShippingOption](ShippingOption.mdx)", "description": "The details of the shipping option the method was created from.", "optional": false, "defaultValue": "", "expandable": true, "children": [ { "name": "admin_only", "type": "`boolean`", "description": "Flag to indicate if the Shipping Option usage is restricted to admin users.", "optional": false, "defaultValue": "false", "expandable": false, "children": [] }, { "name": "amount", "type": "``null`` \\| `number`", "description": "The amount to charge for shipping when the Shipping Option price type is `flat\\_rate`.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "created_at", "type": "`Date`", "description": "The date with timezone at which the resource was created.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "data", "type": "`Record`", "description": "The data needed for the Fulfillment Provider to identify the Shipping Option.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "deleted_at", "type": "``null`` \\| `Date`", "description": "The date with timezone at which the resource was deleted.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "id", "type": "`string`", "description": "The shipping option's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "includes_tax", "type": "`boolean`", "description": "Whether the shipping option price include tax", "optional": false, "defaultValue": "false", "expandable": false, "featureFlag": "tax_inclusive_pricing", "children": [] }, { "name": "is_return", "type": "`boolean`", "description": "Flag to indicate if the Shipping Option can be used for Return shipments.", "optional": false, "defaultValue": "false", "expandable": false, "children": [] }, { "name": "metadata", "type": "`Record`", "description": "An optional key-value map with additional details", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "name", "type": "`string`", "description": "The name given to the Shipping Option - this may be displayed to the Customer.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "price_type", "type": "[ShippingOptionPriceType](../enums/ShippingOptionPriceType.mdx)", "description": "The type of pricing calculation that is used when creatin Shipping Methods from the Shipping Option. Can be `flat\\_rate` for fixed prices or `calculated` if the Fulfillment Provider can provide price calulations.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "profile", "type": "[ShippingProfile](ShippingProfile.mdx)", "description": "The details of the shipping profile that the shipping option belongs to.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "profile_id", "type": "`string`", "description": "The ID of the Shipping Profile that the shipping option belongs to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "provider", "type": "[FulfillmentProvider](FulfillmentProvider.mdx)", "description": "The details of the fulfillment provider that will be used to later to process the shipping method created from this shipping option and its fulfillments.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "provider_id", "type": "`string`", "description": "The ID of the fulfillment provider that will be used to later to process the shipping method created from this shipping option and its fulfillments.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "region", "type": "[Region](Region.mdx)", "description": "The details of the region this shipping option can be used in.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "region_id", "type": "`string`", "description": "The ID of the region this shipping option can be used in.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "requirements", "type": "[ShippingOptionRequirement](ShippingOptionRequirement.mdx)[]", "description": "The details of the requirements that must be satisfied for the Shipping Option to be available for usage in a Cart.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "updated_at", "type": "`Date`", "description": "The date with timezone at which the resource was updated.", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ] }, { "name": "shipping_option_id", "type": "`string`", "description": "The ID of the Shipping Option that the Shipping Method is built from.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "subtotal", "type": "`number`", "description": "The subtotal of the shipping", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "swap", "type": "[Swap](Swap.mdx)", "description": "The details of the swap that the shipping method is used in.", "optional": false, "defaultValue": "", "expandable": true, "children": [ { "name": "additional_items", "type": "[LineItem](LineItem.mdx)[]", "description": "The details of the new products to send to the customer, represented as line items.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "allow_backorder", "type": "`boolean`", "description": "If true, swaps can be completed with items out of stock", "optional": false, "defaultValue": "false", "expandable": false, "children": [] }, { "name": "canceled_at", "type": "`Date`", "description": "The date with timezone at which the Swap was canceled.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "cart", "type": "[Cart](Cart.mdx)", "description": "The details of the cart that the customer uses to complete the swap.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "cart_id", "type": "`string`", "description": "The ID of the cart that the customer uses to complete the swap.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "confirmed_at", "type": "`Date`", "description": "The date with timezone at which the Swap was confirmed by the Customer.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "created_at", "type": "`Date`", "description": "The date with timezone at which the resource was created.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "deleted_at", "type": "``null`` \\| `Date`", "description": "The date with timezone at which the resource was deleted.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "difference_due", "type": "`number`", "description": "The difference amount between the order’s original total and the new total imposed by the swap. If its value is negative, a refund must be issues to the customer. If it's positive, additional payment must be authorized by the customer. Otherwise, no payment processing is required.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "fulfillment_status", "type": "[SwapFulfillmentStatus](../enums/SwapFulfillmentStatus.mdx)", "description": "The status of the Fulfillment of the Swap.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "fulfillments", "type": "[Fulfillment](Fulfillment.mdx)[]", "description": "The details of the fulfillments that are used to send the new items to the customer.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "id", "type": "`string`", "description": "The swap's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "idempotency_key", "type": "`string`", "description": "Randomly generated key used to continue the completion of the swap in case of failure.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "metadata", "type": "`Record`", "description": "An optional key-value map with additional details", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "no_notification", "type": "`boolean`", "description": "If set to true, no notification will be sent related to this swap", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "order", "type": "[Order](Order.mdx)", "description": "The details of the order that the swap belongs to.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "order_id", "type": "`string`", "description": "The ID of the order that the swap belongs to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "payment", "type": "[Payment](Payment.mdx)", "description": "The details of the additional payment authorized by the customer when `difference\\_due` is positive.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "payment_status", "type": "[SwapPaymentStatus](../enums/SwapPaymentStatus.mdx)", "description": "The status of the Payment of the Swap. The payment may either refer to the refund of an amount or the authorization of a new amount.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "return_order", "type": "[Return](Return.mdx)", "description": "The details of the return that belongs to the swap, which holds the details on the items being returned.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "shipping_address", "type": "[Address](Address.mdx)", "description": "The details of the shipping address that the new items should be sent to.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "shipping_address_id", "type": "`string`", "description": "The Address to send the new Line Items to - in most cases this will be the same as the shipping address on the Order.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "shipping_methods", "type": "[ShippingMethod](ShippingMethod.mdx)[]", "description": "The details of the shipping methods used to fulfill the additional items purchased.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "updated_at", "type": "`Date`", "description": "The date with timezone at which the resource was updated.", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ] }, { "name": "swap_id", "type": "`string`", "description": "The ID of the swap that the shipping method is used in.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "tax_lines", "type": "[ShippingMethodTaxLine](ShippingMethodTaxLine.mdx)[]", "description": "The details of the tax lines applied on the shipping method.", "optional": false, "defaultValue": "", "expandable": true, "children": [ { "name": "code", "type": "``null`` \\| `string`", "description": "A code to identify the tax type by", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "created_at", "type": "`Date`", "description": "The date with timezone at which the resource was created.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "id", "type": "`string`", "description": "The line item tax line's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "metadata", "type": "`Record`", "description": "An optional key-value map with additional details", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "name", "type": "`string`", "description": "A human friendly name for the tax", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "rate", "type": "`number`", "description": "The numeric rate to charge tax by", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "shipping_method", "type": "[ShippingMethod](ShippingMethod.mdx)", "description": "The details of the associated shipping method.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "shipping_method_id", "type": "`string`", "description": "The ID of the line item", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "updated_at", "type": "`Date`", "description": "The date with timezone at which the resource was updated.", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ] }, { "name": "tax_total", "type": "`number`", "description": "The total of tax", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "total", "type": "`number`", "description": "The total amount of the shipping", "optional": true, "defaultValue": "", "expandable": false, "children": [] } ]} />