Create Payment Link via API
#
Create Payment Link APIThe Create Payment Link API allows merchants to generate payment links that can be sent to customers for processing payments. This API supports various parameters to customize the payment link, including amount, currency, customer details, and more.
#
Endpoint#
HeadersX-Portone-Client-Key
: Unique identifier for the client.Authorization
: Bearer token for authentication.Content-Type
: The content type of the request body (application/json).
#
Request BodyThe request body should be in JSON format and includes the following parameters:
#
Example Request#
ResponsesSuccess
- Status Code: 200 OK
- Content-Type: application/json
- Body: Contains the details of the created payment link, including the link URL and status.
Error
- Status Code: 400 Bad Request or 401 Unauthorized
- Content-Type: application/json
- Body: Contains error details and message explaining the issue.
Additional Information
- Authentication: An Authorization header with a Bearer token is required.
- Environment: Set environment to sandbox for testing purposes.
- For further assistance or questions, please refer to the PortOne support documentation or contact support.
#
SummaryCreating payment links on PortOne is simple and can be done either manually via the Dashboard or automatically via APIs. Follow the above steps to ensure you set up your payment links correctly and efficiently.
For additional support or queries, please refer to the PortOne support resources or contact customer support.