LCSC API Instruction

LCSC API Instruction is mainly for LCSC partners who wish to use our API service to integrate our system with yours. If you have any questions, please send email to support@LCSC.COM.

LCSC API

Introduction

LCSC provides eight API services that allow customers and partners to automate some of the tasks that can be performed on LCSC.COM

Getting Started

Before using the API service, you will need to complete the following steps:

  1. Create an account at LCSC.COM
  2. Summit applied material including company website, business license (or certificate equivalent to business license), contact information, estimated order quantity, cooperation mode etc.
  3. Apply an API key at LCSC via support@lcsc.com

Request Validation

All requests must involve three parameters to verify whether the request is valid or not:

ParameterDescription
keyApply an user ID at LCSC.COM
nonceRandom
timestampThe timestamp of the request
signatureSignature

Note: Secret cannot be placed in request parameters

Signature verification

LCSC API will verify the request to ensure the security of data.

signature =sha1(key=xxx&nonce=xxx&secret=xxxx&timestamp=xxx)

An example, the data verification for LCSC API

The API key:

The API secret:

The request timestamp:

The 16-bit random string:

Therefore, the string used for the signature is:

The result obtained using sha1 is:

Response Error Code Description

CodeDescription
412Date Is Required.
413Not Found This Category.
414Email can't find user information.
415User address error.
416order failed, pros params error: Not json Or malformed
417order failed, product params error: Pro or Qty is empty
418order failed, Optional express type is empty.
419order failed, The configured express type is invalid.
420order failed, The Qty must be between 1 and 1 billion.
421No support pay method.
422Auto pay error.
423Dealer does not exist.
424Key Is Required .
425nonce Is Required .
426timestamp Is Required .
427signature Is Required .
428Timestamp expired.
429Not Found This Product.
430Appsecret failed verification.
431No access to information.
432No permission.
433Incorrect currency.
434check orders exceed the limit, 10 at most and 1 at least.
435Please check your participation.
436Outside Chinese Mainland address is not support paid by RMB.
437API request rate limit exceeded.Retry after 1 minute.
438API request rate limit exceeded.Retry after 1 day.

Response Data Format

All of the API services response as the following format. No repetitive description in specific API.

JSON ElementDescription
successSuccessful call value is "true" and unsuccessful one is "false"
codeStatus code
messageError message
keyThe user ID applied at LCSC.COM
resultResult of response

API Terms of Use

By using the LCSC APIs, you agree the Return Policy (https://support.lcsc.com/article/20-return), and Terms of Use as follows:

Failure to comply may result in revocation of access and any other remedy available at law or in equity.

APIs Available at LCSC