Got questions? Contact Us, Call Us 1-800-224-0976 or write [email protected]

How to connect Zid to API2Cart?

To integrate with Zid platform, you need to follow this instruction.

  1. In order to get the needed credentials, you need to have a Zid developer account https://partner.zid.sa/.
  2. It is necessary to create an application.

    Instruction-on-Zid-integration

    All information can be filled in English and Arabic.

    Instruction-on-Zid-integration-1

    It is required to select the necessary scopes. It is recommended to select all permissions because, in case of their change, you will need to get all tokens again. The page below contains the Client ID and Client Secret that will be needed to receive the tokens.

    Instruction-on-Zid-integration-2

    Next, you need to fill in detailed information about the application.

    Instruction-on-Zid-integration-3

    There is no need to fill in anything on the following page.

    Instruction-on-Zid-integration-4

    On this page, if necessary, you can set up a paid subscription to the application.

    Instruction-on-Zid-integration-5
  3. It is necessary to generate a URL for adding the application to the store, using the data from the previous step.
  4. https://oauth.zid.sa/oauth/authorize?client_id=&redirect_uri=&response_type=code

    After that, you need to use the mentioned URL in the browser. It is necessary to provide the access requested by the application.

    Instruction-on-Zid-integration-6

    As a result, it should redirect to the Redirect URL. You will see the code in the browser line.

    Instruction-on-Zid-integration-7
  5. You need to make a request.
  6. 
    curl -X POST \
      https://oauth.zid.sa/oauth/token \
      -H 'Content-Type: application/json' \
      -d '{
        "grant_type": "authorization_code",
        "client_id": ,
        "client_secret": ,
        "redirect_uri": ,
        "code": 
    }'
    

    The result of the request will be access_token, authorization and refresh_token.

    Instruction-on-Zid-integration-8

    To add a Zid store to API2Cart, you need to fill in the appropriate fields.

    Instruction-on-Zid-integration-9

Posted in: Getting Started

Trial