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.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
customerIntegerID of customer to get transaction for.Yes
typeStringType of transaction. "callshop_lock", "callshop_reset", or "callshop_unlock".Yes

Responses

CodeDescription
200Success.
401The authentication details provided are invalid.
402Your role does not allow this.
404No 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

VersionChanges
3.13Function added.