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
  1. Reference
  2. API Reference

Customer Token

It retrieves a token that allows access to customer-specific resources via the REST API.

POST {{Base_url}}/rest/V1/integration/customer/token

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

curl --location '{{Base_url}}/rest/V1/integration/customer/token' \
--header 'Content-Type: application/json' \
--header 'Cookie: PHPSESSID=2639naaq26nbe7st472kk4ms4i' \
--data-raw '{
  "username": "Enter Username",
  "password": "Enter Password"
}
'
eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ.eyJ1aWQiOjIxMDAyNywidXR5cGlkIjozLCJpYXQiOjE3MzczNzQwMDYsImV4cCI6MTczNzM3NzYwNn0.KlPFJHMk16w3XX_zW1auR3GwYPl5BN6wdVm69nwFw1k
{
    "message": "The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later."
}
PreviousCreate CustomerNextCreate Customer Cart

Last updated 4 months ago