Skip to content

shopifyCreateRefund - shopify

Version: 2024-01

← shopify Add-On Übersicht

This step creates refunds for one or multiple line items per order.


Inputs

Das sind die Optionen, mit denen man den Step konfigurieren kann.

NameDatentypBeschreibungPflichtfeldWerte
accountACCOUNTJa
inputSPREADSHEETNein
mappingdefinitionSTRINGThe mapping definition JSON StringNein
Folgende Felder sind zu konfigurieren:

FeldDatentypBeschreibungPflichtfeldStandardwert
order_idSINGLEId of the order.Ja
line_item_idSINGLEThe ID of a line item to refund.Nein
location_idSINGLEThe ID of the location where the items should be restocked. This is required when the value of restock_type is return or cancel.Nein
quantitySINGLEThe quantity to refund.Nein
currencySINGLEThe three-letter code (ISO 4217 format) for the currency used for the payment. e.g: EURJa
restock_typeSINGLEHow this refund line item affects inventory levels.Neinno_restock
noteSINGLEAn optional note attached to a refund.Nein
notifySINGLEWhether to send a refund notification to the customer.Neinfalse
refund_shippingSINGLESpecify how much shipping to refund. no_refund: Shipping will not be refunded. full_refund: To refund all remaining shipping. amount: Set a specific amount to refund for shipping. e.g. 11.22Nein
transaction_idSINGLEThe ID to the corresponding transaction of th order. Use shopifyGetOrderTransaction.Nein
refund_amountSINGLEThe amount of money included in the transaction. If you don't provide a value for `amount`, then it defaults to the total cost of the order (even if a previous transaction has been made towards it).Nein
payment_gatewaySINGLEThe name of the gateway the transaction was issued through. A list of gateways can be found on Shopify's payment gateways page.Nein
limitSTRINGLimits the number of rows used from the input SPREADSHEET. Use low values for testing. If limit is empty, all lines are processed.Nein
Action with no valid rowsSTRINGThe action which should happen when there are no valid rows. continue with warning: Step will provide warning and doesn't stop. warning: Step will provide a warning and will stop success: Step will provide no warning and will stopNein
  • continue with warning
  • warning
  • success

Outputs

Das sind die Ergebnisse des Steps, die von nachfolgenden Steps, nach der Ausführung verwendet werden können.

NameDatentypBeschreibungWerte
successRefundsSPREADSHEET
Folgende Felder sind im Output enthalten:

FeldDatentypBeschreibungStandardwert
refund_idSINGLE
order_idSINGLE
created_atSINGLE
processed_atSINGLE
noteSINGLE
user_idSINGLE
restockSINGLE
dutiesSINGLE
total_duties_set_shop_money_amountSINGLE
currencySINGLE
total_duties_set_presentment_money_amountSINGLE
refund.returnSINGLE
refund_transactions_idSINGLE
transactions_kindSINGLE
transactions_gatewaySINGLE
transactions_statusSINGLE
transaction_messageSINGLE
transactions_created_atSINGLE
transactions_processed_atSINGLE
transactions_error_codeSINGLE
transactions_source_nameSINGLE
transactions_amountSINGLE
transaction_payment_idSINGLE
order_adjustments_idSINGLE
order_adjustments_refund_idSINGLE
order_adjustments_amountSINGLE
order_adjustments_kindSINGLE
order_adjustments_reasonSINGLE
order_adjustments_amount_set_shop_money_amountSINGLE
invalidItemsSPREADSHEET
Folgende Felder sind im Output enthalten:

FeldDatentypBeschreibungStandardwert
order_idSINGLE
line_item_idSINGLE
location_idSINGLE
quantitySINGLE
restock_typeSINGLE
refund_shippingSINGLE
transaction_idSINGLE
refund_amountSINGLE
currencySINGLE
payment_gatewaySINGLE
noteSINGLE
notifySINGLE
failedItemsSPREADSHEET
Folgende Felder sind im Output enthalten:

FeldDatentypBeschreibungStandardwert
methodSINGLE
hostSINGLE
requestBodySINGLE
statusCodeSINGLE
statusMessageSINGLE
responseHeadersSINGLE
responseFilenameSINGLE
errorSINGLE
source_order_idSINGLE
source_line_item_idSINGLE
responseContentSINGLE
errorMessageSINGLE