πŸͺ„ API Reference

πŸ’³ Payment processing and transactions

Check API Connection Status

get
/status

Verifies that the connection to the One-CP API is established and returns the provider information. This endpoint is used for health checks and connection validation.

Responses
get
/status

Get transaction Status

get
/status/{transactionId}

Retrieves the status of a transaction by transaction ID. If the transaction status is PAID, returns additional checkout information including payment details, customer information, and billing data.

Path parameters
transactionIdstringRequired
Responses
200

Transaction status retrieved successfully

application/json
get
/status/{transactionId}

Initialize Corporate Checkout Transaction

post
/initialize

Creates a new transaction for corporate checkout processing. This endpoint accepts a complete checkout request with items, pricing, and metadata to generate a transaction ready for payment processing.

Body
currencystringRequired

Currency of the CorporateCheckout

Example: EUR
titlestringRequired

Title of the CorporateCheckout

Example: Off site event
notestringOptional

Additional notes about the CorporateCheckout. (Internal note only - not visible to the customer)

Example: Internal note
restrictedMethodsstring Β· enumOptional

Payment methods that the provider has deactivated

Possible values:
Responses
post
/initialize

Cancel Transaction and Process Refund (JSON)

patch
/cancel/{transactionId}

Cancels items in an existing contract and processes refunds based on cancellation policies.

        **Features:** 

        - Partial or full cancellation support 

        - Automatic refund calculation based on cancellation policies 

        - Real-time refund processing 

        - JSON format only (no file upload) 


        **Cancellation Process:** 

        1. Validate contract status and permissions 

        2. Calculate refundable amount based on cancellation policy 

        3. Process refund transaction 

        4. Update contract status 

        5. Generate cancellation receipt
Path parameters
transactionIdstringRequired
Body
Responses
200

Cancellation processed successfully

application/json
patch
/cancel/{transactionId}

Cancel Transaction and Process Refund (with File Upload)

patch
/cancel/{transactionId}/invoice

Cancels items in an existing contract and processes refunds based on cancellation policies.

        **Features:** 

        - Partial or full cancellation support 

        - Automatic refund calculation based on cancellation policies 

        - Optional invoice file upload for documentation 

        - Real-time refund processing 

        - Multipart/form-data format with optional file attachment 


        **Cancellation Process:** 

        1. Validate contract status and permissions 

        2. Calculate refundable amount based on cancellation policy 

        3. Process refund transaction 

        4. Update contract status 

        5. Generate cancellation receipt
Path parameters
transactionIdstringRequired
Body
Responses
200

Cancellation processed successfully

application/json
patch
/cancel/{transactionId}/invoice

Update Transaction info

put
/{transactionId}
Path parameters
transactionIdstringRequired
Body
Responses
200

Transaction updated successfully

application/json
put
/{transactionId}

Last updated