younifyd
Menu

Create creditmemo/refund

Create creditmemo/refund

POST/V1/creditmemo/refund

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Create creditmemo/refund action (under Invoices & Shipments).
  3. Fill in the fields below, then reference the result from later steps as {{createCreditmemoRefund.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

creditmemoobjectrequired

Credit memo interface. After a customer places and pays for an order and an invoice has been issued, the merchant can create a credit memo to refund all or part of the amount paid for any returned or undelivered items. The memo restores funds to the customer account so that the customer can make future purchases.

adjustmentnumber

Credit memo adjustment.

adjustment_negativenumber

Credit memo negative adjustment.

adjustment_positivenumber

Credit memo positive adjustment.

base_adjustmentnumber

Credit memo base adjustment.

base_adjustment_negativenumber

Credit memo negative base adjustment.

base_adjustment_positivenumber

Credit memo positive base adjustment.

base_currency_codestring

Credit memo base currency code.

base_discount_amountnumber

Credit memo base discount amount.

base_grand_totalnumber

Credit memo base grand total.

base_discount_tax_compensation_amountnumber

Credit memo base discount tax compensation amount.

base_shipping_amountnumber

Credit memo base shipping amount.

base_shipping_discount_tax_compensation_amntnumber

Credit memo base shipping discount tax compensation amount.

base_shipping_incl_taxnumber

Credit memo base shipping including tax.

base_shipping_tax_amountnumber

Credit memo base shipping tax amount.

base_subtotalnumber

Credit memo base subtotal.

base_subtotal_incl_taxnumber

Credit memo base subtotal including tax.

base_tax_amountnumber

Credit memo base tax amount.

base_to_global_ratenumber

Credit memo base-to-global rate.

base_to_order_ratenumber

Credit memo base-to-order rate.

billing_address_idinteger

Credit memo billing address ID.

created_atstring

Credit memo created-at timestamp.

creditmemo_statusinteger

Credit memo status.

discount_amountnumber

Credit memo discount amount.

discount_descriptionstring

Credit memo discount description.

email_sentinteger

Credit memo email sent flag value.

entity_idinteger

Credit memo ID.

global_currency_codestring

Credit memo global currency code.

grand_totalnumber

Credit memo grand total.

discount_tax_compensation_amountnumber

Credit memo discount tax compensation amount.

increment_idstring

Credit memo increment ID.

invoice_idinteger

Credit memo invoice ID.

order_currency_codestring

Credit memo order currency code.

order_idintegerrequired

Credit memo order ID.

shipping_address_idinteger

Credit memo shipping address ID.

shipping_amountnumber

Credit memo shipping amount.

shipping_discount_tax_compensation_amountnumber

Credit memo shipping discount tax compensation amount.

shipping_incl_taxnumber

Credit memo shipping including tax.

shipping_tax_amountnumber

Credit memo shipping tax amount.

stateinteger

Credit memo state.

store_currency_codestring

Credit memo store currency code.

offlineRequestedboolean
json
{
  "creditmemo": {
    "order_id": 0,
    "items": [
      {
        "base_cost": 0,
        "base_price": 0,
        "entity_id": 0,
        "order_item_id": 0,
        "qty": 0,
        "additional_data": "string",
        "base_discount_amount": 0,
        "base_discount_tax_compensation_amount": 0,
        "base_price_incl_tax": 0,
        "base_row_total": 0,
        "base_row_total_incl_tax": 0,
        "base_tax_amount": 0
      }
    ],
    "adjustment": 0,
    "adjustment_negative": 0,
    "adjustment_positive": 0,
    "base_adjustment": 0,
    "base_adjustment_negative": 0,
    "base_adjustment_positive": 0,
    "base_currency_code": "string",
    "base_discount_amount": 0,
    "base_grand_total": 0,
    "base_discount_tax_compensation_amount": 0
  },
  "offlineRequested": false
}

Response

Returns 200 with an object. Read it in later steps with {{createCreditmemoRefund.response.data.<field>}}.

adjustmentnumber

Credit memo adjustment.

adjustment_negativenumber

Credit memo negative adjustment.

adjustment_positivenumber

Credit memo positive adjustment.

base_adjustmentnumber

Credit memo base adjustment.

base_adjustment_negativenumber

Credit memo negative base adjustment.

base_adjustment_positivenumber

Credit memo positive base adjustment.

base_currency_codestring

Credit memo base currency code.

base_discount_amountnumber

Credit memo base discount amount.

base_grand_totalnumber

Credit memo base grand total.

base_discount_tax_compensation_amountnumber

Credit memo base discount tax compensation amount.

base_shipping_amountnumber

Credit memo base shipping amount.

base_shipping_discount_tax_compensation_amntnumber

Credit memo base shipping discount tax compensation amount.

base_shipping_incl_taxnumber

Credit memo base shipping including tax.

base_shipping_tax_amountnumber

Credit memo base shipping tax amount.

base_subtotalnumber

Credit memo base subtotal.

base_subtotal_incl_taxnumber

Credit memo base subtotal including tax.

base_tax_amountnumber

Credit memo base tax amount.

base_to_global_ratenumber

Credit memo base-to-global rate.

base_to_order_ratenumber

Credit memo base-to-order rate.

billing_address_idinteger

Credit memo billing address ID.

created_atstring

Credit memo created-at timestamp.

creditmemo_statusinteger

Credit memo status.

discount_amountnumber

Credit memo discount amount.

discount_descriptionstring

Credit memo discount description.

email_sentinteger

Credit memo email sent flag value.

entity_idinteger

Credit memo ID.

global_currency_codestring

Credit memo global currency code.

grand_totalnumber

Credit memo grand total.

discount_tax_compensation_amountnumber

Credit memo discount tax compensation amount.

increment_idstring

Credit memo increment ID.

invoice_idinteger

Credit memo invoice ID.

order_currency_codestring

Credit memo order currency code.

order_idinteger

Credit memo order ID.

shipping_address_idinteger

Credit memo shipping address ID.

shipping_amountnumber

Credit memo shipping amount.

shipping_discount_tax_compensation_amountnumber

Credit memo shipping discount tax compensation amount.

shipping_incl_taxnumber

Credit memo shipping including tax.

shipping_tax_amountnumber

Credit memo shipping tax amount.

stateinteger

Credit memo state.

store_currency_codestring

Credit memo store currency code.

json
{
  "order_id": 0,
  "items": [
    {
      "base_cost": 0,
      "base_price": 0,
      "entity_id": 0,
      "order_item_id": 0,
      "qty": 0,
      "additional_data": "string",
      "base_discount_amount": 0,
      "base_discount_tax_compensation_amount": 0,
      "base_price_incl_tax": 0,
      "base_row_total": 0,
      "base_row_total_incl_tax": 0,
      "base_tax_amount": 0
    }
  ],
  "adjustment": 0,
  "adjustment_negative": 0,
  "adjustment_positive": 0,
  "base_adjustment": 0,
  "base_adjustment_negative": 0,
  "base_adjustment_positive": 0,
  "base_currency_code": "string",
  "base_discount_amount": 0,
  "base_grand_total": 0,
  "base_discount_tax_compensation_amount": 0
}

Need more? See the Adobe Commerce guide for connection setup and behaviour shared by every action.