GET /api/v1/partners/:api_token/agents
Return a list of agents created by this partner, sorted by newest first.
https://www.bloomremit.net/api/v1/partners/:api_token/agents
Header name | Description |
---|---|
X-API-SECRET optional |
API secret of your organization |
GET /api/v1/partners/:api_token/agents/:id
https://www.bloomremit.net/api/v1/partners/:api_token/agents/:id
Header name | Description |
---|---|
X-API-SECRET optional |
API secret of your organization |
POST /api/v1/partners/:api_token/agents
Create a new agent account under this partner. Take note of the ID parameter in the returned Agent hash, it is how you will access this same agent later on.
https://www.bloomremit.net/api/v1/partners/:api_token/agents { "agent": { "name": "Seoul Branch" } }
Name | Type | Description |
---|---|---|
agent required | Value:
Must be a Hash |
Agent Information |
agent[name] optional | Value:
Must be a String |
Name of the Agent |
Header name | Description |
---|---|
X-API-SECRET optional |
API secret of your organization |
PUT /api/v1/partners/:api_token/agents/:id
Update agent information.
https://www.bloomremit.net/api/v1/partners/:api_token/agents { "agent": { "name": "Incheon Branch" } }
Name | Type | Description |
---|---|---|
agent required | Value:
Must be a Hash |
Agent Information |
agent[name] optional | Value:
Must be a String |
Name of the Agent |
Header name | Description |
---|---|
X-API-SECRET optional |
API secret of your organization |
DELETE /api/v1/partners/:api_token/agents/:id
Delete an agent. This will not work if the agent has any users associated with it.
Header name | Description |
---|---|
X-API-SECRET optional |
API secret of your organization |