younifyd
Menu

Create order/{orderId}/invoice

Create order/{orderId}/invoice

POST/V1/order/{orderId}/invoice

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Create order/{orderId}/invoice action (under Orders).
  3. Fill in the fields below, then reference the result from later steps as {{createOrderOrderidInvoice.response.data}}.

Request

Path parameters

orderIdintegerrequired

Request body

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

captureboolean
itemsarray<object>
extension_attributesobject

ExtensionInterface class for @see \Magento\Sales\Api\Data\InvoiceItemCreationInterface

order_item_idintegerrequired

Order item ID.

qtynumberrequired

Quantity.

notifyboolean
appendCommentboolean
commentobject

Interface InvoiceCommentCreationInterface

extension_attributesobject

ExtensionInterface class for @see \Magento\Sales\Api\Data\InvoiceCommentCreationInterface

commentstringrequired

Comment.

is_visible_on_frontintegerrequired

Is-visible-on-storefront flag value.

argumentsobject

Interface for creation arguments for Invoice.

extension_attributesobject

ExtensionInterface class for @see \Magento\Sales\Api\Data\InvoiceCreationArgumentsInterface

json
{
  "capture": false,
  "items": [
    {
      "order_item_id": 0,
      "qty": 0,
      "extension_attributes": {}
    }
  ],
  "notify": false,
  "appendComment": false,
  "comment": {
    "comment": "string",
    "is_visible_on_front": 0,
    "extension_attributes": {}
  },
  "arguments": {
    "extension_attributes": {}
  }
}

Response

Returns 200 with a integer. Read it in later steps with {{createOrderOrderidInvoice.response.data.<field>}}.

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