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
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
    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
    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
    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
  • gdrenteria Profile Picture
    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
    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
    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans