You are on page 1of 6

Microsoft Dynamics Integration APIs

Contents
Auth Token Generation ................................................................................................................... 2
Vendor Invoice................................................................................................................................. 3
Sales Order ...................................................................................................................................... 4
Wastage ........................................................................................................................................... 5
Auth Token Generation
API: https://login.microsoftonline.com/2d8ce2a8-b571-4ab4-a4b0-a81a7bcfc52d/oauth2/token

METHOD: POST
Request Body:
grant_type: client_credentials
client_id: 364838a4-9090-42b2-a888-f6eb3b355a04
client_secret: B.x3s+Fd4Z6cf*G0RKc=7A1y/Pu9QmY3
resource: https://devpwdevaos.sandbox.ax.dynamics.com

Here is a brief description for the SOAP request:

Request fields:

Table (2) Request Message Fields


Field name Type Notes
grant_type String client_credentials
client_id String LCS client id
client_secret String Client Secret
resource String URL of application ie.
https://devpwdevaos.sandbox.ax.dynamics.com

Response message:
{
"token_type": "Bearer",
"expires_in": "3599",
"ext_expires_in": "3599",
"expires_on": "1585634446",
"not_before": "1585630546",
"resource": "https://devpwdevaos.sandbox.ax.dynamics.com",
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IllNRUxIVDBndm
IwbXhvU0RvWWZvbWpxZmpZVSIsImtpZCI6IllNRUxIVDBndmIwbXhvU0RvWWZvbWpxZmpZVSJ9.eyJh
dWQiOiJodHRwczovL2RldnB3ZGV2YW9zLnNhbmRib3guYXguZHluYW1pY3MuY29tIiwiaXNzIjoiaHR
0cHM6Ly9zdHMud2luZG93cy5uZXQvMmQ4Y2UyYTgtYjU3MS00YWI0LWE0YjAtYTgxYTdiY2ZjNTJkLy
IsImlhdCI6MTU4NTYzMDU0NiwibmJmIjoxNTg1NjMwNTQ2LCJleHAiOjE1ODU2MzQ0NDYsImFpbyI6I
jQyZGdZT0RnTks4cy84Wjd0ako1azVKTHkwSUhBQT09IiwiYXBwaWQiOiIzNjQ4MzhhNC05MDkwLTQy
YjItYTg4OC1mNmViM2IzNTVhMDQiLCJhcHBpZGFjciI6IjEiLCJpZHAiOiJodHRwczovL3N0cy53aW5
kb3dzLm5ldC8yZDhjZTJhOC1iNTcxLTRhYjQtYTRiMC1hODFhN2JjZmM1MmQvIiwib2lkIjoiMTg1Nz
Q2MWYtNWI5MC00ZjVjLWIzMDQtNjBkYmRhZDY4NmMwIiwic3ViIjoiMTg1NzQ2MWYtNWI5MC00ZjVjL
WIzMDQtNjBkYmRhZDY4NmMwIiwidGlkIjoiMmQ4Y2UyYTgtYjU3MS00YWI0LWE0YjAtYTgxYTdiY2Zj
NTJkIiwidXRpIjoiOVNJcXludF9BRVdpRlZDcG9xTUJBQSIsInZlciI6IjEuMCJ9.TWoP38z8grf56U
r3SsQpoMTPVGaCcM7OZJlQ-
zScPVSNO9hsoVsMxyhr4Rc5NoKJC0WR0NoTrJE5D0tV9xu9uWNw1SEkuk1tiKEeq-WFg8V_6-
5oLE2gThNGOrXOFPQC1omynWRQSC2IHropBSOf3SxE7a7iQlz1fWydYOUvTyvAr_Fpd798N056xg4rT
DxwBqQfZp8ulX_zs675WT2DLJdHF_MZv7p36IV-
UEKCFRD0x50JfuGMxLDWZxuD5Nhv5Q6ELsMdmJ4o6SSPtgK9KGjvtkC853Esqy1IhhDN8JE1cGhagw3
D70UmYykmbEOvUwtX6za9H8DiL4-AkySwbA"
}

Vendor Invoice

API: https://altannan-
devdevaos.sandbox.ax.dynamics.com/soap/services/BEVendorInvoiceServicegrp?wsdl

METHOD: POST
Request fields:

Request Message Fields


Field name Type Notes
ItemId String 20 D365 Item Id
Voucherdate Date Vendor Invoice Date
POSInvoice String PIM Pos invoice number as reference
unitprice Real Unit price
Qty Real Quantity of Item invoiced
DiscountValue Real Discount value
SalesTaxGroup String 60 Tax group
ItemSalesTaxGroup String 60 Item tax group
Salestaxamount Real Sales Tax amount
paymentMode Real Cash / Credit

Request

Request Body:

{
[
“ItemId” : “Item123”,
“Voucherdate” : “31-3-2020”,
“POSInvoice” : “PIM-001” ,
“Unitprice” :”10.31” ,
“Qty” : “30”,
“DiscountValue” : “0”,
“SalesTaxGroup” : “VAT”,
“ItemSalesTaxGroup” : “VAT”,
“Salestaxamount” : “2.0”,
“paymentMode” : “Cash”
]
}

Sales Order
API: https://altannan-devdevaos.sandbox.ax.dynamics.com/soap/services/BESales?wsdl

Request fields:

Request Message Fields


Field name Type Notes
ItemId String 20 D365 Item Id
Brand Date 60 Vendor Invoice Date
Department String 60 PIM Pos invoice number as reference
RevenueStream Real Unit price
Confirmshipdate Date Quantity of Item invoiced
Voucherdate Date Voucher date
POSInvoice String 60 PO Invoice number
Sellingprice Real Selling price
Qty Real Quantity
DiscountValue Real Amount
SalesTaxGroup String 60 Sales Tax group
ItemSalesTaxGroup String 60 Item Tax group
Salestaxpercentage String 60 Item Tax percentage
paymentMode String 60 Cash or Credit

Request Body:

{
[
“ItemId” : “Item123”,
“Brand” : “Sales”,
“Department” : “ Marketing”,
“RevenueStream” : “Profit”,
“Confirmshipdate” : “30-3-2020”,
“Voucherdate” : “31-3-2020”,
“POSInvoice” : “PIM-001” ,
“Sellingprice” :”10.31” ,
“Qty” : “30”,
“DiscountValue” : “0”,
“SalesTaxGroup” : “VAT”,
“ItemSalesTaxGroup” : “VAT”,
“Salestaxamount” : “2.0”,
“Salestaxpercentage” : “10”,
“paymentMode” : “Cash”
]
}

Wastage
https://altannan-
devdevaos.sandbox.ax.dynamics.com/soap/services/createWastageEntryGrp?wsdl

Request fields:

Request Message Fields


Field name Type Notes
Description String 60 D365 Item Id
transdate Date Vendor Invoice Date
WastageList Collection Data Contract Class list

Transaction
Request Message Fields
Field name Type Notes
transdate Date Vendor Invoice Date
Wastageamount Real Amount

Request Body:

“Description” : “Wastage of 3/31/2020”,


“transdate” : “3/31/2020” ,
[
{
“transdate” : “3/31/2020”,
“Wastageamount” :”1500.10”
}

{
“transdate” : “3/31/2020”,
“Wastageamount” :”800.10”

You might also like