API reference
Create an agent
Merchants can create agent accounts under their organisation.
POST
https://api.xxpayus.online/api/v1/agents/createMerchantIdempotency and safe recovery
Agent creation supports an optional Idempotency-Key containing 1–128 ASCII letters, digits, dots, underscores, colons or hyphens. Use a unique key for each intended account creation.
- 1Keep the same key and identical request data when recovering an interrupted request.
- 2A committed operation returns the original successful account response without creating another account.
- 3A pending or uncertain operation must be reconciled. Do not create another account using a different key.
- 4A rejected operation cannot dispatch another account using its original key.
- 5Only when the response explicitly confirms that account creation was not dispatched and the operation is closed may you initiate a new request with a new key after correcting the failure.
Retrieve provisioning status
GET
https://api.xxpayus.online/api/v1/agents/provisioning/{id}MerchantUse the provisioning reference UUID returned by the account creation API. Both endpoints require the agents:create scope and approved Merchant API access.
Operation statuses are pending, committed, rejected and uncertain. Audit statuses are not_required, pending and completed. Foreign and unknown references return HTTP 404.
Never automatically recreate an account after a timeout, uncertain result or reconciliation error. A rejected status alone does not provide a new dispatch authorization.
| Field | Type | Description |
|---|---|---|
| string, required | Agent sign-in email | |
| password | string, required | 6–72 characters |
| full_name | string, required | Display name |
| method_fees | array, required | Provide an array, including an empty array when no explicit method fees are supplied. Applicable omitted fees inherit merchant floors. Explicit fees cannot be below those floors. |
| tag_fee_percent | number, optional | Tag payment fee percent |