JSON API » callshops » callshops/transaction
Gets the last transaction of a given type for a callshop customer.
Input parameters
Requires authentication and the callshop role privilege.
Name | Type | Description | Required | Default value |
---|---|---|---|---|
auth_username | String | Authentication username. | Yes | |
auth_password | String | Authentication password. | Yes | |
customer | Integer | ID of customer to get transaction for. | Yes | |
type | String | Type of transaction. "callshop_lock", "callshop_reset", or "callshop_unlock". | Yes |
Responses
Code | Description |
---|---|
200 | Success. |
401 | The authentication details provided are invalid. |
402 | Your role does not allow this. |
404 | No matching transaction was found. |
Data returned
Fields of the transaction.
Example: With required parameters
http://enswitch.example.com/api/json/callshops/transaction/?auth_username=user;auth_password=password;customer=123;type=callshop_lock{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":{ "id":1234, "type":"callshop_lock", ... } }
Change history
Version | Changes |
---|---|
3.13 | Function added. |