- Introduction
- Authentication
- Errors
- Change Logs
- Promotion
- Loyalty
- Wallet
- PIM
- Get ProductsPOST
- Get Product SettingsGET
- Get Catalog SettingsGET
- Upsert ProductPOST
- Upsert CategoryPOST
- Bulk Product UpsertPOST
- Check Batch StatusPOST
- Delete ProductPOST
- Attach Product Attribute ImagePOST
- Attach Category ImagePOST
- Get ImageGET
- Upsert AttributesPOST
- Delete AttributePOST
- Upsert Attribute OptionsPOST
- Upsert Attribute OptionPOST
- Delete Attribute OptionPOST
- Merchant
- How to
Get Products
Production
Production
POST
https://api.b2b.retter.io/5p1hp1d2t/CALL/PIMAPI/getProducts/{B2B_PROJECT_ID}
PIM
Last modified:2024-09-17 11:22:35
Request
Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Path Params
B2B_PROJECT_ID
string
required
Body Params application/json
sorts
object
optional
Record<string,string>: family: asc, enabled: desc etc...
family
string
optional
enabled
string
optional
id
string
optional
createdAt
string
optional
updatedAt
string
optional
filters
object
optional
idList
array[string]
optional
createdAt
object
optional
updatedAt
object
optional
sku
string
optional
family
string
optional
parent
string
optional
variant
string
optional
dataType
string
optional
group
string
optional
enabled
string
optional
forceGroupFilter
boolean
optional
pageFrom
integer
optional
pageSize
integer
optional
searchText
string
optional
source
boolean
optional
Example
{
"sorts": {
"family": "asc",
"enabled": "desc",
"id": "asc",
"createdAt": "asc",
"updatedAt": "desc"
},
"filters": {
"idList": [
"123456"
],
"createdAt": {
"gte": "2023-05-10T09:02:00.000Z",
"lte": "2023-05-17T22:02:00.000Z"
},
"updatedAt": {
"gte": "2023-05-18T09:02:00.000Z",
"lte": "2023-05-09T23:02:00.000Z"
},
"sku": "123456",
"family": "testfamily",
"parent": "testparent",
"variant": "testvariant",
"dataType": "PRODUCT,PRODUCT_MODEL",
"group": "testgroup",
"enabled": "true",
"forceGroupFilter": true
},
"pageFrom": 1,
"pageSize": 5,
"searchText": "search",
"source": true
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.b2b.retter.io/5p1hp1d2t/CALL/PIMAPI/getProducts/' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
"sorts": {
"family": "asc",
"enabled": "desc",
"id": "asc",
"createdAt": "asc",
"updatedAt": "desc"
},
"filters": {
"idList": [
"123456"
],
"createdAt": {
"gte": "2023-05-10T09:02:00.000Z",
"lte": "2023-05-17T22:02:00.000Z"
},
"updatedAt": {
"gte": "2023-05-18T09:02:00.000Z",
"lte": "2023-05-09T23:02:00.000Z"
},
"sku": "123456",
"family": "testfamily",
"parent": "testparent",
"variant": "testvariant",
"dataType": "PRODUCT,PRODUCT_MODEL",
"group": "testgroup",
"enabled": "true",
"forceGroupFilter": true
},
"pageFrom": 1,
"pageSize": 5,
"searchText": "search",
"source": true
}'
Responses
🟢200OK
application/json
Body
object {0}
Example
{}
🟠400Bad Request
🟠403Forbidden
🟠404Record Not Found
Modified at 2024-09-17 11:22:35