Versions Compared

Key

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

Table of Contents
maxLevel2

GET payments/show

This method returns information related with a payment.  A single payment is returned by each call

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

(mandatory)

...

Payment identifier  

The identifier of the payment that should be returned as a result. The allowed payment identifier fields are the following:

...

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

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

...

Examples

Expand
titleExample 1

HTTP Method: GET

 

Request:

Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
    "status":
    {
        "message": null,
        "description": null,
        "code": "OK"
    },
    "data":
    {
        "invoices_to_pay_set":
        [
            {
                "total_amount": 138,
                "issued_on": "2014-07-14T10:31:15",
                "life_cycle_state": "POSTED",
                "number": "I00000294",
                "due_on": "2014-08-17T10:35:57",
                "id": "176AB06AE6DBFDB103182C67C68A2A8B",
                "outstanding_amount": 0,
                "reference_number": "322",
                "posted_on": "2014-07-14T10:35:57"
            }
        ],
        "udf_float_1": null,
        "udf_float_2": null,
        "udf_float_3": null,
        "udf_float_4": null,
        "number": "96",
        "udf_string_1": null,
        "udf_string_2": null,
        "udf_string_3": null,
        "received_by_unit":
        {
            "community_name": "Main Community",
            "group_name": "Main Group",
            "name": "Admin Unit",
            "id": "48305F8849E3C18B227C5BE3A27BA6DF",
            "description": "r1",
            "alternative_code": "MG"
        },
        "udf_string_4": null,
        "udf_string_5": null,
        "udf_string_6": null,
        "udf_string_7": null,
        "udf_string_8": null,
        "accounts_receivable":
        {
            "account_owner":
            {
                "last_name": "Johnson",
                "middle_name": null,
                "company_profile": null,
                "type": "PERSON",
                "first_name": "Peter",
                "name": "Peter Johnson",
                "id": "C73D1572FEA76C37A08945ECE4DECC98",
                "company_name": null,
                "demographics":
                {
                    "gender": "MALE",
                    "passport_issued_by_country": null,
                    "passport_number": "7839023",
                    "social_security_number": "98374",
                    "country_of_residence":
                    {
                        "name": "CYPRUS",
                        "id": "181"
                    },
                    "industry_sector":
                    {
                        "name": "GOVERNMENTAL",
                        "id": "A9BDEBD4D8FAEDB0BACE40C041156D12"
                    },
                    "date_of_birth":
                    {
                        "month": 4,
                        "day": 6,
                        "year": 1985
                    },
                    "name_day":
                    {
                        "month": 6,
                        "day": 29
                    },
                    "id_number": "984783",
                    "id_issued_by_country":
                    {
                        "name": "CYPRUS",
                        "id": "181"
                    },
                    "industry": null
                }
            },
            "life_cycle_state": "ACTIVE",
            "number": "192",
            "name": "Peter Johnson Premium",
            "id": "2C5FC6F615FA9E798487AC0C293ECCE6"
        },
        "received_by_user":
        {
            "person_name": "JackH",
            "username": "JackH",
            "id": "B8650C555C4EA8C741103961276E7773",
            "email": "j_hadjicosti@crm.com"
        },
        "bills_to_pay_set":
        [
        ],
        "id": "830C6B800A1EAB42EA8D670ED6871E41",
        "posted_on": "2014-07-14T10:41:13",
        "udf_date_1": null,
        "udf_date_2": null,
        "udf_date_3": null,
        "udf_date_4": null,
        "log_information":
        {
            "updated_date": "2014-07-14T10:41:14",
            "created_by_unit":
            {
                "community_name": "Main Community",
                "group_name": "Main Group",
                "name": "Admin Unit",
                "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                "description": "r1",
                "alternative_code": "MG"
            },
            "created_date": "2014-07-14T10:40:29",
            "updated_by_unit":
            {
                "community_name": "Main Community",
                "group_name": "Main Group",
                "name": "Admin Unit",
                "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                "description": "r1",
                "alternative_code": "MG"
            },
            "created_by_user":
            {
                "person_name": "JackH",
                "username": "JackH",
                "id": "B8650C555C4EA8C741103961276E7773",
                "email": "j_hadjicosti@crm.com"
            },
            "updated_by_user":
            {
                "person_name": "JackH",
                "username": "JackH",
                "id": "B8650C555C4EA8C741103961276E7773",
                "email": "j_hadjicosti@crm.com"
            }
        },
        "payment_amount": 60,
        "issued_on": "2014-07-14T10:40:29",
        "life_cycle_state": "POSTED",
        "type":
        {
            "classification": "PAYMENT",
            "name": "Invoices Balance Payment",
            "id": "9CC46F8C0A203CCA7A40B58825E74704",
            "description": null,
            "alternative_code": "INVBALPAY"
        },
        "payment_method":
        {
            "name": "Bank Transfer",
            "id": "PM7",
            "description": "Bank Transfer",
            "alternative_code": "BT"
        },
        "rejection_reason": null,
        "received_on": "2014-07-14T10:40:29",
        "reference_number": "111",
        "category": null
    }
}

 

