Create new transaction
POST/transactions
Create new transaction
Request
- application/json
Body
required
Details about the transaction to be created.
Possible values: <= 32 characters
Unique transaction identifier.
Possible values: [payway, pipay]
Payment provider to process the transaction with.
Possible values: >= 128 characters and <= 128 characters, Value must match regular expression [0-9a-f]{128}
GetLoy merchant hash used to identify the merchant.
Transaction authentication hash.
Responses
- 200
- 400
- 401
- 500
Operation successful
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
Possible values: [success, failed, error]
Operation status
result object[]
Possible values: <= 32 characters
Unique transaction identifier.
Possible values: [payway, pipay]
Payment provider to process the transaction with.
Possible values: >= 128 characters and <= 128 characters, Value must match regular expression [0-9a-f]{128}
GetLoy merchant hash used to identify the merchant.
Transaction authentication hash.
{
"status": "success",
"result": [
{
"tid": "WC-12345",
"provider": "payway",
"merchant_hash": "82f981ea122a3ae01702a8c95164f55b4a78323549e322d7ca0cec20336072f35fad71f7146cf8877873251805d0f30f7527d7e47898903e422184ee857a4b58",
"auth_hash": "string"
}
]
}
Invalid input
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [success, failed, error]
Operation status
error_details required
Possible values: non-empty
{
"status": "error",
"error_details": {
"messages": [
"Parameter route_schedule_id: Malformed route_schedule_id."
]
}
}
Unauthorized request (missing or invalid access token)
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [success, failed, error]
Operation status
error_details required
Possible values: non-empty
{
"status": "error",
"error_details": {
"messages": [
"No access token provided in request header."
]
}
}
Internal error (on Camboticket side)
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [success, failed, error]
Operation status
error_details required
Possible values: non-empty
Reference number (for error reporting).
{
"status": "error",
"error_details": {
"messages": [
"An internal error occurred. Our development team has been notified and will be working on resolving this as soon as possible. If you want to contact support about the error, please include the ref_id in your message."
],
"ref_id": "123"
}
}