POST
/
transactions

Authorizations

Authorization
string
header
required

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.

customer_details
object
required

Customer details for this transaction.

invoice_currency
string
required

ISO 4217 alpha-3 currency code for the transaction.

line_items
object
required
subtotal
number
required

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

tax_collected
number
required

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

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.

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.

transaction_type
enum<string>
required

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

Available options:
SALE,
REFUND
discount
number

Total discount amount applied to the subtotal.

id
string

The unique identifier for a transaction.

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