HepsiGlobal Marketplace API
  1. Authentication
HepsiGlobal Marketplace API
  • Introduction
  • Authentication
    • Create token
      POST
  • Products
    • Product Status
      PUT
  • Orders
    • Create Order
      POST
    • Order Item Delivery
      PUT
    • Cancel order by marketplace
      PUT
  • Shipments
    • Send shipment label (fulfillment by MP)
      POST
    • Set shipment status (fulfillment by MP)
      PUT
  • Tracking
    • Shipment Tracking With Barcode
      GET
    • Shipment Tracking With Shipment ID
      GET
  • Refunds
    • Create Refund
      POST
  • Webhooks Integration API (Marketplace's API)
    • Product
      • Product Create
      • Product Update
      • Variant Create
      • Variant Update
      • Enable/Disable product
    • Listing
      • Listing Priority
      • Stock update
      • Price update
      • Bulk Merchant Active
      • Bulk Merchant Inactive
      • Variant Listing Status
      • Variant Listing Count
    • Orders
      • Send invoice
      • Order cancel (canceled by seller)
    • Shipment
      • Create shipment
      • Set shipment status (fulfillment by HG)
      • Cancel shipment
    • Refund
      • Refund create result
  1. Authentication

Create token

POST
/v1/auth/token
This endpoint is used for obtaining an access token using OAuth 2.0 authentication. The client needs to provide the grant type, client ID, and client secret to receive an access token and other related information.

Request

Body Params application/json

Example
{
    "grant_type": "client_credentials",
    "client_id": "string",
    "client_secret": "string"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/auth/token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "grant_type": "client_credentials",
    "client_id": "string",
    "client_secret": "string"
}'

Responses

🟢200Successful Response
application/json
Body

Example
{
    "access_token": "string",
    "token_type": "Bearer",
    "expires_in": 0,
    "refresh_token": "string",
    "scope": "string"
}
🟠400Unsuccessful Response
Modified at 2024-07-31 13:02:33
Previous
Introduction
Next
Product Status
Built with