Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...


Excerpt

This method is used to reject a payment which is in draft state.

...

Name

Type

Description

token

String

The token retrieved from the login method

payment_identifier

(mandatory)

Payment Identifier  

The identifier of the payment that should be posted. Only payments in draft state can be specified.The allowed payment identifier fields are the following:

Include Page
V4:payment_identifier
V4:payment_identifier

rejection_reason_identifier

(optional)

Rejection reason identifier

The reason that the payment is rejected. The allowed rejection reason identifier fields are the following:

Include Page
V4:financial_transaction_rejection_reason_identifier
V4:financial_transaction_rejection_reason_identifier

fields_set

(optional)

List of Strings, comma separated 

A list of fields that should be included in the results. If not specified then all the available fields will be returned

...

Examples

 
Expand
titleExample 1


HTTP Method: POST

 


Request:

Body:

Code Block
languagejavascript
themeConfluence
languagejavascript
linenumberstrue
{
	"token": "B8D7A12E9F91AFADE914B7330AFD08CB",
	"payment_identifier":{"reference_number":"118"},
	"rejection_reason_identifier":{"name":"Reject Due to Business Request"},
}


Response:

Code Block
languagejavascript
themeConfluencelanguagejavascript
linenumberstrue
{
    "status":
    {
        "message": null,
        "description": null,
        "code": "OK"
    },
    "data":
    {
        "payment_amount": 50,
        "issued_on": "2014-07-14T17:06:28",
        "life_cycle_state": "REJECTED",
        "number": null,
        "id": "0ACCC72477BA606EE3B409400069F1BB",
        "reference_number": "118",
        "posted_on": null
    }
}


...