Update Buyer Supplier Association

Overview

You can update a buyer supplier association i.e. associate a supplier with a buyer using the POST API for the same.

Resource Access

PUT https://<hostname>/buyer/v1/buyer/relationship/<relationshipId>

Arguments

FieldSub FieldMandatory/Optional
buyerIDMandatory
supplierIDstreet1 city state country postalCodeMandatory
sidMandatory
paymentType
idENUM values - V Card/ ACH/ Check Issuing/ Managed Check
lodgePaymentCardIdMandatory if id is lodge Card
cardRuleIdOptional
isSupplierEnablementOptional

Example Request

🚧

Update Buyer Supplier Association:
PUT https://<hostname>/buyer/v1/buyer/relationship/385ff64d-dfc0-575f-af69-e7fa99a77ae8
Host: <hostname>
Authorization: Bearer <JWT token>
Content-Type: application/json


{
   "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" 
   },
   "standardCardRules": {},
   "isSupplierEnablement": true
}

Example Response



{
    "buyerId": "75ec0b7b-ca5a-57e6-98bb-d54012f8d238",
    "supplierId": "7c5addd9-fb85-57c0-b7aa-97fbcac61152",
    "sid": "SupplierID1234000",
    "isSupplierEnablement": true,
    "id": "68147d6a-661e-521b-98f3-24d2aebbc7cf",
    "buyer": {
        "id": "75ec0b7b-ca5a-57e6-98bb-d54012f8d238",
        "name": "Abhishek test API Buyer"
    },
    "supplier": {
        "id": "7c5addd9-fb85-57c0-b7aa-97fbcac61152",
        "name": "John Smith"
    },
    "paymentType": {
        "id": "",
        "type": "",
        "lodgePaymentCardId": ""
    },
    "standardCardRules": {
        "id": "",
        "name": ""
    },
    "lodgedCardRules": {
        "id": "",
        "name": ""
    },
    "deleted": false,
    "acl": [
        "pps:cpx-acquiring",
        "buyer:75ec0b7b-ca5a-57e6-98bb-d54012f8d238",
        "institution:0df2d073-64d5-58e2-96ee-4770201facb7",
        "network:45cf4f64-e4f2-5a7e-9344-fbd400d77133"
    ]
}



Priority Technology Holdings Logo