web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Credit Memo Filed is Not there in Purchase credit memo API

(1) ShareShare
ReportReport
Posted on by 8
Hello Team,

I am trying to post credit memo from our system to D365 using API

This is the doc which i am using

https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchasecreditmemo_create

Please let me know which field should i used 

P.S: Already tried with Number, Vendornumber, Invoicenumber, PaytoVendorNumber

Thanks
Ankur

 
I have the same question (0)
  • Suggested answer
    Ramiz Profile Picture
    597 on at
    Credit Memo Filed is Not there in Purchase credit memo API
    Hi,

    There is no field VendorInvoiceNumber on Purchase Credit Memo API. If you want to use this field in your payload then you need to create a custom API page for it.

    On the other hand, try passing the Posted Purchase Invoice SystemId and number to  invoiceId and invoiceNumber

     
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    19,137 Super User 2025 Season 2 on at
    Credit Memo Filed is Not there in Purchase credit memo API
  • AS-23011539-0 Profile Picture
    8 on at
    Credit Memo Filed is Not there in Purchase credit memo API


    getting this error

  • Suggested answer
    Khushbu Rajvi. Profile Picture
    19,137 Super User 2025 Season 2 on at
    Credit Memo Filed is Not there in Purchase credit memo API
    What error are you encountering?
  • Suggested answer
    YUN ZHU Profile Picture
    92,443 Super User 2025 Season 2 on at
    Credit Memo Filed is Not there in Purchase credit memo API
    Was there any error message when you inserted the vendorcreditmemo number?
    Is the option below not enabled?
     
    Thanks
    ZHU
  • Gerardo Rentería García Profile Picture
    23,574 Most Valuable Professional on at
    Credit Memo Filed is Not there in Purchase credit memo API

    Hi, good day
    I hope this can help you, and give you some hints.

    ALAppExtensions/Apps/W1/APIV2/app/src/pages/APIV2PurchaseCreditMemos.Page.al at main · microsoft/ALAppExtensions · GitHub

    Best Regards
    Gerardo

  • AS-23011539-0 Profile Picture
    8 on at
    Credit Memo Filed is Not there in Purchase credit memo API
    Yes the format is same

    https://{businesscentralPrefix}/api/v2.0/companies({id})/purchaseCreditMemos({id})

    the doc is for 
    creditmemoline

    https://community.dynamics.com/forums/thread/details/?threadid=18a07a8e-9ef5-4b9f-b9e2-c51426078561

    I want to insert vendorcreditmemo number using API
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    19,137 Super User 2025 Season 2 on at
    Credit Memo Filed is Not there in Purchase credit memo API
  • Suggested answer
    tanya07 Profile Picture
    1,638 on at
    Credit Memo Filed is Not there in Purchase credit memo API
    Hello ,
     
    Is the API format same as below -
     
    https://{businesscentralPrefix}/api/v2.0/companies({id})/purchaseCreditMemos({id})
     
     
    also , did we try with POSTMAN or any error?
     
     
    Thanks,
    TK

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,132

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,615

#3
Sumit Singh Profile Picture

Sumit Singh 2,912

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans