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.
Method: GET
Endpoint: https://malum.co/api/v3/reseller/payment_link
Response format: JSON
Required query parameters
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
How it works
The API validates the
transaction_codeformat (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
pendingstatus.The selected gateway module generates a redirect URL.
The API responds with a URL where the customer should be redirected.
Example request
Success response
Field notes
redirect_urlis 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.
timestampis a server-side Unix timestamp of the response.Malum is hidden and not shown.
Error responses
Errors return JSON with:
status:failedmessage: description of the problemdata: 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.
Integration flow summary
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