Store API v1.0.0 Requests
Store API v1.0.0
Documentation has moved
The information on this page is no longer updated and may be obsolete. The most current Koshelek documentation is now available at the new address:
Add Store
HTTP method: POST
URL: /api/v1/configuration/brand/store
Description
Use this request to introduce your store (one or more) to Koshelek Pay.
Request parameters
Request body
Request body is a JSON object of the following structure:
Field | Type | Mandatory | Description |
---|---|---|---|
| String | Yes | Merchant brand ID (UUID). |
| Array[Object] | Yes | Contains store information to be added (see below: Array: |
Array: stores
stores
This array contains store information for store(s) being added. Every store in this array is represented by an object of the following strucure:
Field | Type | Mandatory | Description |
---|---|---|---|
| String | Yes | Store ID as assigned by merchant (UUID). |
| String | Yes | Merchant's legal name ID in Koshelek Pay (UUID). |
| String | Yes | Merchant's actual city. |
| String | Yes | Merchant's actual address. |
| String | Yes | Merchant's phone number. |
| String | No | Merchant's country of residence (ISO 3166 Alpha-2). |
| String | No | Merchant's region of residence (ISO 3166-2:RU). |
| String | No | Merchant Category Code. |
| String | Yes | ZIP code. |
| Array[Enum] | No | Koshelek Pay payment method available in store. Possible values:
If empty: the value is inherited from merchant brand's global settings. |
| String | No | Store ID to SBP. |
| Enum | No | Current store status. Possible values:
|
Response parameters
HTTP Status Code: 200
The request is processed. The response body returns values received in the request, along with registration result parameters (storeId
, result
) — all as a JSON object of the following structure:
Field | Type | Mandatory | Description |
---|---|---|---|
| String | Yes | Merchant brand ID (UUID). |
| Array[Object] | Yes | Contains store information being added (see below: Array: |
| Object | Yes | Contains request processing results (see Object |
Array: stores
stores
This array contains store information received in the request, along with storeId
identifier assigned to store by Koshelek Pay.
Field | Type | Mandatory | Description |
---|---|---|---|
| String | Yes | Store ID as assigned by merchant (UUID). |
| String | Yes | Merchant's legal name ID in Koshelek Pay (UUID). |
| String | Yes | Merchant ID assigned by Koshelek Pay. |
| String | Yes | Merchant's actual city. |
| String | Yes | Merchant's actual address. |
| String | Yes | Merchant's phone number. |
| String | Yes if received in request | Merchant's country of residence (ISO 3166 Alpha-2). |
| String | Yes if received in request | Merchant's region of residence (ISO 3166-2:RU). |
| String | Yes if received in request | Merchant Category Code. |
| String | Yes | ZIP Code. |
| Array[Enum] | Yes if received in request | Koshelek Pay payment method available in store. Possible values:
|
| String | Yes if received in request | Store ID to SBP. |
Get Store Information
HTTP method: GET
URL: /api/v1/configuration/brand/store
Description
Use this request to obtain information about store (one or more) added previously via Store API.
This request is only applicable to store IDs associated with your brandId
.
The response is either:
Store information (or explanation why it's unavailable).
Error code and description (in case of error).
Request parameters
Query parameters
Field | Type | Mandatory | Description |
---|---|---|---|
| String | Yes | Merchant brand ID (UUID). |
| String | No | A list of |
You can check validity and availability of your brand in Koshelek Pay. To do so, make this request with empty storeIds
query string: if your brand is valid and available, you'll get HTTP: 200
response with empty stores list.
Request body
None.
Response parameters
HTTP Status Code: 200
The request is processed. Response body is a JSON object of the following structure:
Field | Type | Mandatory | Description |
---|---|---|---|
| String | Yes | Merchant brand ID (UUID). |
| Array[Object] | Yes | Contains store information (see above: Array: |
Update Store Information
HTTP method: PUT
URL: /api/v1/configuration/brand/store
Description
Use this request to update your store information whenever there is a need to (e.g. to update store phone number or Koshelek Pay availability status).
Before you update your store information, make sure that the store was added via Add Store.
Request parameters
For each store, pass only parameters you want to update, and omit others.
Request body
The request body is a JSON object of the following structure:
Field | Type | Mandatory | Description |
---|---|---|---|
| String | Yes | Merchant brand ID (UUID). |
| Array[Object] | Yes | Contains store information to update (see below: Array: |
Array:stores
stores
This array contains information for store(s) to be updated. Every store in this array is represented by an object of the following strucure:
Field | Type | Mandatory | Description |
---|---|---|---|
| String | No | Store ID as assigned by merchant (UUID). |
| String | Yes | Merchant ID assigned by Koshelek Pay. |
| String | No | Merchant's legal name ID in Koshelek Pay (UUID). |
| String | No | Merchant's actual city. |
| String | No | Merchant's actual address. |
| String | No | Merchant's phone number. |
| String | No | Merchant's country of residence (ISO 3166 Alpha-2). |
| String | No | Merchant's region of residence (ISO 3166-2:RU). |
| String | No | Merchant Category Code. |
| String | No | ZIP code. |
| Array[Enum] | No | Koshelek Pay payment method available in store. Possible values:
If empty: the value is inherited from merchant brand's global settings. |
| String | No | Store ID to SBP. |
| String[Enum] | No | Current store status. Possible values:
|
Response parameters
HTTP Status Code: 200
The request is processed. Response body returns values received in the request, along with request processing result:
Field | Type | Mandatory | Description |
---|---|---|---|
| String | Yes | Merchant brand ID (UUID). |
| Array[Object] | Yes | Contains updated store information (see below: Array: |
| Object | Yes | Contains request processing result (see Object |
Array:stores
stores
This array contains updated store information for each store:
Field | Type | Mandatory | Description |
---|---|---|---|
| String | Yes if received in request | Store ID as assigned by merchant (UUID). |
| String | Yes | Merchant's legal name ID in Koshelek Pay (UUID). |
| String | Yes if received in request | Merchant ID assigned by Koshelek Pay. |
| String | Yes if received in request | Merchant's actual city. |
| String | Yes if received in request | Merchant's actual address. |
| String | Yes if received in request | Merchant's phone number. |
| String | Yes if received in request | Merchant's country of residence (ISO 3166 Alpha-2). |
| String | Yes if received in request | Merchant's region of residence (ISO 3166-2:RU). |
| String | Yes if received in request | Merchant Category Code. |
| String | Yes if received in request | ZIP code. |
| Array[String] | Yes if received in request | Koshelek Pay payment method available in store. Possible values:
|
| String | Yes if received in request | Store ID to SBP. |
Last updated