1. Home
  2. API v2.0
  3. Transactions
  4. Add Transaction

Add Transaction

Method: /transactions.[format]

Fields:

Name Data Type Description
document_id String Document ID
amount Numeric Total payment amount being applied
reference String Optional payment information (ie. Cash, Credit Card)
transaction_date Date Date this transaction was posted (YYYY-MM-DD)

Syntax

https://[subdomain].salesbinder.com/api/2.0/transactions.json

HTTP Request Type: POST

Example JSON Data to Submit

{
    "transaction": {
        "document_id": "5a1c90cc-f7c4-4698-b60e-065d17fdd567",
        "amount": 50.00,
        "reference": "Cash",
      	"transaction_date": "2017-11-27"
    }
}

Success

If you have been successful in saving a new transaction, the response will return the newly created data object along with a “message” value of “Saved” as seen below.

Example JSON Returned Response

{
    "message": "Saved",
    "transaction": {
        "document_id": "5a1c90cc-f7c4-4698-b60e-065d17fdd567",
        "amount": 50,
        "reference": "Credit Card 9008",
        "transaction_date": "2017-11-27T00:00:00+00:00",
        "account_id": "4d76bc2e-b198-4bd6-95f5-7439b86a4567",
        "created": "2017-11-27T22:27:14+00:00",
        "modified": "2017-11-27T22:27:14+00:00",
        "id": "75f31989-598b-43da-830d-292767bda9f1"
    }
}

Example XML Data to Submit


  5a1c90cc-f7c4-4698-b60e-065d17fdd567
  50
  Cash
  2017-11-27

Was this article helpful to you? Yes No