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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Payments from API

(0) ShareShare
ReportReport
Posted on by
Hi all, 
 
This question has been asked before but I can't find the solution from those for my situation. 
 
I'm connecting to the API using PHP and I have a situation where I need to get the payment information for a specific 
date range with the linked documents (i.e. invoice numbers) as well as payments which have not been fully allocated yet.
 
I've tried the customerPayment and customerPaymentJournal API calls, but get no results, or just the: 
[
    {
        "id": "00000000-0000-0000-0000-000000000000",
        "code": "GENERAL",
        "displayName": "GENERAL",
        "lastModifiedDateTime": "2026-02-04T03:26:36.887Z",
        "balancingAccountId": "00000000-0000-0000-0000-00000000",
        "balancingAccountNumber": "2910",
        "customerPayments": []
    }
 
 
The screenshots is from my demo company, how would I get the payment information for G04002 and that it's applied to invoice 103299 using the API?
 
Example of the code which I use to generate the URL, I'll add the filter on dates once I can actually get some payment info out: 
 
$baseUrl = "https://api.businesscentral.dynamics.com/v2.0/" . $arrInfo['tenant_id'] . "/" . ENVIRONMENT . "/api/v2.0";
$endpoint = "/companies(" . rawurlencode($arrInfo['organisation_id']) . ")/customerPaymentJournals";    
$expand = "\$expand=customerPayments";
$fullUrl = $baseUrl . $endpoint ."?" . $expand;
 
Any help would be great. 
 
Thank you in advance :) 
 
 
Screenshot 2026-03-02 at 12.18.22.png
Screenshot 2026-03-02 at 12.19.14.png
Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 45 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans