# Account Functions/Invoice Functions

## Get status

> Invoice related endpoints.\n\n\*\*NB!\*\* All Invoice data under the \`/account\` endpoints require JSON and only UBL JSON data are supported.

```json
{"openapi":"3.0.2","info":{"title":"qvalia","version":"1.0.0"},"servers":[{"url":"https://api-qa.qvalia.com"},{"url":"https://api.qvalia.com"}],"security":[{"api_key":[]}],"components":{"securitySchemes":{"api_key":{"type":"apiKey","name":"Authorization","in":"header"}}},"paths":{"/account/{accountRegNo}/action/invoice/outgoing/status/{integrationId}":{"post":{"tags":["Account Functions/Invoice Functions"],"summary":"Get status","description":"Invoice related endpoints.\\n\\n**NB!** All Invoice data under the `/account` endpoints require JSON and only UBL JSON data are supported.","operationId":"Account Functions_Invoice\nFunctions_account-functions/invoice-functions/get-status","parameters":[{"name":"accountRegNo","in":"path","required":true,"schema":{"type":"string","description":"","default":""},"description":""},{"name":"integrationId","in":"path","required":true,"schema":{"type":"string","description":"","default":""},"description":""}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":""},"data":{"type":"object","description":"","properties":{"message":{"type":"string","description":""},"status":{"type":"object","description":"","properties":{"document_id":{"type":"string","description":""},"order_number":{"type":"string","description":""},"payment_reference":{"type":"string","description":""},"credit_note":{"type":"string","description":""},"reminder":{"type":"string","description":""},"status":{"type":"string","description":""},"sent_at":{"type":"string","description":""},"paid_at":{"type":"string","description":""},"cancelled_at":{"type":"string","description":""},"send_method":{"type":"string","description":""}},"required":[""]}},"required":[""]}}}}}}},"requestBody":{"description":"Request body","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}}}}
```

## Create from Order

> \_(Requires “Order to Cash” (O2C) or Order Management addon)\_\n\n\`/account/{accountRegNo}/action/invoice/createandsend/{integrationId}\`\n\nThis Endpoint will use an Incoming Order and generate an Outgoing Invoice from it.\n\nNB! The Addressing (EndpointID) in the Order will be used as Address for the Outgoing Invoice!\n\nYou need to “update” the Order by using the overwrite flag on it to change the Addressing, if needed!

```json
{"openapi":"3.0.2","info":{"title":"qvalia","version":"1.0.0"},"servers":[{"url":"https://api-qa.qvalia.com"},{"url":"https://api.qvalia.com"}],"security":[{"api_key":[]}],"components":{"securitySchemes":{"api_key":{"type":"apiKey","name":"Authorization","in":"header"}}},"paths":{"/account/{accountRegNo}/action/invoice/createandsend/{integrationId}":{"post":{"tags":["Account Functions/Invoice Functions"],"summary":"Create from Order","description":"_(Requires “Order to Cash” (O2C) or Order Management addon)_\\n\\n`/account/{accountRegNo}/action/invoice/createandsend/{integrationId}`\\n\\nThis Endpoint will use an Incoming Order and generate an Outgoing Invoice from it.\\n\\nNB! The Addressing (EndpointID) in the Order will be used as Address for the Outgoing Invoice!\\n\\nYou need to “update” the Order by using the overwrite flag on it to change the Addressing, if needed!","operationId":"Account Functions_Invoice\nFunctions_account-functions/invoice-functions/create-from-order","parameters":[{"name":"accountRegNo","in":"path","required":true,"schema":{"type":"string","description":"","default":""},"description":""},{"name":"integrationId","in":"path","required":true,"schema":{"type":"string","description":"","default":""},"description":""}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":""},"data":{"type":"object","description":"","properties":{"message":{"type":"string","description":""},"data":{"type":"object","description":"","properties":{"invoice":{"type":"object","description":"","properties":{"Invoice":{"type":"string","description":""}},"required":[""]}},"required":[""]}},"required":[""]}}}}}}},"requestBody":{"description":"Request body","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"send":{"type":"object","description":"","properties":{"method":{"type":"string","description":""}},"required":[""]}}}}}}}}}}
```
