POST
/
transactions

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
corporation_id
string
required

The unique identifier for the corporation associated with this transaction.

transacted_at
string
required

ISO 8601 formatted date string indicating date on which the transaction took place. If tax calculations need to be based on a different date, please contact our team for assistance.

customer_details
object
required

Customer details for this transaction.

invoice_currency
string
required

ISO 4217 alpha-3 currency code for the transaction.

subtotal
number
required

Total amount before tax, shipping, handling, and discounts.

line_items
object
required
total
number
required

This is the total amount charged to the customer, which includes the subtotal, shipping and handling fees, tax, and reflects any applied discounts.

tax_collected
number
required

Numeric value representing the amount of sales tax paid by the customer for this transaction

transaction_type
enum<string>
required

Type of the transaction. Currently sales and refund transactions are supported.

Available options:
SALE,
REFUND
id
string

The unique identifier for a transaction.

discount
number

Total discount amount applied to the subtotal.

shipping_and_handling
number

Total shipping and handling charges.

source_platform
enum<string>

The platform from which the transaction originated. This is useful for tracking transactions from different platforms.

Available options:
RAZORPAY,
OTHER

Response

200 - application/json
data
object
message
string