Skip to main content

Notifications

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

Credit Memo Filed is Not there in Purchase credit memo API

(2) 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
    Ramiz 474 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
    Khushbu Rajvi. 7,919 Super User 2025 Season 1 on at
  • AS-23011539-0 Profile Picture
    AS-23011539-0 8 on at
    Credit Memo Filed is Not there in Purchase credit memo API


    getting this error

  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 7,919 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
    YUN ZHU 77,147 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
    gdrenteria 13,819 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
    AS-23011539-0 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
    Khushbu Rajvi. 7,919 Super User 2025 Season 1 on at
    Credit Memo Filed is Not there in Purchase credit memo API
  • Suggested answer
    tanya07 Profile Picture
    tanya07 1,596 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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,074 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,900 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans