GET
/
suppliers
/
{id}
/
relationships
cURL
curl --request GET \
  --url https://api.daraa.io/suppliers/{id}/relationships
[
  {
    "id": "<string>",
    "supplierId": "<string>",
    "merchantId": "<string>",
    "relationshipType": "primary",
    "contractStartDate": "2023-12-25",
    "contractEndDate": "2023-12-25",
    "discountRate": 123,
    "isActive": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
]

Path Parameters

id
string
required

Query Parameters

merchantId
string
relationshipType
enum<string>
Available options:
primary,
secondary,
backup,
exclusive
isActive
boolean

Response

200 - application/json

Ok

id
string
required

Unique identifier for the relationship

supplierId
string
required

ID of the supplier

merchantId
string
required

ID of the merchant/brand

relationshipType
enum<string>
required

Type of relationship

Available options:
primary,
secondary,
backup,
exclusive
isActive
boolean
required

Whether relationship is active

contractStartDate
string<date>

Contract start date

contractEndDate
string<date>

Contract end date

discountRate
number

Discount rate (0-1)

createdAt
string<date-time>
updatedAt
string<date-time>