Simulate a completed refund process (ONLY AVAILABLE FOR DEVELOPMENT ENVIRONMENT)
PUT/api/simulates/refunds/:id
This endpoint is only meant for development environment. Simulate what the bank integration would return to us after a refund request.
Request
Path Parameters
id stringrequired
Refund uuid
Example: 7da0c9af-215e-4625-b484-b8cfc87aaa09
- application/json
Body
required
status
Status can be 'paid' or 'failed'
Responses
- 200
- 400
- 401
- 403
- 404
Refund simulated
Refund invalid to be simulated
Unauthenticated
- application/json
- Schema
- Example (from schema)
Schema
message message (integer)
Response 401
{
"message": "Invalid x-api-key"
}
Forbidden
Refund not found
Loading...