All URIs are relative to https://api.mastercard.com
Method | HTTP request | Description |
---|---|---|
createUser | POST /bundle/profile/users | Create Profile |
patchUser | POST /bundle/profile/users/{user_id}/patch | Partially Update Profile |
readConsent | GET /bundle/profile/users/{user_id}/products/{product}/consents | Find Consent by Id and product |
readUser | GET /bundle/profile/users/{user_id} | Find User by Id |
BundleUserResponse createUser(bundleUser)
Create Profile
Create Profile user and associated product service(s) consents and card account(s)
// Import classes:
//import com.mastercard.developer.loyalty_airport_client.ApiException;
//import com.mastercard.developer.loyalty_airport_client.api.BundleProfileApi;
BundleProfileApi apiInstance = new BundleProfileApi();
BundleUser bundleUser = new BundleUser(); // BundleUser | Bundle Profile body
try {
BundleUserResponse result = apiInstance.createUser(bundleUser);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BundleProfileApi#createUser");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
bundleUser | BundleUser | Bundle Profile body |
No authorization required
- Content-Type: application/json
- Accept: application/json
BundleUserResponse patchUser(userId, bundleUserPatch)
Partially Update Profile
Partial updates of Profile user and associated product service(s) consents and card account(s)
// Import classes:
//import com.mastercard.developer.loyalty_airport_client.ApiException;
//import com.mastercard.developer.loyalty_airport_client.api.BundleProfileApi;
BundleProfileApi apiInstance = new BundleProfileApi();
String userId = "userId_example"; // String | Opaque identifier for the consumer. Issuer/Acquirer to send it complies to IETF RFC2396; MC provisions it depends on the use case, such as user123-partnerBank
BundleUserPatch bundleUserPatch = new BundleUserPatch(); // BundleUserPatch | Bundle Profile body
try {
BundleUserResponse result = apiInstance.patchUser(userId, bundleUserPatch);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BundleProfileApi#patchUser");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | Opaque identifier for the consumer. Issuer/Acquirer to send it complies to IETF RFC2396; MC provisions it depends on the use case, such as user123-partnerBank | |
bundleUserPatch | BundleUserPatch | Bundle Profile body |
No authorization required
- Content-Type: application/json
- Accept: application/json
BundleUserResponse readConsent(userId, product)
Find Consent by Id and product
Returns a Consent on the basis of provided id, product as path params (https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.1)
// Import classes:
//import com.mastercard.developer.loyalty_airport_client.ApiException;
//import com.mastercard.developer.loyalty_airport_client.api.BundleProfileApi;
BundleProfileApi apiInstance = new BundleProfileApi();
String userId = "userId_example"; // String | Opaque identifier for the consumer. Issuer/Acquirer to send it complies to IETF RFC2396; MC provisions it depends on the use case. Ex - User123Z
String product = "product_example"; // String | product identifier
try {
BundleUserResponse result = apiInstance.readConsent(userId, product);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BundleProfileApi#readConsent");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | Opaque identifier for the consumer. Issuer/Acquirer to send it complies to IETF RFC2396; MC provisions it depends on the use case. Ex - User123Z | |
product | String | product identifier |
No authorization required
- Content-Type: Not defined
- Accept: application/json
BundleUserResponse readUser(userId)
Find User by Id
Returns a Users on the basis of provided id as path param (https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.1)
// Import classes:
//import com.mastercard.developer.loyalty_airport_client.ApiException;
//import com.mastercard.developer.loyalty_airport_client.api.BundleProfileApi;
BundleProfileApi apiInstance = new BundleProfileApi();
String userId = "userId_example"; // String | Opaque identifier for the consumer. Issuer/Acquirer to send it complies to IETF RFC2396; MC provisions it depends on the use case, such as user123-partnerBank
try {
BundleUserResponse result = apiInstance.readUser(userId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BundleProfileApi#readUser");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | Opaque identifier for the consumer. Issuer/Acquirer to send it complies to IETF RFC2396; MC provisions it depends on the use case, such as user123-partnerBank |
No authorization required
- Content-Type: Not defined
- Accept: application/json