Process a charge batch
POST/api/gateway/v1/user-billing/charge-batches/:code/process
Process a charge batch
Request
Path Parameters
code stringrequired
Header Parameters
x-api-key stringrequired
Gateway API key
- application/json
Body
required
Array [
]
batchCode stringrequired
chargeResults
object[]
required
userChargeId stringrequired
User charge ID
status stringrequired
Possible values: [PENDING
, SUCCESS
, FAILED
]
Processing status
responseMessage string
Response message from processing
Responses
- 200
- 400
- 401
- 404
Batch processed successfully
- application/json
- Schema
- Example (from schema)
Schema
status number
message string
meta object
{
"status": 200,
"message": "OK",
"meta": {
"count": 1
}
}
Cannot process non-pending batch or invalid charge results
- application/json
- Schema
- Example (from schema)
Schema
status number
message string
error
object
code string
Error code
detail string
Error detail
{
"status": 400,
"message": "Cannot process non-pending batch or invalid charge results",
"error": {
"code": "string",
"detail": "Cannot process non-pending batch or invalid charge results"
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
status number
message string
error
object
code string
Error code
detail string
Error detail
{
"status": 401,
"message": "Invalid API key",
"error": {
"code": "UNAUTHORIZED",
"detail": "Invalid API key"
}
}
Batch not found
- application/json
- Schema
- Example (from schema)
Schema
status number
message string
error
object
code string
Error code
detail string
Error detail
{
"status": 404,
"message": "Batch not found",
"error": {
"code": "string",
"detail": "Batch not found"
}
}
Loading...