Files
medusa-store/www/apps/docs/content/references/js-client/classes/internal-8.internal.AdminPostOrdersOrderClaimsReq.md
github-actions[bot] daea35fe73 chore(docs): Generated JS Client Reference (#5334)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2023-10-10 17:47:07 +00:00

5.7 KiB

displayed_sidebar
displayed_sidebar
jsClientSidebar

Class: AdminPostOrdersOrderClaimsReq

internal.internal.AdminPostOrdersOrderClaimsReq

Schema

AdminPostOrdersOrderClaimsReq type: object required:

  • type
  • claim_items properties: type: description: "The type of the Claim. This will determine how the Claim is treated: replace Claims will result in a Fulfillment with new items being created, while a refund Claim will refund the amount paid for the claimed items." type: string enum:
    • replace
    • refund claim_items: description: The Claim Items that the Claim will consist of. type: array items: type: object required:
      • item_id
      • quantity properties: item_id: description: The ID of the Line Item that will be claimed. type: string quantity: description: The number of items that will be returned type: integer note: description: Short text describing the Claim Item in further detail. type: string reason: description: The reason for the Claim type: string enum:
        • missing_item
        • wrong_item
        • production_failure
        • other tags: description: A list of tags to add to the Claim Item type: array items: type: string images: description: A list of image URL's that will be associated with the Claim items: type: string return_shipping: description: Optional details for the Return Shipping Method, if the items are to be sent back. Providing this field will result in a return being created and associated with the claim. type: object properties: option_id: type: string description: The ID of the Shipping Option to create the Shipping Method from. price: type: integer description: The price to charge for the Shipping Method. additional_items: description: The new items to send to the Customer. This is only used if the claim's type is replace. type: array items: type: object required:
      • variant_id
      • quantity properties: variant_id: description: The ID of the Product Variant. type: string quantity: description: The quantity of the Product Variant. type: integer shipping_methods: description: The Shipping Methods to send the additional Line Items with. This is only used if the claim's type is replace. type: array items: type: object properties: id: description: The ID of an existing Shipping Method type: string option_id: description: The ID of the Shipping Option to create a Shipping Method from type: string price: description: The price to charge for the Shipping Method type: integer data: description: An optional set of key-value pairs to hold additional information. type: object shipping_address: description: "An optional shipping address to send the claimed items to. If not provided, the parent order's shipping address will be used." $ref: "#/components/schemas/AddressPayload" refund_amount: description: The amount to refund the customer. This is used when the claim's type is refund. type: integer no_notification: description: If set to true no notification will be send related to this Claim. type: boolean metadata: description: An optional set of key-value pairs to hold additional information. type: object externalDocs: description: "Learn about the metadata attribute, and how to delete and update it." url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"

Properties

additional_items

Optional additional_items: AdditionalItem[]

Defined in

packages/medusa/dist/api/routes/admin/orders/create-claim.d.ts:199


claim_items

claim_items: Item[]

Defined in

packages/medusa/dist/api/routes/admin/orders/create-claim.d.ts:197


metadata

Optional metadata: Record<string, unknown>

Defined in

packages/medusa/dist/api/routes/admin/orders/create-claim.d.ts:205


no_notification

Optional no_notification: boolean

Defined in

packages/medusa/dist/api/routes/admin/orders/create-claim.d.ts:203


refund_amount

Optional refund_amount: number

Defined in

packages/medusa/dist/api/routes/admin/orders/create-claim.d.ts:201


return_location_id

Optional return_location_id: string

Defined in

packages/medusa/dist/api/routes/admin/orders/create-claim.d.ts:204


return_shipping

Optional return_shipping: ReturnShipping

Defined in

packages/medusa/dist/api/routes/admin/orders/create-claim.d.ts:198


shipping_address

Optional shipping_address: AddressPayload

Defined in

packages/medusa/dist/api/routes/admin/orders/create-claim.d.ts:202


shipping_methods

Optional shipping_methods: ShippingMethod[]

Defined in

packages/medusa/dist/api/routes/admin/orders/create-claim.d.ts:200


type

type: "refund" | "replace"

Defined in

packages/medusa/dist/api/routes/admin/orders/create-claim.d.ts:196