nexlogiq Shopify icon

nexlogiq Shopify

Consume Shopify API (SaaS Edition)

Refund → Create (Money Back)

AI-generated

Summary

Creates a refund for a Shopify order, either a full refund or for specific line items.

Inputs

  • shopUrl (required) — The URL of the Shopify store (e.g., your-store.myshopify.com).
  • accessToken (required) — The Admin API Access Token.
  • orderId (required) — The ID of the order to refund.
  • fullRefund — If true, calculates the full order amount automatically; otherwise, use 'Refund Line Items'.
  • currency — The currency for the refund (default: USD). Only required when fullRefund is false.
  • refund_line_items — A collection of specific line items to refund (line_item_id and quantity). Only required when fullRefund is false.

Output shape

A single record containing the refund details (id, created_at, status, amount, refund_line_items, etc.).

Returns the full refund object from the Shopify API response. If restocking is enabled, the 'restock_type' and 'location_id' are automatically set.

Examples

Example 1: Process a full refund for Order #1001.

Set fullRefund to true; provide shopUrl and accessToken.

Example 2: Refund specific items from an order.

Set fullRefund to false; define refund_line_items with line_item_id and quantity.

Links

Discussion