When we fetch customers from ship hero, in response we get the 3pl flag false for 3PL customers as well.
We want to map that 3pl customer with our marketplace to get the orders accordingly.
We get the following response.
{
“account”: {
“data”: {
“customers”: {
“edges”: [
{
“node”: {
“id”: “QWNjb3VudDo2NTY4MA==”,
“email”: “testclient@sahil.com”,
“username”: null,
“is_3pl”: false,
“warehouses”: [
{
“id”: “V2FyZWhvdXNlOjc5OTA2”
}
]
}
},
{
“node”: {
“id”: “QWNjb3VudDo2NTcxMw==”,
“email”: “s@gmail.com”,
“username”: null,
“is_3pl”: false,
“warehouses”: [
{
“id”: “V2FyZWhvdXNlOjc5OTA2”
}
]
}
},
{
“node”: {
“id”: “QWNjb3VudDo2NTcxNA==”,
“email”: “kiwehlmzmbujronp@email.partners”,
“username”: null,
“is_3pl”: false,
“warehouses”: [
{
“id”: “V2FyZWhvdXNlOjc5OTA2”
}
]
}
}
]
}
}
}
}
The id “QWNjb3VudDo2NTcxNA==” is a 3PL customer but we get false in is_3pl flag.
In this, you can see that 3pl is coming as false, and also the username is coming as a null value. To map our marketplace with ship hero we need the username and correct is_3pl flag value.