Title: API Payment Description
Last modified: April 28, 2022

---

# API Payment Description

 *  Resolved [busybees](https://wordpress.org/support/users/mick69145/)
 * (@mick69145)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/api-payment-description/)
 * Is it possible to add a variable for the API description? We use ‘Woocommerce
   PDF Invoices & Packing Slips’ for creating the invoices. Our bookkeeper want’s
   to double check with a csv export from Mollie. Now the description is based on
   the order number. They asked us to change the description to invoice number or
   add it to the description besides the order number.
 * I don’t know if this is even possible since the transaction in Mollie is created
   when a new order is placed and the invoice, and the invoice number, is created
   afterwards (when the order is completed).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/api-payment-description/#post-15603664)
 * Hi [@mick69145](https://wordpress.org/support/users/mick69145/),
 * If you have a predictable pattern that generates the invoice id, it may be possible
   to [add here](https://github.com/mollie/WooCommerce/blob/d2fedfc1c5420a88a41f3b31d7d85510b5e18667/src/Payment/MollieObject.php#L952).
   But probably not directly through the UI that was added in version 7.1. We aim
   to extend this functionality further though as it is not yet fully complete.
   
   Can you tell us how the invoice id is generated precisely? Is this all coming
   from the PDF Invoices & Packing Slips plugin? Thanks!
 * Kind regards,
    Niklas
 *  Thread Starter [busybees](https://wordpress.org/support/users/mick69145/)
 * (@mick69145)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/api-payment-description/#post-15603686)
 * Hi [@niklasinpsyde](https://wordpress.org/support/users/niklasinpsyde/),
 * The invoice id is predictable since the data is stored in an order post meta 
   field called **_wcpdf_invoice_number**. This is is generated by the plugin PDF
   Invoices & Packing Slips.
 * The invoice id is generated when the order status is completed. So when the first
   call is made to Mollie, there is no invoice id present.
 * In the meantime I’ve figured out an export directly from WooCommerce also does
   the job because I can include the order meta field in the CSV file.
 * Would be great if you add the function in the UI so you can just select everything
   from the Order Post Meta for the description API.
 * Thanks!
    Mick
    -  This reply was modified 4 years, 1 month ago by [busybees](https://wordpress.org/support/users/mick69145/).
 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/api-payment-description/#post-15603882)
 * Hi [@mick69145](https://wordpress.org/support/users/mick69145/),
 * If the invoice number is only generated after the payment, it may be tricky certainly.
   But I’ll bring this up with our developers to see what could be done to add additional
   meta to the description.
    All I know is this feature will be expanded further
   and we’re also working on documentation around it.
 * Kind regards,
    Niklas
 *  Thread Starter [busybees](https://wordpress.org/support/users/mick69145/)
 * (@mick69145)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/api-payment-description/#post-15604038)
 * Hi [@niklasinpsyde](https://wordpress.org/support/users/niklasinpsyde/),
 * I was thinking the same thing because this data (invoice id) is only available
   after the order is completed, but it should already be available at the time 
   of payment.
 * Thanks for your help though. Have a nice weekend!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘API Payment Description’ is closed to new replies.

 * ![](https://ps.w.org/mollie-payments-for-woocommerce/assets/icon-256x256.png?
   rev=3090580)
 * [Mollie Payments for WooCommerce](https://wordpress.org/plugins/mollie-payments-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mollie-payments-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [busybees](https://wordpress.org/support/users/mick69145/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/api-payment-description/#post-15604038)
 * Status: resolved