Retrieve Buyer Supplier Associations by Custom Fields
Overview
You can retrieve information for buyer supplier associations for a specific buyer by using the GET method, as described below.
Resource Access
GET https://<hostname>/buyer/v1/buyer/relationship/?buyerId=<bid>&supplierId=<sid>
Parameters
The requested criteria can be a combination of one or more of the following fields:
Keys | Values |
---|---|
filter | %7B%7D |
search | <Item user wants to search> > |
size | 10 |
buyerId | Buyers internal ID for which association is to be searched |
supplierId | Suppliers internal ID for which association is to be searched, if supplierId is not passed, system returns all buyer supplier associations associated with the buyer |
sort | created%3Adesc |
Example Request
GET https://<hostname>/buyer/v1/buyer/relationship/?buyerId=04bf895f-e97f-51c5-84bd-7a67406a97a6&supplierId=c309bc69-e3df-58a5-857a-49953328a640
Example Response
{
"totalRecords": 1,
"totalType": "exact",
"recordCount": 1,
"records": [
{
"id": "0309927d-9057-5d81-b69b-5adf2f94c4c8",
"acl": [
"pps:cpx-acquiring",
"buyer:82787b9f-6a7a-5105-9786-33b6ec632812",
"institution:0df2d073-64d5-58e2-96ee-4770201facb7",
"network:45cf4f64-e4f2-5a7e-9344-fbd400d77133",
"supplier:c309bc69-e3df-58a5-857a-49953328a640",
"institution:0e06f253-5099-57d6-915c-f96a5e5af183",
"network:a63b1f36-f9d7-5bd7-9524-cf24d432f051",
"institution:a9214d62-fe59-55f8-a2da-99b7b9c5cc95",
"network:725e5656-cf83-5b00-848b-0bfa884fc7e7",
"institution:256ef624-1612-58fa-94c3-8f71b2e7c6b1",
"network:ab6bc09e-5dde-5ec7-ba8f-2dbeea7c9d6a",
"institution:7dfc74c5-cdc3-58ad-ac79-d42adc7da3e4",
"institution:1299ae54-62fc-59dd-8a68-825f48243c62",
"institution:51a5f28f-fb9b-5a2f-b770-2270cda175f1",
"network:67e80876-69a2-5702-9fc2-5c2999389548",
"network:cebc25a1-186d-509f-bcde-63df16250fbc",
"buyer:73667dfb-896c-5c52-9a68-0239c21e63dd",
"buyer:1f8fdb46-386f-50a5-905c-fb28d77b228f",
"buyer:2523a2a6-3e9a-5127-b792-7d19c151805c",
"buyer:479a9a19-b97f-58d6-a95e-66c46b72424d",
"buyer:f4a73ba3-633a-5aa6-aa38-a6e754eefa03",
"buyer:707bf3c0-f8aa-5c23-a52d-ac8f44370575",
"buyer:85b231dc-5beb-552d-ac6f-538d4f2bf187",
"buyer:04bf895f-e97f-51c5-84bd-7a67406a97a6",
"buyer:adcf5909-2afe-5078-a2db-525cc21a7981"
],
"sid": "SupplierID123456",
"buyer": {
"id": "82787b9f-6a7a-5105-9786-33b6ec632812",
"name": "john buyer braves"
},
"created": "2024-07-26T11:44:46.156Z",
"creator": {
"id": "404b861c-74df-5e29-b70c-5e9c13c09984",
"username": "john.doe"
},
"deleted": false,
"modified": "2024-07-26T11:45:04.210Z",
"modifier": {
"id": "50335456-0300-45cc-b01c-37c5f20f69b2",
"username": "system"
},
"supplier": {
"id": "c309bc69-e3df-58a5-857a-49953328a640",
"name": "Aditya supplier 2"
},
"paymentType": {
"id": "Lodge Payment",
"type": "Lodge Payment",
"lodgePaymentCardId": "13488be4e0dfd60cba3df380e67ef4402d3c0a332feb75072d",
"lodgePaymentCardMask": "****6061"
},
"standardCardRules": {
"id": "",
"name": ""
},
"isSupplierEnablement": false,
"createdNotificationSent": "2024-07-26T11:45:04.209Z"
}
]
}
Updated 3 days ago