Skip to main content

Notifications

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?
  • AnithaEswaran Profile Picture
    AnithaEswaran 2,032 on at
    RE: I am getting 403 Forbidden error while calling PurchaseOrderHeadersV2 OData entity via Postman client

    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.

  • Suggested answer
    huijij Profile Picture
    huijij 19,811 on at
    RE: I am getting 403 Forbidden error while calling PurchaseOrderHeadersV2 OData entity via Postman client

    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

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

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

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…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,971 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,846 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans