---
agentTools:
  projectIndex: https://chimoney.readme.io/llms.txt
---

# Initiate a payment request

Initiates a payment request which is sent to the payer's email address specified.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Chimoney API Docs",
    "version": "0.2.4",
    "description": "This is the latest version of the Chimoney API. For deprecated version routes, please refer to /v0.2/api-docs."
  },
  "security": [
    {
      "apiKeyAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.chimoney.io/",
      "description": "Prod Server"
    },
    {
      "url": "https://api-v2-sandbox.chimoney.io",
      "description": "Sandbox API v2 (v0.2.4)"
    }
  ],
  "paths": {
    "/v0.2.4/payment/initiate": {
      "post": {
        "summary": "Initiate a payment request",
        "tags": [
          "Payments"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "valueInUSD": {
                    "type": "number",
                    "description": "Amount in USD to collect."
                  },
                  "payerEmail": {
                    "type": "string",
                    "description": "Email of the one making the payment."
                  },
                  "currency": {
                    "type": "string",
                    "description": "ISO Currency String like CAD, USD, NGN etc.",
                    "enum": [
                      "USD",
                      "NGN",
                      "CAD"
                    ]
                  },
                  "amount": {
                    "type": "string",
                    "description": "Amount in specified \"currency\" to collect. Required if currency is set."
                  },
                  "redirect_url": {
                    "type": "string",
                    "description": "URL to redirect to after payment is confirmed.",
                    "example": "https://example.com/confirm"
                  },
                  "walletID": {
                    "type": "string",
                    "description": "ID of the wallet to settle the payment to (optional)"
                  },
                  "narration": {
                    "type": "string",
                    "description": "Narration for the payment (optional)"
                  },
                  "subAccount": {
                    "type": "string",
                    "description": "Subaccount if any."
                  },
                  "meta": {
                    "type": "object",
                    "description": "Object containing metadata you want to pass to the request to use later."
                  },
                  "turnOffNotification": {
                    "type": "boolean",
                    "description": "Disables email and other notifications from Chimoney.",
                    "example": false
                  },
                  "redeemData": {
                    "type": "object",
                    "description": "Object containing redeem data.",
                    "example": "{}"
                  },
                  "paymentMethod": {
                    "type": "object",
                    "description": "Payment method configuration to direct users to specific payment options",
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "card"
                            ]
                          },
                          "cardRegion": {
                            "type": "string",
                            "enum": [
                              "Africa",
                              "Americas/Canada",
                              "Europe",
                              "Asia"
                            ],
                            "description": "Card region (USD: all regions, CAD: all except Africa, NGN: only Africa)"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "wallet"
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "interledger"
                            ]
                          },
                          "interledgerWalletAddress": {
                            "type": "string",
                            "description": "Interledger wallet address (only available for USD)"
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "description": "Only available for USD"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "bank"
                            ]
                          },
                          "paymentRail": {
                            "type": "string",
                            "enum": [
                              "ach",
                              "swift",
                              "clabe"
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "description": "Only available for USD"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "interac"
                            ]
                          },
                          "interacOption": {
                            "type": "string",
                            "enum": [
                              "send",
                              "request"
                            ]
                          },
                          "fullName": {
                            "type": "string",
                            "description": "Full name of the initiator"
                          },
                          "email": {
                            "type": "string",
                            "description": "Email address of the initiator"
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "description": "Only available for CAD"
                      }
                    ]
                  }
                },
                "required": [
                  "payerEmail"
                ]
              },
              "example": {
                "valueInUSD": 10,
                "payerEmail": "devs@chimoney.io",
                "redirect_url": "https://test.com",
                "subAccount": "jnirjmt0405jmd",
                "currency": "CAD",
                "amount": 10,
                "paymentMethod": {
                  "type": "card",
                  "cardRegion": "Americas/Canada"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "Status of the request.",
                      "example": "success"
                    },
                    "message": {
                      "type": "string",
                      "example": "Payment initiated successfully"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "paymentLink": {
                          "type": "string",
                          "example": "https://dash.chimoney.io/pay/?issueID=XQTUvRBntIU3AHgQ3jFuN9ZcHIC3_1_1661120543057"
                        },
                        "valueInUSD": {
                          "type": "number",
                          "example": 5
                        },
                        "chimoney": {
                          "type": "number",
                          "example": 5000
                        },
                        "issueID": {
                          "type": "string",
                          "example": "dji-29848400404-date"
                        },
                        "type": {
                          "type": "string",
                          "example": "api-payment"
                        },
                        "issuer": {
                          "type": "string",
                          "example": "dji-29848400404"
                        },
                        "payerEmail": {
                          "type": "string",
                          "example": "name@mail.com"
                        },
                        "initiatedBy": {
                          "type": "string",
                          "example": "dji-29848400404"
                        },
                        "issueDate": {
                          "type": "string",
                          "example": "2024/10/23"
                        },
                        "status": {
                          "type": "string",
                          "example": "unpaid"
                        },
                        "chiRef": {
                          "type": "string",
                          "example": "djeoeuk-mdhhmmr-mdnhe-kei8e"
                        },
                        "error": {
                          "type": "string",
                          "example": "None"
                        },
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "cryptoPayment": {
                          "type": "object",
                          "properties": {
                            "xrpl": {
                              "type": "object"
                            },
                            "eth": {
                              "type": "object"
                            },
                            "bsc": {
                              "type": "object"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error"
                    },
                    "type": {
                      "type": "string",
                      "example": "Resource Not Found"
                    },
                    "code": {
                      "type": "string",
                      "example": "WALLET_NOT_FOUND"
                    },
                    "message": {
                      "type": "string",
                      "example": " 'AUD' currency does not exist. Contact support@chimoney.io"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    },
    "responses": {
      "Forbidden": {
        "description": "Access to this resource is forbidden.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Forbidden"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Access to this resource is not available for unauthenticated users.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Unauthorized"
            }
          }
        }
      },
      "ServerError": {
        "description": "Indicates an internal server error.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ServerError"
            }
          }
        }
      },
      "ValidationError": {
        "description": "Validation error in the request.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ValidationError"
            }
          }
        }
      }
    },
    "schemas": {
      "Forbidden": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the response.",
            "example": "error"
          },
          "error": {
            "type": "string",
            "description": "Error message indicating forbidden access.",
            "example": "API Access not enabled for account Test. Email support@chimoney.io"
          }
        }
      },
      "Unauthorized": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the response.",
            "example": "error"
          },
          "error": {
            "type": "string",
            "description": "Error message indicating unauthorized access.",
            "example": "API key is not defined. Generate a new one from the developer portal."
          }
        }
      },
      "ServerError": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the error.",
            "example": "error"
          },
          "type": {
            "type": "string",
            "description": "Type of server error.",
            "example": "server error"
          },
          "code": {
            "type": "string",
            "description": "Specific error code for server issues.",
            "example": "INTERNAL_SERVER_ERROR"
          },
          "message": {
            "type": "string",
            "description": "Detailed message explaining the issue.",
            "example": "An internal server error occurred."
          }
        }
      },
      "ValidationError": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the validation error.",
            "example": "error"
          },
          "type": {
            "type": "string",
            "description": "Type of validation error.",
            "example": "Validation Error"
          },
          "code": {
            "type": "string",
            "description": "Error code indicating validation issue.",
            "example": "INVALID_REQUEST"
          },
          "message": {
            "type": "string",
            "description": "Detailed validation error message.",
            "example": "The request parameters are invalid."
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Payments",
      "description": "Collect payment from card, crypto and other options."
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 208,
      "2": 243,
      "3": 240,
      "4": 73,
      "5": 214,
      "6": 34,
      "7": 0,
      "8": 37,
      "9": 190,
      "10": 200,
      "11": 166
    }
  }
}
```