Neu API Registrierung funktioniert nicht

UrganciITS

Aktives Mitglied
16. März 2021
51
2
Gemünden am Main
Firma
Urganci IT-Solutions - Semih Urganci
Hallo,

wir bekommen den API nicht registriert, es geht einfach nicht weiter.

wir haben dafür diesen Code im API stehen

curl --location 'http://c24102.servers.ecomdata.de:5883/api/eazybusiness/authentication' \
--header 'api-version: 1.2' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'X-ChallengeCode: Webcode-Magento2-JTL' \
--data '{
"appId": "Webcode-Magento2-JTL/1.0.0",
"appIcon": "PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNiAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjRkYwMDAwIiBkPSJNMCAwSDI2VjI0SDBWMCIvPjwvc3ZnPg==",
"description": "Magento 2 JTL Integration by Webcode",
"displayName": "Magento 2 Integration",
"mandatoryApiScopes": ["all.read", "availability.queryavailabilities"],
"providerName": "Webcode",
"providerWebsite": "https://webcode.bg/",
"version": "1.0.0"
"x-challengecode": "Webcode-Magento2-JTL",
 

Morimus

Sehr aktives Mitglied
16. Mai 2019
653
144
In deinem Body hängt nach "... x-challengecode": "Webcode-Magento2-JTL", noch ein Komma und } fehlt.

X-ChallengeCode gehört laut JTL-Doku in den Header, nicht in den Body.

appId ohne slash.

Bei mir hatte die Registrierung wegen zu vieler scopes nicht funktioniert.
Nutze nur notwendige Scopes. Starte minimal (z. B. nur Lese-Scopes) und erweitere, sobald die Registrierung klappt.
 

Ähnliche Themen