Cancel payparts order
POST /api/payparts/v1/order/cancel
Cancel payparts order
Common response statuses:
- Status:
successStatus Code:cancel_successful- payparts order was successfully canceled - Status:
failureStatus Code: any - depends on error
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
Callbacks
Section titled “ Callbacks ”PPAYProcessingCallback
Section titled “PPAYProcessingCallback”Return operations data if order was processed successfully or occurred the business error
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”With this header, you can verify if the callback is from RozetkaPay.
Calculation algorithm:
signature=base64url_encode(sha1($password + base64url_encode($json_body) + $password))Request Body
Section titled “Request Body ”object
Internal operation id
External id
Unified external id
object
Possible status codes grouped by status:
| Status | Status Code | Description |
|---|---|---|
| success | transaction_successful | Transaction successful. |
| success | contract_was_signed_on_client_side | The contract was signed on the client side. |
| success | refund_successful | Refund successful. |
| pending | pending | Pending. |
| failure | failed_to_create_transaction | Failed to create transaction. |
| failure | internal_error | Internal error. |
| failure | transaction_not_found | Transaction not found. |
| failure | wrong_cooperation_type | Wrong cooperation type. |
| failure | transaction_rejected | Transaction rejected. |
| pending | waiting_for_redirect | Waiting for redirect. |
| pending | confirmation_required | Confirmation required. |
| failure | order_expired | Order expired. |
| failure | transaction_declined | Transaction declined. |
| failure | user_not_found | User not found. |
| failure | insufficient_funds | Insufficient funds. |
| failure | transaction_is_canceled_by_payer | Transaction is canceled by payer. |
| failure | transaction_limit_exceeded | Transaction limit exceeded. |
| failure | transaction_not_supported | Transaction not supported. |
| failure | wrong_payment_count | Wrong number of payment count. |
| failure | wrong_installment_period | Wrong installment period. |
| failure | banking_application_is_not_installed | Banking application is not installed. |
| failure | bank_is_not_supported | The bank is not supported. |
| failure | invalid_phone_number | Invalid phone number. |
| failure | simultaneous_open_orders_not_supported_by_bank | Simultaneous open orders are not supported by the bank. |
| failure | transaction_amount_limit | Transaction amount limit. |
| failure | finmon_validation_failed | Finmon validation failed. |
| failure | insufficient_funds_for_refund | Insufficient funds on account for refund. |
object
Fiscalization identifier
Fiscalization receipt URL
Fiscalization status
Fiscalization status code
- 1000: Test result
- 1001: Operation successful
- 1002: Operation in progress
- 2001: Invalid fiscalization data. Please verify product information
- 2002: Internal error. Please contact support
- 2003: Not authorized. Please check your permissions
- 2004: Temporary failure. Please try again later
- 2005: Fiscalization service temporarily unavailable
- 2006: Not authorized. Please verify your token
- 3001: Required data not found
- 3002: Duplicate attempt detected
- 4001: Cash register not activated in tax system
- 4002: Cash register blocked. Please contact support
- 4003: Cash register data conflict detected. Please try again later
- 4004: Cash register processing another operation. Please try again later
- 4005: Cannot change cash register operating mode
- 4006: Cash register locked by another application. Please close all other fiscal software
- 4050: Fiscal shift not opened. Please open a shift in your cash register before processing transactions
- 4051: Fiscal shift is not closed. Please close the current shift
- 5001: Electronic signature key not registered with tax authorities. Please register your EDS key in the tax system before enabling fiscalization
- 5002: Electronic signature key has been revoked. Please obtain and register a new EDS certificate
- 5003: Electronic signature verification failed. Please check your EDS key validity and permissions
- 6001: Tax authority service error. Please contact support
- 6002: Tax authority service unavailable. Please try again later
- 6003: Tax authority response timeout. Please try again later
- 7001: Fiscal receipt validation failed. Receipt sequence broken. Please contact support
- 7002: Fiscal receipt generation failed. Please contact support
Fiscalization status description
A boolean flag which indicates if action from the customer is required
Object which contains information about required post-request action. Will be null if action not required.
object
Action value. Usually it’s a checkout url or 3ds verification url.
Link to the receipt for user
Responses
Section titled “ Responses ”Shows that callback was accepted. No further callback after this response.
Responses
Section titled “ Responses ”object
Internal operation id
External id
Unified external id
object
Possible status codes grouped by status:
| Status | Status Code | Description |
|---|---|---|
| success | transaction_successful | Transaction successful. |
| success | contract_was_signed_on_client_side | The contract was signed on the client side. |
| success | refund_successful | Refund successful. |
| pending | pending | Pending. |
| failure | failed_to_create_transaction | Failed to create transaction. |
| failure | internal_error | Internal error. |
| failure | transaction_not_found | Transaction not found. |
| failure | wrong_cooperation_type | Wrong cooperation type. |
| failure | transaction_rejected | Transaction rejected. |
| pending | waiting_for_redirect | Waiting for redirect. |
| pending | confirmation_required | Confirmation required. |
| failure | order_expired | Order expired. |
| failure | transaction_declined | Transaction declined. |
| failure | user_not_found | User not found. |
| failure | insufficient_funds | Insufficient funds. |
| failure | transaction_is_canceled_by_payer | Transaction is canceled by payer. |
| failure | transaction_limit_exceeded | Transaction limit exceeded. |
| failure | transaction_not_supported | Transaction not supported. |
| failure | wrong_payment_count | Wrong number of payment count. |
| failure | wrong_installment_period | Wrong installment period. |
| failure | banking_application_is_not_installed | Banking application is not installed. |
| failure | bank_is_not_supported | The bank is not supported. |
| failure | invalid_phone_number | Invalid phone number. |
| failure | simultaneous_open_orders_not_supported_by_bank | Simultaneous open orders are not supported by the bank. |
| failure | transaction_amount_limit | Transaction amount limit. |
| failure | finmon_validation_failed | Finmon validation failed. |
| failure | insufficient_funds_for_refund | Insufficient funds on account for refund. |
object
Fiscalization identifier
Fiscalization receipt URL
Fiscalization status
Fiscalization status code
- 1000: Test result
- 1001: Operation successful
- 1002: Operation in progress
- 2001: Invalid fiscalization data. Please verify product information
- 2002: Internal error. Please contact support
- 2003: Not authorized. Please check your permissions
- 2004: Temporary failure. Please try again later
- 2005: Fiscalization service temporarily unavailable
- 2006: Not authorized. Please verify your token
- 3001: Required data not found
- 3002: Duplicate attempt detected
- 4001: Cash register not activated in tax system
- 4002: Cash register blocked. Please contact support
- 4003: Cash register data conflict detected. Please try again later
- 4004: Cash register processing another operation. Please try again later
- 4005: Cannot change cash register operating mode
- 4006: Cash register locked by another application. Please close all other fiscal software
- 4050: Fiscal shift not opened. Please open a shift in your cash register before processing transactions
- 4051: Fiscal shift is not closed. Please close the current shift
- 5001: Electronic signature key not registered with tax authorities. Please register your EDS key in the tax system before enabling fiscalization
- 5002: Electronic signature key has been revoked. Please obtain and register a new EDS certificate
- 5003: Electronic signature verification failed. Please check your EDS key validity and permissions
- 6001: Tax authority service error. Please contact support
- 6002: Tax authority service unavailable. Please try again later
- 6003: Tax authority response timeout. Please try again later
- 7001: Fiscal receipt validation failed. Receipt sequence broken. Please contact support
- 7002: Fiscal receipt generation failed. Please contact support
Fiscalization status description
A boolean flag which indicates if action from the customer is required
Object which contains information about required post-request action. Will be null if action not required.
object
Action value. Usually it’s a checkout url or 3ds verification url.
Link to the receipt for user