{ "opencollection": "1.0.0", "info": { "name": "Mastercard Benefit Allocation Service API", "version": "1.0.0" }, "items": [ { "info": { "name": "Benefit-Allocations-Segment-Management", "type": "folder" }, "items": [ { "info": { "name": "Mastercard Assign Segment to a Card", "type": "http" }, "http": { "method": "POST", "url": "https://sandbox.api.mastercard.com/loyalty/benefits/card-segments", "body": { "type": "json", "data": "{}" } }, "docs": "Assigns segment to a card by sending a card number, segment code and effective date in the input. The response is an array of bundles that are assigned to the card. At this time this endpoint supports exactly one segment code in the input. It is defined as an array for future support." }, { "info": { "name": "Mastercard Replaces Segment on a Card", "type": "http" }, "http": { "method": "PUT", "url": "https://sandbox.api.mastercard.com/loyalty/benefits/card-segments-replacements", "body": { "type": "json", "data": "{}" } }, "docs": "Replaces the segment and the existing benefits with the new set of benefits that are on the new Segment Code. The existing benefits are expired, and new benefits are assigned. The response is an array of bundles that are newly assigned to the card." }, { "info": { "name": "Mastercard Cancels Segment From a Card", "type": "http" }, "http": { "method": "PUT", "url": "https://sandbox.api.mastercard.com/loyalty/benefits/card-segments-cancellations", "body": { "type": "json", "data": "{}" } }, "docs": "Cancels a segment and the benefits associated to the card for the input segment. The response is an array of bundles that are cancelled on the card. Exactly one input segment is supported at this time. It is defined as an array for future support." } ] }, { "info": { "name": "Benefit-Allocations-Card-Management", "type": "folder" }, "items": [ { "info": { "name": "Mastercard Replace Card Number for a Cardholder", "type": "http" }, "http": { "method": "POST", "url": "https://sandbox.api.mastercard.com/loyalty/benefits/cards", "body": { "type": "json", "data": "{}" } }, "docs": "Replaces the card number associated with the user. The benefits on the old card number are expired, and the same set of benefits are applied to new card number." }, { "info": { "name": "Mastercard Freeze/unfreeze a Card for Benefits", "type": "http" }, "http": { "method": "PUT", "url": "https://sandbox.api.mastercard.com/loyalty/benefits/cards", "body": { "type": "json", "data": "{}" } }, "docs": "Freezes a card for benefits, or unfreezes the card for benefits. isFrozen set to true freezes the card, and isFrozen set to false unfreezes the card." } ] } ], "bundled": true }