---
updatedAt: 2025-03-13T20:26:45.000Z
agentTools:
  projectIndex: https://mifinity.readme.io/llms.txt
---

# PayMyCard

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "pay-my-card-pmc",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://demo.mifinity.com/api/payments/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/pmc": {
      "post": {
        "summary": "PayMyCard",
        "description": "",
        "operationId": "pay-my-card",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "money",
                  "sourceAccount",
                  "traceId",
                  "cardName",
                  "cardNumber",
                  "expiryDate",
                  "cardHolderCountryCode",
                  "cardHolderNationality",
                  "dob"
                ],
                "properties": {
                  "money": {
                    "type": "object",
                    "description": "The Object containing two String attributes: amount and currency of the transfer",
                    "properties": {
                      "amount": {
                        "type": "string"
                      },
                      "currency": {
                        "type": "string"
                      }
                    }
                  },
                  "description": {
                    "type": "string",
                    "description": "Description for this transfer which min character is 1 and max characters are 25"
                  },
                  "sourceAccount": {
                    "type": "string",
                    "description": "Account number from which the amount of money will be debited"
                  },
                  "traceId": {
                    "type": "string",
                    "description": "Unique transaction identifier. You can assign any value"
                  },
                  "cardName": {
                    "type": "string",
                    "description": "Name on card"
                  },
                  "cardNumber": {
                    "type": "string",
                    "description": "Card number"
                  },
                  "expiryDate": {
                    "type": "string",
                    "description": "Card expiry date(MM/YY)"
                  },
                  "cardHolderCountryCode": {
                    "type": "string",
                    "description": "Card holder country code (ISO 3166-1)"
                  },
                  "cardHolderNationality": {
                    "type": "string",
                    "description": "Card holder nationality (ISO 3166-1)"
                  },
                  "dob": {
                    "type": "string",
                    "description": "Date of birth of the card holder. Format: YYYY-MM-DD"
                  },
                  "cardHolderStreet": {
                    "type": "string",
                    "description": "Mandatory when card holder country code is either Canada (CA) or United States(US)",
                    "default": "Conditional"
                  },
                  "cardHolderCity": {
                    "type": "string",
                    "description": "Mandatory when card holder city is either Canada (CA) or United States(US)",
                    "default": "Optional"
                  },
                  "cardHolderState": {
                    "type": "string",
                    "description": "Mandatory when card holder state is either Canada (CA) or United States(US)",
                    "default": "Conditional"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"payload\": [\n    {\n      \"transactionId\": \"Yq9w9Eb6Aqz_zFKLmtaedeYE-LyBwUL7pU6bxRsSFog=\",\n      \"transactionReference\": \"ab556a00-784b-4a90-a1f7-44cc15df6570\",\n      \"destinationMoney\": {\n        \"amount\": 40,\n        \"currency\": \"EUR\",\n        \"presentationAmount\": \"EUR40.00\"\n      },\n      \"exchangeRate\": 1,\n      \"sourceMoney\": {\n        \"amount\": 40,\n        \"currency\": \"EUR\",\n        \"presentationAmount\": \"EUR40.00\"\n      },\n      \"traceId\": \"traceid wewereadhalk-bcbcb\",\n      \"datePosted\": \"2023-10-09T09:27:56.895Z\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "payload": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "transactionId": {
                            "type": "string",
                            "example": "Yq9w9Eb6Aqz_zFKLmtaedeYE-LyBwUL7pU6bxRsSFog="
                          },
                          "transactionReference": {
                            "type": "string",
                            "example": "ab556a00-784b-4a90-a1f7-44cc15df6570"
                          },
                          "destinationMoney": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "integer",
                                "example": 40,
                                "default": 0
                              },
                              "currency": {
                                "type": "string",
                                "example": "EUR"
                              },
                              "presentationAmount": {
                                "type": "string",
                                "example": "EUR40.00"
                              }
                            }
                          },
                          "exchangeRate": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "sourceMoney": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "integer",
                                "example": 40,
                                "default": 0
                              },
                              "currency": {
                                "type": "string",
                                "example": "EUR"
                              },
                              "presentationAmount": {
                                "type": "string",
                                "example": "EUR40.00"
                              }
                            }
                          },
                          "traceId": {
                            "type": "string",
                            "example": "traceid wewereadhalk-bcbcb"
                          },
                          "datePosted": {
                            "type": "string",
                            "example": "2023-10-09T09:27:56.895Z"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"errors\": [\n    {\n      \"type\": \"string\",\n      \"errorCode\": \"string\",\n      \"message\": \"string\",\n      \"formObjectName\": \"string\",\n      \"field\": \"string\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "example": "string"
                          },
                          "errorCode": {
                            "type": "string",
                            "example": "string"
                          },
                          "message": {
                            "type": "string",
                            "example": "string"
                          },
                          "formObjectName": {
                            "type": "string",
                            "example": "string"
                          },
                          "field": {
                            "type": "string",
                            "example": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "api-version",
        "value": "1"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```