GET payments/list

This method returns information related with  payments. Multiple payments are returned by each call

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

(mandatory)

...

Accounts receivable identifier  

The identifier of the accounts receivable in which the payments that should be returned as a result should be allocated. The allowed accounts receivable identifier fields are the following:

...

type_identifier

(optional)

...

The financial transaction type of the payment that should be returned as a result. The allowed financial transaction type identifier field are the following:

...

category_identifier

(optional)

...

The financial transaction category of the payment that should be returned as a result. The allowed financial transaction category identifier fields are the following:

...

payment_method_identifier

(optional)

...

The payment method of the payment that should be returned as a result. The allowed payment method identifier fields are the following:

...

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

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

...

Examples

Expand
titleExample 1

HTTP Method: GET

 

Request:

Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
    "status":
    {
        "message": null,
        "description": null,
        "code": "OK"
    },
    "data":
    [
        {
            "life_cycle_state": "POSTED",
            "id": "830C6B800A1EAB42EA8D670ED6871E41",
            "reference_number": "111"
        },
        {
            "life_cycle_state": "POSTED",
            "id": "F29426EFD767C7F35AC5BB179B8F7669",
            "reference_number": "113"
        }
    ]
}

 

GET payments/get_latest

This method is used to get the latest payments that were submitted against a specific accounts receivable

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

(mandatory)

...

Accounts receivable identifier  

The identifier of the accounts receivable in which the payments that should be returned as a result should be allocated. The allowed accounts receivable identifier fields are the following:

...

type_identifier

(optional)

...

The financial transaction type of the payment that should be returned as a result. The allowed financial transaction type identifier field are the following:

...

category_identifier

(optional)

...

The financial transaction category of the payment that should be returned as a result. The allowed financial transaction category identifier fields are the following:

...

payment_method_identifier

(optional)

...

The payment method of the payment that should be returned as a result. The allowed payment method identifier fields are the following:

...

number

(mandatory)

...

The number of payments to be retrieved, starting from the latest one

...

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

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

...

Examples

Expand
titleExample 1

HTTP Method: GET

 

Request:

Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
    "status":
    {
        "message": null,
        "description": null,
        "code": "OK"
    },
    "data":
    [
        {
            "number": "98",
            "id": "F29426EFD767C7F35AC5BB179B8F7669",
            "reference_number": "113"
        },
        {
            "number": "96",
            "id": "830C6B800A1EAB42EA8D670ED6871E41",
            "reference_number": "111"
        }
    ]
}

 

 

POST payments/create

This method is creating a new payment either in Draft or Posted state

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

(mandatory)

...

Accounts receivable identifier  

The identifier of the accounts receivable in which the payment should be allocated to. The allowed accounts receivable identifier fields are the following:

...

type_identifier

(mandatory)

...

The financial transaction type of the payment. The allowed financial transaction type identifier field are the following:

...

life_cycle_state

(mandatory)

...

The state of the retrieved payment which can be one of the following:

DRAFT, POSTED

...

payment_method_identifier

(mandatory)

...

