Open-API
  1. OAuth
Open-API
  • eBay fulfillment openAPI
  • OAuth
    • URL(getAuthorizationCode)
      GET
    • AccessToken
      POST
    • Refresh AccessToken
      POST
  • SKU
    • SKUCreation v3
      POST
    • SKUQuery v3
      POST
    • SKU Label
      POST
    • SKUSetupEFService
      POST
    • QuerySKUEFService
      POST
  • Stock
    • GetStockMovement
      POST
    • StockSnapshot v2
      POST
  • Inbound
    • PlaceInboundOrder
      POST
    • Inbound Order List Query
      POST
    • Inbound Order Detail Query
      POST
    • Inbound Label Query
      POST
    • Upload TrackingNo
      POST
    • Upload Clearance Doc
      POST
  • Outbound
    • Place Outbound Order
      POST
    • Outbound Order Query v2
      POST
    • Outbound Order Cancellation
      POST
  • Warehouse
    • GetServiceList
      GET
  • Pricing
    • Cost Estimation Request
      POST
    • Cost Estimation Response
      POST
  1. OAuth

Refresh AccessToken

Sandbox
Sandbox
POST
/oauth/token
OAuth
3PP obtains a new access token by refresh token.
When the access token expires, 3PP can obtain a new access token by refresh token.

Request

Query Params
client_id
string 
required
The ID of 3PP offered by OC offline
grant_type
string 
required
Fixed value "refresh_token"
refresh_token
string 
required
The refresh token is from the response of "get accessToken&refreshToken" API

Request 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 'https://openapi-stage-hk.orangeconnex.com/oauth/token?client_id=&grant_type=&refresh_token='

Responses

🟢200OK
application/json
Body
access_token
string 
optional
Value of access token. When 3PP requests APIs (exclude "getServiceList" API), access token should be contained in a header named "Access-Token".
error
string 
optional
error_description
string 
optional
expires_in
integer <int32>
optional
Duration of validity of access token.
refresh_token
string 
optional
Value of refresh token. If the access token is expired, 3PP uses the refresh token to get a new access token and its expiration date.
token_type
string 
optional
Fixed value: "bearer"
Example
{
  "access_token": "string",
  "error": "string",
  "error_description": "string",
  "expires_in": 0,
  "refresh_token": "string",
  "token_type": "string"
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Modified at 2024-05-13 08:43:05
Previous
AccessToken
Next
SKUCreation v3
Built with