Skip to content

HTTP Requester

HTTP Requester page showing method selector, URL field, and tabs for Parameters, Authorization, Headers, Pre-Request Script, and Request Options

The HTTP Requester is a Postman-style request builder built into Payment Nexus. Unlike a local tool, requests originate from the application server — meaning the server's IP address, DNS resolution, and network access apply, not yours. Use it to test PSP and CRM endpoints exactly as the application would hit them, or diagnose connectivity issues without leaving the portal.

WARNING

Requests are made from the server, not your browser. This is intentional — but it also means any request you send has the same network reach as the application itself.

Permissions

ActionPermission required
Use the HTTP Requesterpostman:access + application:administer

Making a request

  1. Select the HTTP Method (GET, POST, PUT, PATCH, DELETE, HEAD)
  2. Enter the target URL
  3. Configure any of the tabs below as needed
  4. Click Send

The response appears in the panel below the form. Click Reset to clear the form back to defaults.

TIP

Form state is preserved in the URL — you can bookmark or share a pre-filled request.

Parameters

Parameters tab showing an empty key/value pair list with Add Parameter button

Add query string parameters as key/value pairs. Each parameter can be individually toggled on or off without removing it from the list. Parameters are appended to the URL as ?key=value.

Body

Only visible for methods that carry a body (POST, PUT, PATCH). Select a Content-Type and enter the raw body:

Content-TypeNotes
application/jsonBody is parsed and sent as a JSON object
application/xmlSent as a raw string
text/xmlSent as a raw string
application/x-www-form-urlencodedSent as a raw string
text/plainSent as a raw string

Authorization

Authorization tab showing the mode selector set to None
ModeBehaviour
NoneNo authentication header added
BasicSends Authorization: Basic <base64> using the provided username and password
BearerSends Authorization: Bearer <token> using the provided token

Headers

Headers tab showing an empty key/value pair list with Add Header button

Add custom request headers as key/value pairs. Each header can be toggled on or off individually. The following headers are managed automatically — you don't need to set them manually:

  • Content-Type — set from the Body tab when a body is present
  • Authorization — set from the Authorization tab
  • User-Agent — always sent as Payment Nexus/{VERSION}

Pre-Request Script

Pre-Request Script tab showing a code editor with placeholder script

A JavaScript snippet that runs on the server immediately before the request is dispatched. Use it to dynamically modify the request at the last moment — the classic use case is computing a time-sensitive HMAC signature and injecting it as a header.

The script receives a ctx object containing the full Axios request configuration. Modify it as needed and return it — the return value is what gets sent.

Available globals

VariableWhat it is
ctxThe Axios request config — url, method, headers, params, data, etc.
bcryptbcryptjs — password hashing
luxonLuxon — date/time parsing and formatting
nodeCryptoNode.js crypto module — HMAC, SHA, AES, and other cryptographic operations

Example: add an HMAC-SHA256 signature header

js
const timestamp = luxon.DateTime.now().toUnixInteger().toString()
const body = JSON.stringify(ctx.data ?? {})
const signature = nodeCrypto
  .createHmac('sha256', 'your-secret-key')
  .update(timestamp + body)
  .digest('hex')

ctx.headers['X-Timestamp'] = timestamp
ctx.headers['X-Signature'] = signature

return ctx

Request Options

Request Options tab showing Timeout and Max Redirects fields
OptionDefaultRangeDescription
Timeout5000 ms1000–60000 msHow long to wait for a response before aborting
Max Redirects00–21How many HTTP redirects to follow automatically

Response

Response panel showing a 200 OK status, round-trip time, response size, and syntax-highlighted JSON body
ElementDescription
StatusHTTP status code and text (e.g. 200 OK, 404 Not Found)
TimeRound-trip duration in milliseconds
SizeResponse body size in bytes
URLFinal resolved URL (after any redirects)
BodyResponse body with syntax highlighting for JSON and XML
HeadersAll response headers as key/value pairs

Exporting a response

The response panel includes a copy menu to export the full request and response in several formats:

  • Markdown — formatted document suitable for pasting into a ticket or chat
  • HTTP — raw HTTP request/response format
  • Slack / Teams / WhatsApp / Telegram — formatted for pasting directly into those platforms