# Invoicing Ratepay will send invoice documents to your customers on behalf of you. In case you like to create and send the invoice documents on your own, please follow our [legal instructions](/docs/legal/a_legal_requirements_for_the_integration/customer_correspondences/customer_correspondences/). To submit the invoice id you need to create an invoice document in advance of the capture notification. ![](/assets/manage-transactions6.cef0f788a7623f302d8f667982c5f02d74296b149aab2aae698a29a506217d6a.e39bad5d.png) ## Where to find the Ratepay identifiers in Shopware? ### Database | Identifier | Table | Column | | --- | --- | --- | | Reason for payment / narrative / Verwendungszweck | `ratepay_order_data` | `descriptor` | | Transaction ID | `ratepay_order_data` | `transaction_id` | ### Shopware 6 REST API 1. Request a Bearer token for your Shopware 6 REST API via `POST` to the URL https://{YOUR_DOMAIN}/api/oauth/tokenPayload example: ```json { "client_id": "administration", "grant_type": "password", "scopes": "write", "username": "", "password": "" } ``` 1. Insert the Bearer token into your headers and search for your order via `POST` to the URL https://{YOUR_DOMAIN}/api/search/orderPayload example: ```json { "filter": [ { "field": "orderNumber", "type": "equals", "value": "12345" } ], "associations": { "ratepayData": [] } } ``` The response with the Ratepay details, which e. g. contains the `descriptor`, will look like that: ```json { ... "included": [ ... { ... "type": "ratepay_order_data", "attributes": { ... "transactionId": "51-20230703235702264", "descriptor": "KA0058597N5", ... }, ... }, ... ], ... } ```