The payment method of the payment. The allowed payment method identifier fields are the following:

...

payment_amount

(mandatory)

...

category_identifier

(optional)

...

The financial transaction category of the payment that should be returned as a result. The allowed financial transaction category identifier fields are the following:

...

received_on

(optional)

...

received_by_user_identifier

(optional)

...

The user who actually received the payment. It defaults to the issued by user if not specified. The allowed user identifier fields are the following:

...

received_by_unit_identifier

(optional)

...

card_identifier

(mandatory on conditions)

...

The card that will be charged for the amount specified on the payment, by the related payment gateway provider. The allowed payment gateway card identifier fields are the following:

...

The card is applicable and mandatory if the specified payment method is linked with a payment gateway system. Note that the retrieved cards are filtered based on the cards owned by the specified accounts receivable owner

Tip

Available from CRM.COM R5.0.0

...

notes

(optional)

...

udf_string_1

(optional)

...

User Defined Field of type String

...

udf_string_2

(optional)

...

String

...

User Defined Field of type String

...

udf_string_3

(optional)

...

String

...

User Defined Field of type String

...

udf_string_4

(optional)

...

String

...

User Defined Field of type String

...

udf_string_5

(optional)

...

String

...

User Defined Field of type String

...

udf_string_6

(optional)

...

String

...

User Defined Field of type String

...

udf_string_7

(optional)

...

String

...

User Defined Field of type String

...

udf_string_8

(optional)

...

String

...

User Defined Field of type String

...

udf_float_1

(optional)

...

Float

...

User Defined Field of type Float

...

udf_float_2

(optional)

...

Float

...

User Defined Field of type Float

...

udf_float_3

(optional)

...

Float

...

User Defined Field of type Float

...

udf_float_4

(optional)

...

Float

...

User Defined Field of type Float

...

udf_date_1

(optional)

...

Date

...

User Defined Field of type Date

...

udf_date_2

(optional)

...

Date

...

User Defined Field of type Date

...

udf_date_3

(optional)

...

Date

...

User Defined Field of type Date

...

udf_date_4

(optional)

...

Date

...

User Defined Field of type Date

...

invoices_to_pay_set

(optional)

...

bills_to_pay_set

(optional)

...

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

...

Examples

Expand
titleExample 1

HTTP Method: POST

 

Request:

Body:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
    "token": "825D7B5BB7F62E043A7C73B0FFBF124F",
    "accounts_receivable_identifier":{"number":"200"},
    "type_identifier":{"name":"Payment 1"},
    "life_cycle_state":"POSTED",
    "payment_method_identifier":{"name":"Stripe Payment Gateway"},
    "card_identifier":{"payment_gateway_reference_number":"card_15S0w0E0IcJRGs11e6ffmDXK"},
    "payment_amount":"50",
    "received_on":"2015-03-02T09:12:54",
    "received_by_user_identifier":{"username":"mpadministrator"},
    "received_by_unit_identifier":{"name":"Admin Unit"},
    "description":"Payment",
    "notes":"Payment note",
    "udf_string_1":"udf string 1",
   "udf_string_2":"udf string 2",
   "udf_string_3":"udf string 3",
   "udf_string_4":"udf string 4",
   "udf_string_5":"udf string 5",
   "udf_string_6":"udf string 6",
   "udf_string_7":"udf string 7",
   "udf_string_8":"udf string 8",
   "udf_float_1":10,
   "udf_float_2":20,
   "udf_float_3":30,
   "udf_float_4":40,
   "udf_date_1":"2014-05-05T15:49:59",
   "udf_date_2":"2014-06-05T15:49:59",
   "udf_date_3":"2014-07-05T15:49:59",
   "udf_date_4":"2014-08-05T15:49:59",
    "bills_to_pay_set": [
    {
       "bill_identifier":{"number":"163"},
    }]
}

Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
       "status":
       {
           "message": null,
           "description": null,
           "code": "OK"
       },
       "data":
       {
           "payment_gateway_reference_number": "ch_15S1nyE0IcJRGs11wD2c3TUn",
           "payment_amount": 50,
           "issued_on": "2015-02-03T10:12:48",
           "processed_by_payment_gateway": "STRIPE",
           "life_cycle_state": "POSTED",
           "number": "245",
           "id": "BF2392E94DB88F496656F6AFE860A673",
           "reference_number": "277",
           "posted_on": "2015-02-03T10:12:52"
       }
}

