ZRPL
  • Welcome!
  • Quick Start
  • Reference
    • API Reference
      • Categories List
      • Category Details by ID
      • Create Simple Product
      • Config Product Creation
      • Product List
      • Update Existing Product
      • Product Details by SKU
      • Product Details by ID
      • Products in Category
      • Create Order
      • Order Details
      • Order History
      • Create Customer
      • Customer Token
      • Create Customer Cart
      • Add Item to Cart
      • View Cart
      • Update Cart
      • Delete Cart
      • Country Code
      • Set Shipping and Billing
      • Place Order
      • Customer Details
Powered by GitBook
On this page
  • Get your API keys
  • Auth API curl to get the token.

Quick Start

Get your API keys

Access to the API requires authentication token. Requests made without token will result in error responses.

Generate your token effortlessly using the Auth API.

Token Validity : 10 Minutes

Auth API curl to get the token.

POST {{Base_url}}/rest/all/V1/integration/admin/token

The best Generate your token by providing your username and password in the request body.

curl --location '{{Base_url}}/rest/all/V1/integration/admin/token' \
--header 'Content-Type: application/json' \
--header 'Cookie: PHPSESSID=6t4unirh1unu87ef0stp2sv3kv; PHPSESSID=6t4unirh1unu87ef0stp2sv3kv' \
--data '{
  "username": "Enter Username",
  "password": "Enter Password"
}'

Responses

eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ.eyJ1aWQiOjU1LCJ1dHlwaWQiOjIsImlhdCI6MTcyNjIwMzA4OSwiZXhwIjoxNzI2MjA2Njg5fQ.ALq1a-GY_kKCWNb1kQ_0EfcIXheJjg6SV4ZYsmwdVOU
{
    "message": "The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later."
}
PreviousWelcome!NextAPI Reference

Last updated 4 months ago