---
updatedAt: 2025-06-25T21:44:48.000Z
agentTools:
  projectIndex: https://docs.geidea.net/llms.txt
---

# Send Payment link by Email

<HTMLBlock>{`
<a href="https://docs.geidea.net/docs/pay-by-link-apis">Go back</a>
`}</HTMLBlock>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "pay-by-link",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://api.merchant.geidea.net/payment-intent"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v1/direct/eInvoice/{paymentIntentId}/SendByEmail": {
      "post": {
        "summary": "Send Payment link by Email",
        "description": "",
        "operationId": "send-by-email",
        "parameters": [
          {
            "name": "paymentIntentId",
            "in": "path",
            "description": "ID of Payment Intent",
            "schema": {
              "type": "string",
              "default": "82249793-ef36-4478-0776-08daf7ec2bc4"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"paymentIntent\": {\n        \"link\": \"https://merchant.geidea.net/payByLink/62s-g9t-o8i-9cp\",\n        \"customer\": {\n            \"customerId\": \"ed46791d-22da-41f4-7a1c-08daf7e7b5df\",\n            \"email\": \"test@gmail.com\",\n            \"phoneNumber\": \"511111111\",\n            \"phoneCountryCode\": \"+966\",\n            \"name\": \"John\",\n            \"updatedBy\": \"PGW\",\n            \"updatedDate\": \"2023-01-23T21:51:29.2698764Z\",\n            \"addresses\": []\n        },\n        \"eInvoiceDetails\": {\n            \"type\": \"Detailed\",\n            \"collectCustomersBillingShippingAddress\": true,\n            \"preAuthorizeAmount\": true,\n            \"subtotalWithoutTax\": 100.00,\n            \"subtotalTax\": 0.00,\n            \"subtotal\": 100.00,\n            \"grandTotal\": 100.00,\n            \"extraCharges\": 0.00,\n            \"extraChargesType\": \"Amount\",\n            \"chargeDescription\": \"string\",\n            \"merchantReferenceId\": \"string\",\n            \"invoiceDiscount\": 0.00,\n            \"invoiceDiscountType\": \"Amount\",\n            \"language\": \"EN\",\n            \"eInvoiceItems\": [\n                {\n                    \"eInvoiceItemId\": \"eeeead6c-db54-4906-34eb-08daf7f29d81\",\n                    \"description\": \"string\",\n                    \"price\": 10.00,\n                    \"priceWithDiscount\": 10.00,\n                    \"priceTax\": 0.00,\n                    \"priceTotal\": 10.00,\n                    \"quantity\": 10,\n                    \"sku\": \"string\",\n                    \"itemDiscount\": 0.00,\n                    \"itemDiscountType\": \"Amount\",\n                    \"tax\": 0.00,\n                    \"taxType\": \"Amount\",\n                    \"totalWithoutTax\": 100.00,\n                    \"totalTax\": 0.00,\n                    \"total\": 100.00\n                }\n            ]\n        },\n        \"eInvoiceSentLinks\": [],\n        \"paymentIntentId\": \"82249793-ef36-4478-0776-08daf7ec2bc4\",\n        \"number\": \"901996084874\",\n        \"urlSlug\": \"62s-g9t-o8i-9cp\",\n        \"type\": \"EInvoice\",\n        \"amount\": 100.00,\n        \"currency\": \"SAR\",\n        \"merchantId\": \"e80ece7e-fb2a-4c0b-de94-08d8a29a107b\",\n        \"merchantPublicKey\": \"a087f4ca-9890-407b-9c2f-7630836cc020\",\n        \"expiryDate\": \"2023-02-10T08:54:33.617Z\",\n        \"activationDate\": \"2023-02-10T08:54:33.617Z\",\n        \"status\": \"SentToCustomer\",\n        \"customerId\": \"ed46791d-22da-41f4-7a1c-08daf7e7b5df\",\n        \"eInvoiceUploadId\": null,\n        \"staticPaylinkId\": null,\n        \"subscriptionId\": null,\n        \"subscriptionOccurrenceId\": null,\n        \"orders\": [],\n        \"isPending\": true,\n        \"createdDate\": \"2023-01-23T20:32:53.765755Z\",\n        \"createdBy\": \"e80ece7e-fb2a-4c0b-de94-08d8a29a107b\",\n        \"updatedDate\": \"2023-01-23T21:47:03.318728Z\",\n        \"updatedBy\": \"e80ece7e-fb2a-4c0b-de94-08d8a29a107b\"\n    },\n    \"termsAndConditions\": null,\n    \"responseMessage\": \"Success\",\n    \"detailedResponseMessage\": \"The operation was successful\",\n    \"language\": \"EN\",\n    \"responseCode\": \"000\",\n    \"detailedResponseCode\": \"000\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "paymentIntent": {
                      "type": "object",
                      "properties": {
                        "link": {
                          "type": "string",
                          "example": "https://merchant.geidea.net/payByLink/62s-g9t-o8i-9cp"
                        },
                        "customer": {
                          "type": "object",
                          "properties": {
                            "customerId": {
                              "type": "string",
                              "example": "ed46791d-22da-41f4-7a1c-08daf7e7b5df"
                            },
                            "email": {
                              "type": "string",
                              "example": "test@gmail.com"
                            },
                            "phoneNumber": {
                              "type": "string",
                              "example": "511111111"
                            },
                            "phoneCountryCode": {
                              "type": "string",
                              "example": "+966"
                            },
                            "name": {
                              "type": "string",
                              "example": "John"
                            },
                            "updatedBy": {
                              "type": "string",
                              "example": "PGW"
                            },
                            "updatedDate": {
                              "type": "string",
                              "example": "2023-01-23T21:51:29.2698764Z"
                            },
                            "addresses": {
                              "type": "array"
                            }
                          }
                        },
                        "eInvoiceDetails": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "example": "Detailed"
                            },
                            "collectCustomersBillingShippingAddress": {
                              "type": "boolean",
                              "example": true,
                              "default": true
                            },
                            "preAuthorizeAmount": {
                              "type": "boolean",
                              "example": true,
                              "default": true
                            },
                            "subtotalWithoutTax": {
                              "type": "integer",
                              "example": 100,
                              "default": 0
                            },
                            "subtotalTax": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            },
                            "subtotal": {
                              "type": "integer",
                              "example": 100,
                              "default": 0
                            },
                            "grandTotal": {
                              "type": "integer",
                              "example": 100,
                              "default": 0
                            },
                            "extraCharges": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            },
                            "extraChargesType": {
                              "type": "string",
                              "example": "Amount"
                            },
                            "chargeDescription": {
                              "type": "string",
                              "example": "string"
                            },
                            "merchantReferenceId": {
                              "type": "string",
                              "example": "string"
                            },
                            "invoiceDiscount": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            },
                            "invoiceDiscountType": {
                              "type": "string",
                              "example": "Amount"
                            },
                            "language": {
                              "type": "string",
                              "example": "EN"
                            },
                            "eInvoiceItems": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "eInvoiceItemId": {
                                    "type": "string",
                                    "example": "eeeead6c-db54-4906-34eb-08daf7f29d81"
                                  },
                                  "description": {
                                    "type": "string",
                                    "example": "string"
                                  },
                                  "price": {
                                    "type": "integer",
                                    "example": 10,
                                    "default": 0
                                  },
                                  "priceWithDiscount": {
                                    "type": "integer",
                                    "example": 10,
                                    "default": 0
                                  },
                                  "priceTax": {
                                    "type": "integer",
                                    "example": 0,
                                    "default": 0
                                  },
                                  "priceTotal": {
                                    "type": "integer",
                                    "example": 10,
                                    "default": 0
                                  },
                                  "quantity": {
                                    "type": "integer",
                                    "example": 10,
                                    "default": 0
                                  },
                                  "sku": {
                                    "type": "string",
                                    "example": "string"
                                  },
                                  "itemDiscount": {
                                    "type": "integer",
                                    "example": 0,
                                    "default": 0
                                  },
                                  "itemDiscountType": {
                                    "type": "string",
                                    "example": "Amount"
                                  },
                                  "tax": {
                                    "type": "integer",
                                    "example": 0,
                                    "default": 0
                                  },
                                  "taxType": {
                                    "type": "string",
                                    "example": "Amount"
                                  },
                                  "totalWithoutTax": {
                                    "type": "integer",
                                    "example": 100,
                                    "default": 0
                                  },
                                  "totalTax": {
                                    "type": "integer",
                                    "example": 0,
                                    "default": 0
                                  },
                                  "total": {
                                    "type": "integer",
                                    "example": 100,
                                    "default": 0
                                  }
                                }
                              }
                            }
                          }
                        },
                        "eInvoiceSentLinks": {
                          "type": "array"
                        },
                        "paymentIntentId": {
                          "type": "string",
                          "example": "82249793-ef36-4478-0776-08daf7ec2bc4"
                        },
                        "number": {
                          "type": "string",
                          "example": "901996084874"
                        },
                        "urlSlug": {
                          "type": "string",
                          "example": "62s-g9t-o8i-9cp"
                        },
                        "type": {
                          "type": "string",
                          "example": "EInvoice"
                        },
                        "amount": {
                          "type": "integer",
                          "example": 100,
                          "default": 0
                        },
                        "currency": {
                          "type": "string",
                          "example": "SAR"
                        },
                        "merchantId": {
                          "type": "string",
                          "example": "e80ece7e-fb2a-4c0b-de94-08d8a29a107b"
                        },
                        "merchantPublicKey": {
                          "type": "string",
                          "example": "a087f4ca-9890-407b-9c2f-7630836cc020"
                        },
                        "expiryDate": {
                          "type": "string",
                          "example": "2023-02-10T08:54:33.617Z"
                        },
                        "activationDate": {
                          "type": "string",
                          "example": "2023-02-10T08:54:33.617Z"
                        },
                        "status": {
                          "type": "string",
                          "example": "SentToCustomer"
                        },
                        "customerId": {
                          "type": "string",
                          "example": "ed46791d-22da-41f4-7a1c-08daf7e7b5df"
                        },
                        "eInvoiceUploadId": {},
                        "staticPaylinkId": {},
                        "subscriptionId": {},
                        "subscriptionOccurrenceId": {},
                        "orders": {
                          "type": "array"
                        },
                        "isPending": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "createdDate": {
                          "type": "string",
                          "example": "2023-01-23T20:32:53.765755Z"
                        },
                        "createdBy": {
                          "type": "string",
                          "example": "e80ece7e-fb2a-4c0b-de94-08d8a29a107b"
                        },
                        "updatedDate": {
                          "type": "string",
                          "example": "2023-01-23T21:47:03.318728Z"
                        },
                        "updatedBy": {
                          "type": "string",
                          "example": "e80ece7e-fb2a-4c0b-de94-08d8a29a107b"
                        }
                      }
                    },
                    "termsAndConditions": {},
                    "responseMessage": {
                      "type": "string",
                      "example": "Success"
                    },
                    "detailedResponseMessage": {
                      "type": "string",
                      "example": "The operation was successful"
                    },
                    "language": {
                      "type": "string",
                      "example": "EN"
                    },
                    "responseCode": {
                      "type": "string",
                      "example": "000"
                    },
                    "detailedResponseCode": {
                      "type": "string",
                      "example": "000"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```