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

AccessToken

Sandbox
Sandbox
POST
/oauth/token
OAuth
3PP exchanges the authorization code for an access token and refresh token.
After 3PP gets authorization code, they need to exchange the authorization token for an access token and refresh token.

Request

Query Params
client_id
string 
required
The ID of 3PP offered by OC offline
grant_type
string 
required
Fixed value: "authorization_code"
redirect_uri
string 
required
To prevent attack, OC validates value of this field against the redirect URL that was used when requesting the authorization code. The two redirect URLs should be the same.
code
string 
required
Value of authorization code

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=&redirect_uri=&code='

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 2023-10-19 08:25:59
Previous
URL(getAuthorizationCode)
Next
Refresh AccessToken
Built with