POST payments/pay_invoice

This method is creating a new payment with the intention to pay the whole outstanding amount of a specific invoice. The method can be applied on a single invoice only. The payment is created in a posted state

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

(mandatory)

...

Accounts receivable identifier  

The identifier of the accounts receivable in which the payment should be allocated to. The allowed accounts receivable identifier fields are the following:

...

type_identifier

(mandatory)

...

The financial transaction type of the payment. The allowed financial transaction type identifier field are the following:

...

category_identifier

(optional)

...

The financial transaction category of the payment that should be returned as a result. The allowed financial transaction category identifier fields are the following:

...

payment_method_identifier

(mandatory)

...

The payment method of the payment. The allowed payment method identifier fields are the following:

...

invoice_identifier

(mandatory)

...

The invoice to be paid. The allowed invoice identifier fields are the following:

...

received_on

(optional)

...

received_by_user_identifier

(optional)

...

The user who actually received the payment. It defaults to the issued by user if not specified. The allowed user identifier fields are the following:

...

received_by_unit_identifier

(optional)

...

card_identifier

(mandatory on conditions)

...

The card that will be charged for the amount specified on the payment, by the related payment gateway provider. The allowed payment gateway card identifier fields are the following:

...

The card is applicable and mandatory if the specified payment method is linked with a payment gateway system. Note that the retrieved cards are filtered based on the cards owned by the specified accounts receivable owner

Tip

Available from CRM.COM R5.0.0

...

notes

(optional)

...

udf_string_1

(optional)

...

User Defined Field of type String

...

udf_string_2

(optional)

...

String

...

User Defined Field of type String

...

udf_string_3

(optional)

...

String

...

User Defined Field of type String

...

udf_string_4

(optional)

...

String

...

User Defined Field of type String

...

udf_string_5

(optional)

...

String

...

User Defined Field of type String

...

udf_string_6

(optional)

...

String

...

User Defined Field of type String

...

udf_string_7

(optional)

...

String

...

User Defined Field of type String

...

udf_string_8

(optional)

...

String

...

User Defined Field of type String

...

udf_float_1

(optional)

...

Float

...

User Defined Field of type Float

...

udf_float_2

(optional)

...

Float

...

User Defined Field of type Float

...

udf_float_3

(optional)

...

Float

...

User Defined Field of type Float

...

udf_float_4

(optional)

...

Float

...

User Defined Field of type Float

...

udf_date_1

(optional)

...

Date

...

User Defined Field of type Date

...

udf_date_2

(optional)

...

Date

...

User Defined Field of type Date

...

udf_date_3

(optional)

...

Date

...

User Defined Field of type Date

...

udf_date_4

(optional)

...

Date

...

User Defined Field of type Date

 

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

...

Examples

...

titleExample 1

HTTP Method: POST

 

Request:

Body:

Code Block
themeConfluence
languagejavascript
linenumberstrue
 {
	"token": "B8D7A12E9F91AFADE914B7330AFD08CB",
	"accounts_receivable_identifier":{"number":"192"},
	"life_cycle_state":"POSTED",
	"type_identifier":{"name":"Invoices Balance Payment"},
	"payment_method_identifier":{"name":"Direct Debit"},
	"category_identifier":{"name":"Invoice Payments"},
	"invoice_identifier":{"reference_number":"328"},
	"received_on":"2014-07-14T09:12:54",
	"received_by_user_identifier":{"username":"JackH"},
	"received_by_unit_identifier":{"name":"Admin Unit"},
}

Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
    "status":
    {
        "message": null,
        "description": null,
        "code": "OK"
    },
    "data":
    {
        "payment_amount": 225,
        "issued_on": "2014-07-14T16:49:11",
        "life_cycle_state": "POSTED",
        "number": "100",
        "id": "83DFE781350877933A6FA2A51EF0F102",
        "reference_number": "115",
        "posted_on": "2014-07-14T16:49:11"
    }
}

 

