{
  "openapi": "3.0.4",
  "info": {
    "title": "MPS Payments — public API",
    "description": "Endpoints reachable through the payments gateway. Authenticate with your API key, sent on every call as Authorization: Bearer mps_live_…. There is nothing to exchange it for. Every call is tenanted from the key's wallet; a key that acts for many merchants selects one with x-wallet-number.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://gateway.mps-emi.com",
      "description": "Test and live keys use the same host; the key decides."
    }
  ],
  "paths": {
    "/api/payments/payment-links/{id}": {
      "delete": {
        "tags": [
          "Payment links"
        ],
        "summary": "Cancel a payment link",
        "description": "Stops an open payment link opening payments. Canceling a canceled link answers 204 again. Answers 409 with code payment_link_not_open once the link is paid or expired: a payment already on its checkout can still be paid, and a paid link stays paid. Answers 404 for a link of another merchant.\n\nRequires the `payment-links:create` scope.",
        "operationId": "payment-links-cancel",
        "parameters": [
          {
            "name": "x-wallet-number",
            "in": "header",
            "description": "Only with a partner key, on every call: the wallet of the merchant this call acts for, such as BE0000000000. A test key or a merchant key acts for its own wallet and ignores it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The link's id, exactly as create returned it. An opaque string: never parse it.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "k3Qz9aVbN2xR7wYc1dFgHw"
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "401": {
            "description": "No API key, or a wrong, malformed or revoked one: no body.",
            "headers": {
              "WWW-Authenticate": {
                "description": "Bearer error=\"invalid_token\".",
                "schema": {
                  "type": "string"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "403": {
            "description": "The key does not carry the payment-links:create scope, or a partner key sent no x-wallet-number: no body. A partner's key asking for a live link is answered 403 with the code payment_link_live_partner. x-wallet-number names a wallet the key does not cover: the body below, error invalid_request.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "error",
                    "error_description"
                  ],
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "invalid_request."
                    },
                    "error_description": {
                      "type": "string",
                      "description": "Why the wallet was refused, for a person."
                    }
                  },
                  "example": {
                    "error": "invalid_request",
                    "error_description": "The requested wallet is not covered by this key's account."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "409": {
            "description": "Conflict",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictProblem"
                }
              }
            }
          },
          "429": {
            "description": "Over the 100 requests a minute per API key, shared by every endpoint, or more than 10 failed API keys a minute from your address: no body. Wait the number of seconds in Retry-After, then retry.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "500": {
            "description": "A problem on our side, as a problem document with the traceId to quote to MPS. Other 5xx answers can carry no body. Retry a read with backoff; retry a create or refund only with the same Idempotency-Key.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "get": {
        "tags": [
          "Payment links"
        ],
        "summary": "Get a payment link",
        "description": "Reads one payment link of the key's merchant. Answers 404 for a link of another merchant, the same answer as for a link that does not exist.\n\nRequires the `payment-links:read` scope.",
        "operationId": "payment-links-get",
        "parameters": [
          {
            "name": "x-wallet-number",
            "in": "header",
            "description": "Only with a partner key, on every call: the wallet of the merchant this call acts for, such as BE0000000000. A test key or a merchant key acts for its own wallet and ignores it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The link's id, exactly as create returned it. An opaque string: never parse it.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "k3Qz9aVbN2xR7wYc1dFgHw"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponsePayloadOfApiPaymentLinkResponse"
                }
              }
            }
          },
          "401": {
            "description": "No API key, or a wrong, malformed or revoked one: no body.",
            "headers": {
              "WWW-Authenticate": {
                "description": "Bearer error=\"invalid_token\".",
                "schema": {
                  "type": "string"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "403": {
            "description": "The key does not carry the payment-links:read scope, or a partner key sent no x-wallet-number: no body. x-wallet-number names a wallet the key does not cover: the body below, error invalid_request.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "error",
                    "error_description"
                  ],
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "invalid_request."
                    },
                    "error_description": {
                      "type": "string",
                      "description": "Why the wallet was refused, for a person."
                    }
                  },
                  "example": {
                    "error": "invalid_request",
                    "error_description": "The requested wallet is not covered by this key's account."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "429": {
            "description": "Over the 100 requests a minute per API key, shared by every endpoint, or more than 10 failed API keys a minute from your address: no body. Wait the number of seconds in Retry-After, then retry.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "500": {
            "description": "A problem on our side, as a problem document with the traceId to quote to MPS. Other 5xx answers can carry no body. Retry a read with backoff; retry a create or refund only with the same Idempotency-Key.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/payments/payment-links": {
      "post": {
        "tags": [
          "Payment links"
        ],
        "summary": "Create a payment link",
        "description": "Makes a single-use payment link for a fixed amount and returns the address to send the shopper to. The link is test or live as the key is: a test key makes test links, a live key makes live links. A partner's key makes test links only, and a link with no shop name on record is a 409 naming payment_link_unnamed. A link stops opening payments once it is paid, canceled or expired.\n\nRequires the `payment-links:create` scope.",
        "operationId": "payment-links-create",
        "parameters": [
          {
            "name": "x-wallet-number",
            "in": "header",
            "description": "Only with a partner key, on every call: the wallet of the merchant this call acts for, such as BE0000000000. A test key or a merchant key acts for its own wallet and ignores it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApiPaymentLinkRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponsePayloadOfApiPaymentLinkResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "No API key, or a wrong, malformed or revoked one: no body.",
            "headers": {
              "WWW-Authenticate": {
                "description": "Bearer error=\"invalid_token\".",
                "schema": {
                  "type": "string"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "403": {
            "description": "The key does not carry the payment-links:create scope, or a partner key sent no x-wallet-number: no body. A partner's key asking for a live link is answered 403 with the code payment_link_live_partner. x-wallet-number names a wallet the key does not cover: the body below, error invalid_request.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "error",
                    "error_description"
                  ],
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "invalid_request."
                    },
                    "error_description": {
                      "type": "string",
                      "description": "Why the wallet was refused, for a person."
                    }
                  },
                  "example": {
                    "error": "invalid_request",
                    "error_description": "The requested wallet is not covered by this key's account."
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictProblem"
                }
              }
            }
          },
          "429": {
            "description": "Over the 100 requests a minute per API key, shared by every endpoint, or more than 10 failed API keys a minute from your address: no body. Wait the number of seconds in Retry-After, then retry.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "500": {
            "description": "A problem on our side, as a problem document with the traceId to quote to MPS. Other 5xx answers can carry no body. Retry a read with backoff; retry a create or refund only with the same Idempotency-Key.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "get": {
        "tags": [
          "Payment links"
        ],
        "summary": "List payment links",
        "description": "Lists the payment links of the key's merchant, newest first. Reads count toward the 100 requests a minute.\n\nRequires the `payment-links:read` scope.",
        "operationId": "payment-links-list",
        "parameters": [
          {
            "name": "x-wallet-number",
            "in": "header",
            "description": "Only with a partner key, on every call: the wallet of the merchant this call acts for, such as BE0000000000. A test key or a merchant key acts for its own wallet and ignores it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponsePayloadOfIReadOnlyListOfApiPaymentLinkResponse"
                }
              }
            }
          },
          "401": {
            "description": "No API key, or a wrong, malformed or revoked one: no body.",
            "headers": {
              "WWW-Authenticate": {
                "description": "Bearer error=\"invalid_token\".",
                "schema": {
                  "type": "string"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "403": {
            "description": "The key does not carry the payment-links:read scope, or a partner key sent no x-wallet-number: no body. x-wallet-number names a wallet the key does not cover: the body below, error invalid_request.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "error",
                    "error_description"
                  ],
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "invalid_request."
                    },
                    "error_description": {
                      "type": "string",
                      "description": "Why the wallet was refused, for a person."
                    }
                  },
                  "example": {
                    "error": "invalid_request",
                    "error_description": "The requested wallet is not covered by this key's account."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Over the 100 requests a minute per API key, shared by every endpoint, or more than 10 failed API keys a minute from your address: no body. Wait the number of seconds in Retry-After, then retry.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "500": {
            "description": "A problem on our side, as a problem document with the traceId to quote to MPS. Other 5xx answers can carry no body. Retry a read with backoff; retry a create or refund only with the same Idempotency-Key.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/payments/internet/create": {
      "post": {
        "tags": [
          "Online payments"
        ],
        "summary": "Create an online payment",
        "description": "Opens an online payment and returns the page to send the shopper to. Every call opens a new payment unless it carries an Idempotency-Key (or X-Idempotency-Key): a retry with the same key and the same body returns the payment the first call made, for 24 hours. The same key with a different body is a 400 naming Idempotency-Key; a retry while the first call is still running is a 409.\n\nRequires the `internet:create` scope.",
        "operationId": "payments-internet-create",
        "parameters": [
          {
            "name": "x-wallet-number",
            "in": "header",
            "description": "Only with a partner key, on every call: the wallet of the merchant this call acts for, such as BE0000000000. A test key or a merchant key acts for its own wallet and ignores it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "One value per checkout attempt, stored with the order before the call. A retry with the same key and body within 24 hours returns the payment the first call made. Scoped to your merchant and mode.",
            "schema": {
              "maxLength": 255,
              "pattern": "^[!-~]+$",
              "type": "string"
            }
          },
          {
            "name": "X-Idempotency-Key",
            "in": "header",
            "description": "The same key under another name, supported alongside Idempotency-Key. Send one of the two; sent together, they must carry the same key.",
            "schema": {
              "maxLength": 255,
              "pattern": "^[!-~]+$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInternetPaymentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponsePayloadOfCreateInternetPaymentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "No API key, or a wrong, malformed or revoked one: no body.",
            "headers": {
              "WWW-Authenticate": {
                "description": "Bearer error=\"invalid_token\".",
                "schema": {
                  "type": "string"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "403": {
            "description": "The key does not carry the internet:create scope, a partner key sent no x-wallet-number, or the merchant has no shop name registered yet (contact MPS): no body. x-wallet-number names a wallet the key does not cover: the body below, error invalid_request.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "error",
                    "error_description"
                  ],
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "invalid_request."
                    },
                    "error_description": {
                      "type": "string",
                      "description": "Why the wallet was refused, for a person."
                    }
                  },
                  "example": {
                    "error": "invalid_request",
                    "error_description": "The requested wallet is not covered by this key's account."
                  }
                }
              }
            }
          },
          "409": {
            "description": "A conflict, named by code: idempotency_key_in_use (the first call with this Idempotency-Key is still running: retry it unchanged after a second) or idempotency_key_expired (its payment can no longer be returned: create a new one with a new key).",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictProblem"
                }
              }
            }
          },
          "429": {
            "description": "Over the 100 requests a minute per API key, shared by every endpoint, or more than 10 failed API keys a minute from your address: no body. Wait the number of seconds in Retry-After, then retry.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "500": {
            "description": "A problem on our side, as a problem document with the traceId to quote to MPS. Other 5xx answers can carry no body. Retry a read with backoff; retry a create or refund only with the same Idempotency-Key.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerProblem"
                }
              }
            }
          }
        },
        "callbacks": {
          "webhook": {
            "$request.body#/callbackUrl": {
              "post": {
                "summary": "Webhook",
                "description": "Posted to the callbackUrl, server to server, once the payment has been received and booked (payment.received), and when a refund of it ends: refund.refunded (paid out), refund.failed (not paid out; the amount can be refunded again) or refund.canceled (canceled before it was sent). Verify X-Mps-Signature over the raw body before acting on it. Answer 2xx once the webhook is processed or durably stored: anything else, or no answer within 10 seconds, is retried. MPS never follows a redirect: a 3xx counts as failed too. A failed delivery is retried after 1m, 5m, 30m, 2h, 6h, each counted from the previous attempt: 6 attempts in all, then it is not sent again, so reconcile by reading the payment. Delivery is at least once, so key on X-Mps-Delivery-Id. The read endpoints stay authoritative.",
                "parameters": [
                  {
                    "name": "X-Mps-Event",
                    "in": "header",
                    "description": "The event type, so you can route without parsing the body.",
                    "required": true,
                    "schema": {
                      "type": "string"
                    },
                    "example": "payment.received"
                  },
                  {
                    "name": "X-Mps-Timestamp",
                    "in": "header",
                    "description": "Unix seconds. Part of the signed content; reject one more than five minutes from your clock.",
                    "required": true,
                    "schema": {
                      "type": "string"
                    },
                    "example": "1791892800"
                  },
                  {
                    "name": "X-Mps-Delivery-Id",
                    "in": "header",
                    "description": "Identifies the webhook delivery: every retry of it carries the same value.",
                    "required": true,
                    "schema": {
                      "type": "string"
                    },
                    "example": "00000000-0000-4000-8000-000000000003"
                  },
                  {
                    "name": "X-Mps-Signature",
                    "in": "header",
                    "description": "v1= followed by the lower-case hex HMAC-SHA256 of {X-Mps-Timestamp}.{raw body} with the signing secret of your API key. During a signing secret rotation it carries two comma-separated values; accept either.",
                    "required": true,
                    "schema": {
                      "type": "string"
                    },
                    "example": "v1=82b9a79df151e0e9207ef421fe4085e0a0ca95f3047265a0b92701ad5011c326"
                  }
                ],
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "$ref": "#/components/schemas/Webhook"
                      }
                    }
                  },
                  "required": true
                },
                "responses": {
                  "2XX": {
                    "description": "Processed, or durably stored. Answer within 10 seconds."
                  },
                  "default": {
                    "description": "Any other answer, or none within 10 seconds, counts as failed and is retried."
                  }
                },
                "security": [
                  {}
                ]
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/payments/internet/{paymentReference}": {
      "get": {
        "tags": [
          "Online payments"
        ],
        "summary": "Get an online payment",
        "description": "Reports a payment's outcome from stored state. Reads count toward the 100 requests a minute; poll at most every 2 seconds. Answers 404 for a reference not found for the API key's wallet.\n\nRequires the `internet:read` scope.",
        "operationId": "payments-internet-get",
        "parameters": [
          {
            "name": "x-wallet-number",
            "in": "header",
            "description": "Only with a partner key, on every call: the wallet of the merchant this call acts for, such as BE0000000000. A test key or a merchant key acts for its own wallet and ignores it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "paymentReference",
            "in": "path",
            "description": "The paymentReference create returned, exactly as returned. An opaque string of up to 64 characters (a test payment's starts with test-): never parse it or validate it as a GUID.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "00000000-0000-4000-8000-000000000001"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponsePayloadOfInternetPaymentStatusResponse"
                }
              }
            }
          },
          "401": {
            "description": "No API key, or a wrong, malformed or revoked one: no body.",
            "headers": {
              "WWW-Authenticate": {
                "description": "Bearer error=\"invalid_token\".",
                "schema": {
                  "type": "string"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "403": {
            "description": "The key does not carry the internet:read scope: no body. (A partner key without x-wallet-number is answered 404.) x-wallet-number names a wallet the key does not cover: the body below, error invalid_request.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "error",
                    "error_description"
                  ],
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "invalid_request."
                    },
                    "error_description": {
                      "type": "string",
                      "description": "Why the wallet was refused, for a person."
                    }
                  },
                  "example": {
                    "error": "invalid_request",
                    "error_description": "The requested wallet is not covered by this key's account."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No payment with this reference for the merchant the key acts for: a typo, a reference changed on the way, another merchant's payment, or a partner key that sent no x-wallet-number. No body.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "429": {
            "description": "Over the 100 requests a minute per API key, shared by every endpoint, or more than 10 failed API keys a minute from your address: no body. Wait the number of seconds in Retry-After, then retry.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "500": {
            "description": "A problem on our side, as a problem document with the traceId to quote to MPS. Other 5xx answers can carry no body. Retry a read with backoff; retry a create or refund only with the same Idempotency-Key.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/payments/{paymentReference}/refunds/{refundId}": {
      "delete": {
        "tags": [
          "Refunds"
        ],
        "summary": "Cancel a refund",
        "description": "Cancels a refund of the payment that has not been sent yet. Every refund waits until its cancelableUntil (4 hours) before it is sent, and can be canceled until then; it then reads canceled, and its amount can be refunded again. Answers 204 when canceled (also for a refund canceled before), 409 once it can no longer be canceled (after cancelableUntil, or once decided) or while other refunds of the payment are being changed (try again), and 404 for a refund of another payment, or of another merchant's.\n\nRequires the `payments:refund` scope.",
        "operationId": "payments-refunds-cancel",
        "parameters": [
          {
            "name": "x-wallet-number",
            "in": "header",
            "description": "Only with a partner key, on every call: the wallet of the merchant this call acts for, such as BE0000000000. A test key or a merchant key acts for its own wallet and ignores it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "paymentReference",
            "in": "path",
            "description": "The paymentReference create returned, exactly as returned.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "00000000-0000-4000-8000-000000000001"
          },
          {
            "name": "refundId",
            "in": "path",
            "description": "The refundId the refund request returned.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "3f2b8c1e-6d4a-4f7e-9b21-5c8d0e7a4b19"
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "401": {
            "description": "No API key, or a wrong, malformed or revoked one: no body.",
            "headers": {
              "WWW-Authenticate": {
                "description": "Bearer error=\"invalid_token\".",
                "schema": {
                  "type": "string"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "403": {
            "description": "The key does not carry the payments:refund scope, or a partner key sent no x-wallet-number: no body. x-wallet-number names a wallet the key does not cover: the body below, error invalid_request.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "error",
                    "error_description"
                  ],
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "invalid_request."
                    },
                    "error_description": {
                      "type": "string",
                      "description": "Why the wallet was refused, for a person."
                    }
                  },
                  "example": {
                    "error": "invalid_request",
                    "error_description": "The requested wallet is not covered by this key's account."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such refund of this payment for this merchant (a refund of another payment, or of another merchant's, answers the same). No body.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "409": {
            "description": "A conflict, named by code: refund_not_cancelable (the refund was sent or decided: do not retry, read it) or refund_in_progress (other refunds of the payment are being changed: retry after a second).",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictProblem"
                }
              }
            }
          },
          "429": {
            "description": "Over the 100 requests a minute per API key, shared by every endpoint, or more than 10 failed API keys a minute from your address: no body. Wait the number of seconds in Retry-After, then retry.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "500": {
            "description": "A problem on our side, as a problem document with the traceId to quote to MPS. Other 5xx answers can carry no body. Retry a read with backoff; retry a create or refund only with the same Idempotency-Key.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "get": {
        "tags": [
          "Refunds"
        ],
        "summary": "Get a refund",
        "description": "Reads one refund of the payment, by the id returned when it was requested. Answers 404 for a refund of another payment, or of another merchant's.\n\nRequires the `payments:refund` scope.",
        "operationId": "payments-refunds-get",
        "parameters": [
          {
            "name": "x-wallet-number",
            "in": "header",
            "description": "Only with a partner key, on every call: the wallet of the merchant this call acts for, such as BE0000000000. A test key or a merchant key acts for its own wallet and ignores it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "paymentReference",
            "in": "path",
            "description": "The paymentReference create returned, exactly as returned.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "00000000-0000-4000-8000-000000000001"
          },
          {
            "name": "refundId",
            "in": "path",
            "description": "The refundId the refund request returned.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "3f2b8c1e-6d4a-4f7e-9b21-5c8d0e7a4b19"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponsePayloadOfRefundResponse"
                }
              }
            }
          },
          "401": {
            "description": "No API key, or a wrong, malformed or revoked one: no body.",
            "headers": {
              "WWW-Authenticate": {
                "description": "Bearer error=\"invalid_token\".",
                "schema": {
                  "type": "string"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "403": {
            "description": "The key does not carry the payments:refund scope, or a partner key sent no x-wallet-number: no body. x-wallet-number names a wallet the key does not cover: the body below, error invalid_request.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "error",
                    "error_description"
                  ],
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "invalid_request."
                    },
                    "error_description": {
                      "type": "string",
                      "description": "Why the wallet was refused, for a person."
                    }
                  },
                  "example": {
                    "error": "invalid_request",
                    "error_description": "The requested wallet is not covered by this key's account."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such refund of this payment for this merchant (a refund of another payment, or of another merchant's, answers the same). No body.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "429": {
            "description": "Over the 100 requests a minute per API key, shared by every endpoint, or more than 10 failed API keys a minute from your address: no body. Wait the number of seconds in Retry-After, then retry.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "500": {
            "description": "A problem on our side, as a problem document with the traceId to quote to MPS. Other 5xx answers can carry no body. Retry a read with backoff; retry a create or refund only with the same Idempotency-Key.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/payments/{paymentReference}/refunds": {
      "post": {
        "tags": [
          "Refunds"
        ],
        "summary": "Refund a payment",
        "description": "Refunds the payment in full or in part, as many times as needed until the paid amount is used up. Omit the amount to refund everything still refundable. Send an Idempotency-Key header so a retry returns the first refund instead of making a second. Answers 404 rather than 403 for a payment belonging to another merchant, and 409 for a payment not yet executed. A refund is answered pending and waits 4 hours (cancelableUntil) before it is sent; it can be canceled until then. In rare cases the 201 already reads failed, with failureReason unknown: it could not be scheduled, nothing is refunded, and the amount can be refunded again with a new Idempotency-Key. Decide on status.\n\nRequires the `payments:refund` scope.",
        "operationId": "payments-refunds-create",
        "parameters": [
          {
            "name": "x-wallet-number",
            "in": "header",
            "description": "Only with a partner key, on every call: the wallet of the merchant this call acts for, such as BE0000000000. A test key or a merchant key acts for its own wallet and ignores it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "paymentReference",
            "in": "path",
            "description": "The paymentReference create returned, exactly as returned.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "00000000-0000-4000-8000-000000000001"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "One value per refund you intend. Kept with the refund, per payment, and never expires: the same key on the same payment always returns that refund. Letters, digits and punctuation, no spaces.",
            "schema": {
              "maxLength": 255,
              "pattern": "^[!-~]+$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefundPaymentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "Location": {
                "description": "Where the refund is read: /api/payments/{paymentReference}/refunds/{refundId}.",
                "schema": {
                  "type": "string"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponsePayloadOfRefundResponse"
                },
                "examples": {
                  "pending": {
                    "summary": "Waiting its 4 hours, cancelable until cancelableUntil",
                    "value": {
                      "data": {
                        "refundId": "00000000-0000-4000-8000-000000000004",
                        "paymentReference": "00000000-0000-4000-8000-000000000001",
                        "status": "pending",
                        "amount": 500,
                        "currency": "EUR",
                        "reason": "requested_by_customer",
                        "failureReason": null,
                        "cancelableUntil": "2026-10-22T13:14:03.0000000+00:00",
                        "createdAt": "2026-10-22T09:14:03.0000000+00:00"
                      }
                    }
                  },
                  "failed": {
                    "summary": "Could not be scheduled: nothing is refunded, the amount is free again",
                    "value": {
                      "data": {
                        "refundId": "00000000-0000-4000-8000-000000000004",
                        "paymentReference": "00000000-0000-4000-8000-000000000001",
                        "status": "failed",
                        "amount": 500,
                        "currency": "EUR",
                        "reason": "requested_by_customer",
                        "failureReason": "unknown",
                        "cancelableUntil": null,
                        "createdAt": "2026-10-22T09:14:03.0000000+00:00"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "No API key, or a wrong, malformed or revoked one: no body.",
            "headers": {
              "WWW-Authenticate": {
                "description": "Bearer error=\"invalid_token\".",
                "schema": {
                  "type": "string"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "403": {
            "description": "The key does not carry the payments:refund scope, or a partner key sent no x-wallet-number: no body. x-wallet-number names a wallet the key does not cover: the body below, error invalid_request.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "error",
                    "error_description"
                  ],
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "invalid_request."
                    },
                    "error_description": {
                      "type": "string",
                      "description": "Why the wallet was refused, for a person."
                    }
                  },
                  "example": {
                    "error": "invalid_request",
                    "error_description": "The requested wallet is not covered by this key's account."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such payment for this merchant (another merchant's payment answers the same), or a test key on a live payment or the reverse. No body.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "409": {
            "description": "A conflict, named by code: idempotency_key_in_use (the first request with this Idempotency-Key is still running: retry it unchanged after a second), refund_in_progress (another refund of the payment is being changed: retry after a second) or payment_not_refundable (the payment is not executed: do not retry).",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictProblem"
                }
              }
            }
          },
          "429": {
            "description": "Over the 100 requests a minute per API key, shared by every endpoint, or more than 10 failed API keys a minute from your address: no body. Wait the number of seconds in Retry-After, then retry.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "500": {
            "description": "A problem on our side, as a problem document with the traceId to quote to MPS. Other 5xx answers can carry no body. Retry a read with backoff; retry a create or refund only with the same Idempotency-Key.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "get": {
        "tags": [
          "Refunds"
        ],
        "summary": "List a payment's refunds",
        "description": "Lists the refunds of the payment, oldest first. Answers 404 for a payment belonging to another merchant.\n\nRequires the `payments:refund` scope.",
        "operationId": "payments-refunds-list",
        "parameters": [
          {
            "name": "x-wallet-number",
            "in": "header",
            "description": "Only with a partner key, on every call: the wallet of the merchant this call acts for, such as BE0000000000. A test key or a merchant key acts for its own wallet and ignores it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "paymentReference",
            "in": "path",
            "description": "The paymentReference create returned, exactly as returned.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "00000000-0000-4000-8000-000000000001"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponsePayloadOfIReadOnlyListOfRefundResponse"
                }
              }
            }
          },
          "401": {
            "description": "No API key, or a wrong, malformed or revoked one: no body.",
            "headers": {
              "WWW-Authenticate": {
                "description": "Bearer error=\"invalid_token\".",
                "schema": {
                  "type": "string"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "403": {
            "description": "The key does not carry the payments:refund scope, or a partner key sent no x-wallet-number: no body. x-wallet-number names a wallet the key does not cover: the body below, error invalid_request.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "error",
                    "error_description"
                  ],
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "invalid_request."
                    },
                    "error_description": {
                      "type": "string",
                      "description": "Why the wallet was refused, for a person."
                    }
                  },
                  "example": {
                    "error": "invalid_request",
                    "error_description": "The requested wallet is not covered by this key's account."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such payment for this merchant (another merchant's payment answers the same), or a test key on a live payment or the reverse. No body.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "429": {
            "description": "Over the 100 requests a minute per API key, shared by every endpoint, or more than 10 failed API keys a minute from your address: no body. Wait the number of seconds in Retry-After, then retry.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "500": {
            "description": "A problem on our side, as a problem document with the traceId to quote to MPS. Other 5xx answers can carry no body. Retry a read with backoff; retry a create or refund only with the same Idempotency-Key.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/payments/{paymentReference}/timeline": {
      "get": {
        "tags": [
          "Online payments"
        ],
        "summary": "Get a payment's timeline",
        "description": "Returns one payment's current state and every step it went through, oldest first. Answers 404 for a reference not found for the key's wallet, or of the other mode (a test payment read with a live key, and the reverse).\n\nRequires the `internet:read` scope.",
        "operationId": "payments-timeline-get",
        "parameters": [
          {
            "name": "x-wallet-number",
            "in": "header",
            "description": "Only with a partner key, on every call: the wallet of the merchant this call acts for, such as BE0000000000. A test key or a merchant key acts for its own wallet and ignores it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "paymentReference",
            "in": "path",
            "description": "The paymentReference create returned, exactly as returned.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "00000000-0000-4000-8000-000000000001"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponsePayloadOfPaymentTimelineDetailResponse"
                }
              }
            }
          },
          "401": {
            "description": "No API key, or a wrong, malformed or revoked one: no body.",
            "headers": {
              "WWW-Authenticate": {
                "description": "Bearer error=\"invalid_token\".",
                "schema": {
                  "type": "string"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "403": {
            "description": "The key does not carry the internet:read scope, or a partner key sent no x-wallet-number: no body. x-wallet-number names a wallet the key does not cover: the body below, error invalid_request.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "error",
                    "error_description"
                  ],
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "invalid_request."
                    },
                    "error_description": {
                      "type": "string",
                      "description": "Why the wallet was refused, for a person."
                    }
                  },
                  "example": {
                    "error": "invalid_request",
                    "error_description": "The requested wallet is not covered by this key's account."
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "429": {
            "description": "Over the 100 requests a minute per API key, shared by every endpoint, or more than 10 failed API keys a minute from your address: no body. Wait the number of seconds in Retry-After, then retry.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/payments/timeline": {
      "get": {
        "tags": [
          "Online payments"
        ],
        "summary": "List payment timeline",
        "description": "Lists the merchant's payments, newest first, one page at a time, each with its current state and no steps. Pass the continuationToken from a page, unchanged, to read the next; it is left out on the last page. Any other value is a 400 naming continuationToken. The timeline can trail real time by a few seconds, so it is not the source of truth for a payment's status: read the payment for that.\n\nRequires the `internet:read` scope.",
        "operationId": "payments-timeline-list",
        "parameters": [
          {
            "name": "x-wallet-number",
            "in": "header",
            "description": "Only with a partner key, on every call: the wallet of the merchant this call acts for, such as BE0000000000. A test key or a merchant key acts for its own wallet and ignores it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "continuationToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponsePayloadOfPaymentTimelinePageResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "No API key, or a wrong, malformed or revoked one: no body.",
            "headers": {
              "WWW-Authenticate": {
                "description": "Bearer error=\"invalid_token\".",
                "schema": {
                  "type": "string"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "403": {
            "description": "The key does not carry the internet:read scope, or a partner key sent no x-wallet-number: no body. x-wallet-number names a wallet the key does not cover: the body below, error invalid_request.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "error",
                    "error_description"
                  ],
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "invalid_request."
                    },
                    "error_description": {
                      "type": "string",
                      "description": "Why the wallet was refused, for a person."
                    }
                  },
                  "example": {
                    "error": "invalid_request",
                    "error_description": "The requested wallet is not covered by this key's account."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Over the 100 requests a minute per API key, shared by every endpoint, or more than 10 failed API keys a minute from your address: no body. Wait the number of seconds in Retry-After, then retry.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/partners/registration-links": {
      "post": {
        "tags": [
          "Registration links"
        ],
        "summary": "Create a registration link",
        "description": "Makes a personal registration link for one company and one e-mail address: it sends that company to the MPS signup. The link's url is the address the company opens to sign up: send it to the company. The company is looked up in the register when the register answers, and the link is made either way. A return to the return address is not proof that the company signed up: read the link's status.\n\nRequires the `registration-links:manage` scope.",
        "operationId": "registration-links-create",
        "parameters": [
          {
            "name": "x-wallet-number",
            "in": "header",
            "description": "Only with a partner key, on every call: the wallet of the merchant this call acts for, such as BE0000000000. A test key or a merchant key acts for its own wallet and ignores it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePartnerRegistrationLinkRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrationLinkData"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "No API key, or a wrong, malformed or revoked one: no body.",
            "headers": {
              "WWW-Authenticate": {
                "description": "Bearer error=\"invalid_token\".",
                "schema": {
                  "type": "string"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "403": {
            "description": "The key does not carry the registration-links:manage scope, or its partner is not live: an active agent with the online channel. No body. Test keys never hold the scope.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "429": {
            "description": "Over the 100 requests a minute per API key, shared by every endpoint, or more than 10 failed API keys a minute from your address: no body. Wait the number of seconds in Retry-After, then retry.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "get": {
        "tags": [
          "Registration links"
        ],
        "summary": "List registration links",
        "description": "Lists the partner's personal registration links, newest first. Filter with status: open, used, completed, expired or revoked. Reads count toward the 100 requests a minute.\n\nRequires the `registration-links:manage` scope.",
        "operationId": "registration-links-list",
        "parameters": [
          {
            "name": "x-wallet-number",
            "in": "header",
            "description": "Only with a partner key, on every call: the wallet of the merchant this call acts for, such as BE0000000000. A test key or a merchant key acts for its own wallet and ignores it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrationLinkListData"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "No API key, or a wrong, malformed or revoked one: no body.",
            "headers": {
              "WWW-Authenticate": {
                "description": "Bearer error=\"invalid_token\".",
                "schema": {
                  "type": "string"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "403": {
            "description": "The key does not carry the registration-links:manage scope, or its partner is not live: an active agent with the online channel. No body. Test keys never hold the scope.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "429": {
            "description": "Over the 100 requests a minute per API key, shared by every endpoint, or more than 10 failed API keys a minute from your address: no body. Wait the number of seconds in Retry-After, then retry.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/partners/registration-links/{id}": {
      "get": {
        "tags": [
          "Registration links"
        ],
        "summary": "Get a registration link",
        "description": "Reads one personal registration link of the partner. Answers 404 for another partner's link, the same answer as for a link that does not exist.\n\nRequires the `registration-links:manage` scope.",
        "operationId": "registration-links-get",
        "parameters": [
          {
            "name": "x-wallet-number",
            "in": "header",
            "description": "Only with a partner key, on every call: the wallet of the merchant this call acts for, such as BE0000000000. A test key or a merchant key acts for its own wallet and ignores it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The link's id, exactly as create returned it.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrationLinkData"
                }
              }
            }
          },
          "401": {
            "description": "No API key, or a wrong, malformed or revoked one: no body.",
            "headers": {
              "WWW-Authenticate": {
                "description": "Bearer error=\"invalid_token\".",
                "schema": {
                  "type": "string"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "403": {
            "description": "The key does not carry the registration-links:manage scope, or its partner is not live: an active agent with the online channel. No body. Test keys never hold the scope.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "404": {
            "description": "Not Found",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "429": {
            "description": "Over the 100 requests a minute per API key, shared by every endpoint, or more than 10 failed API keys a minute from your address: no body. Wait the number of seconds in Retry-After, then retry.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Registration links"
        ],
        "summary": "Revoke a registration link",
        "description": "Revokes a personal registration link nobody has signed up with yet. Answers 409 once somebody has signed up with it. Answers 404 for another partner's link.\n\nRequires the `registration-links:manage` scope.",
        "operationId": "registration-links-revoke",
        "parameters": [
          {
            "name": "x-wallet-number",
            "in": "header",
            "description": "Only with a partner key, on every call: the wallet of the merchant this call acts for, such as BE0000000000. A test key or a merchant key acts for its own wallet and ignores it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The link's id, exactly as create returned it.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b"
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "401": {
            "description": "No API key, or a wrong, malformed or revoked one: no body.",
            "headers": {
              "WWW-Authenticate": {
                "description": "Bearer error=\"invalid_token\".",
                "schema": {
                  "type": "string"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "403": {
            "description": "The key does not carry the registration-links:manage scope, or its partner is not live: an active agent with the online channel. No body. Test keys never hold the scope.",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "404": {
            "description": "Not Found",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "409": {
            "description": "Conflict",
            "headers": {
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          },
          "429": {
            "description": "Over the 100 requests a minute per API key, shared by every endpoint, or more than 10 failed API keys a minute from your address: no body. Wait the number of seconds in Retry-After, then retry.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              },
              "traceparent": {
                "description": "The call's W3C trace: 00-{trace id}-{span id}-{flags}. Sent on every answer, a success or a refusal without a body included. Quote it when you contact MPS about the call; its trace id is the one in a problem's traceId.",
                "schema": {
                  "type": "string"
                },
                "example": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01"
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ConflictProblem": {
        "required": [
          "code",
          "traceId",
          "documentationUrl"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "A URI identifying the problem type.",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "A short, human-readable summary.",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "description": "The HTTP status code, 409.",
            "format": "int32"
          },
          "detail": {
            "type": "string",
            "description": "An explanation for a person. Its wording may change: decide on code, never on this text.",
            "nullable": true
          },
          "code": {
            "type": "string",
            "description": "Stable and machine-readable: decide whether to retry on it. Currently idempotency_key_in_use (retry), refund_in_progress (retry), idempotency_key_expired (do not retry), payment_not_refundable (do not retry) or refund_not_cancelable (do not retry). New codes may be added: do not retry one you do not know."
          },
          "traceId": {
            "type": "string",
            "description": "Identifies this call in MPS's logs. Quote it when you contact MPS about it."
          },
          "documentationUrl": {
            "type": "string",
            "description": "The section of the MPS documentation that explains this conflict and how to resolve it.",
            "format": "uri"
          }
        },
        "example": {
          "type": "https://tools.ietf.org/html/rfc9110#section-15.5.10",
          "title": "Conflict",
          "status": 409,
          "detail": "A payment with this Idempotency-Key is still being created; retry shortly",
          "code": "idempotency_key_in_use",
          "traceId": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01",
          "documentationUrl": "https://docs.mps-emi.com/errors-and-rate-limits#conflicts"
        }
      },
      "ServerProblem": {
        "required": [
          "traceId",
          "documentationUrl"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "A URI identifying the problem type.",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "A short, human-readable summary.",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "description": "The HTTP status code, 500.",
            "format": "int32"
          },
          "detail": {
            "type": "string",
            "description": "An explanation for a person. It never carries internal or provider details, and its wording may change.",
            "nullable": true
          },
          "traceId": {
            "type": "string",
            "description": "Identifies this call in MPS's logs. Quote it when you contact MPS about it."
          },
          "documentationUrl": {
            "type": "string",
            "description": "The section of the MPS documentation that explains server errors and how to retry.",
            "format": "uri"
          }
        },
        "example": {
          "type": "https://tools.ietf.org/html/rfc9110#section-15.6.1",
          "title": "An error occurred while processing your request.",
          "status": 500,
          "traceId": "00-a27c57cb2b3e4f5d8c9a0b1c2d3e4f50-1a2b3c4d5e6f7a8b-01",
          "documentationUrl": "https://docs.mps-emi.com/errors-and-rate-limits#server-errors"
        }
      },
      "ResponsePayloadOfApiPaymentLinkResponse": {
        "required": [
          "data"
        ],
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ApiPaymentLinkResponse"
          }
        }
      },
      "ApiPaymentLinkResponse": {
        "required": [
          "id",
          "url",
          "amount",
          "reference",
          "state",
          "test",
          "createdAt",
          "expiresAt",
          "paidAt",
          "canceledAt",
          "paymentReference",
          "payments",
          "locale"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The link's identifier. An opaque string: never parse it."
          },
          "url": {
            "type": "string",
            "description": "The address to send the shopper to. It opens the checkout."
          },
          "amount": {
            "type": "integer",
            "description": "The amount in euro cents.",
            "format": "int64"
          },
          "reference": {
            "type": "string",
            "description": "Your reference, as you sent it."
          },
          "state": {
            "type": "string",
            "description": "open, paid, canceled or expired. Paid is final."
          },
          "test": {
            "type": "boolean",
            "description": "True for a test link, made with a test key."
          },
          "createdAt": {
            "type": "string",
            "description": "When the link was made.",
            "format": "date-time"
          },
          "expiresAt": {
            "type": "string",
            "description": "When the link stops opening payments.",
            "format": "date-time"
          },
          "paidAt": {
            "type": "string",
            "description": "When the link was paid, or null.",
            "format": "date-time",
            "nullable": true
          },
          "canceledAt": {
            "type": "string",
            "description": "When the link was canceled, or null.",
            "format": "date-time",
            "nullable": true
          },
          "paymentReference": {
            "type": "string",
            "description": "The payment the link was paid by, or null while it is not paid.",
            "nullable": true
          },
          "payments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentLinkPaymentResponse"
            },
            "description": "Every payment the link opened, oldest first."
          },
          "locale": {
            "type": "string",
            "description": "The language the link page opens in, or null for the shopper's browser's.",
            "nullable": true
          }
        },
        "example": {
          "id": "k3Qz9aVbN2xR7wYc1dFgHw",
          "url": "https://pay.mps-emi.com/link/k3Qz9aVbN2xR7wYc1dFgHw",
          "amount": 1995,
          "reference": "INV-42",
          "state": "open",
          "test": false,
          "createdAt": "2026-11-18T09:14:03.0000000+00:00",
          "expiresAt": "2026-11-28T09:14:03.0000000+00:00",
          "paidAt": null,
          "canceledAt": null,
          "paymentReference": null,
          "payments": [],
          "locale": "nl"
        }
      },
      "PaymentLinkPaymentResponse": {
        "required": [
          "paymentReference",
          "state",
          "createdAt"
        ],
        "type": "object",
        "properties": {
          "paymentReference": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "CreateApiPaymentLinkRequest": {
        "type": "object",
        "properties": {
          "amount": {
            "maximum": 5000000,
            "minimum": 1,
            "type": "integer",
            "description": "The amount in euro cents: 1 to 5000000. The shopper pays exactly this amount, once.",
            "format": "int64"
          },
          "reference": {
            "maxLength": 64,
            "type": "string",
            "description": "Your reference for the payment, shown to the shopper. Letters A-Z, digits, spaces and . _ : / # + -; up to 64 characters.",
            "nullable": true
          },
          "expiresInDays": {
            "maximum": 90,
            "minimum": 1,
            "type": "integer",
            "description": "How many days the link stays open, from 1 to 90. Defaults to 10.",
            "format": "int32",
            "nullable": true
          },
          "locale": {
            "type": "string",
            "description": "The language of the link page and the checkout: en, nl or fr. Without it, the shopper's browser decides.",
            "nullable": true
          }
        },
        "example": {
          "amount": 1995,
          "reference": "INV-42",
          "expiresInDays": 10,
          "locale": "nl"
        }
      },
      "HttpValidationProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      },
      "ResponsePayloadOfIReadOnlyListOfApiPaymentLinkResponse": {
        "required": [
          "data"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiPaymentLinkResponse"
            }
          }
        }
      },
      "CreateInternetPaymentRequest": {
        "required": [
          "amount",
          "successUrl",
          "failureUrl"
        ],
        "type": "object",
        "properties": {
          "amount": {
            "maximum": 5000000,
            "minimum": 1,
            "type": "integer",
            "description": "Amount to collect, in cents, as a JSON integer. 1995 means EUR 19.95. At least 1 and at most 5000000 (EUR 50,000).",
            "format": "int64"
          },
          "reference": {
            "maxLength": 64,
            "pattern": "^[A-Za-z0-9 ._:/#+-]*$",
            "type": "string",
            "description": "Your own order reference, shown to the shopper and echoed back. At most 64 characters: letters A-Z, digits, spaces and . _ : / # + -. Never required to be unique, and never a lookup key.",
            "nullable": true
          },
          "successUrl": {
            "type": "string",
            "description": "Absolute HTTPS URL the shopper returns to after a successful payment. http:// is accepted only on a loopback host (localhost), for local development.",
            "format": "uri"
          },
          "failureUrl": {
            "type": "string",
            "description": "Absolute HTTPS URL the shopper returns to after a failed or cancelled payment. http:// is accepted only on a loopback host (localhost).",
            "format": "uri"
          },
          "cancelUrl": {
            "type": "string",
            "description": "Absolute HTTPS URL the shopper goes to when they choose to leave the checkout without paying, such as your basket. Optional: without it the way back is failureUrl. http:// is accepted only on a loopback host (localhost).",
            "format": "uri",
            "nullable": true
          },
          "callbackUrl": {
            "maxLength": 2048,
            "type": "string",
            "description": "Absolute HTTPS URL MPS posts this payment's webhooks to: payment.received once the payment is received, and refund.refunded, refund.failed or refund.canceled when a refund of it ends. Signed; see the webhook documentation. https only, on a publicly routable host, with no user name or password in it; a private or loopback address is refused.",
            "format": "uri",
            "nullable": true
          },
          "locale": {
            "pattern": "^([Ee][Nn]|[Nn][Ll]|[Ff][Rr])(-[A-Za-z0-9]{1,8})*$",
            "type": "string",
            "description": "Language the checkout opens in: en, nl or fr. A language tag with a region, such as nl-BE, is accepted and stored as its language (nl). Optional: without it, the checkout follows the language of the shopper's browser, and English when the browser asks for none of these.",
            "nullable": true
          }
        },
        "example": {
          "amount": 1995,
          "reference": "order-1234",
          "successUrl": "https://example.test/paid",
          "failureUrl": "https://example.test/failed",
          "callbackUrl": "https://example.test/payment-received"
        }
      },
      "ResponsePayloadOfCreateInternetPaymentResponse": {
        "required": [
          "data"
        ],
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CreateInternetPaymentResponse"
          }
        }
      },
      "CreateInternetPaymentResponse": {
        "required": [
          "paymentReference",
          "checkoutUrl"
        ],
        "type": "object",
        "properties": {
          "paymentReference": {
            "type": "string",
            "description": "MPS payment reference: the only key the read accepts. Opaque: store it exactly as returned, allow up to 64 characters, and never parse it or validate it as a GUID (a test payment's starts with test-). A retry of create with the same Idempotency-Key and body, within 24 hours, returns this same reference."
          },
          "checkoutUrl": {
            "type": "string",
            "description": "Send the shopper here to pay. Carries the session's security GUID and payment reference, so treat the whole URL as confidential: anyone holding it can pay this payment."
          }
        },
        "example": {
          "paymentReference": "00000000-0000-4000-8000-000000000001",
          "checkoutUrl": "https://pay.mps-emi.com/00000000-0000-4000-8000-000000000001"
        }
      },
      "ResponsePayloadOfInternetPaymentStatusResponse": {
        "required": [
          "data"
        ],
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/InternetPaymentStatusResponse"
          }
        }
      },
      "InternetPaymentStatusResponse": {
        "required": [
          "paymentReference",
          "state",
          "amount",
          "currency",
          "amountRefunded",
          "amountRemaining",
          "reference"
        ],
        "type": "object",
        "properties": {
          "paymentReference": {
            "type": "string",
            "description": "MPS payment reference, as returned by create. Opaque: store it exactly as returned, allow up to 64 characters, and never parse it or validate it as a GUID (a test payment's starts with test-)."
          },
          "state": {
            "type": "string",
            "description": "Currently one of: pending, executed, failed, abandoned. New states may be added: treat one you do not recognise as pending, never as paid."
          },
          "amount": {
            "type": "integer",
            "description": "Amount in cents. Once executed this is the amount actually approved, which on a partial approval is less than requested — the only signal that a shortfall occurred.",
            "format": "int64"
          },
          "currency": {
            "type": "string",
            "description": "ISO currency code the amount is expressed in."
          },
          "amountRefunded": {
            "type": "integer",
            "description": "Amount refunded so far, in cents.",
            "format": "int64"
          },
          "amountRemaining": {
            "type": "integer",
            "description": "Amount that can still be refunded, in cents: what was paid less every refund that is refunded or still pending. Zero until the payment is executed.",
            "format": "int64"
          },
          "reference": {
            "type": "string",
            "description": "Your own order reference, echoed back verbatim.",
            "nullable": true
          }
        },
        "example": {
          "paymentReference": "00000000-0000-4000-8000-000000000001",
          "state": "executed",
          "amount": 1995,
          "currency": "EUR",
          "amountRefunded": 500,
          "amountRemaining": 1495,
          "reference": "order-1234"
        }
      },
      "ResponsePayloadOfRefundResponse": {
        "required": [
          "data"
        ],
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/RefundResponse"
          }
        }
      },
      "RefundResponse": {
        "required": [
          "refundId",
          "paymentReference",
          "status",
          "amount",
          "currency",
          "createdAt",
          "reason",
          "failureReason",
          "cancelableUntil"
        ],
        "type": "object",
        "properties": {
          "refundId": {
            "type": "string",
            "description": "MPS refund id. Opaque: store it exactly as returned and never parse it."
          },
          "paymentReference": {
            "type": "string",
            "description": "MPS payment reference of the payment refunded. Opaque: store it exactly as returned, allow up to 64 characters, and never parse it or validate it as a GUID (a test payment's starts with test-)."
          },
          "status": {
            "type": "string",
            "description": "One of: refunded (paid back), failed (nothing was refunded), canceled (canceled by the merchant before it was sent; nothing was refunded), pending (not decided yet). A newly requested refund normally starts pending and can be canceled until cancelableUntil. In rare cases the initial 201 response already has status failed with failureReason unknown, because the refund could not be scheduled. Decide on status, never on the HTTP status code alone."
          },
          "amount": {
            "type": "integer",
            "description": "Amount refunded, in cents.",
            "format": "int64"
          },
          "currency": {
            "type": "string",
            "description": "ISO currency code the amount is expressed in."
          },
          "reason": {
            "type": "string",
            "description": "The reason given, if any.",
            "nullable": true
          },
          "failureReason": {
            "type": "string",
            "description": "Set only when status is failed. One of: declined, unknown.",
            "nullable": true
          },
          "cancelableUntil": {
            "type": "string",
            "description": "Set while a pending refund can still be canceled (DELETE): a refund waits until then before it is sent, and cannot be canceled after (UTC).",
            "format": "date-time",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "description": "When the refund was requested (UTC).",
            "format": "date-time"
          }
        },
        "example": {
          "refundId": "00000000-0000-4000-8000-000000000004",
          "paymentReference": "00000000-0000-4000-8000-000000000001",
          "status": "pending",
          "amount": 500,
          "currency": "EUR",
          "reason": "requested_by_customer",
          "failureReason": null,
          "cancelableUntil": "2026-10-22T13:14:03.0000000+00:00",
          "createdAt": "2026-10-22T09:14:03.0000000+00:00"
        }
      },
      "RefundPaymentRequest": {
        "type": "object",
        "properties": {
          "amount": {
            "minimum": 1,
            "type": "integer",
            "description": "Amount to refund in cents, as a JSON integer. Omit to refund everything still refundable.",
            "format": "int64",
            "nullable": true
          },
          "reason": {
            "enum": [
              "duplicate",
              "fraudulent",
              "requested_by_customer",
              null
            ],
            "type": "string",
            "description": "Optional. One of: duplicate, fraudulent, requested_by_customer.",
            "nullable": true
          }
        },
        "example": {
          "amount": 500,
          "reason": "requested_by_customer"
        }
      },
      "ResponsePayloadOfIReadOnlyListOfRefundResponse": {
        "required": [
          "data"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RefundResponse"
            }
          }
        }
      },
      "ResponsePayloadOfPaymentTimelineDetailResponse": {
        "required": [
          "data"
        ],
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/PaymentTimelineDetailResponse"
          }
        }
      },
      "PaymentTimelineDetailResponse": {
        "required": [
          "payment",
          "events"
        ],
        "type": "object",
        "properties": {
          "payment": {
            "$ref": "#/components/schemas/PaymentTimelineSummaryResponse2"
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentTimelineEventResponse"
            },
            "description": "Every step of the payment, in the order they happened."
          }
        },
        "example": {
          "payment": {
            "paymentReference": "00000000-0000-4000-8000-000000000001",
            "reference": "order-1234",
            "status": "executed",
            "reasonCode": null,
            "amount": 1995,
            "currency": "EUR",
            "method": "card",
            "createdAt": "2026-10-30T09:00:00.0000000+00:00",
            "updatedAt": "2026-10-30T09:00:41.0000000+00:00"
          },
          "events": [
            {
              "type": "PaymentCreated",
              "occurredAt": "2026-10-30T09:00:00.0000000+00:00",
              "reasonCode": null,
              "amount": 1995,
              "currency": "EUR",
              "method": null,
              "cardBrand": null,
              "webhookHttpStatus": null,
              "webhookDurationMs": null,
              "webhookAttempt": null,
              "refundId": null
            },
            {
              "type": "PaymentAuthorised",
              "occurredAt": "2026-10-30T09:00:41.0000000+00:00",
              "reasonCode": null,
              "amount": 1995,
              "currency": "EUR",
              "method": "card",
              "cardBrand": "visa",
              "webhookHttpStatus": null,
              "webhookDurationMs": null,
              "webhookAttempt": null,
              "refundId": null
            }
          ]
        }
      },
      "PaymentTimelineSummaryResponse2": {
        "required": [
          "paymentReference",
          "reference",
          "status",
          "reasonCode",
          "amount",
          "currency",
          "method",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "paymentReference": {
            "type": "string",
            "description": "MPS payment reference, as returned by create."
          },
          "reference": {
            "type": "string",
            "description": "Your own order reference, as sent on create.",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "One of: pending, executed, failed, abandoned. The same words the payment status read uses."
          },
          "reasonCode": {
            "type": "string",
            "description": "Why the payment, or its last attempt, did not succeed. One of a closed list of public reasons, or absent.",
            "nullable": true
          },
          "amount": {
            "type": "integer",
            "description": "Amount in cents, as created.",
            "format": "int64",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "description": "ISO currency code.",
            "nullable": true
          },
          "method": {
            "type": "string",
            "description": "How the shopper paid: card, or bank_transfer for a payment the shopper authorised at their bank. Absent until they pay.",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "description": "When the payment was created. Absent only for a payment whose creation step has not yet arrived.",
            "format": "date-time",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "description": "When anything last happened to the payment.",
            "format": "date-time"
          }
        },
        "description": "The payment's current state."
      },
      "PaymentTimelineEventResponse": {
        "required": [
          "type",
          "occurredAt",
          "reasonCode",
          "amount",
          "currency",
          "method",
          "cardBrand",
          "webhookHttpStatus",
          "webhookDurationMs",
          "webhookAttempt",
          "refundId"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "One of the payment's steps: PaymentCreated, CheckoutOpened (the shopper opened the checkout, recorded each time), CardSubmitted, RedirectedToBank, ScaStarted, ScaCompleted, PaymentAttemptFailed, PaymentAuthorised, PaymentFailed, PaymentAbandoned, WebhookAttempted, and of its refunds: RefundRequested, RefundCanceled (canceled within its cancel window, before it was sent), RefundAwaitingFunds (a bank transfer is paid back only once it has reached MPS), FundsReceived, Refunded, RefundFailed."
          },
          "occurredAt": {
            "type": "string",
            "description": "When the step happened, to the second. Events on a payment can arrive a few seconds after they happened, so read the order from this field, not from arrival.",
            "format": "date-time"
          },
          "reasonCode": {
            "type": "string",
            "description": "Why the step did not succeed, when it did not. One of a closed list, or absent.",
            "nullable": true
          },
          "amount": {
            "type": "integer",
            "description": "Amount in cents, where the step carries one.",
            "format": "int64",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "description": "ISO currency code, where the step carries an amount.",
            "nullable": true
          },
          "method": {
            "type": "string",
            "description": "How the shopper paid, where known: card or bank_transfer.",
            "nullable": true
          },
          "cardBrand": {
            "type": "string",
            "description": "The card scheme, for a card step (visa, mastercard, bancontact, ...). Never any digit of the card.",
            "nullable": true
          },
          "webhookHttpStatus": {
            "type": "integer",
            "description": "The HTTP status your callbackUrl answered the webhook with, on a WebhookAttempted step.",
            "format": "int32",
            "nullable": true
          },
          "webhookDurationMs": {
            "type": "integer",
            "description": "How long your server took to answer the webhook, in milliseconds, on a WebhookAttempted step.",
            "format": "int64",
            "nullable": true
          },
          "webhookAttempt": {
            "type": "integer",
            "description": "Which delivery attempt of the webhook this was, starting at 1.",
            "format": "int32",
            "nullable": true
          },
          "refundId": {
            "type": "string",
            "description": "The refund a refund step belongs to: the refundId the refund request returned.",
            "nullable": true
          }
        }
      },
      "ResponsePayloadOfPaymentTimelinePageResponse": {
        "required": [
          "data"
        ],
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/PaymentTimelinePageResponse"
          }
        }
      },
      "PaymentTimelinePageResponse": {
        "required": [
          "items",
          "continuationToken"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentTimelineSummaryResponse"
            },
            "description": "The payments on this page, newest first."
          },
          "continuationToken": {
            "type": "string",
            "description": "Opaque: pass it back unchanged as continuationToken for the next page. Absent when this is the last page.",
            "nullable": true
          }
        },
        "example": {
          "items": [
            {
              "paymentReference": "00000000-0000-4000-8000-000000000001",
              "reference": "order-1234",
              "status": "executed",
              "reasonCode": null,
              "amount": 1995,
              "currency": "EUR",
              "method": "card",
              "createdAt": "2026-10-30T09:00:00.0000000+00:00",
              "updatedAt": "2026-10-30T09:00:41.0000000+00:00"
            }
          ],
          "continuationToken": "W3sidG9rZW4iOiIxIn1d"
        }
      },
      "PaymentTimelineSummaryResponse": {
        "required": [
          "paymentReference",
          "reference",
          "status",
          "reasonCode",
          "amount",
          "currency",
          "method",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "paymentReference": {
            "type": "string",
            "description": "MPS payment reference, as returned by create."
          },
          "reference": {
            "type": "string",
            "description": "Your own order reference, as sent on create.",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "One of: pending, executed, failed, abandoned. The same words the payment status read uses."
          },
          "reasonCode": {
            "type": "string",
            "description": "Why the payment, or its last attempt, did not succeed. One of a closed list of public reasons, or absent.",
            "nullable": true
          },
          "amount": {
            "type": "integer",
            "description": "Amount in cents, as created.",
            "format": "int64",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "description": "ISO currency code.",
            "nullable": true
          },
          "method": {
            "type": "string",
            "description": "How the shopper paid: card, or bank_transfer for a payment the shopper authorised at their bank. Absent until they pay.",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "description": "When the payment was created. Absent only for a payment whose creation step has not yet arrived.",
            "format": "date-time",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "description": "When anything last happened to the payment.",
            "format": "date-time"
          }
        }
      },
      "CreatePartnerRegistrationLinkRequest": {
        "required": [
          "country",
          "companyNumber",
          "companyName",
          "email",
          "language",
          "partnerReference"
        ],
        "type": "object",
        "properties": {
          "country": {
            "type": "string",
            "nullable": true
          },
          "companyNumber": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "language": {
            "type": "string",
            "nullable": true
          },
          "partnerReference": {
            "type": "string",
            "nullable": true
          },
          "expiresInDays": {
            "maximum": 90,
            "minimum": 1,
            "type": "integer",
            "format": "int32",
            "default": null,
            "nullable": true
          },
          "returnUrl": {
            "type": "string",
            "default": null,
            "nullable": true
          }
        },
        "example": {
          "country": "BE",
          "companyNumber": "0123456749",
          "companyName": "Bakkerij De Molen BV",
          "email": "contact@example.com",
          "language": "nl",
          "partnerReference": "CRM-1042"
        }
      },
      "RegistrationLinkData": {
        "required": [
          "data"
        ],
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/PartnerRegistrationLinkResponse"
          }
        }
      },
      "PartnerRegistrationLinkResponse": {
        "required": [
          "id",
          "code",
          "status",
          "country",
          "companyNumber",
          "companyName",
          "email",
          "language",
          "partnerReference",
          "createdAt",
          "expiresAt",
          "revokedAt",
          "usedAt",
          "completedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "companyNumber": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "partnerReference": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "revokedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "usedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "returnUrl": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "description": "The address the company opens to sign up, with the link's code: send this to the company. Null when the platform's signup address is not configured.",
            "nullable": true
          }
        },
        "description": "The registration link.",
        "example": {
          "id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
          "code": "K7mQ2xP9wRtN4bZc",
          "status": "open",
          "country": "BE",
          "companyNumber": "0123456749",
          "companyName": "Bakkerij De Molen BV",
          "email": "contact@example.com",
          "language": "nl",
          "partnerReference": "CRM-1042",
          "createdAt": "2026-11-18T09:14:03.0000000+00:00",
          "expiresAt": "2026-11-28T09:14:03.0000000+00:00",
          "revokedAt": null,
          "usedAt": null,
          "completedAt": null,
          "returnUrl": null,
          "url": "https://main.mps-emi.com/signup?partner=K7mQ2xP9wRtN4bZc"
        }
      },
      "RegistrationLinkListData": {
        "required": [
          "data",
          "totalCount",
          "page",
          "pageSize"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PartnerRegistrationLinkResponse2"
            },
            "description": "The partner's registration links on this page, newest first."
          },
          "totalCount": {
            "type": "integer",
            "description": "How many links match the status filter, across all pages.",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "description": "This page's number, from 1.",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "description": "How many links a page holds.",
            "format": "int32"
          }
        }
      },
      "PartnerRegistrationLinkResponse2": {
        "required": [
          "id",
          "code",
          "status",
          "country",
          "companyNumber",
          "companyName",
          "email",
          "language",
          "partnerReference",
          "createdAt",
          "expiresAt",
          "revokedAt",
          "usedAt",
          "completedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "companyNumber": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "partnerReference": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "revokedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "usedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "returnUrl": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "description": "The address the company opens to sign up, with the link's code: send this to the company. Null when the platform's signup address is not configured.",
            "nullable": true
          }
        },
        "example": {
          "id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
          "code": "K7mQ2xP9wRtN4bZc",
          "status": "open",
          "country": "BE",
          "companyNumber": "0123456749",
          "companyName": "Bakkerij De Molen BV",
          "email": "contact@example.com",
          "language": "nl",
          "partnerReference": "CRM-1042",
          "createdAt": "2026-11-18T09:14:03.0000000+00:00",
          "expiresAt": "2026-11-28T09:14:03.0000000+00:00",
          "revokedAt": null,
          "usedAt": null,
          "completedAt": null,
          "returnUrl": null,
          "url": "https://main.mps-emi.com/signup?partner=K7mQ2xP9wRtN4bZc"
        }
      },
      "Webhook": {
        "required": [
          "eventType",
          "paymentId",
          "paymentReference",
          "merchantReference",
          "amount",
          "currency",
          "status",
          "channel",
          "valutaDate",
          "occurredAt"
        ],
        "type": "object",
        "properties": {
          "eventType": {
            "type": "string",
            "description": "What happened. Currently payment.received, refund.refunded, refund.failed or refund.canceled. New events may be added; ignore one you do not know."
          },
          "paymentId": {
            "type": "string",
            "description": "The booked payment. May differ from paymentReference in letter case: key on paymentReference."
          },
          "paymentReference": {
            "type": "string",
            "description": "The paymentReference create returned, as an opaque string. Key on it."
          },
          "merchantReference": {
            "type": "string",
            "description": "Your own reference from create, echoed back. Null when you sent none.",
            "nullable": true
          },
          "amount": {
            "type": "integer",
            "description": "Amount received, in cents; on a refund event, the refund's amount.",
            "format": "int64"
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 code."
          },
          "status": {
            "type": "string",
            "description": "The outcome: completed for payment.received (read the payment and its state is executed); refunded, failed or canceled for the refund events, as the refund API reads."
          },
          "channel": {
            "type": "string",
            "description": "How the payment arrived. Currently internet."
          },
          "valutaDate": {
            "type": "string",
            "description": "The value date of the booking. On a refund event, the same as occurredAt.",
            "format": "date-time"
          },
          "occurredAt": {
            "type": "string",
            "description": "When MPS established the payment was received, or the refund's outcome.",
            "format": "date-time"
          },
          "refundId": {
            "type": "string",
            "description": "Only on a refund event: the refund, as the refund API returned it."
          }
        },
        "example": {
          "eventType": "payment.received",
          "paymentId": "00000000-0000-4000-8000-000000000002",
          "paymentReference": "00000000-0000-4000-8000-000000000001",
          "merchantReference": "order-1234",
          "amount": 1995,
          "currency": "EUR",
          "status": "completed",
          "channel": "internet",
          "valutaDate": "2026-10-12T00:00:00Z",
          "occurredAt": "2026-10-12T14:31:07Z"
        }
      }
    },
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "description": "Your API key from the platform's Online screens (mps_live_… or mps_test_…), sent as the bearer on every call. Server to server only: never in a browser or an app.",
        "scheme": "bearer",
        "bearerFormat": "mps_live_… / mps_test_…"
      }
    }
  },
  "security": [
    {
      "apiKey": []
    }
  ],
  "tags": [
    {
      "name": "Online payments",
      "description": "Online payments: the shopper pays on the MPS checkout, by card or, in live mode, by bank."
    },
    {
      "name": "Refunds",
      "description": "Give back all or part of a payment."
    },
    {
      "name": "Payment links",
      "description": "One-time links a shopper pays on the MPS checkout, made and read with your API key."
    },
    {
      "name": "Registration links",
      "description": "A live partner's personal registration links: a company is sent to the MPS signup with its own link."
    }
  ]
}
