Create Buyer Supplier Association
Overview
You can create a buyer supplier association i.e. associate a supplier with a buyer using the POST API for the same.
Resource Access
POST https://<hostname>/buyer/v1/buyer/relationship
Arguments
Field | Sub Field | Mandatory/Optional |
---|---|---|
buyerID | Mandatory | |
supplierID | Mandatory | |
sid | Mandatory | |
paymentType | ||
id | Optional Enum values - V Card/ ACH/ Check Issuing/ Managed Check | |
lodgePaymentCardId | Mandatory if id is lodge Card | |
cardRuleId | Optional | |
isSupplierEnablement | Optional False by default |
Example Request
Create Supplier association with ACH as default payment method:
POST https://<hostname>/buyer/v1/buyer/relationship
Host: <hostname>
Authorization: Bearer <JWT token>
Content-Type: application/json
{
"buyerId": "82787b9f-6a7a-5105-9786-33b6ec632812",
"supplierId": "c309bc69-e3df-58a5-857a-49953328a640",
"sid": "SupplierID123456",
"paymentType": {
"id": "ACH"
}
}
{
"buyerId": "04bf895f-e97f-51c5-84bd-7a67406a97a6",
"supplierId": "7063c0d1-f302-5533-88f2-feb5e2d7b09f",
"sid": "SupplierID12345",
"paymentType": {
"id": "Lodge Payment",
"lodgePaymentCardId": "2a1d1bc00226a7164f294f45497496a6095cac63d6d4e6165e",
"cardRuleId": "8c81d810-4c62-5744-90c8-9193c93e56ab"
}
"isSupplierEnablement": true
}
Example Response
{
"buyerId": "82787b9f-6a7a-5105-9786-33b6ec632812",
"supplierId": "c309bc69-e3df-58a5-857a-49953328a640",
"sid": "SupplierID123456",
"paymentType": {
"id": "ACH",
"type": "ACH",
"lodgePaymentCardId": ""
},
"id": "b93f35ea-529c-5571-b61a-31ae18e1aef7",
"buyer": {
"id": "82787b9f-6a7a-5105-9786-33b6ec632812",
"name": "john buyer braves"
},
"supplier": {
"id": "c309bc69-e3df-58a5-857a-49953328a640",
"name": "Aditya supplier 2"
},
"standardCardRules": {
"id": "",
"name": ""
},
"lodgedCardRules": {
"id": "",
"name": ""
},
"isSupplierEnablement": false,
"deleted": false,
"acl": [
"pps:cpx-acquiring",
"buyer:82787b9f-6a7a-5105-9786-33b6ec632812",
"institution:0df2d073-64d5-58e2-96ee-4770201facb7",
"network:45cf4f64-e4f2-5a7e-9344-fbd400d77133"
]
}
Updated 3 days ago