orderActivate
POSThttps://api.twisto.pl/psp/v2/order/{orderUuid}/activate/
Activate order.
Order can only be activated if the order status is
"accepted"
Security: Token Auth
Provide your auth token in the Authorization header when making requests to protected resources.
Example:Authorization: Token 123
Path Parameters
Param name | Type | Description | Required | Default values | Min/Max values |
---|---|---|---|---|---|
orderUuid | string | Order identifier | true |
Responses
Body
- id: string<uuid>required
Identifier
- external_id: stringrequired
External order ID provided by Partner.
<= 255 characters
- redirect_url: stringrequired
A URL address to redirect to after the order request is processed
- initial_amount: string<decimal>required
Original value of order
Match pattern:^-?\d{0,8}(?:\.\d{0,2})?$
- current_amount: string<decimal>required
Current value of order after refunds
Match pattern:^-?\d{0,8}(?:\.\d{0,2})?$
- refund_amount: string<decimal>required
How much was refunded
Match pattern:^-?\d{0,8}(?:\.\d{0,2})?$
- date_settled: string<date-time>required
When was the original order processed
- status: stringrequired
Order status
Allowed values:new
data_completed
checking
rejected
accepted
canceled
activated
refunded
error
- service: stringrequired
Type of utilized payment service
Allowed values:twisto-pay
pay-in-three
Response example
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"external_id": "string",
"redirect_url": "string",
"initial_amount": "692.00",
"current_amount": "50.00",
"refund_amount": "271.00",
"date_settled": "string",
"status": "new",
"service": "twisto-pay"
}