Coder Social home page Coder Social logo

xi-sdk-resellers-python's Introduction

xi.sdk.resellers

For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.

Requirements.

Python 3.7+

Installation & Usage

pip install

If you want to install from PyPI:

pip install xi.sdk.resellers

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/ingrammicro-xvantage/xi-sdk-resellers-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/ingrammicro-xvantage/xi-sdk-resellers-python.git)

Then import the package:

import xi.sdk.resellers

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import xi.sdk.resellers

Tests

Execute pytest to run the tests.

Getting Started

Quickstart on creating an application can be found here

import xi.sdk.resellers
from xi.sdk.resellers.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.ingrammicro.com:443
# See configuration.py for a list of all supported configuration parameters.
configuration = xi.sdk.resellers.Configuration(
    host = "https://api.ingrammicro.com:443"
)



# Enter a context with an instance of the API client
with xi.sdk.resellers.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = xi.sdk.resellers.AccesstokenApi(api_client)
    grant_type = 'client_credentials' # str | Keep grant_type as client_credentials only.
    client_id = 'client_id_example' # str | 
    client_secret = 'client_secret_example' # str | 

    try:
        # Accesstoken
        api_response = api_instance.get_accesstoken(grant_type, client_id, client_secret)
        print("The response of AccesstokenApi->get_accesstoken:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AccesstokenApi->get_accesstoken: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.ingrammicro.com:443

Class Method HTTP request Description
AccesstokenApi get_accesstoken GET /oauth/oauth20/token Accesstoken
DealsApi get_resellers_v6_dealsdetails GET /resellers/v6/deals/{dealId} Deals Details
DealsApi get_resellers_v6_dealssearch GET /resellers/v6/deals/search Deals Search
FreightEstimateApi post_freightestimate POST /resellers/v6/freightestimate Freight Estimate
InvoicesApi get_invoicedetails_v6_1 GET /resellers/v6.1/invoices/{invoiceNumber} Get Invoice Details v6.1
InvoicesApi get_resellers_v6_invoicesearch GET /resellers/v6/invoices Search your invoice
OrderStatusApi resellers_v1_webhooks_orderstatusevent_post POST /resellers/v1/webhooks/orderstatusevent Order Status
OrdersApi delete_ordercancel DELETE /resellers/v6/orders/{OrderNumber} Cancel your Order
OrdersApi get_orderdetails_v6_1 GET /resellers/v6.1/orders/{ordernumber} Get Order Details v6.1
OrdersApi get_resellers_v6_ordersearch GET /resellers/v6/orders/search Search your Orders
OrdersApi post_createorder_v6 POST /resellers/v6/orders Create your Order
OrdersApi post_createorder_v7 POST /resellers/v7/orders Create your Order v7
OrdersApi put_ordermodify PUT /resellers/v6/orders/{orderNumber} Modify your Order
ProductCatalogApi get_reseller_v6_productdetail GET /resellers/v6/catalog/details/{ingramPartNumber} Product Details
ProductCatalogApi get_reseller_v6_productsearch GET /resellers/v6/catalog Search Products
ProductCatalogApi post_priceandavailability POST /resellers/v6/catalog/priceandavailability Price and Availability
QuotesApi get_quotessearch_v6 GET /resellers/v6/quotes/search Quote Search
QuotesApi get_reseller_v6_validate_quote GET /resellers/v6/q2o/validatequote Validate Quote
QuotesApi get_resellers_v6_quotes GET /resellers/v6/quotes/{quoteNumber} Get Quote Details
RenewalsApi get_resellers_v6_renewalsdetails GET /resellers/v6/renewals/{renewalId} Renewals Details
RenewalsApi post_renewalssearch POST /resellers/v6/renewals/search Renewals Search
ReturnsApi get_resellers_v6_returnsdetails GET /resellers/v6/returns/{caseRequestNumber} Returns Details
ReturnsApi get_resellers_v6_returnssearch GET /resellers/v6/returns/search Returns Search
ReturnsApi post_returnscreate POST /resellers/v6/returns/create Returns Create
StockUpdateApi resellers_v1_webhooks_availabilityupdate_post POST /resellers/v1/webhooks/availabilityupdate Stock Update

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

application

Author

-Ingram Micro Xvantage

Contact

For any inquiries or support, please feel free to contact us at:

xi-sdk-resellers-python's People

Contributors

im-deviprakash avatar xvantage-integration avatar im-nhu avatar im-pradeep avatar dprakash2101 avatar

Stargazers

 avatar

Watchers

 avatar

xi-sdk-resellers-python's Issues

Cloud Offerings Pricing

Is it possible to get the pricing information back from a cloud plan? VPN example: CFQ7TTC0LDPB:0001

When querying, I am getting:

Options:
        Vendor Part Number: CFQ7TTC0LDPB:0001
        Resource Name: Microsoft 365 Business Standard
        Minimum Units: 1.0
        Maximum Units: 300.0
        Recurring Price Model: FLAT
        Unit Of Measure: Licenses
                MSRP: 0.0
                Unit Price: 0.0
                Margin: 0.0
                Currency Code: USD
        Fees: None

When viewing on the site, MSRP, price, margin, etc., are all not $0. Do I need to include more in my query to get that info back beyond simply querying against the VPN?

cannot use the SDK with sandbox - error even on getting authenticated -- works ok direct via requests.

Every time I try to use the sandbox with correct client id and secrete I get a strange error on access
doing this directly with httpx or other module in python works fine but then I have to formulate all the REST commands manually and I get error.
Based on docs for sandbox I set base_url = "https://api.ingrammicro.com:443/sandbox" following your access example.

'Reason: Not Found\n'
"HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 06 Mar 2024 00:52:49 "
"GMT', 'Content-Type': 'application/json', 'Content-Length': '186', "
"'Connection': 'keep-alive', 'X-Frame-Options': 'DENY', "
"'Strict-Transport-Security': 'max-age=86400', 'X-Content-Type-Options': "
''nosniff', 'Content-Security-Policy': "frame-ancestors 'none'", '
"'X-XSS-Protection': '1'})\n"
'HTTP response body: {"fault":{"faultstring":"Unable to identify proxy for '
'host: default and url: '
'\/sandbox\/oauth\/oauth20\/token","detail":{"errorcode":"messaging.adaptors.http.flow.ApplicationNotFound"}}}\n'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.