Skip to main content

Notifications

Announcements

No record found.

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

 
  • Suggested answer
    Ramiz Profile Picture
    589 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
    Super User 2025 Season 1 on at
  • 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
    Super User 2025 Season 1 on at
    Credit Memo Filed is Not there in Purchase credit memo API
    What error are you encountering?
  • Suggested answer
    YUN ZHU Profile Picture
    83,822 Super User 2025 Season 1 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
    19,498 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
    Super User 2025 Season 1 on at
    Credit Memo Filed is Not there in Purchase credit memo API
  • Suggested answer
    tanya07 Profile Picture
    1,636 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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans