Offline

Offline transaction API allows partners to record offline transactions such as Cash or Check deposits.

Records and offline payment

POST https://<PayEngine-host>/api/payment/offline

Request Body

Name
Type
Description

merchant_id*

string

Merchant ID of the offline transaction

data.transaction_amount*

Number

Offline transaction amount

data.type

string

Offline transaction type, e.g. Cash, Check, Credit, Debit, Gift, Other Defaults to other if not provided

currency_code

string

ISO Currency code, If not provided it defaults to US Dollar (USD)

internal_transaction_id

string

An internal ID from integrating system.

data.description

string

Transaction description

data.transaction_date

string

Transaction timestamp

data.additional_data

object

Optional data. Currently, it is specific to send additional terms or notes for this offline transaction

data.metadata

object

Add any additional metadata by passing a json object

Field Name
Type
Description
Required?

id

string

PayEngine payment ID for the sale request

Required

transaction_id

string

Unique transaction ID

Required

merchant_id

string

Merchant ID

Required

description

string

Transaction description from the request

Optional

internal_transaction_id

string

Internal Transaction ID from the request

Optional

offline_sale_response.status

string

Transaction execution status. Allowed values PASS | FAIL

Required

offline_sale_response.transaction_timestamp

string

Transaction date from the request

Required

offline_sale_response.transaction_type

string

It will be Offline Sale Approved

Required

offline_sale_response.transaction_amount

string

Transaction amount from the request

Required

offline_sale_response.currency_code

string

ISO Currency code provided in the request. Default is USD if not provided in the request

offline_sale_response.payment_method

string

Payment method of the transaction. It will be "Offline - {type}. E.g. Offline - Cash if the transaction type is cash

Required

additional_data

string

Additional data from the request

Optional

metadata

string

Metadata from the request

Optional

Sample Request

Webhook event: OFFLINE_SALE

Webhook Payload Example

Last updated