Menu
Create creditmemo
Create creditmemo
POST
/V1/creditmemoUse it in a workflow
- Add a step and choose the Adobe Commerce connector.
- Pick the Create creditmemo action (under Invoices & Shipments).
- Fill in the fields below, then reference the result from later steps as
{{createCreditmemo.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"entity": {
"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
}
}
Response
Returns 200 with an object. Read it in later steps with {{createCreditmemo.response.data.<field>}}.
{
"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.
Was this page helpful?