# Post v1 order order id invoice **POST /V1/order/{orderId}/invoice** ## Servers - https://magento2.winkelstraat.mac/rest/all: https://magento2.winkelstraat.mac/rest/all () ## Parameters #### Path parameters - **orderId** (integer) ## Body parameters Content-type: - **capture** (boolean) - **items** (array[object]) Input argument for invoice creation Interface InvoiceItemCreationInterface - **notify** (boolean) - **appendComment** (boolean) - **comment** (object) Interface InvoiceCommentCreationInterface - **arguments** (object) Interface for creation arguments for Invoice. ## Responses ### 200: 200 Success. #### Body Parameters: (integer) integer ### 401: 401 Unauthorized #### Body Parameters: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace ### default: Unexpected error #### Body Parameters: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace [Powered by Bump.sh](https://bump.sh)