[go: up one dir, main page]

Completes

 

A complete request can be used to complete a PAYOUT_INITIALIZE transaction which is a deferred transaction that is caused by either supplying the deferred flag on the transaction request or if using Optimize and a rule is configured to defer the transaction. A request to this endpoint will result in a PAYOUT_COMPLETE transaction.

This operation will be triggered automatically if a transaction is deferred by an Optimize rule that is configured to automatically capture a transaction. It will also be triggered when a transaction is accepted in Optimize Queue or when a transaction is completed on the Transaction Detail page. There may be a need to call this endpoint to manually force completion of a transaction. e.g. in the event of a communication discrepancy when a notification is not received and a task is stuck in the Queue.

Complete a Payout initialize

POST /acceptor/rest/transactions/{instId}/13504712363/complete
{}
HTTP/1.1 201
{
  "processing": {
    "authResponse": {
      "gatewayReference": "7832031551661246",
      "gatewayCode": "1",
      "gatewayMessage": "FULFILLED OK",
      "status": "AUTHORISED"
    },
    "route": "MCPE"
  },
  "financialServices": {
    "dateOfBirth": "19870818",
    "surname": "Smith",
    "accountNumber": "123ABC",
    "postCode": "BS20"
  },
  "transaction": {
    "transactionId": "13504712365",
    "status": "SUCCESS",
    "type": "PAYOUT_COMPLETE",
    "amount": 1000,
    "currency": "GBP",
    "transactionTime": "2014-01-06T20:59:40.233Z",
    "receivedTime": "2014-01-06T20:59:40.233Z",
    "relatedTransaction": {
      "transactionId": "13504712363",
      "merchantRef": "mer_txn_1234557"
    },
    "channel": "WEB"
  },
  "outcome": {
    "status": "SUCCESS",
    "reasonCode": "S100",
    "reasonMessage": "Authorised"
  }
}
API Endpoint
endpoint: /acceptor/rest/transactions/{instId}/{transactionId}/complete
method: POST
summary: process Complete

parameters:

Name
Data Type
Description
instId
The installation id
transactionId
transaction Id
request body:
{
transaction {
commerceType string
Possible Values: ECOM, MOTO, CNP
channel string
Possible Values: WEB, MOBILE, SMS, RETAIL, MOTO, IVR, OTHER
The Sales Channel for your Customer’s complete. If not provided the it will be inherited from the original transaction.
merchantRef string
description string
}
}