POST payments/pay_bill

This method is creating a new payment with the intention to pay the whole outstanding amount of a specific bill. The method can be applied on a single billonly. The payment is created in a posted state

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

(mandatory)

...

Accounts receivable identifier  

The identifier of the accounts receivable in which the payment should be allocated to. The allowed accounts receivable identifier fields are the following:

...

type_identifier

(mandatory)

...

The financial transaction type of the payment. The allowed financial transaction type identifier field are the following:

...

category_identifier

(optional)

...

The financial transaction category of the payment that should be returned as a result. The allowed financial transaction category identifier fields are the following:

...

payment_method_identifier

(mandatory)

...

The payment method of the payment. The allowed payment method identifier fields are the following:

...

bill_identifier

(mandatory)

...

The invoice to be paid. The allowed invoice identifier fields are the following:

...

received_on

(optional)

...

received_by_user_identifier

(optional)

...

The user who actually received the payment. It defaults to the issued by user if not specified. The allowed user identifier fields are the following:

...

received_by_unit_identifier

(optional)

...

card_identifier

(mandatory on conditions)

...

The card that will be charged for the amount specified on the payment, by the related payment gateway provider. The allowed payment gateway card identifier fields are the following:

...

The card is applicable and mandatory if the specified payment method is linked with a payment gateway system. Note that the retrieved cards are filtered based on the cards owned by the specified accounts receivable owner

Tip

Available from CRM.COM R5.0.0

...

notes

(optional)

...

udf_string_1

(optional)

...

User Defined Field of type String

...

udf_string_2

(optional)

...

String

...

User Defined Field of type String

...

udf_string_3

(optional)

...

String

...

User Defined Field of type String

...

udf_string_4

(optional)

...

String

...

User Defined Field of type String

...

udf_string_5

(optional)

...

String

...

User Defined Field of type String

...

udf_string_6

(optional)

...

String

...

User Defined Field of type String

...

udf_string_7

(optional)

...

String

...

User Defined Field of type String

...

udf_string_8

(optional)

...

String

...

User Defined Field of type String

...

udf_float_1

(optional)

...

Float

...

User Defined Field of type Float

...

udf_float_2

(optional)

...

Float

...

User Defined Field of type Float

...

udf_float_3

(optional)

...

Float

...

User Defined Field of type Float

...

udf_float_4

(optional)

...

Float

...

User Defined Field of type Float

...

udf_date_1

(optional)

...

Date

...

User Defined Field of type Date

...

udf_date_2

(optional)

...

Date

...

User Defined Field of type Date

...

udf_date_3

(optional)

...

Date

...

User Defined Field of type Date

...

udf_date_4

(optional)

...

Date

...

User Defined Field of type Date

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

...

Examples

...

titleExample 1

HTTP Method: POST

 

Request:

Body:

Code Block
themeConfluence
languagejavascript
linenumberstrue
 {
	"token": "B8D7A12E9F91AFADE914B7330AFD08CB",
	"accounts_receivable_identifier":{"number":"186"},
	"life_cycle_state":"POSTED",
	"type_identifier":{"name":"Invoices Balance Payment"},
	"payment_method_identifier":{"name":"Direct Debit"},
	"category_identifier":{"name":"Bill Payments"},
	"bill_identifier":{"number":"128"},
	"received_on":"2014-07-14T09:12:54",
	"received_by_user_identifier":{"username":"JackH"},
	"received_by_unit_identifier":{"name":"Admin Unit"},
}

Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
    "status":
    {
        "message": null,
        "description": null,
        "code": "OK"
    },
    "data":
    {
        "payment_amount": 100,
        "issued_on": "2014-07-14T17:01:43",
        "life_cycle_state": "POSTED",
        "number": "101",
        "id": "B88388BA9E05BCBBB4579A2D2EBB22DC",
        "reference_number": "116",
        "posted_on": "2014-07-14T17:01:44"
    }
}

 

