Various actions for updating a customer delegate such as linking to a new customer.
required | object (LinkCustomerToDelegate1) Link this customer delegate with the given merchant customer. Payment sources saved against a delegate will be available when signing in on behalf of any customers the delegate is linked to. |
{- "LinkCustomerToDelegate": {
- "customerId": "cust_aSTAm-kvuGrQp4Dx"
}
}{- "customerDelegateId": "custd_aSTAoukvuGrQp4EN",
- "delegateEmailAddress": "lucy.diamond@star.com",
- "delegatePhoneNumber": "+61401234567",
- "delegateName": "string",
- "linkedCustomers": [
- {
- "ConsumerCustomer": {
- "customerId": "cust_aSTAm-kvuGrQp4Dx",
- "merchantId": "mcht_aSTAm-kvuGrQp4Dw",
- "marketplaceId": "mktp_aSTAnOkvuGrQp4D5",
- "referenceCustomerId": "CUST-48822821",
- "emailAddress": "lucy.diamond@star.com",
- "givenName": "string",
- "middleName": "string",
- "familyName": "string",
- "isVerified": true,
- "phoneNumber": "+61401234567",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
], - "loanRoles": [
- {
- "customerId": "cust_aSTAm-kvuGrQp4Dx",
- "loanRole": {
- "CardUser": {
- "viewAllTransactions": true,
- "canCreateCards": true,
- "loanAccess": [
- {
- "loanId": "loan_aSTApOkvuGrQp4ET",
- "cardIds": [
- null
]
}
]
}
}
}
]
}