{
  "opencollection": "1.0.0",
  "info": {
    "name": "Mastercard Account to Account Commerce for Creditor Service Providers",
    "version": "1.2.1"
  },
  "items": [
    {
      "info": {
        "name": "Payments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Mastercard Payment Request Creation.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://mtf.services.mastercard.com/zapp/pbarfp/csp/payment-requests",
            "headers": [
              {
                "name": "X-Request-ID",
                "value": ""
              },
              {
                "name": "X-Product-ID",
                "value": ""
              },
              {
                "name": "X-Participant-ID",
                "value": ""
              },
              {
                "name": "X-JWS-Signature",
                "value": ""
              },
              {
                "name": "Idempotency-Key",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Enables the presentment of request for payment (with or without agreement) by a CSP on behalf of its Creditor."
        }
      ]
    },
    {
      "info": {
        "name": "Lifecycle",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Mastercard Payment Request Status Retrieval Request.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://mtf.services.mastercard.com/zapp/pbarfp/csp/payment-requests/:payment_request_lifecycle_id/status-retrievals",
            "headers": [
              {
                "name": "X-Request-ID",
                "value": ""
              },
              {
                "name": "X-Product-ID",
                "value": ""
              },
              {
                "name": "X-Participant-ID",
                "value": ""
              },
              {
                "name": "X-JWS-Signature",
                "value": ""
              },
              {
                "name": "Idempotency-Key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "payment_request_lifecycle_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier assigned by Mastercard, to identify the payment request in subsequent transactions or services."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Enables Mastercard to retrieve payment request status from DSP."
        },
        {
          "info": {
            "name": "Mastercard Refund Account Request.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://mtf.services.mastercard.com/zapp/pbarfp/csp/payment-requests/:payment_request_lifecycle_id/refunds",
            "headers": [
              {
                "name": "X-Request-ID",
                "value": ""
              },
              {
                "name": "X-Product-ID",
                "value": ""
              },
              {
                "name": "X-Participant-ID",
                "value": ""
              },
              {
                "name": "X-JWS-Signature",
                "value": ""
              },
              {
                "name": "Idempotency-Key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "payment_request_lifecycle_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier assigned by Mastercard, to identify the payment request in subsequent transactions or services."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "A CSP can request refund account details from a Debtor Service Provider(DSP) on behalf of a Creditor. They can use these details to refund the Debtor."
        },
        {
          "info": {
            "name": "Mastercard Refund Payment Confirmation.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://mtf.services.mastercard.com/zapp/pbarfp/csp/payment-requests/:payment_request_lifecycle_id/refunds/:refund_request_lifecycle_id/payment-confirmations",
            "headers": [
              {
                "name": "X-Request-ID",
                "value": ""
              },
              {
                "name": "X-Product-ID",
                "value": ""
              },
              {
                "name": "X-Participant-ID",
                "value": ""
              },
              {
                "name": "X-JWS-Signature",
                "value": ""
              },
              {
                "name": "Idempotency-Key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "payment_request_lifecycle_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier assigned by Mastercard, to identify the payment request in subsequent transactions or services."
              },
              {
                "name": "refund_request_lifecycle_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier assigned by Mastercard, to identify the refund request in subsequent transactions or services."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Enables CSP to notify DSP of a refund payment confirmation."
        }
      ]
    },
    {
      "info": {
        "name": "Agreements",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Mastercard Agreement Creation.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://mtf.services.mastercard.com/zapp/pbarfp/csp/agreements",
            "headers": [
              {
                "name": "X-Request-ID",
                "value": ""
              },
              {
                "name": "X-Product-ID",
                "value": ""
              },
              {
                "name": "X-Participant-ID",
                "value": ""
              },
              {
                "name": "X-JWS-Signature",
                "value": ""
              },
              {
                "name": "Idempotency-Key",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Enables the CSP to present request for agreement creation."
        }
      ]
    },
    {
      "info": {
        "name": "Agreement",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Mastercard Update Agreement.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://mtf.services.mastercard.com/zapp/pbarfp/csp/agreements/:agreement_id/updates",
            "headers": [
              {
                "name": "X-Request-ID",
                "value": ""
              },
              {
                "name": "X-Product-ID",
                "value": ""
              },
              {
                "name": "X-Participant-ID",
                "value": ""
              },
              {
                "name": "X-JWS-Signature",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "agreement_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier assigned by Mastercard, to the agreement, to be used in Payment Requests for routing them to the destined participant."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Enables CSP to update agreement status to Deleted."
        },
        {
          "info": {
            "name": "Mastercard Agreement Request Status Retrieval Request.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://mtf.services.mastercard.com/zapp/pbarfp/csp/agreements/:agreement_id/status-retrievals",
            "headers": [
              {
                "name": "X-Request-ID",
                "value": ""
              },
              {
                "name": "X-Product-ID",
                "value": ""
              },
              {
                "name": "X-Participant-ID",
                "value": ""
              },
              {
                "name": "X-JWS-Signature",
                "value": ""
              },
              {
                "name": "Idempotency-Key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "agreement_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier assigned by Mastercard, to the agreement, to be used in Payment Requests for routing them to the destined participant."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Enables CSP to retrieve agreement status from DSP."
        }
      ]
    },
    {
      "info": {
        "name": "Debtor",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Mastercard Retrieve Debtor Service Providers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://mtf.services.mastercard.com/zapp/pbarfp/csp/debtor-service-providers",
            "headers": [
              {
                "name": "X-Request-ID",
                "value": ""
              },
              {
                "name": "X-Product-ID",
                "value": ""
              },
              {
                "name": "X-Participant-ID",
                "value": ""
              },
              {
                "name": "X-JWS-Signature",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "category_purpose",
                "value": "",
                "type": "query",
                "description": "Category purpose codes for which the DSP list should be filtered. If not provided, all the DSPs will be listed irrespective of categoryPurpose codes supported. *Refer to Codes and Formats section for more details."
              },
              {
                "name": "feature",
                "value": "",
                "type": "query",
                "description": "Feature types  for which the DSP list should filtered. If not provided, all the DSPs will be listed irrespective of features supported. *Refer to Codes and Formats section for more details."
              }
            ]
          },
          "docs": "Enables a CSP to retrieve list of DSPs with details (univeral link, logo url, categoryPurpose and features supported etc)."
        }
      ]
    }
  ],
  "bundled": true
}