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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

I am getting 403 Forbidden error while calling PurchaseOrderHeadersV2 OData entity via Postman client

(0) ShareShare
ReportReport
Posted on by 5

I am able to call a get Operation on the PurchaseOrderHeadersV2 entity using Postman client as a part of a collection in which previously we could get a bearer token as well before the get Operation is called. 

However , I am unable to call a POST operation on the same entity to create a PO with below raw text (in JSON format) getting 403 Forbidden error from the FnO Server.

{"dataAreaId":"demf","PurchaseOrderNumber":"EXT0001","ReplenishmentServiceCategoryId":"","TotalDiscountPercentage":0,"BankDocumentType":"None","IntrastatPortId":"","VendorPaymentMethodSpecificationName":"","ExpectedStoreAvailableSalesDate":"1900-01-01T12:00:00Z","IsDeliveredDirectly":"No","DeliveryAddressLocationId":"000001098","ConfirmingPurchaseOrderCodeLanguageId":"","InvoiceVendorAccountNumber":"US-102","ExpectedStoreReceiptDate":"1900-01-01T12:00:00Z","DeliveryAddressCountyId":"ASOTIN","DefaultReceivingWarehouseId":"","DeliveryAddressCountryRegionISOCode":"US","TransportationRoutePlanId":"","InvoiceAddressCountryRegionId":"","DeliveryTermsId":"FOB","NumberSequenceGroupId":"","OrdererPersonnelNumber":"","PurchaseOrderName":"Tailspin Parts","FormattedInvoiceAddress":"","ShippingCarrierServiceId":"","DeliveryAddressZipCode":"98544","DefaultReceivingSiteId":"1","InvoiceAddressStreet":"","ShippingCarrierId":"","ReasonCode":"","EUSalesListCode":"IncludeNot","PurchaseOrderStatus":"Invoiced","DeliveryAddressDistrictName":"","InvoiceAddressCounty":"","DeliveryCityInKana":"","DeliveryAddressDunsNumber":"","IsConsolidatedInvoiceTarget":"No","VendorPaymentMethodName":"CHECK","PaymentScheduleName":"","IntrastatTransactionCode":"","PaymentTermsName":"Net30","DocumentApprovalStatus":"Confirmed","CashDiscountCode":"2%D30","MultilineDiscountVendorGroupCode":"03","FixedDueDate":"1900-01-01T12:00:00Z","SalesTaxGroupCode":"IL","InvoiceAddressCity":"","IntrastatTransportModeCode":"","ReplenishmentWarehouseId":"","DeliveryAddressStreet":"213 South Street, Gate 1","TransportationDocumentLineId":"00000000-0000-0000-0000-000000000000","IsDeliveryAddressPrivate":"No","DeliveryAddressCity":"Galvin","IsOneTimeVendor":"No","ConfirmingPurchaseOrderCode":"","AccountingDate":"2016-08-15T12:00:00Z","TransportationModeId":"","ZakatContractNumber":"","ExpectedCrossDockingDate":"1900-01-01T12:00:00Z","CashDiscountPercentage":2,"VendorTransactionSettlementType":"None","DeliveryAddressCountryRegionId":"USA","DeliveryBuildingCompliment":"","PurchaseOrderPoolId":"01","GSTSelfBilledInvoiceApprovalNumber":"","AttentionInformation":"","URL":"","PurchaseOrderHeaderCreationMethod":"Purchase","DeliveryAddressPostBox":"","TotalDiscountVendorGroupCode":"03","DeliveryAddressDescription":"Site 1","VendorPostingProfileId":"GEN","DeliveryStreetInKana":"","InvoiceAddressZipCode":"","DeliveryAddressLatitude":0,"ArePricesIncludingSalesTax":"No","ProjectId":"","DeliveryModeId":"10","LineDiscountVendorGroupCode":"03","DeliveryAddressTimeZone":null,"ImportDeclarationNumber":"","IsChangeManagementActive":"No","FormattedDeliveryAddress":"213 South Street, Gate 1\nGalvin, WA 98544 \nUSA","InvoiceType":"Invoice","VendorInvoiceDeclarationId":"","PurchaseRebateVendorGroupId":"","ChargeVendorGroupId":"","ConfirmedDeliveryDate":"1900-01-01T12:00:00Z","DeliveryAddressName":"Site 1","ShippingCarrierServiceGroupId":"","TransportationTemplateId":"","IntrastatStatisticsProcedureCode":"","OverrideSalesTax":"No","LanguageId":"en-us","DeliveryAddressStateId":"WA","PriceVendorGroupCode":"Domestic","InvoiceAddressState":"","OrderVendorAccountNumber":"BICS0002","DeliveryAddressStreetNumber":"","TaxExemptNumber":"","CurrencyCode":"USD","ReasonComment":"","DeliveryAddressLongitude":0,"InvoiceAddressStreetNumber":"","VendorOrderReference":"","RequesterPersonnelNumber":"","DefaultLedgerDimensionDisplayValue":"001--","IsDeliveryAddressOrderSpecific":"No","AccountingDistributionTemplateName":"","Email":"","ContactPersonId":"","BuyerGroupId":"10","RequestedDeliveryDate":"2016-08-20T12:00:00Z","TradeEndCustomerAccount":"" }



Is there any issue with the Body of the request ? or is there any permission issue to the Postman client application in the Azure Portal to fire any create operation?
I have the same question (0)
  • DebasisSamantray Profile Picture
    5 on at

    Does FnO expects the JSON request in a different format or any additional information in the request?

  • Suggested answer
    huijij Profile Picture
    19,811 on at

    Hi DebasisSamantray,

    There are many causes of such errors, and they generally happen if the accessToken is incorrect or the registration is incorrect on the Dynamics side. Please check the Prerequisites and the steps to query OData by using Postman:

    learn.microsoft.com/.../third-party-service-test

  • AnithaEswaran Profile Picture
    2,032 on at

    Can you check if you have added the Client Id in 'Azure Active Directory Applications' in F&O.

    Rather than an import, try an export first for 'CustomerGroup' and you will get a clue if the issue exists in the set up.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans