Skip to main content

Payment Links API

The Payment Links API provides a comprehensive solution for creating and managing payment links within the Access PaySuite Group Payments platform. This API enables merchants to generate secure payment links that can be shared with customers via email, SMS, or other channels, supporting both one-time and recurring payment scenarios.

Base URL​

Sandbox​

https://group.pay.accessacloud.com/paylinks-payment-demo

Production​

https://group.pay.accessacloud.com/paylinks-payment

Authentication​

All API requests require authentication using an API key. This is provided to the SoftCo's during the registration. The subscription key must be supplied in the HTTP header of all API requests to identify and authorize your platform account.

x-api-key: {API_KEY}

Authorisation​

All API requests require the following headers:

HeaderTypeRequiredDescription
merchantIdstringrequiredCustomer identifier as provided during customer onboarding
Content-TypestringrequiredMust be application/json (for POST/PUT requests)

Endpoints​

Error Handling​

All endpoints return errors in a consistent format. When an error occurs, the API returns an appropriate HTTP status code along with an error response body.

Error Response Structure​

{
"error": {
"code": "VALIDATION_ERROR",
"message": "The request contains invalid parameters",
"details": {
"field": "amounts.total",
"issue": "Total amount must be greater than 30."
},
"timestamp": "2024-10-16T15:30:00.0000000Z"
}
}

Common Error Codes​

CodeDescription
VALIDATION_ERRORThe request contains invalid or missing parameters
NOT_FOUNDThe requested resource does not exist
PAYMENT_LINK_NOT_FOUNDThe requested payment link does not exist
PAYMENT_LINK_EXPIREDThe payment link has expired
UNAUTHORIZEDAuthentication credentials are missing or invalid
FORBIDDENThe caller is not authorized to act on the requested merchant or resource
CONFLICTThe operation conflicts with the current state of the resource (e.g. a reused idempotency key)
BUSINESS_ERRORA business rule prevented the operation
INTERNAL_ERRORAn internal server error occurred

HTTP Status Codes​

Status CodeDescription
200 OKRequest successful
201 CreatedResource created successfully
207 Multi-StatusBatch request processed; inspect each item for its individual outcome
400 Bad RequestInvalid request parameters
401 UnauthorizedAuthentication required
403 ForbiddenThe caller is not authorized for the requested resource
404 Not FoundResource not found
409 ConflictRequest conflicts with current state
500 Internal Server ErrorServer error occurred