Przejdź do głównej zawartości

Utwórz połączenie ze sklepem Shopper

POST
/api/v3/Connections/CreateShopperConnection
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.

Typ treściapplication/json
object
admin-id
string
nullable
admin-name
string
nullable
place
string
nullable
shop
string
nullable
timestamp
integer format: int64
hash
string
nullable
admin-hash
string
nullable
application
string
nullable
application-version
string
nullable
translations
string
nullable
locale
string
nullable
version
string
nullable
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
}

Success

Typ treściapplication/json
object
connectionId
integer format: int64
nullable
success
boolean
Examplegenerated
{
"connectionId": 1,
"success": true
}

Unauthorized

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Server Error