Payments

Payments

Upload invoice file for a payment

post

Upload an invoice file (PDF, image) for a specific payment record

Authorizations
Path parameters
paymentintegerRequired

Payment ID

Body
invoice_filefileOptional

Invoice file (PDF, JPEG, PNG, JPG, GIF)

Responses
post
/api/admin/payments/{payment}/upload-invoice

Approve or reject a payment

post

Admin endpoint to approve or reject a pending payment request

Authorizations
Path parameters
paymentintegerRequired

Payment ID

Body
statusstring · enumRequired

Payment approval status

Possible values:
Responses
post
/api/admin/payments/{payment}/process-status

Charge an organization's wallet

post
Authorizations
Path parameters
organizationstring · uuidRequired

Organization UUID

Body
amountintegerRequired

Amount to charge

Example: 1000
servicestring · enumRequired

Service type

Example: smsPossible values:
sms_pointintegerOptional

Required when service is 'sms'. Number of SMS points

Example: 100
reasonstringOptional

Optional reason for the charge

Example: Monthly SMS package
Responses
200

Charge processed successfully

application/json
post
/api/admin/payments/{organization}/charge

Process a checkout request for a service

post

This endpoint processes a checkout request, calculates the total amount including tax, determines SMS points if applicable, and generates a payment URL.

Body
servicestringRequired

The service type (sms or other)

Example: sms
amountintegerRequired

The amount to be processed

Example: 100
Responses
200

Payment URL Generated

application/json
post
/api/payments/workspaces/{workspace}/payment/checkout

Handle URWay payment callback

get

This endpoint handles the callback from URWay after a payment attempt.

Body
PaymentIdstringOptional

Payment ID

TrackIdstringOptional

Tracking ID

TranIdstringOptional

Transaction ID

ResultstringOptional

Payment result

ResponseCodestringOptional

Response code from payment gateway

responseHashstringOptional

Response hash for validation

cardBrandstringOptional

Brand of the card used for payment

amountnumberOptional

Amount paid

maskedPANstringOptional

Masked PAN of the card

PaymentTypestringOptional

Type of payment (e.g., CreditCard)

UserField1stringOptional

Additional user data, typically in JSON format

Responses
200

Payment processed successfully

No content

get
/api/payment/callback

No content

Calculate the total amount including tax for a specific service

get

This endpoint calculates the total amount for a specified service (e.g., SMS or Other) including tax or other operations.

Body
servicestringRequired

The service type (sms or other)

Example: sms
amountintegerRequired

The amount to be processed

Example: 100
Responses
200

Success

application/json
get
/api/payment/workspaces/{workspace}/payment/total-amount

Submit a request to convert points to currency or currency to points

post

Allows a user to submit a conversion request, which must be approved by an admin.

Authorizations
Body
amountnumber · floatRequiredExample: 100
conversion_typestring · enumRequiredExample: points_to_currencyPossible values:
Responses
200

Conversion request submitted successfully

application/json
post
/api/request-conversion

Get available payment methods

get

Retrieve list of payment methods

Path parameters
workspaceintegerRequired

Workspace ID

Responses
200

Successful operation

application/json
get
/api/organizations/{organization}/plans/payment_method
200

Successful operation

Process plan payment through gateway

post

Create a payment request for a plan through payment gateway

Path parameters
organizationintegerRequired

Organization ID

Body
plan_idintegerOptional

Plan ID

Responses
200

Payment URL generated successfully

application/json
post
/api/organizations/{organization}/plans/gatway_checkout

Payment gateway callback

get

Handle the payment gateway callback after payment processing

Path parameters
organizationintegerRequired

Organization ID

Query parameters
PaymentIdstringRequired
UserField1stringRequired
Responses
get
/organizations/{organization}/plans/urway_callback

No content

Create bank charge request for plan

post

Submit a bank transfer request for purchasing a plan with receipt attachment

Path parameters
organizationintegerRequired

Organization ID

Body
plan_idintegerOptional

Plan ID

receipt_attachstring · binaryOptional

Receipt attachment image

Responses
post
/api/organizations/{organization}/plans/charge_request_bank

Last updated