{ "opencollection": "1.0.0", "info": { "name": "Mastercard Bill Payment Validator Account Opening Benefit-Allocations-Segment-Management API", "version": "1.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": "{{baseUrl}}/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": "{{baseUrl}}/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": "{{baseUrl}}/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." } ] } ], "bundled": true }