Untitled

 avatar
unknown
plain_text
2 years ago
3.8 kB
5
Indexable

POST https://magento-612706-3579488.cloudwaysapps.com/en/rest/V1/integration/customer/customtoken
Cookie: PHPSESSID=40i7gl0am0enfblknipihfto6g
content-type: application/json
content-length: 300


{
  "username": "barabc@gmail.com",
  "password": "test@123",
  "devicetype": "i",
  "devicetoken": "dpVjwrH2003Po-4WtjtULk:APA91bETL7yhX8RQHZYETPAfLf-TmmvhP98NLy2UN-vqbfceTLnMee-AluwHdC1-zWyERFXWNHtlzwgx_Vrz1KIp1s5O6g6dImdHE1x40B9it_A1W_anurQA1C2t2KnEe-7v2f9YKwAc",
  "deviceid": "52FC2982-9EF8-4DEF-97AA-955407E2A529"
}

⤵ RESPONSE [200/OK] [Time elapsed: 642 ms]⤵

connection: [keep-alive]
set-cookie: [PHPSESSID=40i7gl0am0enfblknipihfto6g; expires=Wed, 28-Jun-2023 09:21:59 GMT; Max-Age=86400; path=/; domain=magento-612706-3579488.cloudwaysapps.com; secure; HttpOnly; SameSite=Lax, persistent_shopping_cart=1k6QmeWO57kGt9a006u75pzXmL2tA3WdILioutmtztTl9162kV; expires=Thu, 29-Jun-2023 09:22:00 GMT; Max-Age=172800; path=/; secure; HttpOnly; SameSite=Lax]
cache-control: [no-store, no-cache, must-revalidate, max-age=0]
transfer-encoding: [chunked]
date: [Tue, 27 Jun 2023 09:22:00 GMT]
content-encoding: [gzip]
vary: [Accept-Encoding]
x-robots-tag: [noindex, nofollow]
content-type: [application/json; charset=utf-8]
pragma: [no-cache]
server: [nginx]
x-ua-compatible: [IE=edge]
x-frame-options: [SAMEORIGIN, SAMEORIGIN]
x-magento-cache-debug: [MISS]
expires: [-1]


"59x64m67hszn55d1m1nci9tfbs8n2i6k"
[log] ⤴ REQUEST ⤴

GET https://magento-612706-3579488.cloudwaysapps.com/en/rest/V1/customers/me
Cookie: PHPSESSID=40i7gl0am0enfblknipihfto6g
Authorization: Bearer 59x64m67hszn55d1m1nci9tfbs8n2i6k


⤵ RESPONSE [200/OK] [Time elapsed: 626 ms]⤵

connection: [keep-alive]
set-cookie: [PHPSESSID=40i7gl0am0enfblknipihfto6g; expires=Wed, 28-Jun-2023 09:22:00 GMT; Max-Age=86400; path=/; domain=magento-612706-3579488.cloudwaysapps.com; secure; HttpOnly; SameSite=Lax]
cache-control: [no-store, no-cache, must-revalidate, max-age=0]
transfer-encoding: [chunked]
date: [Tue, 27 Jun 2023 09:22:00 GMT]
content-encoding: [gzip]
vary: [Accept-Encoding]
x-robots-tag: [noindex, nofollow]
content-type: [application/json; charset=utf-8]
pragma: [no-cache]
server: [nginx]
x-ua-compatible: [IE=edge]
x-frame-options: [SAMEORIGIN, SAMEORIGIN]
x-magento-cache-debug: [MISS]
expires: [-1]


{
  "id": 106486,
  "group_id": 1,
  "default_billing": "6038",
  "default_shipping": "6038",
  "created_at": "2023-06-08 13:05:45",
  "updated_at": "2023-06-20 10:50:08",
  "created_in": "English",
  "dob": "1994-01-05",
  "email": "barabc@gmail.com",
  "firstname": "krush",
  "lastname": "baraiya",
  "gender": 1,
  "store_id": 1,
  "website_id": 1,
  "addresses": [
    {
      "id": 6038,
      "customer_id": 106486,
      "region": {
        "region_code": "DUBA",
        "region": "Dubai",
        "region_id": 609
      },
      "region_id": 609,
      "country_id": "AE",
      "street": [
        "test"
      ],
      "telephone": "912233115544",
      "city": "dubai",
      "firstname": "krush",
      "lastname": "baraiya",
      "default_shipping": true,
      "default_billing": true
    }
  ],
  "disable_auto_group_change": 0,
  "extension_attributes": {
    "is_subscribed": false
  },
  "custom_attributes": [
    {
      "attribute_code": "mobile_number",
      "value": "2233115544"
    },
    {
      "attribute_code": "country_code",
      "value": "IN"
    },
    {
      "attribute_code": "mobile_country_code",
      "value": "91"
    },
    {
      "attribute_code": "user_id",
      "value": "40"
    },
    {
      "attribute_code": "barcode",
      "value": "0010010000402"
    },
    {
      "attribute_code": "is_builder_account",
      "value": "0"
    },
    {
      "attribute_code": "opted_loyalty_program",
      "value": "1"
    }
  ]
}
Editor is loading...