Skip to main content

Creates a new transaction from a transaction intent

PUT 

/transactions/:transactionId/from-intent

Creates a new transaction from a transaction intent

Request

Path Parameters

    transactionId uuidrequired

    The id of the transaction which should be returned.

Body

required

    transactionIntentId uuid

    The id of the transaction intent which should be used for creation of the transaction.

    documents

    object[]

    A collection of documents' metadata required for the specific transaction.

  • Array [

  • id uuidrequired

    The id of an already uploaded document returned by the C2D Document Service

    type DocumentType (string)required

    The type of the document

  • ]

Responses

Successful response. Transaction has been created.

Response Headers

  • Location

    string

    The relative URI of the transaction.

  • ETag

    string

    The current version identifier of the transaction.

Schema

    id uuid

    The id of the transaction

    type TransactionType (string)required

    Possible values: [PassthroughDeposit, PassthroughWithdrawal, CustomerToMerchantTransfer, CustomerToMerchantPassthrough, MerchantToCustomerTransfer, MerchantToCustomerPassthrough]

    The type of the transaction, defining which other transaction properties are mandatory, e.g. PassthroughDeposit requires customerId, merchantId, documents, card

    amount numberrequired

    Possible values: <= 10000

    The amount of the transaction

    currency stringrequired

    The currency code as ISO 4217 3-digit code (https://en.wikipedia.org/wiki/ISO_4217).

    customerId uuidrequired

    The unique id of the customer participating in the transaction. Available if type is Passthrough

    description TransactionDescription (string)

    Possible values: non-empty and <= 100 characters, Value must match regular expression ^[\p{L}0-9'\.\-\\!\$\%\&\/\\\(\)\[\]\{\}\=\?\+\*\#\;\,\:_\"]{1,100}$

    A short text describing the purpose of the transaction

    referenceTransactionId uuid

    The id of another existing transaction referenced by the current one. Available if type is *Reversal or *Refund

    state TransactionState (string)

    Possible values: [Declined, Completed, Cancelled]

    The current(last) state of the transaction.

    status TransactionStatus (string)

    Possible values: [BeingProcessed, Succeeded, Failed]

    The overall status/outcome of the transaction.

    createdOn date-time

    The server-generated timestamp of the initial creation of the transaction record, in ISO 8601 format of YYYY-MM-DDThh:mm:ssZ in UTC time

    distributorId uuidrequired

    The unique id of the distributor the account balance of whom will be affected. Available if type is DistributorPayment*

    externalReference ExternalReference (string)

    Possible values: non-empty and <= 50 characters, Value must match regular expression ^[\d\p{L}]([\d\p{L}\-\. ]{0,48}[\d\p{L}])$

    A reference to a transaction in an external system e.g. bank transfer.

Loading...