This API follows REST best practices and implements end-to-end payload security and HATEOAS.
All endpoints are accessible only over HTTPS.
Client Payload
↓
JWS Sign
↓
JWE Encrypt
↓
HTTPS Transport
HATEOAS allows clients to dynamically navigate and interact with the API through links provided in responses, without hard-coding URLs or application logic.
API responses may include a links array. Each link object typically contains:
| Attribute | Description |
|---|---|
params.rel | Relationship of the link to the resource (e.g., self, update, delete) |
href | Full URL to access or interact with the resource |
Mandatory Links:
POST, PUT, and GET calls include a self link.GET calls returning lists may include pagination links (next, prev, first, last).{
"links": [
{
"params": {
"rel": "self"
},
"href": "https://uat-api.paylution.com/rest/v4/users/usr-b86ab524-2787-46e2-b536-5a70e37349f7"
}
]
}
{
"links": [
{ "params": { "rel": "self" }, "href": "https://uat-api.paylution.com/v4/users?page=1" },
{ "params": { "rel": "next" }, "href": "https://uat-api.paylution.com/v4/users?page=2" }
]
}
Example HATEOAS flow for a single resource:
For more details, see the Hyperwallet HATEOAS documentation.
curl -X GET "https://api.paylution.com/rest/v4/users" \
-H "Authorization: Bearer <JWT>" \
-H "Content-Type: application/jose+json"
curl -X PUT "https://api.paylution.com/rest/v4/users" \
-H "Authorization: Bearer <JWT>" \
-H "Content-Type: application/jose+json" \
-d '{ "status": "ACTIVE" }'
curl -X DELETE "https://api.paylution.com/rest/v4/users" \
-H "Authorization: Bearer <JWT>" \
-H "Content-Type: application/jose+json"