POST payments/post

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

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

(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:

...

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

...

Examples

...

titleExample 1

 HTTP Method: POST

 

Request:

Body:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
	"token": "B8D7A12E9F91AFADE914B7330AFD08CB",
	"payment_identifier":{"reference_number":"117"},
}

Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
    "status":
    {
        "message": null,
        "description": null,
        "code": "OK"
    },
    "data":
    {
        "payment_amount": 50,
        "issued_on": "2014-07-14T17:06:14",
        "life_cycle_state": "POSTED",
        "number": "102",
        "id": "4653BEFC9239043011096B329DFEF3F7",
        "reference_number": "117",
        "posted_on": "2014-07-14T17:07:13"
    }
}

POST payments/reject

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

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

(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:

...

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

...

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

...

Examples

...

titleExample 1

 

HTTP Method: POST

 

Request:

Body:

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

Response:

Code Block
themeConfluence
languagejavascript
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
    }
}

POST payments/cancel

This method is used to cancel a posted payment. A payment cancellation is created and posted to cancel the specified payment

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

(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:

...

type_identifier

(mandatory)

...

The financial transaction type of the payment cancellation. The allowed financial transaction type identifier field are the following:

...

category_identifier

(optional)

...

The financial transaction category of the payment cancellation. The allowed financial transaction category identifier fields are the following:

...

notes

(optional)

...

issue_reason

(optional)

...

udf_string_1

(optional)

...

User Defined Field of type String

...

udf_string_2

(optional)

...

String

...

User Defined Field of type String

...

udf_string_3

(optional)

...

String

...

User Defined Field of type String

...

udf_string_4

(optional)

...

String

...

User Defined Field of type String

...

udf_string_5

(optional)

...

String

...

User Defined Field of type String

...

udf_string_6

(optional)

...

String

...

User Defined Field of type String

...

udf_string_7

(optional)

...

String

...

User Defined Field of type String

...

udf_string_8

(optional)

...

String

...

User Defined Field of type String

...

udf_float_1

(optional)

...

Float

...

User Defined Field of type Float

...

udf_float_2

(optional)

...

Float

...

User Defined Field of type Float

...

udf_float_3

(optional)

...

Float

...

User Defined Field of type Float

...

udf_float_4

(optional)

...

Float

...

User Defined Field of type Float

...

udf_date_1

(optional)

...

Date

...

User Defined Field of type Date

...

udf_date_2

(optional)

...

Date

...

User Defined Field of type Date

...

udf_date_3

(optional)

...

Date

...

User Defined Field of type Date

...

udf_date_4

(optional)

...

Date

...

User Defined Field of type Date

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

Name

Type

Description

payment

Payment object

The payment that was cancelled

payment_cancellationPayment cancellation objectThe payment cancellation that was created

...

Examples

...

titleExample 1

HTTP Method: POST

 

Request:

Body:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
	"token": "B8D7A12E9F91AFADE914B7330AFD08CB",
	"payment_identifier":{"reference_number":"117"},
	"type_identifier":{"name":"Payment Cancellation"},
	"category_identifier":{"name":"Cancellation Because of Mistake"},
}

Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
    "status":
    {
        "message": null,
        "description": null,
        "code": "OK"
    },
    "data":
    {
        "payment":
        {
            "payment_amount": 50,
            "issued_on": "2014-07-14T17:06:14",
            "life_cycle_state": "POSTED",
            "number": "102",
            "id": "4653BEFC9239043011096B329DFEF3F7",
            "reference_number": "117",
            "posted_on": "2014-07-14T17:07:13"
        },
        "payment_cancellation":
        {
            "payment_amount": 50,
            "issued_on": "2014-07-14T17:21:06",
            "life_cycle_state": "POSTED",
            "number": "35",
            "id": "8F3613168562A73556CECA0FEA772AFE",
            "reference_number": "26",
            "posted_on": "2014-07-14T17:21:06"
        }
    }
}

 

...

Panel
nameblue

Child pages (Children Display)
alltrue
excerpttrue