Transaction
Creates a transaction for an order.
Creates a transaction for an order.
post/admin/orders/{order_id:(?:\\d+)}/transactions.json
Request body
Example request
{
"amount": 10,
"authorization": "ch_1AtJu6CktlpKSclI4zjeQb2t",
"created_at": "2019-03-13T16:09:54-04:00",
"currency": "USD",
"currency_exchange_adjustment": {
"adjustment": -0.01,
"currency": "CAD",
"final_amount": -53.63,
"id": 1,
"original_amount": -53.62
},
"device_id": 1,
"gateway": "shopbase_payments",
"id": 999225661,
"kind": "capture",
"location_id": 49202758,
"message": "Marked the Cash on Delivery (COD) payment as received.",
"order_id": 450789469,
"parent_id": 584698724408,
"payment_details": {
"avs_result_code": "123456",
"credit_card_bin": "M",
"credit_card_company": "Visa",
"cvv_result_code": "M"
},
"processed_at": "2019-05-10T11:00:00-05:00",
"source_name": "web",
"status": "success",
"test": true,
"updated_at": "2019-03-13T16:09:54-04:00"
}Response
OK
Example response
{
"transaction": {
"amount": 10,
"authorization": "ch_1AtJu6CktlpKSclI4zjeQb2t",
"created_at": "2019-03-13T16:09:54-04:00",
"currency": "USD",
"currency_exchange_adjustment": {
"adjustment": -0.01,
"currency": "CAD",
"final_amount": -53.63,
"id": 1,
"original_amount": -53.62
},
"device_id": 1,
"gateway": "shopbase_payments",
"id": 999225661,
"kind": "capture",
"location_id": 49202758,
"message": "Marked the Cash on Delivery (COD) payment as received.",
"order_id": 450789469,
"parent_id": 584698724408,
"payment_details": {
"avs_result_code": "123456",
"credit_card_bin": "M",
"credit_card_company": "Visa",
"cvv_result_code": "M"
},
"processed_at": "2019-05-10T11:00:00-05:00",
"source_name": "web",
"status": "success",
"test": true,
"updated_at": "2019-03-13T16:09:54-04:00"
}
}