Get Payment Link
Generate a payment gateway link for an existing reseller transaction. This endpoint returns a redirect URL that sends the customer to the selected payment provider.
Last updated
Generate a payment gateway link for an existing reseller transaction. This endpoint returns a redirect URL that sends the customer to the selected payment provider.
Method: GET
Endpoint: https://malum.co/api/v3/reseller/payment_link
Response format: JSON
transaction_code
string (UUID v4)
193a3981-XXXX-XXXX-XXXX-241a26f3b74e
Must be a valid UUID v4 of a previously created order
payment_method
string
WERTEUR,WERT,...
Payment gateway identifier, case-insensitive, spaces removed
The API validates the transaction_code format (must be UUID v4).
The system normalizes payment_method:
Spaces removed
Converted to lowercase
The backend checks if a matching gateway integration file exists.
The transaction is loaded using transaction_code.
The transaction must exist and still be in pending status.
The selected gateway module generates a redirect URL.
The API responds with a URL where the customer should be redirected.
Field notes
redirect_url is where you should send the customer to complete the payment.
The URL may point to an intermediary redirect or directly to a third-party gateway page.
timestamp is a server-side Unix timestamp of the response.
Malum is hidden and not shown.
Errors return JSON with:
status: failed
message: description of the problem
data: may be empty or include debug information
Common messages include:
Invalid Request. Missing transaction code.
Invalid transaction code format.
An error with the payment method occurred, please try again later.
Transaction not found.
Transaction is not pending anymore.
An error occurred, please try again later.
Create an order using the checkout endpoint and store the transaction_code.
Retrieve available methods via payment_options.
Call payment_link with the chosen payment_method.
Redirect your customer to the returned redirect_url.
Last updated
GET https://malum.co/api/v3/reseller/payment_link?transaction_code=193a3981-XXXX-XXXX-XXXX-241a26f3b74e&payment_method=WERTEUR{
"status": "success",
"message": "Gateway http redirect",
"data": {
"redirect_url": "https://demo.tld/"
},
"timestamp": 1770161149
}