لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Exchange token
POST
/ admin/ v1/ oauth/ token- يدعم Idempotency-Key
The OAuth token endpoint. Exchanges an authorization code (with PKCE when the authorization request had a challenge) or an App Bridge session token (RFC 8693 token exchange) for an access token of the installation. Authenticate the app with its client credentials, as HTTP Basic or client_id/client_secret fields. Errors follow RFC 6749 §5.2, not problem details.
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
ما يُرجعه
200 An access token.
الأخطاء
- 400
bad_requestInvalid request or grant. - 401
unauthenticatedClient authentication failed.