younifyd
Menu

Get creditmemos

Get creditmemos

GET/V1/creditmemos

Use it in a workflow

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

Request

Query parameters

searchCriteria[filterGroups][0][filters][0][field]string

Field

searchCriteria[filterGroups][0][filters][0][value]string

Value

searchCriteria[filterGroups][0][filters][0][conditionType]string

Condition type

searchCriteria[sortOrders][0][field]string

Sorting field.

searchCriteria[sortOrders][0][direction]string

Sorting direction.

searchCriteria[pageSize]integer

Page size.

searchCriteria[currentPage]integer

Current page.

Response

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

itemsarray<object>

Array of collection items.

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.

search_criteriaobject

Search criteria interface.

filter_groupsarray<object>required1 fields

A list of filter groups.

sort_ordersarray<object>2 fields

Sort order.

page_sizeinteger

Page size.

current_pageinteger

Current page.

total_countinteger

Total count.

json
{
  "items": [
    {
      "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
    }
  ],
  "search_criteria": {
    "filter_groups": [
      {
        "filters": [
          {
            "field": "string",
            "value": "string",
            "condition_type": "string"
          }
        ]
      }
    ],
    "sort_orders": [
      {
        "field": "string",
        "direction": "string"
      }
    ],
    "page_size": 0,
    "current_page": 0
  },
  "total_count": 0
}

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

Get creditmemos — Adobe Commerce — Documentation