Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 799 Bytes

central_rules_endpoints.md

File metadata and controls

38 lines (30 loc) · 799 Bytes

Central Rules Endpoints

The Central Rules API determines whether a transfer to an End User is permitted.

Endpoints

Check transfer eligibility

This endpoint is used to find out if a transfer to an End User is permitted.

Allowed

GET https://central-rules/transfer?sender_user_number=11144455555555&receiver_user_number=11122233333333&amount=125
HTTP/1.1 200 OK
Content-Type: application/json
{
  "allowed": true
}

Not allowed

GET https://central-rules/transfer?sender_user_number=11144455555555&receiver_user_number=11122233333333&amount=100001
HTTP/1.1 200 OK
Content-Type: application/json
{
  "allowed": false,
  "reason": {
  	"code": "transfer_limit_exceeded",
  	"message": "Not allowed to send more than 100,000"
  }
}