Utwórz połączenie ze sklepem Shopper
POST
/api/v3/Connections/CreateShopperConnection
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Connections/CreateShopperConnection';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"admin-id":"example","admin-name":"example","place":"example","shop":"example","timestamp":1,"hash":"example","admin-hash":"example","application":"example","application-version":"example","translations":"example","locale":"example","version":"example","is-mitra":true,"appbridge":1,"appbridge_appid":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Connections/CreateShopperConnection \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "admin-id": "example", "admin-name": "example", "place": "example", "shop": "example", "timestamp": 1, "hash": "example", "admin-hash": "example", "application": "example", "application-version": "example", "translations": "example", "locale": "example", "version": "example", "is-mitra": true, "appbridge": 1, "appbridge_appid": 1 }'Zakłada integrację ze sklepem na platformie Shopper.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”Typ treściapplication/json
object
admin-id
string
admin-name
string
place
string
shop
string
timestamp
integer format: int64
hash
string
admin-hash
string
application
string
application-version
string
translations
string
locale
string
version
string
is-mitra
boolean
appbridge
integer format: int32
appbridge_appid
integer format: int32
Examplegenerated
{ "admin-id": "example", "admin-name": "example", "place": "example", "shop": "example", "timestamp": 1, "hash": "example", "admin-hash": "example", "application": "example", "application-version": "example", "translations": "example", "locale": "example", "version": "example", "is-mitra": true, "appbridge": 1, "appbridge_appid": 1}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
object
connectionId
integer format: int64
success
boolean
Examplegenerated
{ "connectionId": 1, "success": true}Unauthorized
Typ treściapplication/json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Server Error

