SalesInventoryReport APISpecification v1.1
SalesInventoryReport APISpecification v1.1
Change History
For this purpose, Sales and Inventory Report APIs are exposed by AIS. Partners can post their
sales/inventory numbers by calling these APIs.
2. API Endpoint
The following are the endpoints to which a sales report will be posted.
{
"items": [
{
"<name1>":"<value1>",
"<name2>":"<value2>",
…
"<namen>":"<valuen>"
},
{
"<name1>":"<value1>",
"<name2>":"<value2>",
…
"<namen>":"<valuen>"
},
…
]
}
3.3 Sample Request
Headers
TransactionType SalesReport
PartnerName Bango
Channel US
Frequency Weekly
ReportStartDate 20030401
ReportEndDate 20030407
Content-Type application/json
Body
{
"items": [
{
"resendIndicator":"",
"partnerOrgId": "",
"parnterName": "Bango US",
"microsoftPartNumber": "3ZI-00001",
"upcEanNumber": "",
"sourceProductDescription":"",
"resellerTaxId":"",
"resellerName":"USA_VERIZON",
"resellerAddress": "1 Verizon Way",
"resellerAddress2": "Basking Ridge",
"resellerCity":"",
"resellerState":"New Jersey",
"resellerPostalCode":"O7920",
"resellerCountry":"United States",
"invoiceDate":"01-04-2023",
"invoiceNumber": "",
"salesQuantity": "1508",
"returnQuantity": "0"
},
{
"resendIndicator":"",
"partnerOrgId": "",
"parnterName": "Bango US",
"microsoftPartNumber": "41A-00003",
"upcEanNumber": "",
"sourceProductDescription":"",
"resellerTaxId":"",
"resellerName":"USA_VERIZON",
"resellerAddress": "1 Verizon Way",
"resellerAddress2": "Basking Ridge",
"resellerCity":"",
"resellerState":"New Jersey",
"resellerPostalCode":"O7920",
"resellerCountry":"United States",
"invoiceDate":"02-04-2023",
"invoiceNumber": "",
"salesQuantity": "377",
"returnQuantity": "0"
}
]
}
The processing of the report is asynchronous. 202 Response only means that the request is
accepted. This guid reference can be used for any tracking purposes.
5. For tenant type, leave the default value of “Azure Active Directory” and click Next.
6. Provide Organization Name, Domain Name and Location as appropriate, and click Next.
10. You should be able to see the Tenant AAD like the below.
5.2 Invite Users to Manage the Tenant
1. Click on Users under the Tenant.
2. In the Users page, the user who created the Tenant is listed by default.
3. Here click on New User -> Invite External User
4. Provide the required details as appropriate and click Review+Invite, Invite. Here the user could
be the user from the Partner Organization, who can manage the Tenant.
5. The person invited will get an email in their Inbox. Accept the Invitation.
9. The Global Administrator Users can now login to the Azure Portal to the Tenant created for the
Organization. They will be able to add further Users to the Azure Active Directory.
10. Manage the Users and their roles by adding / removing them accordingly. Assignments can be
removed or downgraded by using the following.
5.4 Create an Application
1. Click on App Registrations
2. Click on New registration.
3. Provide any appropriate name for the application and say Register.
9. Copy the value of the secret and store it in an appropriate storage as per your Organization’s
guidelines. This value will not be retrievable later. This is the Client Secret.
10. Add an Application ID. Provide an appropriate name and say Save.
11. Define the Scope of the API. Provide details as appropriate to your Organization.
12. Authorize Client Application, as shown in the below snapshot. The Client IDs to be provided are
shown in section “5.7 Client Id and Scope”.
13. Note the endpoint from which the bearer token needs to be generated.
5.5 Getting the Bearer Token
When calling the AIS API to send the report, in the header pass the Bearer Token. Below are the details
for getting the bearer token.
End point from where the token has to be got: As mentioned in step 5.4.13. Below are the parameters
to be sent in the body:
5.6 Whitelisting
Share the application id and IP address from which the API call will be made. These are required for
whitelisting them at Microsoft end.