Add transaction for an order payment

Add transaction for an order payment

SecurityBearer
Request
path Parameters
order_id
required
string

Order identifier

payment_id
required
string

Payment identifier

header Parameters
x-merchant
required
string non-empty

Merchant identifier.

Example: norce
x-channel
required
string non-empty

Channel identifier

Example: 1
Request Body schema: application/json
event
string

Event that triggered the transaction.

Enum: "open" "process" "confirm" "reopen" "cancel" "paymentAction" "capture" "refund"
pspEvent
string

Payment service provider event.

amount
number <double>

Amount after transaction. Amount in major unit currency.

isSuccess
boolean

Indicated whether the transaction was successful.

errorDetail
string

Message detailing the error.

pspStatus
string

Payment service provider status.

requestJson
string

Transaction request. Must be a valid json.

responseJson
string

Transaction response. Must be a valid json.

object

Payment Action

Responses
200

OK

400

Bad Request

401

Unauthorized

404

Not Found

500

Internal Server Error

post/api/v0/checkout/orders/{order_id}/payments/{payment_id}/transactions
Request samples
application/json
{
  • "event": "open",
  • "pspEvent": "string",
  • "amount": 0,
  • "isSuccess": true,
  • "errorDetail": "string",
  • "pspStatus": "string",
  • "requestJson": "string",
  • "responseJson": "string",
  • "paymentAction": {
    }
}
Response samples
application/json
{
  • "event": "open",
  • "pspEvent": "string",
  • "amount": 0,
  • "isSuccess": true,
  • "errorDetail": "string",
  • "pspStatus": "string",
  • "requestJson": "string",
  • "responseJson": "string",
  • "created": "2019-08-24T14:15:22Z",
  • "paymentAction": {
    }
}
Copyright © Norce 2024. All right reserved.